/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Light Mode (Default) */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background Layer for Smooth Transition */
#background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #007bff, #6610f2);
    transition: opacity 0.7s ease-in-out; /* Smooth background transition */
    z-index: -1;
}

/* Dark Mode Background */
body.dark-mode {
    background: #272626; /* Solid background to prevent white flash */
}

body.dark-mode #background {
    opacity: 0; /* Fades out the light mode background */
}

/* Main Container */
.coming-soon-container {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-in-out;
    position: relative;
    z-index: 1;
}

/* Heading */
h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

/* Countdown Timer */
#countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.time {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

/* Subscription Form */
#subscribe-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

input {
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 60%;
}

button {
    padding: 10px 15px;
    border: none;
    background: #ffc107;
    color: black;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
}

button:hover {
    background: #ff8c00;
}

/* Dark Mode Button */
#darkModeToggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    color: black;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

#darkModeToggle:hover {
    background: #ddd;
}

/* Dark Mode Elements */
body.dark-mode .coming-soon-container {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ddd;
}

body.dark-mode #darkModeToggle {
    background: black;
    color: white;
}

/* Footer */
.footer {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.7;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    #countdown {
        flex-wrap: wrap;
    }
}