:root {
    --text-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000;
    position: relative;
    overflow: hidden;
    color: #fff;
    font-family: 'Crimson Text', serif;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 20%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.5) 80%,
        rgba(0, 0, 0, 0.7) 100%
    );
    pointer-events: none;
    z-index: 1;
}

body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 110%;
    min-height: 110%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    background: url('background.png') no-repeat center center;
    background-size: cover;
    animation: subtleZoom 40s ease-in-out infinite;
    z-index: -1;
}

.sparkles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.sparkle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: radial-gradient(circle, 
        rgba(255, 255, 220, 1) 0%,
        rgba(255, 200, 50, 0.95) 15%,
        rgba(255, 100, 0, 0.8) 35%,
        rgba(200, 30, 0, 0.4) 70%,
        rgba(150, 20, 0, 0) 100%
    );
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    filter: blur(1.5px);
    mix-blend-mode: screen;
    transform-origin: center;
    box-shadow: 
        0 0 8px rgba(255, 200, 50, 0.8),
        0 0 12px rgba(255, 100, 0, 0.6);
}

.sparkle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, 
        rgba(255, 255, 200, 0.9) 0%,
        rgba(255, 200, 50, 0.8) 20%,
        rgba(255, 100, 0, 0.5) 40%,
        rgba(200, 40, 0, 0.3) 60%,
        rgba(150, 20, 0, 0) 100%
    );
    border-radius: 50%;
    animation: fireflyGlow 3s ease-in-out infinite;
}

/* Left side sparkles */
.sparkle.left:nth-child(12n + 1) { animation: fireflyFloat 8s ease-in-out infinite; left: 10%; top: 20%; animation-delay: 0.2s; }
.sparkle.left:nth-child(12n + 2) { animation: fireflyFloat 7.5s ease-in-out infinite; left: 5%; top: 45%; animation-delay: 2.1s; }
.sparkle.left:nth-child(12n + 3) { animation: fireflyFloat 8.2s ease-in-out infinite; left: 15%; top: 15%; animation-delay: 1.3s; }
.sparkle.left:nth-child(12n + 4) { animation: fireflyFloat 7.8s ease-in-out infinite; left: 8%; top: 70%; animation-delay: 3.2s; }
.sparkle.left:nth-child(12n + 5) { animation: fireflyFloat 8.4s ease-in-out infinite; left: 12%; top: 35%; animation-delay: 0.8s; }
.sparkle.left:nth-child(12n + 6) { animation: fireflyFloat 7.6s ease-in-out infinite; left: 18%; top: 55%; animation-delay: 2.5s; }
.sparkle.left:nth-child(12n + 7) { animation: fireflyFloat 8.1s ease-in-out infinite; left: 22%; top: 25%; animation-delay: 1.7s; }
.sparkle.left:nth-child(12n + 8) { animation: fireflyFloat 7.9s ease-in-out infinite; left: 25%; top: 65%; animation-delay: 3.4s; }
.sparkle.left:nth-child(12n + 9) { animation: fireflyFloat 8.3s ease-in-out infinite; left: 20%; top: 40%; animation-delay: 0.5s; }
.sparkle.left:nth-child(12n + 10) { animation: fireflyFloat 7.7s ease-in-out infinite; left: 16%; top: 80%; animation-delay: 2.8s; }
.sparkle.left:nth-child(12n + 11) { animation: fireflyFloat 8.5s ease-in-out infinite; left: 13%; top: 30%; animation-delay: 1.9s; }
.sparkle.left:nth-child(12n + 12) { animation: fireflyFloat 7.8s ease-in-out infinite; left: 7%; top: 60%; animation-delay: 3.6s; }

