/* General Styles */
body {
    background: url('background.png') no-repeat center center fixed;
    background-size: cover;
    color: #c16aff;
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Centering Container */
.content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* vertical centering */
    align-items: center;
    flex: 1;
    min-height: calc(100vh - 5rem - 2rem - 2.5rem);
    /* 100vh minus:
       - top-nav margin-top (5rem)
       - top-nav margin-bottom (2rem)
       - announcement height (~2.5rem) */
}

/* Announcement Bar */
.announcement {
    width: 100%;
    background: rgba(193, 106, 255, 0.85);
    color: #0A0020;
    text-align: center;
    padding: 0.5rem 0;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Header */
.header {
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

.header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.header h2 {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin: 0 1rem 1rem 1rem;
}

/* Center Buttons Section */
.center-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.btn {
    text-decoration: none;
    color: #c16aff;
    background-color: #25134f;
    border-width: 5px;
    border-color: #381d75;
    border-style: solid;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 15px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: scale(1.05);
    background-color: #280f62;
    border-color: #432291;

    /* purple gradient animated text */
    color: #0000;
    /* make text itself transparent */
    background: linear-gradient(90deg, #c16aff, #ffffff, #c16aff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: purple-scroll 2s linear infinite;
}

/* Responsive Buttons */
@media (min-width: 600px) {
    .buttons {
        flex-direction: row;
        gap: 2rem;
    }
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0A0020;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* Loader Content (spinner + text) */
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Spinner */
#loading-screen .fa-spinner {
    font-size: 5rem;
    /* bigger spinner */
    color: #c16aff;
    animation: spin 2s linear infinite;
    /* slower rotation */
    margin-bottom: 1rem;
    /* space between spinner and text */
}

/* Spinner Rotation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Loading Text */
#loading-screen p {
    color: #c16aff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

/* Modal Background */
.modal {
    display: none;
    /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

/* Modal Background */
.modal {
    display: none;
    /* hidden initially */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

/* Top Navigation Bar */
.top-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 5rem;
    /* enough space to avoid overlapping announcement */
    margin-bottom: 0;
    z-index: 1500;
    position: relative;
    /* ensure it's not affected by fixed elements */
}

.nav-btn {
    text-decoration: none;
    color: #c16aff;
    background-color: #25134f;
    border: 2px solid #2e1861;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-btn:hover {
    transform: scale(1.1);
    background-color: #280f62;
    border-color: #432291;

    /* purple gradient animated text */
    color: #0000;
    /* make text itself transparent */
    background: linear-gradient(90deg, #c16aff, #ffffff, #c16aff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: purple-scroll 2s linear infinite;
}

@property --k {
    syntax: '<number>';
    initial-value: 0;
    inherits: false;
}

svg[height='0'][aria-hidden='true'] {
    position: fixed;
}

/* Glowing animated gradient */
.glow-title {
    font-weight: 600;
    font-size: inherit;
    text-transform: uppercase;
    text-align: center;
    color: #0000;
    background: repeating-linear-gradient(90deg,
            #c16aff 0%,
            #8a2be2 50%,
            #c16aff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: url(#glow);
    background-size: 200% 100%;
    animation: purple-scroll 1s linear infinite;
}

@keyframes purple-scroll {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

@keyframes k {
    to {
        --k: 1;
    }
}