html, body {
    background-color: cyan;
    font-family: Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
    background: linear-gradient(to top,  #fff, #fffeb8, #ffcdb9);
}

main {
    flex: 1;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #008299;
    font-size: 1.2em;
    position: relative;
}

.navbar *, .navbar {
    box-sizing: content-box;
}

.nav-links {
    display: flex;
    gap: 10px;
    margin: auto;
    z-index: 2;
}

.nav-button {
    text-align: center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    padding: 10px 15px;
    width: 170px;
    font-size: 1.2em;
    color: black;
    text-decoration: none;
    background-color: white;
    border-radius: 3px;
    margin: 0 10px;
}

.nav-button:hover {
    background-color: #ececec;
}

.menu-toggle {
    display: none;
    font-size: 2em;
    cursor: pointer;
    color: white;
    margin-bottom: 10px;
}

.nav-button.active {
    border-bottom: 4px solid #fce626;
}

#title {
    display: none;
}

/* Attribution */

#attribution {
    position: absolute;
    color: white;
    font-size: 3em;
    text-decoration: none;
}

#attribution i {
    color: white;
}

@media (max-width: 1500px) {
    .navbar {
        padding: 5px 10%;
        position: relative;
        justify-content: center;
        align-items: center;
        height: 90px;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #008299;
        text-align: center;
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
        animation: revealNav 0.5s ease-in-out forwards;
    }

    .menu-toggle {
        display: block; /* Show hamburger */
        font-size: 70px;
        position: absolute;
        left: 5%;
    }

    .nav-button {
       width: 50%;
       margin: auto;
    }

    #title {
        display: block;
        color: white;
        font-size: 2.2em;
        position: absolute;
        /* text-align: center; */
    }    

    #attribution {
        right: 25px;
    }
}

@media (max-width: 500px) { 
    .navbar {
        padding: 5px 10%;
        height: 90px;
    }
    #title {
        position: static;
        margin-left: 25%;
        font-size: 1.9em;
        margin-left: 10px;
    }    
    #attribution {
        font-size: 2.5em;
    }
}

footer {
    text-align: center;
    margin: auto;
    z-index: -1;
}

#footer {
    border-top: 1px solid black;
    margin-top: 25px;
    text-align: center;
    width: 100%;
}

#socials {
    display: flex;
    width: 150px;
    margin: auto;
    justify-content: center;
}

footer img {
    flex: 1;
    width: 50px;
    height: 55px;
    border-radius: 40px;
    margin: 10px 5px 0 5px;
}

@keyframes revealNav {
    0% {
        top: -100px; /* Start above the container */
        opacity: 0; /* Start with opacity 0 (invisible) */
    }
    50% {
        opacity: 1; /* Make the element visible halfway through */
    }
    100% {
        top: 100px; /* End at the bottom of the container */
        opacity: 1; /* Stay fully visible */
    }
}

@keyframes hide {
    0% {
        bottom: -100px; /* Start below the container */
        opacity: 0; /* Start invisible */
    }
    50% {
        opacity: 1; /* Make the element visible halfway */
    }
    100% {
        bottom: 200px; /* End at the top of the container */
        opacity: 1; /* Stay fully visible */
    }
}

@keyframes reveal {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}