/* Center sparkles */
.sparkle.center:nth-child(12n + 1) { animation: fireflyFloat 8.2s ease-in-out infinite; left: 40%; top: 15%; animation-delay: 0.3s; }
.sparkle.center:nth-child(12n + 2) { animation: fireflyFloat 7.6s ease-in-out infinite; left: 45%; top: 50%; animation-delay: 2.2s; }
.sparkle.center:nth-child(12n + 3) { animation: fireflyFloat 8.4s ease-in-out infinite; left: 50%; top: 25%; animation-delay: 1.4s; }
.sparkle.center:nth-child(12n + 4) { animation: fireflyFloat 7.8s ease-in-out infinite; left: 43%; top: 75%; animation-delay: 3.3s; }
.sparkle.center:nth-child(12n + 5) { animation: fireflyFloat 8.1s ease-in-out infinite; left: 48%; top: 20%; animation-delay: 0.9s; }
.sparkle.center:nth-child(12n + 6) { animation: fireflyFloat 7.9s ease-in-out infinite; left: 52%; top: 60%; animation-delay: 2.6s; }
.sparkle.center:nth-child(12n + 7) { animation: fireflyFloat 8.3s ease-in-out infinite; left: 47%; top: 35%; animation-delay: 1.8s; }
.sparkle.center:nth-child(12n + 8) { animation: fireflyFloat 7.7s ease-in-out infinite; left: 53%; top: 85%; animation-delay: 3.5s; }
.sparkle.center:nth-child(12n + 9) { animation: fireflyFloat 8.5s ease-in-out infinite; left: 55%; top: 30%; animation-delay: 0.6s; }
.sparkle.center:nth-child(12n + 10) { animation: fireflyFloat 7.8s ease-in-out infinite; left: 42%; top: 70%; animation-delay: 2.9s; }
.sparkle.center:nth-child(12n + 11) { animation: fireflyFloat 8.2s ease-in-out infinite; left: 46%; top: 40%; animation-delay: 2.0s; }
.sparkle.center:nth-child(12n + 12) { animation: fireflyFloat 7.6s ease-in-out infinite; left: 51%; top: 55%; animation-delay: 3.7s; }

/* Right side sparkles */
.sparkle.right:nth-child(12n + 1) { animation: fireflyFloat 8.3s ease-in-out infinite; left: 75%; top: 25%; animation-delay: 0.4s; }
.sparkle.right:nth-child(12n + 2) { animation: fireflyFloat 7.7s ease-in-out infinite; left: 80%; top: 55%; animation-delay: 2.3s; }
.sparkle.right:nth-child(12n + 3) { animation: fireflyFloat 8.1s ease-in-out infinite; left: 85%; top: 30%; animation-delay: 1.5s; }
.sparkle.right:nth-child(12n + 4) { animation: fireflyFloat 7.9s ease-in-out infinite; left: 78%; top: 70%; animation-delay: 3.4s; }
.sparkle.right:nth-child(12n + 5) { animation: fireflyFloat 8.4s ease-in-out infinite; left: 82%; top: 20%; animation-delay: 1.0s; }
.sparkle.right:nth-child(12n + 6) { animation: fireflyFloat 7.8s ease-in-out infinite; left: 88%; top: 65%; animation-delay: 2.7s; }
.sparkle.right:nth-child(12n + 7) { animation: fireflyFloat 8.2s ease-in-out infinite; left: 92%; top: 35%; animation-delay: 1.9s; }
.sparkle.right:nth-child(12n + 8) { animation: fireflyFloat 7.6s ease-in-out infinite; left: 95%; top: 50%; animation-delay: 3.6s; }
.sparkle.right:nth-child(12n + 9) { animation: fireflyFloat 8.5s ease-in-out infinite; left: 90%; top: 15%; animation-delay: 0.7s; }
.sparkle.right:nth-child(12n + 10) { animation: fireflyFloat 7.8s ease-in-out infinite; left: 86%; top: 75%; animation-delay: 3.0s; }
.sparkle.right:nth-child(12n + 11) { animation: fireflyFloat 8.1s ease-in-out infinite; left: 83%; top: 40%; animation-delay: 2.1s; }
.sparkle.right:nth-child(12n + 12) { animation: fireflyFloat 7.9s ease-in-out infinite; left: 77%; top: 60%; animation-delay: 3.8s; }

.sparkle.background { 
    width: 3px;
    height: 3px;
    filter: blur(1px);
    opacity: 0.5;
    background: radial-gradient(circle, 
        rgba(255, 255, 200, 0.9) 0%,
        rgba(255, 180, 50, 0.8) 20%,
        rgba(255, 80, 0, 0.6) 40%,
        rgba(200, 30, 0, 0.3) 70%,
        rgba(150, 20, 0, 0) 100%
    );
    box-shadow: 
        0 0 6px rgba(255, 180, 50, 0.6),
        0 0 10px rgba(255, 80, 0, 0.4);
}

