@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html,
body {
    background-color: #ff7f00;
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100dvh;
    padding: 0;
}

main.static {
    align-items: stretch;
    animation: none;
    justify-content: flex-start;
}

main {
    align-items: center;
    animation: fade-up 0.33s ease-out both;
    display: flex;
    flex: 1;
    justify-content: center;
}

header,
footer {
    align-items: center;
    background-color: #b43300;
    color: #ff7f00;
    display: flex;
    font-family: "Madimi One", sans-serif;
    font-size: 18px;
    height: 48px;
    position: relative;
}

header {
    font-weight: bold;
    justify-content: space-between;
    padding: 0 48px;
}

header .hamburger {
    display: none;
}

header .nav {
    display: flex;
    flex: 1;
    gap: clamp(10px, 12vw - 60px, 100px);
}

header .nav.left {
    justify-content: flex-start;
}

header .nav.right {
    justify-content: flex-end;
}

header .nav-link {
    color: #ff7f00;
    font-size: 20px;
    letter-spacing: 0.1em;
    min-width: 0;
    text-decoration: none;
    white-space: nowrap;
}

header .nav-link:hover {
    color: #ffee01;
    text-decoration: underline;
}

header .nav-link.active {
    color: #ffbb00;
    text-decoration: underline;
}

header .home {
    align-items: center;
    display: flex;
    flex: 0 0 200px;
    justify-content: center;
}

header .home-icon {
    background-image: url("../img/home.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
    height: 25px;
    width: 25px;
}

header .home-icon:hover {
    background-image: url("../img/home_hover.png")
}

.nav.mobile {
    display: none;
}

footer {
    justify-content: space-between;
    padding: 0 16px;
}

footer .contact {
    display: flex;
    flex: 1;
    padding-left: 12px;
}

footer .contact a {
    color: #ff7f00;
    text-decoration: none;
}

footer .contact a:hover {
    color: #ffee01;
    text-decoration: underline;
}

footer .socials {
    display: flex;
    flex: 1;
    gap: 20px;
    justify-content: flex-end;
    padding-right: 12px;
}

footer .socials a[href*="youtube"]:hover iconify-icon,
.mobile-socials a[href*="youtube"]:hover iconify-icon {
    color: #ff0000;
}

footer .socials a[href*="x.com"]:hover iconify-icon,
.mobile-socials a[href*="x.com"]:hover iconify-icon {
    color: #ffffff;
}

footer .socials a[href*="instagram"]:hover iconify-icon,
.mobile-socials a[href*="instagram"]:hover iconify-icon {
    color: #ff0069;
}

footer .socials a[href*="discord"]:hover iconify-icon,
.mobile-socials a[href*="discord"]:hover iconify-icon {
    color: #5865f2;
}

footer .socials a[href*="github"]:hover iconify-icon,
.mobile-socials a[href*="github"]:hover iconify-icon {
    color: #77827a;
}

footer iconify-icon {
    color: #ff7f00;
    height: 20px;
    vertical-align: middle;
    width: 20px;
}

.home {
    align-items: flex-start;
    box-sizing: border-box;
    display: flex;
    flex: 1;
    gap: 16px;
    justify-content: space-between;
    padding: 24px;
    width: 100%;
}

@media (max-width: 767px) {
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    header {
        justify-content: flex-start;
        padding: 0 16px;
        z-index: 1100;
    }

    header .nav {
        display: none;
    }

    header .hamburger {
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 8px;
        position: relative;
        z-index: 1200;
    }

    header .hamburger span {
        background-color: #ff7f00;
        display: block;
        height: 3px;
        margin-left: 0;
        width: 22px;
    }

    header .home {
        left: 50%;
        position: absolute;
        transform: translateX(-50%);
    }

    .nav.mobile {
        background-color: #b43300;
        display: flex;
        flex-direction: column;
        height: 100dvh;
        left: 0;
        overflow: hidden;
        padding: 24px;
        padding-top: 72px;
        position: fixed;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        width: 260px;
        z-index: 1000;
    }

    .nav.mobile a {
        color: #ff7f00;
        font-family: "Madimi One", sans-serif;
        font-size: 18px;
        letter-spacing: 0.1em;
        padding: 12px 0;
        text-decoration: none;
    }

    .nav.mobile a:hover {
        text-decoration: underline;
    }

    .nav.mobile hr {
        border: none;
        border-top: 1px solid rgba(255,127,0,0.3);
        margin: 16px 0;
    }

    .nav.mobile.open {
        transform: translateX(0);
    }

    .nav.mobile a.active {
        color: #ffbb00;
        text-decoration: underline;
    }

    .mobile-links {
        display: flex;
        flex-direction: column;
        font-weight: bold;
        overflow-y: auto;
        padding-bottom: 16px;
    }

    .mobile-footer {
        flex-shrink: 0;
        padding-top: 16px;
        border-top: 1px solid rgba(255,127,0,0.3);
    }

    .mobile-footer a {
        font-size: 16px;
        letter-spacing: 0.05em;
    }

    .mobile-socials {
        display: flex;
        gap: 16px;
        margin-top: 12px;
    }

    footer {
        justify-content: center;
        white-space: nowrap;
    }

    footer p {
        flex: 0;
        text-align: center;
    }

    footer .contact,
    footer .socials {
        display: none;
    }

    .home {
        align-items: center;
        flex-direction: column;
        gap: 32px;
        justify-content: flex-start;
        padding: 24px 16px;
        box-sizing: border-box;
    }
}