/* Font Face for Freedom Font */
@font-face {
    font-family: 'Freedom';
    src: url('Freedom.otf') format('opentype'),
         url('Freedom.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #121212;
    color: #ffffff;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative; /* For rain and lightning */
}

/* Rain effect */
.rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind content */
    pointer-events: none; /* Prevents interaction */
}

.rain {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.rain::before,
.rain::after,
.rain > div {
    content: '';
    position: absolute;
    background: #39ff14; /* Neon green raindrops */
    width: 3px; /* Thicker for prominence */
    height: 15px; /* Longer for visibility */
    opacity: 0.7; /* More opaque */
    animation: fall 1.2s linear infinite; /* Faster fall */
}

/* Spread raindrops across entire page */
.rain::before { left: 2%; animation-delay: 0s; animation-duration: 1.1s; }
.rain::after { left: 7%; animation-delay: 0.1s; animation-duration: 1.3s; }
.rain > div:nth-child(1) { left: 12%; animation-delay: 0.2s; animation-duration: 1.2s; }
.rain > div:nth-child(2) { left: 17%; animation-delay: 0.3s; animation-duration: 1.4s; }
.rain > div:nth-child(3) { left: 22%; animation-delay: 0.4s; animation-duration: 1.1s; }
.rain > div:nth-child(4) { left: 27%; animation-delay: 0.5s; animation-duration: 1.3s; }
.rain > div:nth-child(5) { left: 32%; animation-delay: 0.6s; animation-duration: 1.2s; }
.rain > div:nth-child(6) { left: 37%; animation-delay: 0.7s; animation-duration: 1.4s; }
.rain > div:nth-child(7) { left: 42%; animation-delay: 0.8s; animation-duration: 1.1s; }
.rain > div:nth-child(8) { left: 47%; animation-delay: 0.9s; animation-duration: 1.3s; }
.rain > div:nth-child(9) { left: 52%; animation-delay: 1.0s; animation-duration: 1.2s; }
.rain > div:nth-child(10) { left: 57%; animation-delay: 1.1s; animation-duration: 1.4s; }
.rain > div:nth-child(11) { left: 62%; animation-delay: 1.2s; animation-duration: 1.1s; }
.rain > div:nth-child(12) { left: 67%; animation-delay: 1.3s; animation-duration: 1.3s; }
.rain > div:nth-child(13) { left: 72%; animation-delay: 1.4s; animation-duration: 1.2s; }
.rain > div:nth-child(14) { left: 77%; animation-delay: 1.5s; animation-duration: 1.4s; }
.rain > div:nth-child(15) { left: 82%; animation-delay: 1.6s; animation-duration: 1.1s; }
.rain > div:nth-child(16) { left: 87%; animation-delay: 1.7s; animation-duration: 1.3s; }
.rain > div:nth-child(17) { left: 92%; animation-delay: 1.8s; animation-duration: 1.2s; }
.rain > div:nth-child(18) { left: 97%; animation-delay: 1.9s; animation-duration: 1.4s; }

@keyframes fall {
    0% {
        transform: translateY(-100vh);
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0.2; /* Fade out */
    }
}

/* Lightning effect */
.lightning {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #ffffff;
    opacity: 0;
    animation: flash 10s infinite;
}

@keyframes flash {
    0%, 20%, 40%, 60%, 80%, 100% {
        opacity: 0;
    }
    10%, 11%, 12% { /* Cluster of quick flashes */
        opacity: 0.15;
    }
    30% { /* Single flash */
        opacity: 0.15;
    }
    50%, 51% { /* Double flash */
        opacity: 0.15;
    }
}

/* Container */
.container {
    text-align: center;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    z-index: 1; /* Above rain and lightning */
}

/* Logo (index.html) */
.logo {
    font-family: 'Freedom', sans-serif; /* Replace with Freedom font */
    font-size: 4rem;
    margin-bottom: 20px;
    text-transform: lowercase;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 3px #39ff14); /* Reduced base glow */
    animation: glow 10s infinite; /* Sync with lightning */
}

.etter {
    color: #39ff14; /* Neon green */
}

.fyde {
    color: #ffffff; /* White */
}

/* 404 Error Page */
.error-code {
    font-family: 'Freedom', sans-serif; /* Same Freedom font */
    font-size: 6rem; /* Larger than before */
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 3px #39ff14); /* Same base glow */
    animation: glow 10s infinite; /* Sync with lightning */
}

.error-404 {
    color: #39ff14; /* Neon green for 404 */
}

.error-message {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.error-cta a {
    font-size: 1.2rem;
    color: #39ff14; /* Neon green */
    text-decoration: none;
    border: 2px solid #39ff14;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.error-cta a:hover {
    background-color: #2ecc10; /* Slightly darker neon green */
    color: #121212;
}

@keyframes glow {
    0%, 20%, 40%, 60%, 80%, 100% {
        filter: drop-shadow(0 0 3px #39ff14);
    }
    10%, 11%, 12%, 30%, 50%, 51% {
        filter: drop-shadow(0 0 8px #39ff14); /* Subtler glow during flashes */
    }
}

/* Tagline (index.html) */
.tagline {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-bottom: 30px;
}

/* Call to Action (index.html) */
.cta p {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 20px;
}

form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

input[type="email"] {
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #39ff14; /* Neon green */
    border-radius: 5px;
    background-color: #1e1e1e;
    color: #ffffff;
    width: 250px;
    outline: none;
    transition: border-color 0.3s;
}

input[type="email"]:focus {
    border-color: #2ecc10; /* Slightly darker neon green */
}

button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #39ff14; /* Neon green */
    color: #121212;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2ecc10; /* Slightly darker neon green */
}

/* Responsive design */
@media (max-width: 600px) {
    .logo, .error-code {
        font-size: 4rem; /* Adjusted for logo and 404 */
    }

    .tagline, .error-message {
        font-size: 1.2rem;
    }

    input[type="email"] {
        width: 100%;
    }

    .rain::before,
    .rain::after,
    .rain > div {
        width: 2px; /* Slightly thinner for mobile */
        height: 12px;
    }
}