.sparkle.background:nth-child(12n + 1) { animation: fireflyFloatBg 9s ease-in-out infinite; left: 30%; top: 10%; animation-delay: 0.1s; }
.sparkle.background:nth-child(12n + 2) { animation: fireflyFloatBg 8.5s ease-in-out infinite; left: 35%; top: 45%; animation-delay: 2.4s; }
.sparkle.background:nth-child(12n + 3) { animation: fireflyFloatBg 9.2s ease-in-out infinite; left: 60%; top: 20%; animation-delay: 1.6s; }
.sparkle.background:nth-child(12n + 4) { animation: fireflyFloatBg 8.8s ease-in-out infinite; left: 65%; top: 65%; animation-delay: 3.5s; }
.sparkle.background:nth-child(12n + 5) { animation: fireflyFloatBg 9.4s ease-in-out infinite; left: 70%; top: 30%; animation-delay: 1.1s; }
.sparkle.background:nth-child(12n + 6) { animation: fireflyFloatBg 8.6s ease-in-out infinite; left: 38%; top: 80%; animation-delay: 2.8s; }
.sparkle.background:nth-child(12n + 7) { animation: fireflyFloatBg 9.1s ease-in-out infinite; left: 42%; top: 25%; animation-delay: 2.0s; }
.sparkle.background:nth-child(12n + 8) { animation: fireflyFloatBg 8.9s ease-in-out infinite; left: 58%; top: 70%; animation-delay: 3.7s; }
.sparkle.background:nth-child(12n + 9) { animation: fireflyFloatBg 9.3s ease-in-out infinite; left: 62%; top: 15%; animation-delay: 0.8s; }
.sparkle.background:nth-child(12n + 10) { animation: fireflyFloatBg 8.7s ease-in-out infinite; left: 68%; top: 55%; animation-delay: 3.1s; }
.sparkle.background:nth-child(12n + 11) { animation: fireflyFloatBg 9.5s ease-in-out infinite; left: 33%; top: 35%; animation-delay: 2.2s; }
.sparkle.background:nth-child(12n + 12) { animation: fireflyFloatBg 8.8s ease-in-out infinite; left: 72%; top: 75%; animation-delay: 3.9s; }

.background-container {
    position: fixed;
    inset: 0;
    z-index: 1;
}

.radial-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
    pointer-events: none;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: none;
    padding: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 300px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.2));
    animation: logoGlow 6s ease-in-out infinite;
}

@media screen and (max-width: 768px) {
    .site-header {
        display: flex;
        justify-content: center;
    }
    
    .logo-container {
        justify-content: center;
    }
}

