html,
body {
    background-color: cyan;
    font-family: 'Baloo 2', sans-serif;

    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    color: #D27550;
    overflow-x: hidden;
    background: linear-gradient(to top, #fff, #fffeb8, #ffcdb9);
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

h1,
h2,
#title {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.1;
}

main {
    flex: 1;
}

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

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

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

.small-nav-links {
    display: flex;
    gap: 10px;
    margin: auto;
    z-index: 2;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    font-size: 10px;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 600px;
    flex-wrap: wrap;
}

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

.small-nav-button {
    text-align: center;
    padding: 5px 5px;
    font-size: 1.2em;
    color: #D27550;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

.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;
}

#navTitle {
    display: none;
}

/* Attribution */

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

#attribution i {
    color: white;
}

@media (max-width: 700px) {

    html,
    body {
        padding: 0px;
    }
}

@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: #c26c4a;
        text-align: center;
        padding: 20px 0;
    }

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

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

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

    #navTitle {
        display: block;
        color: white;
        font-size: 2.2em;
        position: absolute;
    }

    #attribution {
        right: 25px;
    }
}

@media (max-width: 500px) {
    .navbar {
        padding: 5px 10%;
        height: 90px;
    }

    #navTitle {
        position: static;
        margin-left: 25%;
        font-size: 1.9em;
        margin-left: 10px;
    }

    #attribution {
        font-size: 2.5em;
    }
}

footer {
    color: white;
    text-align: center;
    margin: 20px auto auto auto;
    z-index: -1;
    background-color: #37BDBF;
    border-top: 15px solid #189395;
    border-bottom: 15px solid #189395;
}

#footer {
    text-align: center;
    width: 100%;
    color: white;
}

#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;
    }
}

.message-box {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0077cc;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.message-box.error {
    background-color: #cc3300;
}

.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #0077cc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* NAV IMAGE */

.left-fade {
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(to right, #FFD4B8, #fffad0, rgb(252, 255, 221), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 1;
}

.hero-banner {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    min-height: 100px;
    max-height: 220px;
    display: block;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    top: 20px;
    left: 20px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.hero-text h1 {
    margin: 0;
    font-size: 4em;
}

.hero-text h2 {
    font-size: 2.2em;
    margin: 4px 0 0 0;
    font-weight: normal;
}

@media (max-width: 768px) {
    .hero-text h1 {
        margin: 0;
        font-size: 3.5em;
    }

    .hero-text h2 {
        font-size: 2.2em;
        margin: 4px 0 0 0;
        font-weight: normal;
    }

    .hero-banner img {
        width: 100%;
        min-height: 100px;
        max-height: 200px;
        display: block;
        object-fit: cover;
    }
}