/* Basic page styling */
body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    flex-direction: column;
    overflow: hidden;
}

/* Container for the message and animation */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Message and countdown text */
.message {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
}

.countdown {
    font-size: 2rem;
    color: #ffb74d;
    font-weight: bold;
    margin-bottom: 20px;
}

/* The emojis animation container */
.loading-emojis {
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Each emoji in the animation */
.emoji {
    display: inline-block;
    margin: 0 0.2rem;
    animation: bounce 1.4s infinite ease-in-out;
}

/* Animating each emoji with a delay to create a sequence */
.emoji:nth-child(1) {
    animation-delay: 0s;
}
.emoji:nth-child(2) {
    animation-delay: 0.2s;
}
.emoji:nth-child(3) {
    animation-delay: 0.4s;
}

/* Bounce effect for the emojis */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Redirecting button (optional) */
.button {
    padding: 12px 24px;
    background-color: #ffb74d;
    color: #121212;
    text-decoration: none;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    display: inline-block;
}

.button:hover {
    background-color: #ff9800;
}

/* If JavaScript is disabled, display this message */
noscript .noscript-message {
    display: block;
}

/* Fallback for users with JavaScript disabled */
.noscript-message {
    text-align: center;
    background-color: #121212;
    color: #e0e0e0;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    max-height: 90%;
    box-sizing: border-box;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 20px;
    margin-right: 20px;
}

/* Styling for the noscript message */
.noscript-message h3 {
    font-size: 1.5rem;
    color: #d32f2f;
    margin-bottom: 10px;
}

.noscript-message p {
    font-size: 1.1rem;
    color: #b0bec5;
    line-height: 1.5;
}

.warning {
    color: #d32f2f;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 5px;
    background-color: #ffebee;
    border: 1px solid #d32f2f;
    text-transform: uppercase;
    font-size: 1.1rem;
}

/* Make it responsive */
@media (max-width: 600px) {
    .countdown {
        font-size: 1.5rem;
    }

    .loading-emojis {
        font-size: 2rem;
    }

    .message {
        font-size: 1rem;
    }
}