*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

body{
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Eagle Lake";
    cursor: default;

}
header{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    min-height: 10vh;
    background: black;
    width: 100%;
    position: fixed;
    z-index: 1;
}
main{
    flex: 1 0 auto;
}

footer{
    
    background: black;
    justify-content: space-between;
    width: 100%;
    height: 2%;
    padding: 0.5%;
}
footer a{
    text-decoration: none;
    color: white;
}
footer a:hover{
    color: red;
}
.footer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    color: white;
    font-size: 1rem;
}
.logo{
    width: 10%;
    height: 100%;
}
.navbar{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between ;
    align-items: center;
}

.menu-toggle {
    display: none;
    font-size: 2em;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    margin-left: 1em;
    z-index: 2;
}

.navbar-links {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    width: 70%;
    position: relative;
    font-size: inherit;
    font-size: 0.7em;
}

nav{
    position: relative;
    width: 50%;
    height: 20%;
    background: #222;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}
nav a{
    position: relative;
    display: inline-block;
    font-size: 2em;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    padding: 2% 5%;
    z-index: 1;
}
nav span{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(45deg, #644d0e, #789e47);
    border-radius: 8px;
    transition: left 0.25s ease, width 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
    z-index: 0;
    width: 0;
    opacity: 0;
}

nav span.visible{
    opacity: 1;
}
nav a:nth-child(1):hover ~ span{
    left: 10%;
}
nav a:nth-child(2):hover ~ span{
    left: 20%;
}
nav a:nth-child(3):hover ~ span{
    left: 40%;
}
nav a:nth-child(4):hover ~ span{
    left: 60%;
}
nav a:nth-child(5):hover ~ span{
    left: 80%;
}
h1{
    font-size: 3rem;
    text-align: center;
    padding-top: 20vh;
    padding-bottom: 2em;
}
section{
    position: relative;
    min-height: 200vh;
}
section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(../images/background.svg) center/cover no-repeat;
    opacity: 0.5; 
    z-index: -1;
    
}
@media (max-width: 1200px) {
    .navbar {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
    }
    .logo{
        width: 30%;
        max-width: 200px;
        padding-left: 2%;
        margin-right: 0 auto;
    }
    .navbar-links {
        display: none;
        flex-direction: column;
        width: 100%;
        height: auto;
        position: absolute;
        top: 0;
        left: 0;
        background: #222;
        border-radius: 0 0 10px 10px;
        z-index: 1;;
    }
    .navbar-links.open {
        display: flex;
        font-size: 1.5rem;
    }
    .menu-toggle {
        display: block;
        font-size: 4em;
        margin-left: auto;
        margin-right: 5%;
    }
    nav a {
        font-size: 1.2em;
        padding: 10px 0;
        width: 100%;
        text-align: left;
    }
    nav span {
        display: none;
    }
    .footer{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}