/* --------------------------------- 
    Root
--------------------------------- */

* {
    box-sizing: border-box;
}

:root {
    --main-color0: #E6F1Fa;
    --main-color1: #D7E8F5;
    --main-color2: #A6CCEB;
    --main-color3: #76A9D3;
    --main-color4: #4682B4;
    --main-color5: #24669D;
    --main-color6: #144B79;

    --alt-color2: #FFDAA8;
    --alt-color3: #FFC87C;
    --alt-color4: #FFB958;
    --alt-color5: #F9A635;
    --alt-color6: #D5820F;
}

/* --------------------------------- 
    Layout
--------------------------------- */

body {
    width: auto;
    margin-left: 15px;
    margin-right: 15px;
    font-family: Raleway, Tahoma, sans-serif;
}

header {
    display: grid;
    grid-template-columns: auto;
}

header .headerImage {
    min-height: 90px !important;
    background-image: url('./car.png');
    background-position: left center;
    background-repeat: no-repeat;
}

@media screen and (min-width: 430px) {
    header {
        display: grid;
        grid-template-columns: 200px auto;
        gap: 20px;
    }

    header .headerImage {
        min-height: 90px !important;
        background-image: url('./car.png');
        background-position: center left;
    }

}

/* --------------------------------- 
    Main Menu, Side Menu
--------------------------------- */

nav ul, aside  ul {
    display: block;
    padding: 0;
    margin: 25px 0px;
}
nav li, aside  li {
    display: block;
    padding: 0;
    margin: 0px;
    list-style: none;
}

nav a, aside a {
    display: block;
    font: 500 normal 14pt Dosis;
    padding: 6px;
    margin-right: auto;
}
nav a:link, nav a:visited, aside a:link, aside a:visited {
    text-decoration: none;
    color: steelblue;
    border-bottom: 2px dotted white;
}
nav a:hover, aside a:hover, aside a:active {
    text-decoration: none;
    color: steelblue;
    border-bottom: 2px dotted steelblue;
}

aside li p {
    xdisplay: none;
}


/* --------------------------------- 
    Sections
--------------------------------- */
main {
    overflow-x: auto;
}
section {
    padding: 5px 0px;
    margin: 5px 0px;
    border-top: 1px solid #A6CCEB;
    overflow-x: auto;
}
section.no-top {
    border-top: none;
}

section.thumb, section.small-thumb, section.stuff-thumb {
    display: grid;
    grid-template-columns: auto;
}

section.thumb img {
    display: block;
    max-width: 100%;
    max-height: 180px;
    margin: 0px auto;
}

div.md-thumb {
    overflow: hidden;
    width: 160px;
    height: 180px;
    margin: 0px auto;
    border-radius: 50%;
    border: 2px solid #E6F1Fa;
}
section.stuff-thumb img {
    width: 160px;
}

div.sm-thumb {
    overflow: hidden;
    width: 80px;
    height: 90px;
    margin: 0px auto;
    border-radius: 50%;
    border: 2px solid #E6F1Fa;
}
section.small-thumb img {
    width: 80px;
}

section.boxes {
    border-top: 0;
    display: grid;
    justify-content: center;
    grid-template-columns: 100%;
    gap: 10px;
}

div.box {
    padding: 10px;
    margin: 0;
    border: 2px solid #E6F1Fa;
    border-radius: 10px;
}

div.box img {
    display: block;
    width: 90%;
    max-width: 250px !important;
    margin: 10px auto;
}

div.picture {
    padding: 10px;
    margin: 0;
    border: 3px solid #E6F1Fa;
    border-radius: 20px;
}

div.picture img {
    display: block;
    width: 80%;
    border: 3px solid #E6F1Fa;
    border-radius: 50%;
    max-width: 250px !important;
    margin: 10px auto;
}

/* --------------------------------- 
    Typography
--------------------------------- */

h1, h2, h3, h4 {
    color: steelblue;
    margin: 10px 0px;
}
h1 {
    font: normal 24pt Dosis;
    margin-top: 15px;
}
h2 {
    font: 500 normal 20pt Dosis;
}
h3 {
    font: 500 normal 18pt Dosis;
}
h4 {
    font: 500 normal 16pt Dosis;
}

p, li {
    font: normal 14pt Raleway;
    margin: 5px 0px;
}

a {
    color: #D5820F;
    text-decoration: none;
}
a:visited {
    color: #F9A635;
}
a:hover, a:active {
    text-decoration: underline;
}

p.figure {
    font: normal small-caps 12pt Dosis;
    color: gray;
    text-align: center;
}
p.figure img {
    width: 500px;
}

p.picture {
    text-align: center;
}
p.picture img {
    width: 300px;
    border-radius: 20px;
    border: 3px solid #D7E8F5;
}

.center, .center * {
    text-align: center;
}

code {
    font: 18px Inconsolata;
    color: gray;
}

/* --------------------------------- 
    Pages
--------------------------------- */

div.pages {
    margin: 15px 0;
}

div.pages a, div.pages a:visited {
    display: inline-block;
    padding: 3px 6px;
    margin-right: 6px;
    min-width: 30px;
    border: 2px solid #76A9D3;
    ;
    text-align: center;
    font: bold 12pt Tahoma;
    color: #D5820F;
}
div.pages a:hover {
    background-color: #E6F1Fa;
    text-decoration: none;
}

div.pages a.current {
    background-color: #76A9D3;
    color: #FFDAA8;
}

/* --------------------------------- 
    Tables
--------------------------------- */

table {
    border-collapse: collapse;
    margin: 15px auto;
}

