/* Background from https://wweb.dev/resources/animated-css-background-generator */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    height: auto;
}

a {
    font-family: Poppins, sans-serif;
    text-decoration: none;
    color: #FFFFFF;
}

/* Animated Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;

    /* Fade the whole layer out toward the bottom of the viewport */
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 30%);
    mask-image: linear-gradient(to top, transparent 0%, #000 30%);
}

.background li {
    position: absolute;
    display: block;
    bottom: -160px;
    width: 20px;
    height: 20px;
    background: rgba(255, 0, 0, 0.15);
    filter: blur(3px);
    animation: animate 25s linear infinite;
}

.background li:nth-child(1)  { left: 25%; width: 80px;  height: 80px;  animation-delay: 0s;  }
.background li:nth-child(2)  { left: 10%; width: 20px;  height: 20px;  animation-delay: 2s;  animation-duration: 12s; }
.background li:nth-child(3)  { left: 70%; width: 20px;  height: 20px;  animation-delay: 4s;  }
.background li:nth-child(4)  { left: 40%; width: 60px;  height: 60px;  animation-delay: 0s;  animation-duration: 18s; }
.background li:nth-child(5)  { left: 65%; width: 20px;  height: 20px;  animation-delay: 0s;  }
.background li:nth-child(6)  { left: 75%; width: 110px; height: 110px; animation-delay: 3s;  }
.background li:nth-child(7)  { left: 35%; width: 150px; height: 150px; animation-delay: 7s;  }
.background li:nth-child(8)  { left: 50%; width: 25px;  height: 25px;  animation-delay: 15s; animation-duration: 45s; }

/* Keep page content above the background layer */
header {
    position: relative;
    z-index: 1;
}

.logo img {
    width: 75px;
    border-radius: 25%;
    box-shadow: 0px 5px 8px rgb(0 0 0);
    border: 2px solid rgba(63, 0, 0, 1.0);
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 12px 20px;
    background-color: #000000;
    border-bottom: 1px solid #FF0000;
}

/* Horizontal Line */


/* Navigation Links */

.nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.nav-links a {
    display: inline-block;

    margin: 0 15px;
    color: #FFFFFF;
    text-shadow: 0px 5px 5px rgb(0 0 0);
    font-weight: bold;
    font-size: 1.5rem;

    transform: scale(1);
    transition: transform 0.3s ease, color 0.3s ease;

    backface-visibility: hidden;
    will-change: transform;
}

.nav-links i {
    padding: 8px;
    font-size: 25px;
}


.nav-discord-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: #7289DA;
    color: white;
    padding: 10px 13px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.5rem;
    text-shadow: 0px 5px 5px rgba(0, 30, 49, 1.0);

}

/* Only run hover effects on devices with a real pointer, so taps on a
   phone don't leave links stuck in their hovered state */
@media (hover: hover) {
    .nav-links a:hover {
        transform: scale(1.3);
        color: #FF0000;
    }

    .nav-discord-button:hover {
        background-color: #5b6eae;
        transform: scale(1.1);
    }
}

@keyframes animate {
    0%{
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100%{
        transform: translateY(-110vh) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}





.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    gap: clamp(18px, 3vw, 30px);
    padding: clamp(60px, 14vw, 230px) clamp(20px, 8vw, 230px);

    font-family: "Poppins SemiBold", sans-serif;
    color: white;

    background: #000000;

}

/* Remove browser-created spacing */
.main h1,
.main p,
.main h3 {
    margin: 0;
    padding: 0;
}

.main h1 {
    font-family: "Poppins ExtraBold", sans-serif;
    font-size: clamp(36px, 8vw, 70px);
    line-height: 1.15;
}

.main h1 span {
    color: #ff0000;
}

.main p {
    font-size: clamp(17px, 2.8vw, 30px);
    max-width: 1270px;
    line-height: 1.4;
}

.main h3 {
    font-family: "Poppins SemiBold", sans-serif;
    font-size: clamp(18px, 2.4vw, 25px);
    color: gray;
}

.main h3 span {
    color: rgb(142 48 48 / 0.94);
}

/* =========================
   MOBILE NAVIGATION
========================= */

/* Tablets / small laptops: scale the bar down before it starts to crowd */
@media (max-width: 900px) {
    .logo img {
        width: 58px;
    }

    .nav-links a {
        margin: 0 8px;
        font-size: 1.1rem;
    }

    .nav-links i {
        padding: 5px;
        font-size: 21px;
    }
}

/* Phones: stack each icon above its label so all four links still fit */
@media (max-width: 700px) {
    .navbar {
        padding: 10px 12px;
        gap: 8px;
    }

    .logo img {
        width: 44px;
    }

    .nav-links a {
        display: flex;
        flex-direction: column;
        align-items: center;

        margin: 0;
        padding: 4px 6px;
        font-size: 0.7rem;
        text-shadow: none;
    }

    .nav-links i {
        padding: 0 0 4px 0;
        font-size: 20px;
    }

    .nav-discord-button {
        padding: 8px 10px;
        font-size: 1.2rem;
    }

    /* A 1.3x scale overflows the bar at this size */
    .nav-links a:hover {
        transform: scale(1.1);
    }
}

@media (max-width: 380px) {
    .logo img {
        width: 38px;
    }

    .nav-links a {
        padding: 4px 3px;
        font-size: 0.6rem;
    }

    .nav-links i {
        font-size: 17px;
    }
}
