
/* standard elements */
html {min-height: 100%;}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {color: #048;}
a:hover {color: #06C;}



p,code,ul {padding-bottom: 1.2em;}

li {list-style: none;}

h1 {font: normal 1.8em Tahoma,sans-serif;}
h2 {font: bold 1.4em sans-serif;}
h3 {font: bold 1em Tahoma,sans-serif;}

form,input {margin: 0; padding: 0; display: inline;}

code {
    background: #FFF;
    border: 1px solid #EEE;
    border-left: 6px solid #CCC;
    color: #666;
    display: block;
    font: normal 1em Tahoma,sans-serif;
    line-height: 1.6em;
    margin-bottom: 12px;
    padding: 8px 10px;
    white-space: pre;
}

blockquote {
    background: url(img/quote.gif) no-repeat;
    display: block;
    font-weight: bold;
    padding-left: 28px;
}

h1,h2,h3 {padding-top: 6px; color: #553; margin-bottom: 4px;}


/*structure
.inner-container {
    border: 2px solid #D7D7D2;
    background: #FFF;
    font-size: 1.2em;
    margin: 0 auto;
    padding: 10px;
    width: 780px;
}*/


body {
    background-color: hsl(60, 9%, 90%);
    color: #444;
    font: normal 100% Tahoma,sans-serif;
}

main {
    background:  hsl(60, 9%, 90%) url(../images/body.jpg) no-repeat center top;
    padding-top: 24px;
}

main article.content {
    background: white;
    box-shadow: 0px 0px 10px 0px hsl(60 9% 54%);
    margin: 40px auto;
}


header {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

/* header & title */
header.header {
    padding-left: 3%;
    padding-right: 3%;
    background: hsl(60, 2%, 13%);
    /*height: 140px;*/
    text-align: left;
}
.header .title {
    color: #FFF;
    padding: 20px;
}
.header .title a {
    color: #FFF;
    font: bold 3em monospace, sans-serif;
    text-decoration: none;
}
.header .title a:hover {color:hsl(0, 0%, 73%);}

.header .navbar {
    color: #FFF;
    font: normal 1.4em monospace, sans-serif;
    margin-right: 10px;
    text-align: right;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar li {
    display: inline-block;
    margin: 0;
}

.navbar a {
    color: #FFF;
    padding: 5px 10px 5px 10px;
    margin: 0;
    text-decoration: none;
    height: 100%
}

.navbar a:hover {
    color: hsl(0, 0%, 73%);
    text-decoration: none;
    background-color: #444;
}

/* Hamburger menu button */
.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    align-self: center;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: #FFF;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Clever display of hamburger menu as an X */
.navbar-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-10px, 10px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-8px, -8px);
}

/* path */
/*.path {
    background: #949490;
    color: #FFF;
    font: normal 1.1em Verdana,sans-serif;
    padding: 8px 12px;
}
.path a {
    color: #FAFAFA;
    text-decoration: none;
}
.path a:hover {
    color: #FFE;
    text-decoration: underline;
}*/

/* main */
/*.main {
    background: url(img/main.gif) repeat-y;
    border-top: 4px solid #FFF;
    padding: 8px 12px 0 0;
}*/

/* content */
.content {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px 40px;
}
/*.content .descr {
    color: #664;
    font-size: 0.9em;
    margin-bottom: 6px;
}*/
.content header {
    margin-bottom: 20px;
}
.content li {
    list-style: disc;
    margin-left: 18px;
}
.content p {font-family: "Lucida Sans Unicode",sans-serif;}


/* footer */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: hsl(60, 20%, 13%);
    color: #ffffff;
    font: normal .75em monospace, sans-serif;
    margin-top: 5px;
    padding: 10px 12px;
}
.footer a {
    color: #F7F7F2;
    text-decoration: none;
}
.footer a:hover {color: #FFC;}
.footer .right, .footer .right a {color: #C8C8C3;}
.footer .right a:hover {color: #F7F7F2;}

@media screen and (max-width: 800px) {
    main {
        padding: 0;
        background: unset;
    }
    main article.content {
        width: 100%;
        padding: 30px 3%;
        margin: 0;
    }

    /* Keep header compact and prepare for absolute menu positioning */
    header.header {
        position: relative;
        display:flex;
        justify-content: space-between;
    }

    .navbar-toggle {
        display: inline-flex;
    }

    /* Dropdown overlays content instead of expanding header */
    .navbar {
        position: absolute;
        top: 100%; /* directly below the header */
        left: 0;
        right: 0;
        width: 100%;
        background: hsl(60, 2%, 13%);
        box-shadow: 0 6px 16px rgba(0,0,0,0.3);
        border-top: 1px solid #444;
        z-index: 1000;

        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        text-align: left;
    }

    .navbar.active {
        max-height: 60vh; /* allow scrolling when tall */
        overflow-y: auto;
    }

    .navbar ul {
        width: 100%;
    }

    .navbar li {
        display: block;
        width: 100%;
        border-bottom: 1px solid #444;
    }

    .navbar a {
        display: block;
        padding: 12px 15px;
    }
}