caption {
    font: normal small-caps 16pt/20pt Dosis;
    color: gray;
    text-align: left;
    margin: 10px 0px;

}
tr {
    border-top: 1px solid lightsteelblue;
    border-bottom: 1px solid lightsteelblue;
}
tr:nth-child(2n+1) {
    background-color: #f7f7f7;
}
th, td {
    padding: 6px 12px;
    text-align: left;
}
th {
    font: bold 14pt Dosis;
    color: #24669D;
    background-color: #E6F1Fa;
}
td {
    font: normal 14pt Dosis;
    color: gray;
}

/* --------------------------------- 
    Forms
--------------------------------- */
label {
    display: block;
    width: 100%;
    padding: 6px 0px;
    color: #335e82;
}

input, select {
    display: block;
    width: 100%;
    margin: 0px 0px 20px 0px;
    padding: 6px 12px;
    border: 2px solid #eee;
    font: 12pt "Open sans";
    border-radius: 5px;
    color: #002222;
    background-color: white;
}

option {
    font: 12pt Tahoma;
}

input[type="submit"] {
    background-color: #E6F1Fa;
    color: steelblue;
    font-weight: bold;
    border: 2px solid steelblue;
    transition: all 0.3s ease-in-out;
}

input[type="submit"]:hover {
    background-color: steelblue;
    color: white;
    border: 2px solid steelblue;
    transition: all 0.3s ease-in-out;
}

textarea {
    display: block;
    width: 100%;
    margin: 0px 0px 20px 0px;
    padding: 6px 12px;
    border: 2px solid #eee;
    font: 12pt "Open sans";
    border-radius: 5px;
    color: #002222;
    resize: vertical;
    height: 120px;
}

input:focus, textarea:focus {
    border: 2px solid white;
    outline: 2px solid lightsteelblue;
}

form {
    display: block;
    width: 100%;
    margin: 30px 0;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

@media screen and (min-width: 430px) {
    form.narrow {
        display: block;
        width: 400px;
        margin: 30px auto;
        padding: 6px 12px;
        border: 1px solid #ccc;
        border-radius: 10px;
    }
}

/* --------------------------------- 
    RWD
--------------------------------- */

div.grid-container {
    display: grid;
    grid-template-columns: auto;
}

@media screen and (max-width: 600px) {
    p.figure img {
        width: 90%;
    }
}

@media screen and (max-width: 950px) {
    .auto-overflow {
        overflow-x: auto;
    }
}

@media screen and (min-width: 751px) {
    nav {
        height: 36px;
        background-color: steelblue;
        margin-top: 5px;
    }

    nav ul, nav li {
        display: inline-block;
        padding: 0;
        margin: 0;
    }

    nav a {
        display: inline-block;
        height: 36px;
        padding: 5px 20px;
        font: 14pt 'Open Sans';
        border-right: 2px solid white;
    }
    nav a:link, nav a:visited {
        color: white;
        background-color: steelblue;
        text-decoration: none;
        border-bottom: 0;
    }
    nav a:hover, nav a:active {
        color: #144B79;
        background-color: #A6CCEB;
        text-decoration: none;
        border-bottom: 0;
    }

    aside li p {
        display: block;
    }

    body {
        xwidth: 700px;
        xmargin-left: auto;
        xmargin-right: auto;
    }

    header {
        xpadding-left: 240px;
        xmargin-top: 20px;
    }

    div.grid-container {
        display: grid;
        grid-template-columns: 200px auto;
        gap: 30px;
    }
}

@media screen and (min-width: 951px) {
    body {
        width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

}

@media screen and (min-width: 301px) {
    section.small-thumb {
        display: grid;
        grid-template-columns: auto 100px;
        gap: 30px;
    }

}
@media screen and (min-width: 601px) {
    section.thumb, section.stuff-thumb {
        display: grid;
        grid-template-columns: auto 200px;
        gap: 30px;
    }

    section.thumb img {
        max-height: 120px;
        margin: 0px 0px 0px auto;
    }

    section.boxes {
        border-top: 0;
        display: grid;
        grid-template-columns: 49% 49%;
        gap: 10px;
    }
}

/* --------------------------------- 
    Hamburger menu
--------------------------------- */

.burgerBar {
    display: block;
    height: 36px;
    text-align: right;
    background-color: steelblue;
    margin-top: 5px;
}

.burgerMenu {
    display: inline-block;
    cursor: pointer;
    padding: 0px 10px;
    background-color: steelblue;
}

.bar1, .bar2, .bar3 {
    width: 35px;
    height: 4px;
    background-color: #E6F1Fa;
    margin: 6px 0;
    transition: 0.4s;
}

.cross .bar1 {
    transform: translate(0, 10px) rotate(-40deg);
}

.cross .bar2 {
    opacity: 0;
}

.cross .bar3 {
    transform: translate(0, -10px) rotate(40deg);
}

@media screen and (max-width: 750px) {

    .rwdAside {
        display: none;
    }

}

@media screen and (min-width: 751px) {

    .burgerBar {
        display: none;
    }

}

/* --------------------------------- 
    Print
--------------------------------- */

@media print {
    header, .burgerBar, nav, aside {
        display: none;
    }

    .no-print {
        display: none;
    }

    p.figure img {
        width: auto;
        max-height: 500px;
    }
    
    section.thumb {
        display: grid;
        grid-template-columns: auto 200px;
        gap: 30px;
    }

    section.boxes {
        border-top: 0;
        display: grid;
        grid-template-columns: 49% 49%;
        gap: 10px;
    }
}