.container {
    position: fixed;
    inset: 0;
    z-index: 2;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.typewriter {
    color: #eeeeee;
    font-size: 2.5rem;
    font-family: 'Cinzel', serif;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
    padding: 0 20px;
    max-width: 100%;
    box-sizing: border-box;
}

@media screen and (min-width: 2048px) {
    .content {
        transform: translate(-50%, -350%);
    }

    .typewriter {
        font-size: 4rem;
    }
}

@media screen and (max-width: 768px) {
    .typewriter {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .typewriter {
        font-size: 1.6rem;
        white-space: normal;
        line-height: 1.4;
    }
}

.typewriter::after {
    content: '|';
    position: relative;
    display: inline;
    color: #ffffff;
    opacity: 1;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media screen and (max-width: 768px) {
    .typewriter {
        font-size: 1.5rem;
        width: 95%;
        padding: 0 10px;
    }
}

@media screen and (max-width: 480px) {
    .typewriter {
        font-size: 1.2rem;
        width: 100%;
        padding: 0 5px;
    }
}

/* 1080p screens */
@media screen and (min-height: 1080px) {
    .logo {
        width: min(700px, 80vw);
    }
    
    .content {
        margin-top: 8vh;
    }
    
    .typewriter {
        font-size: clamp(2rem, 3.5vw, 3.5rem);
    }
}

/* 2K screens */
@media screen and (min-height: 1440px) {
    .logo {
        width: min(800px, 80vw);
    }
    
    .content {
        margin-top: 10vh;
    }
    
    .typewriter {
        font-size: clamp(2.5rem, 4vw, 4rem);
    }
}

/* Responsive styles */
@media screen and (max-height: 800px) {
    .logo {
        width: min(500px, 80vw);
    }
    
    .content {
        margin-top: 5vh;
    }
}

@media screen and (min-height: 1200px) {
    .logo {
        width: min(600px, 80vw);
    }
    
    .content {
        margin-top: 15vh;
    }
}

/* Ultra-wide screen adjustments */
@media screen and (min-aspect-ratio: 21/9) {
    .typewriter {
        font-size: clamp(1.5rem, 3vw, 4.5rem);
    }
}

/* Portrait mode adjustments */
@media screen and (max-aspect-ratio: 3/4) {
    .logo {
        width: min(400px, 80vw);
    }
    
    .content {
        margin-top: 5vh;
    }
    
    .typewriter {
        font-size: clamp(1.2rem, 5vw, 3rem);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing Animation */
.typing-text {
    position: relative;
    color: #ffffff;
    margin: 0;
    line-height: 1.5;
    font-size: 2.5rem;
    height: 4rem;
    display: block;
    width: 100%;
    text-align: center;
}

.typing-text .text-line {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    animation: cycleText 16s linear infinite;
}

.text-line:nth-child(1) {
    animation-delay: 0s;
}

.text-line:nth-child(2) {
    animation-delay: 4s;
}

.text-line:nth-child(3) {
    animation-delay: 8s;
}

.text-line:nth-child(4) {
    animation-delay: 12s;
}

@keyframes cycleText {
    0%, 3% {
        opacity: 0;
        visibility: visible;
        transform: translateY(20px);
    }
    5%, 20% {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    22%, 100% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
    }
}

.copyright {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #666;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    text-align: center;
    z-index: 2;
}

@media screen and (max-width: 768px) {
    .copyright {
        bottom: 20px;
        right: 20px;
        font-size: 0.9rem;
        line-height: 36px;
        height: 36px;
    }
}

@media screen and (max-width: 480px) {
    .copyright {
        bottom: 15px;
        right: 15px;
        font-size: 0.8rem;
        line-height: 32px;
        height: 32px;
    }
}

h1 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-color);
    animation: textPulse 4s ease-in-out infinite;
}

@keyframes textPulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.join-button {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #c41e3a;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    z-index: 100;
    white-space: nowrap;
}

.join-button:hover {
    background-color: #a01830;
}

@media screen and (max-width: 768px) {
    .join-button {
        top: 15px;
        left: 15px;
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {    
    .join-button {
        top: 10px;
        left: 10px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

.development-notice {
    position: fixed;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    color: #eeeeee;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    text-align: center;
    z-index: 2;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

@media screen and (min-width: 2048px) {
    .container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }

    .typewriter {
        font-size: 3rem;
    }
}

.development-notice {
    position: fixed;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    color: #eeeeee;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    text-align: center;
    z-index: 2;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

@media screen and (min-width: 2048px) {
    .content {
        transform: translate(-50%, -300%);
    }

    .typewriter {
        font-size: 4rem;
    }

    .development-notice {
        font-size: 1.6rem;
        bottom: 60px;
    }
}

@media screen and (max-width: 768px) {
    .typewriter {
        font-size: 2rem;
    }

    .development-notice {
        font-size: 1rem;
        bottom: 30px;
    }
}

@media screen and (max-width: 480px) {    
    .typewriter {
        font-size: 1.6rem;
        white-space: normal;
        line-height: 1.4;
    }

    .development-notice {
        font-size: 0.9rem;
        bottom: 20px;
    }
}

@keyframes fireflyFloat {
    0% {
        transform: translate(0, 0) scale(0.3);
        opacity: 0;
    }
    20% {
        transform: translate(30px, -10px) scale(1);
        opacity: 0.9;
    }
    40% {
        transform: translate(-20px, -30px) scale(0.8);
        opacity: 0.7;
    }
    60% {
        transform: translate(25px, -20px) scale(0.9);
        opacity: 0.8;
    }
    80% {
        transform: translate(-15px, -40px) scale(0.7);
        opacity: 0.5;
    }
    100% {
        transform: translate(0, -30px) scale(0.3);
        opacity: 0;
    }
}

@keyframes fireflyFloatBg {
    0% {
        transform: translate(0, 0) scale(0.4);
        opacity: 0;
    }
    25% {
        transform: translate(-25px, -20px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(20px, -35px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translate(-15px, -25px) scale(0.9);
        opacity: 0.3;
    }
    100% {
        transform: translate(0, -40px) scale(0.4);
        opacity: 0;
    }
}

@keyframes fireflyGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
}

@keyframes subtleZoom {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.2));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 30, 0, 0.4))
               drop-shadow(0 0 30px rgba(255, 50, 0, 0.2));
    }
    100% {
        filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.2));
    }
}

/* Footer Styles */
.footer {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    background: none;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
}

.footer-logo {
    margin-right: auto;
}

.footer-text-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-family: 'Cinzel', serif;
}

.footer-text-center p {
    font-size: 21px;
    margin: 0;
}

.footer-text-right {
    color: #ffffff;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    margin-left: auto;
}

.footer-text-right p {
    margin: 0;
}

.footer-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.footer-text {
    color: #ffffff;
    font-family: 'Cinzel', serif;
}

.footer-text p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-discord-logo {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logo:hover .footer-discord-logo {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(194, 20, 20, 0.7));
}

/* Mobile styles for footer */
@media screen and (max-width: 768px) {
    .footer {
        padding: 15px 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer-logo {
        margin: 0;
        order: 1;
    }

    .footer-text-center {
        position: static;
        transform: none;
        order: 2;
    }

    .footer-text-right {
        margin: 0;
        order: 3;
    }
}
