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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #fff;
    text-align: center;
    background: linear-gradient(-45deg, #ff007f, #5900ff, #00d4ff, #ffcc00);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
}

.container {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: fadeIn 1.5s ease-in-out;
    width: 90%; /* Make it responsive for smaller screens */
    max-width: 600px; /* Limit max width to 600px for larger screens */
}

h1 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #ff007f;
}

p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

input, textarea {
    width: 80%;
    margin: 10px 0;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
}

textarea {
    resize: none;
    height: 80px;
}

button {
    background: #ff007f;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #ff00ff;
}

/* Smooth color shift effect */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* Pulsing effect for countdown timer */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 1.2;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.countdown {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffcc00;
    animation: pulse 1.5s infinite ease-in-out;
}

.countdown span {
    color: #ffcc00; /* Bright yellow for emphasis */
}

/* Responsive Styles using Media Queries */

/* For small devices (phones) */
@media screen and (max-width: 600px) {
    .container {
        padding: 20px;
        width: 90%; /* Take more screen width on mobile */
        max-width: none; /* Remove max width on mobile */
    }

    h1 {
        font-size: 1.8em;  /* Smaller font size for headings */
    }

    p {
        font-size: 1em;  /* Adjust text size */
    }

    input, textarea {
        width: 90%;  /* Make inputs and textarea fill more of the screen */
    }

    button {
        font-size: 1em;  /* Smaller button size */
        padding: 10px 15px;
    }

    .countdown {
        font-size: 2em; /* Smaller countdown timer font size */
    }
}

/* For very small devices (older phones) */
@media screen and (max-width: 400px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.5em;  /* Even smaller font size for very small screens */
    }

    input, textarea {
        width: 100%; /* Inputs fill full width */
    }

    .countdown {
        font-size: 1.8em; /* Smaller font for countdown */
    }
}
