:root {
    --color-1: #0f1016;
    --text-color: #f0f0f0;
    --accent-color: #006aff;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 12pt;
    font-family: Arial, Helvetica, sans-serif;
}

nav {
    height: 60px;
    background-color: var(--color-1);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.links-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

nav a {
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color)
}

nav a:hover {
    background-color: var(--accent-color)
}

nav .home-link {
    margin-right: auto;
}

nav svg {
    fill: var(--text-color);
}

#sidebar-active {
    display: none;
}

.open-sidebar-button,
.close-sidebar-button {
    display: none;
}

@media(max-width:450px) {
    .links-container {
        flex-direction: column;
        align-items: flex-start;

        position: fixed;
        top: 0;
        right: -100%;
        z-index: 10;
        width: 300px;
        background-color: var(--color-1);
        box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
        transition: 0.75s ease-out;
    }

    nav a {
        box-sizing: border-box;
        height: auto;
        width: 100%;
        padding: 20px 30px;
        justify-content: flex-start;
    }

    .open-sidebar-button,
    .close-sidebar-button {
        padding: 20px;
        display: flex;
    }

    #sidebar-active:checked~.links-container {
        right: 0;
    }

    #sidebar-active:checked~#overlay {
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9;
    }
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    /* Firey background */
    background: linear-gradient(45deg, #1a0000, #4b0000,  #5a0505, #800000,  #ff0000, #ff4500);
    background-size: 400% 400%;
    animation: fireGradient 10s ease infinite;
    color: #f5f5f5;
    text-align: center;
}

@keyframes fireGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.logo {
    margin-top: 20px;
    width: 120px;
}

h1 {
    font-size: 48px;
    margin: 10px 0;
}

.tagline {
    color: #ccc;
    margin-bottom: 30px;
}

.buttons button,
.buttons .enter-btn {
    background: #ff1f1f;
    color: white;
    border: none;
    margin: 10px;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    /* Ensure span works like button */
    text-decoration: none;
    /* remove link underline */
}

h2 {
    margin-top: 40px;
    font-size: 28px;
}

.stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px auto;
    max-width: 700px;
}

.card {
    background: #1a1a1a;
    border: 2px solid red;
    padding: 20px;
    width: 120px;
    border-radius: 10px;
}

/* Welcome Popup Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-overlay.show {
    display: flex;
}

.popup-content {
    background: var(--color-1);
    padding: 40px 50px;
    border-radius: 15px;
    text-align: center;
    color: var(--text-color);
    max-width: 400px;
    border: 2px solid #ff3333;
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.5);
    animation: popupFadeIn 0.5s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-content h2 {
    margin-bottom: 15px;
    font-size: 28px;
    color: #ff3333;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.popup-content p {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.5;
}