html, body {
    padding: 0;
    margin: 0;
}

body {
    background-color: #0099CC;
    color: white;
    font-family: sans-serif;
    text-shadow:0 1px 0 #333;
    height: 100%;
    max-width: 1280px;
    padding: 8px;
}

h1 {
    font-size: 2.5em;
    background: url(logo-petit.png) no-repeat left center;
    float: right;
    width: 4em;
    text-align: right;
    height: 2.45em;
    line-height: 3.125;
    
    padding: 0 1em 0 270px;
    margin: .2em 0;
}

h2 {
    background-color: #0099cc;
    color: white;
    margin: 1em 0;
    font-size: 1em;
    text-align: center;
    text-shadow:0 1px 0 #333;
}

h3 {
    color: #04c;
    border-bottom: 1px solid #04c;
    text-align: right;
    font-size: 1em;
}

a {
    color: #07a;
}

.main {
    background-color: white;
    color: black;
    clear: both;
    margin-left: 12em;
    padding: 1em;
    
    -webkit-border-radius: .75em .75em 0 0;
    border-radius: .75em .75em 0 0;
    -moz-background-clip: padding;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    
    text-shadow: none;
    box-shadow:0 0 2px 0 #333;    
}

.nav {
    position: fixed;
    left: 0;
    top: 7.05em;
    width: 11.8em;
    margin: .5em .2em;
    border: 2px solid white;
    -webkit-border-radius: .75em;
    border-radius: .75em;

    overflow: hidden;
    /*
    -moz-background-clip: padding;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;    
    */
    
    background-color: #818CE7;
    /*
    background-image: -webkit-gradient(linear, left top, left bottom, from(hsl(234, 68%, 60%)), color-stop(10%, hsl(234, 68%, 71%)));
    background-image: -o-linear-gradient(top, hsl(234, 68%, 60%), hsl(234, 68%, 71%) .5em);
    background-image: -webkit-linear-gradient(top, hsl(234, 68%, 60%), hsl(234, 68%, 71%) .5em);
    background-image: -moz-linear-gradient(top, hsl(234, 68%, 60%), hsl(234, 68%, 71%) .5em);
    background-image: linear-gradient(to bottom, hsl(234, 68%, 60%), hsl(234, 68%, 71%) .5em);
    */
    box-shadow: inset 0 0 .3125em rgba(51,51,51,.5);
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav li {
    padding: 0;
    margin: 0;
}

.nav a {
    text-decoration: none;
    color: white;
    display: block;
    padding: .5em;
}

.nav li.current {
    background: #99a1e8;
    background: rgba(230, 230, 230, .2);
}

.nav a:hover {
    background: #575e9c;
    background: rgba(51, 51, 51, .3);
}

.button {
    display: block;
    text-decoration: none;
    
    -webkit-border-radius: 8px;
    border-radius: 8px;
    -moz-background-clip: padding;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    
    font-size: 1.1em;
    font-weight: bold;
    /* text-shadow: 0 1px 0 #333; */
    text-shadow: 0 0 2px black, 3px 3px 1px rgba(0, 0, 0, .3);
    color: white;
    background-color: #818CE7;
    background-image: -webkit-gradient(linear, left top, left bottom, from(hsl(234, 68%, 60%)), color-stop(20%, hsl(234, 68%, 71%)));
    background-image: -o-linear-gradient(top, hsl(234, 68%, 60%), hsl(234, 68%, 71%) .9em);
    background-image: -webkit-linear-gradient(top, hsl(234, 68%, 60%), hsl(234, 68%, 71%) .9em);
    background-image: -moz-linear-gradient(top, hsl(234, 68%, 60%), hsl(234, 68%, 71%) .9em);
    background-image: linear-gradient(to bottom, hsl(234, 68%, 60%), hsl(234, 68%, 71%) .9em);
    
    padding: .5em 1em;
    width: 10em;
    margin: 0 auto;
    text-align: center;
    
    -webkit-box-shadow: 2px 2px 3px 2px rgba(0, 0, 0, .5);
    box-shadow: 2px 2px 3px 2px rgba(0, 0, 0, .5);
}

.button:hover {
    background-color: #4758F0;
    background-image: -webkit-gradient(linear, left top, left bottom, from(hsl(234, 85%, 50%)), color-stop(20%, hsl(258, 85%, 61%)));
    background-image: -o-linear-gradient(top, hsl(234, 85%, 50%), hsl(234, 85%, 61%) .9em);
    background-image: -webkit-linear-gradient(top, hsl(234, 85%, 50%), hsl(234, 85%, 61%) .9em);
    background-image: -moz-linear-gradient(top, hsl(234, 85%, 50%), hsl(234, 85%, 61%) .9em);
    background-image: linear-gradient(to bottom, hsl(234, 85%, 50%), hsl(234, 85%, 61%) .9em);
}

.button:focus {
    outline: 1px dotted black;
}

.button:active {
    position: relative;
    left: 1px;
    top: 1px;
    -webkit-box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, .7);
    box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, .7);
}

.important {
    margin: 2em 0;
}

.menu-link {
	color: #ddd;
	position: absolute;
	right: .3em;
	top: .3em;
    display: block;
	text-indent: -19999px;
    overflow: hidden;
}

@media all and (max-width: 800px) {
    .nav {
        position: static;
        width: auto;
        text-align: center;
        font-size: 1.2em;
    }
    .main {
        margin-left: 0;
    }
    
    body {
        font-size: 80%;
    }
    h2 {
        font-size: 1.1em;
    }
    h1 {
        font-size: 1.8em;
        background-size: contain;
        width: auto;
        float: none;
        padding: 0 .5em 0 0;
        line-height: 1.1;
    }
	.menu-link {
		color: #fff;
		right: 1.5em;
		top: 3em;
		font-size: 1.1em;
		text-indent: 0;
	}    
}
