@font-face {
    font-family: 'TitleFont';
    src: url('/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: bolder;
    font-style: normal;
}
:root {
    --header-height: 70px;
    --backgroundColor: #1a1a1a;
    --primaryBubbleColor: rgba(33, 34, 37, 0.62);
}
* {
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    background-color: var(--backgroundColor);
    margin: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 9998;

    backdrop-filter: blur(15px);
    background-color: #1a1a1be1;

    transition: transform 0.3s ease, border-radius 0.3s ease;
}
header .server-logo {
    position: absolute;
    top: 50%;
    left: clamp(30px, calc(50% - 600px), 80%);
    transform: translateY(-50%);
    height: 50px;
    width: auto;
    display: block;
    opacity: 1;
    user-select: none;
    -webkit-user-drag: none;

    transition: opacity 0.3s ease;
}
.header-pages {
    position: fixed;
    top: 0;
    left: 50%;
    height: var(--header-height);
    z-index: 9999;

    -webkit-tap-highlight-color: transparent;
}
.pages {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    justify-content: center;
    align-items: center;

    -webkit-user-select: none; /* Chrome, Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Old Edge */
    user-select: none;         /* Standard */
    cursor: pointer;

    transition: transform 0.3s ease;
}
.pages a {
    text-decoration: none;
    color: rgb(170, 170, 170);
    font-weight: bold;
    font-size: 1rem;
    padding: 0 clamp(0px,1.5vw,50px);
    position: relative;
}
.pages a:active  {
    color: #ffffff;
}
.pages a:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: rgb(196, 196, 196);
}
.page-active::before {
    content: "";
    position: absolute;
    bottom: -10px;               /* sticks to bottom of link */
    left: 50%;               /* center it horizontally */
    transform: translateX(-50%);
    width: 70%;              /* underline width */
    height: 1px;             /* thickness */
    background-color: rgba(255, 255, 255, 0.205);   /* line color */
    pointer-events: none;    /* ensure it doesn't interfere with hover/click */
}
footer {
    padding: 20px 5vw;
    background-color: rgb(15, 16, 17);
    color: white;
    text-align: left;
    font-size: 12px;
    z-index: 9999;

    position: relative; /* ADD THIS */
}
.footer-text {
    padding-left: 2vw;
    margin: 0; /* prevents weird vertical offsets */
}
.footer-divider {
    width: 100%;
    height: 1px;
    background-color: #ccc;
    margin: 15px 0px;
}
.footer-links-box {
    position: absolute;
    right: 7vw;   /* aligns with your padding */
    top: 16px;    /* same as top padding */
    
    -webkit-tap-highlight-color: transparent;

    display: flex;
    gap: 12px;
    align-items: center;
}
.footer-icon {
    width: 20px;
    height: auto;
    fill: white;
}

header .profile-container {
    position: absolute;
    top: 50%;
    right: clamp(30px, calc(50% - 600px), 90%);
    transform: translateY(-50%);

    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none; /* Chrome, Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Old Edge */
    user-select: none;         /* Standard */
    
    display: flex;
    align-items: center;
    gap: 10px;

    z-index: 10000;

    transition: opacity 0.3s ease;

    position: absolute;
}
header .profile-avatar {
    width: 46px;
    height: 46px;
    border-radius: 60px;
    object-fit: cover;

    fill: #252525;
    background-color: #131313;

    -webkit-user-drag: none;

    opacity: 1;

    cursor: pointer;
}
.profile-button {
    height: 30px;
    width: 100px;

    border-radius: 8px;

    border: 1px solid rgba(255, 255, 255, 0.1);

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
    backdrop-filter: blur(6px);
}
#unlink-btn.profile-button {
    background: rgba(231, 76, 60, 0.15);
    color: #ff6b6b;
}
#unlink-btn.profile-button:hover {
    background: rgba(231, 76, 60, 0.25);
    border-color: rgba(231, 76, 60, 0.4);
}
#login-btn.profile-button {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
#login-btn.profile-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}
.profile-button:active {
    transform: scale(0.98);
}

body.logged-out #unlink-btn {
  display: none;
}
body.logged-in #login-btn {
  display: none;
}

header .profile-dropdown {
    position: absolute;
    top: 60px;
    right: 0;

    width: 160px;
    padding: 10px;
    background: #1c1c1c;
    border-radius: 8px;

    flex-direction: column;

    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    opacity: 0;

    display: block;
    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;

    transition: opacity 0.3s ease;
}
header .profile-dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 18px;

    width: 12px;
    height: 12px;
    background: #1c1c1c;

    transform: rotate(45deg);
}
header .nav-username {
    display: none;
}
.profile-dropdown.active {
    opacity: 1;
    pointer-events: unset;
}

body.menu-open .server-logo {
    opacity: 0;
    pointer-events: none;
}

.menu-icon {
    position: absolute;

    width: 35px;
    height: 25px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    -webkit-tap-highlight-color: transparent;

    cursor: pointer;
}
.menu-icon span {
    width: 100%;
    height: 4px;

    background-color: white;
    border-radius: 4px;

    transition: all 0.3s ease;
}
.menu-icon.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.menu-icon.active span:nth-child(2) {
    opacity: 0;
}
.menu-icon.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;

    padding-top: 90px;

    display: flex;
    flex-direction: column;
    gap: 20px;

    overflow-y: auto;

    pointer-events: none;
    opacity: 0;

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    background: rgba(21, 21, 21, 0.801);

    z-index: 9997;

    transition: opacity 0.3s ease;
}
.side-menu.open {
    opacity: 1;
    pointer-events: auto;
}
.side-menu a {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #ddd;
    text-decoration: none;
    padding: 12px 25px;
    font-size: 16px;
}
.side-menu-discord {
    margin-top: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    padding-bottom: 20px;
}

body.menu-open header {
    transform: translateY(5px) scale(0.98);
    border-radius: 15px;
}
body.menu-open .pages {
    transform: translate(-50%, calc(-50% + 5px));
}

@media (hover: hover) and (pointer: fine) {
    .pages a:hover {
        color: #ffffff;
    }
}
@media (max-width: 750px) {
    .header-pages {
        position: absolute;
    }
    header {
        position: absolute;
    }
}
@media (max-height: 550px) {
    .header-pages {
        position: absolute;
    }
    header {
        position: absolute;
    }
}
@media (max-width: 495px) {
    header .profile-container {
        left: -100%;
        pointer-events: none;
        opacity: 0;
    }
    .pages {
        pointer-events: none;
    }
    .page {
        display: none;
    }
    .pages a {
        font-size: clamp(0px, 6cqw, 30px);
    }
    .pages a:not(:last-child)::after {
        display: none;
    }
    .page-active::before {
        display: none;
    }
    .menu-icon-background {
        position: absolute;
        top: 50%;
        right: clamp(30px, calc(50% - 600px), 90%);
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        border-radius: 15px;

        background-color: #1b1b1b;

        z-index: 1000;
        
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .menu-icon {
        position: absolute;

        width: 35px;
        height: 25px;

        display: flex;
        flex-direction: column;
        justify-content: space-between;

        -webkit-tap-highlight-color: transparent;

        cursor: pointer;
    }
    .menu-icon span {
        width: 100%;
        height: 4px;

        background-color: white;
        border-radius: 4px;

        transition: all 0.3s ease;
    }
    .menu-icon.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    .menu-icon.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-icon.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    body.menu-open .profile-container {
        left: clamp(30px, calc(50% - 600px), 90%); 
        opacity: 1;
        pointer-events: none;
    }
    body.menu-open .side-menu {
        pointer-events: all;
    }
}