/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


/* CUSTOM CSS */


html {
    font-family: URW Din, sans-serif;
    background-color: #eae5df;
}

html * {
    box-sizing: border-box;
}

/* NAVIGATION */

nav a {
    display: block;
}

nav a#hamburger {
    width: 2.5em;
    height: 2.5em;
    padding: 0.5em;
    float: right;
    display: none;
}

nav a#hamburger div {
    height: 1px;
    width: 1.5em;
    background: #598217;
    transition: .2s ease-in-out all;
}

nav a#hamburger div:nth-child(1) {
    position: absolute;
    top: .625em;
}

nav a#hamburger div:nth-child(2) {
    position: absolute;
    top: 1.25em;
}

nav a#hamburger div:nth-child(3) {
    position: absolute;
    top: 1.875em;
}

nav ul {
    display: flex;
    float: right;
    padding-right: 2em;
}

nav ul li a {
    background: none;
    text-decoration: none;
    color: #B5A594;
    padding: 2em;
}

nav ul li a:hover {
    color: #598217;
}


/* NAVIGATION */

img#header {
    width: 300px;
    height: auto;
    position: absolute;
    padding: 2em;
}

main {
    padding: 70px 50px 40px 50px;
}

img#side {
    display: block;
    float: left;
    max-width: 300px;
    margin-top: 250px;
}

section {
    padding-top: 150px;
    display: block;
    float: center;
    margin: auto;
    max-width: 500px;
}

.flexible {
    display: flex;
}

img.plus {
    max-width: 25px;
}

img.plus:hover {
    transform: rotate(90deg);
    transition: .3s ease-in-out;
}

h1 {
    font-size: 4em;
    color: #B5A594;
    text-decoration: bold;
    padding: 0 20px 50px 0;
}

p {
    padding: 20px;
    font-size: 1.3em;
    line-height: 1.5;
    color: #555555;
    display: none;
}

.visible {
    display: block;
}

.green {
    color: #598217;
}

@media screen and (max-width: 600px) {
    
    /* NAVIGATION */
    
    nav {
        position: relative;
    }
    
    nav a#hamburger {
        display: block;
        z-index: 2;
        position: relative;
    }

    nav a#hamburger.x div:nth-child(1) {
        position: absolute;
        top: 1.25em;
        transform: rotate(45deg);
        transform-origin: center center;
    }

    nav a#hamburger.x div:nth-child(2) {
        position: absolute;
        top: 1.25em;
        opacity: 0;
    }

    nav a#hamburger.x div:nth-child(3) {
        position: absolute;
        top: 1.25em;
        transform: rotate(-45deg);
        transform-origin: center center;
    }
    
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 0;
        right: 0;
        width: 50%;
        margin-right: -50%;
        transition: .3s ease-out all;
    }
    
    nav ul.visible {
        margin-right: 0;
    }
    
    nav ul li a {
        border-bottom: 1px solid #B5A594;
        padding-right: 3.5em;
    }
    
    nav ul li:first-child a {
        border-top: 1px solid #B5A594;
    }

    /* NAVIGATION */

    
    img#header {
        width: 150px;
        height: auto;
        position: absolute;
        padding: 2em;
    }

    main {
        padding: 30px 50px 40px 50px;
    }

    img#side {
        display: block;
        float: left;
        max-width: 150px;
        margin-top: 100px;
    }

    section {
        padding-top: 150px;
        display: block;
        float: center;
        margin: auto;
        max-width: 500px;
}

    .flexible {
        display: flex;
    }

    img.plus {
        max-width: 25px;
    }

    img.plus:hover {
        transform: rotate(90deg);
        transition: .3s ease-in-out;
    }

    h1 {
        font-size: 2em;
        color: #B5A594;
        text-decoration: bold;
        padding: 0 20px 50px 0;
    }

    p {
        padding: 20px;
        font-size: 1em;
        line-height: 1.5;
        color: #555555;
        display: none;
    }

    .visible {
        display: block;
    }

    .green {
        color: #598217;
    }
}