/* --- various HTML fixes ---------- */
    /* (cause HTML is a piece of utter Shit™ sometimes) */
*, *::before, *::after { box-sizing: border-box; }
html, body { scroll-behavior: smooth; margin: 0; padding: 0; min-height: 100%; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }


/* --- custom fonts ---------------- */
@font-face { font-family:"Continuum"; src:url("https://files.turtledev.xyz/fonts/wii.ttf") format("truetype"); font-weight:normal; font-style:normal; font-display:swap; }
@font-face { font-family:"Continuum"; src:url("https://files.turtledev.xyz/fonts/wii-bold.ttf") format("truetype"); font-weight:bold; font-style:normal; font-display:swap; }
@font-face { font-family:"Continuum"; src:url("https://files.turtledev.xyz/fonts/wii-light.ttf") format("truetype"); font-weight:light; font-style:normal; font-display:swap; }

@font-face {
    font-family: "Nintendo U";
    src: url("https://files.turtledev.xyz/fonts/Nintendo%20U.ttf") format("truetype");
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Wii Sans";
    src: url("https://files.turtledev.xyz/fonts/WiiSans-Regular-4.otf") format("opentype");
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "MiiverseSymbols";
    src: url("https://files.turtledev.xyz/fonts/MiiverseSymbols-Regular.woff") format("woff");
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "MiiTubeIcons";
    src: url("/fonts/MiiTubeIcons-Regular.woff2") format("woff2");
    font-weight: normal; font-style: normal; font-display: swap;
}


/* --- body/background ------------- */
@media (prefers-reduced-motion: reduce) { body { animation: none; } }

body::before {
    content: ""; position: fixed; inset: 0;
    pointer-events: none; z-index: 2;

    backdrop-filter: blur(2px) brightness(1.025);
    background: radial-gradient(ellipse at center, #FFFFFF00 60%, #FFFFFF59 90%, #FFFFFFA6 100%);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    background: url("/img/miitube-bg.png");
    background-repeat: repeat;
    background-size: 30%;

    animation: bg-move 60s linear infinite;

    color: black;

    font-family:
        "Nintendo U",
        system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;

    -webkit-font-smoothing: antialiased;
}

@keyframes bg-move {
    from { background-position: 0 0; }
    to { background-position: 30% 30%; }
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

h1, h2 {
    font-family: "Wii Sans";
}

main {
    position: relative;
    z-index: 3;
    display: flex;
    flex: 1;
    flex-direction: column;

    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 12px;
}

/* --- navbar ---------------------- */
nav {
    position: relative;
    z-index: 4;

    background: transparent;
    backdrop-filter: blur(3px);
    box-shadow: inset 0 0 18px 8px rgba(255, 255, 255, 0.85);

    height: 70px;

    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5px;

    outline: 5px solid #ddd;
    border-bottom: 4px solid #14c9dd;
    margin-bottom: 4px;
}
img#navLogo {
    width: auto;
    height: 42px;
    margin-top: 4px;
    flex-shrink: 0;
    padding-left: 8px;
    padding-right: 10px;
}
#navText {
    color: #479fa7;
    -webkit-text-stroke: 1px #145962;
}
.navBtn {
    width: auto;
    height: 40px;
    padding: 0px 5px;
}

/* --- nav auth area ---------------- */
#navAuth {
    margin-left: auto;
    margin-right: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
#navLoginBtn {
    -webkit-text-stroke: 0;
}

#navProfile {
    display: flex;
    align-items: center;
    gap: 8px;
}
#navProfilePic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #14c9dd;
}
#navUsername {
    color: #145962;
    font-weight: bold;
    font-size: 15px;
}
