@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    background:#222;
    background: url('../images/fogia-back1.jpg') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-repeat: repeat-y;
}

body {
    color: #fff;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

main {
    max-width: 1200px;
    margin: 50px auto 20px auto;
    font-family: 'Merriweather',serif;
    font-size: 1.1rem;
    line-height: 1.8rem;
    font-weight: 300;
    padding: 10px;
}

main a {
    color: #000;
    text-decoration: none;
    display: inline-block;
    margin: 30px 0 10px 0;
    padding: 10px;
    background: #f92;
    border-radius: 25px;
    font-weight: 700;
}

h1 {
    font-size: 2rem;
    font-weight: 400;
    line-height: 2rem;
}

h2 {
    font-size: 1.5625rem;
    line-height: 1.6rem;
    font-weight: 400;
    padding: 1rem 0 1rem 0;
    color: #f89928;
}

h3 {
    font-size: 2.5rem;
    line-height: 2rem;
    margin-top: 2rem;
    color: black;
    background:#f92;
    border-radius: 15px;
    width: fit-content;
    padding: 0.5rem 1rem;
    box-shadow: 5px 5px 10px black;
}

.logo-header {
    background: #0f1010;
    text-align: center;
}

.logo-header img {
    width: 900px;
    max-width: 100%;
    min-width: 320px;
}

#navbar-container {
    background: #fff;
    width: 100%;
    height: 50px;
    position: -webkit-sticky;
	position: sticky;
	top: 0;
    border-top: 5px solid #f89928;
}

#nojs {
    display: none;
    padding: 10px;
    background: #fff;
}

#nojs a {
    text-decoration: none;
    text-transform: uppercase;
    font-family: montserrat;
    font-size: 1.3rem;
    line-height: 2rem;
    color: #000;
    display: inline-block;
    padding: 0 10px 0 10px;
}

#hamImage {
    margin-top: -10px;
}

#navbar {
    width: 100%;
    min-width: 320px;
    font-family: 'Montserrat',sans-serif;
    background: #fff;
    font-size: 1.25rem;
    font-weight: 400;
    display: grid;
    grid-template-columns: repeat(5, auto);
    grid-template-rows: 60px;
    grid-template-areas: "nav1 nav2 nav3 nav4 nav5";
    grid-gap: 10px;
    justify-content: center;
    align-items: center;
    transition: left 0.5s;
}

#navbar-container button {
    display: none;
    border: none;
    text-decoration: none;
    background: none;
    outline: none;
    cursor: pointer;
    padding: 20px 20px 0 0;
}

#nav1,#nav2,#nav3,#nav4,#nav5 {
    height: 40px;
    line-height: 40px;
    padding: 0 5px;
}
#nav1 {
    grid-area: nav1;
}
#nav2 {
    grid-area: nav2;
}
#nav3 {
    grid-area: nav3;
}
#nav4 {
    grid-area: nav4;
}
#nav5 {
    grid-area: nav5;
}
#navbar a:hover {
    color: #000;
    border-bottom: 2px solid black;
}

#navbar a {
    display: block;
    color: #777;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 2px solid #fff;
    transition: 250ms ease-in-out;
}

/* .content {
    max-width: 1200px;
    margin: 20px auto 20px auto;
    font-family: 'Merriweather',serif;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 300;
} */

footer {
    background: #111;
    margin-top: auto;
    border-top: 2px solid #222;
    height: 240px;
    line-height: 50px;
    width: 100%;
    color: #fff;
    text-align: center;
    font-size: 1rem;
    font-family: 'Montserrat',sans-serif;
    padding: 50px 5px 0 5px;
}

footer p {
    text-align: center;
    color: #f89928;
}

footer a {
    display: inline-block;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    padding: 0 1em 0 1em;
}

footer a:hover {
    color: #f89928;
}

.nocookies {
    color: #ddd;
    font-size: 0.8em;
}

@keyframes slideIn1 {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

#tagline {
    animation: 1s ease-out 0.2s 1 slideIn1;
}

@media (max-width:680px) {

    #nojs {
        display: block;
        width: 100%;
    }

    #navbar {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5,40px) auto;
        grid-template-areas:
        "nav1"
        "nav2"
        "nav3"
        "nav4"
        "nav5";
        margin-top: 40px;
        padding: 0;
        width: 100vw;
        align-items: center;
        justify-items: center;
        position: absolute;
        left: -960px;
    }

    #nav1:hover, #nav2:hover, #nav3:hover, #nav4:hover, #nav5:hover {
        border-bottom: none;
    }

    #navbar-container button {
        display: block;
        float: right;
        margin-right: 5px;
    }
}
