/* style.css */

body {
    font-family: "Josefin Sans", sans-serif;
    background-color: #f0f0f0; /* Light gray background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    font-family: "Jersey 10", sans-serif;
    color: #3cb371; /* Mint green */
    font-size: 46px;
    margin-bottom: 20px;
    animation: 20s wobble_wide ; /* Add wobble animation */
    animation-iteration-count: infinite;
}

h1 span:hover {
    color: #FF69B4;
}

p {
    color: #696969;
    font-size: 18px;
    margin-bottom: 30px;
}

.countdown {
    margin-bottom: 44px;
    font-family:'Palatino', 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.timer-label {
    font-size: 20px;
    margin-bottom: 10px;
}

.timer {
    font-size: 28px;
    font-weight: bold;
}

.timer span {
    margin: 0 5px;
    transition: ease-in-out 0.3s ease; /* For smooth hover effects */
    color: #b65686; /* Change color on hover (e.g., hot pink) */
}

.timer:hover span {
    transform: translateY(-5px); /* Move up on hover */
    color: #ff69b4; /* Change color on hover (e.g., hot pink) */
}

form input[type="email"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
    width: 250px;
}

form button[type="button"] {
    padding: 10px 20px;
    background-color: #3cb371; /* Mint green */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition:ease-in-out 0.3s; /* For smooth hover effects */
    animation-iteration-count: infinite;
    animation: wobble_small 10s; /* Add wobble animation */

}

.emailform:focus-within form button[type="button"] {
    background-color: #fffb93; /* Yellow color */
}
form button[type="button"]:hover {
    background-color: rgb(255, 94, 94); /* Turn red on click */
    animation: wobble 3s; /* Add wobble animation */
    transform: scale(1.3);

    animation-iteration-count: infinite;
}
/* Add this style for the click effect */
form button[type="button"]:active {
    background-color: red; /* Turn red on click */
    animation: explode 0.3s forwards; /* Add explode animation */
    animation-iteration-count: infinite;
}

/* Define the explode animation */
@keyframes explode {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(4.2);
    opacity: 0.8;
  }
  100% {
    transform: scale(9);
    opacity: .1;
  }
}
/* Define the wobble animation */
@keyframes wobble_small {
    0% { transform: translateX(0); }
    15% { transform: translateX(-5px); }
    30% { transform: translateX(5px); }
    45% { transform: translateX(-5px); }
    60% { transform: translateX(5px); }
    55% { transform: translateX(-5px); }
    90% { transform: translateX(5px); }
    100% { transform: translateX(0); }
  }

/* Define the wobble animation */
@keyframes wobble {
  0% { transform: translateX(0); }
  15% { transform: translateX(-10px); }
  30% { transform: translateX(10px); }
  45% { transform: translateX(-10px); }
  60% { transform: translateX(10px); }
  55% { transform: translateX(-10px); }
  90% { transform: translateX(10px); }
  100% { transform: translateX(0); }
}

/* Define the wobble animation */
@keyframes wobble_wide {
    0% { transform: translateX(0); }
    15% { transform: translateX(-50px); }
    30% { transform: translateX(50px); }
    45% { transform: translateX(-50px); }
    60% { transform: translateX(150px); }
    55% { transform: translateX(-50px); }
    90% { transform: translateX(50px); }
    100% { transform: translateX(0); }
  }
