/* Add entrance animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #b3280c, #e0ecec);
  color: white;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  position: relative;
  text-align: center;
  animation: fadeIn 1.5s ease-out forwards;
}

.bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.bubble {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: rise 6s infinite ease-in-out, float 3s infinite ease-in-out;
  opacity: 0.8;
}

.bubble:nth-child(1) { left: 5%; animation-duration: 4s; background: #e3f2fd; }
.bubble:nth-child(2) { left: 15%; animation-duration: 6s; background: #bbdefb; }
.bubble:nth-child(3) { left: 25%; animation-duration: 7s; background: #90caf9; }
.bubble:nth-child(4) { left: 35%; animation-duration: 5s; background: #6aa0cb; }
.bubble:nth-child(5) { left: 45%; animation-duration: 8s; background: #42a5f5; }
.bubble:nth-child(6) { left: 55%; animation-duration: 6s; background: #2196f3; }
.bubble:nth-child(7) { left: 65%; animation-duration: 7s; background: #1e88e5; }
.bubble:nth-child(8) { left: 75%; animation-duration: 5s; background: #1976d2; }
.bubble:nth-child(9) { left: 85%; animation-duration: 8s; background: #1565c0; }
.bubble:nth-child(10) { left: 95%; animation-duration: 6s; background: #0d47a1; }

@keyframes rise {
  0% { transform: translateY(100vh); opacity: 0.8; }
  50% { opacity: 1; }
  100% { transform: translateY(-100vh); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

.content {
  position: relative;
  z-index: 1;
  animation: scaleIn 1.5s ease-out forwards;
}

.animated-button {
  font-size: 20px;
  padding: 15px 30px;
  background: #ffffff;
  color: #4a90e2;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.animated-button:hover {
  background: #e3f2fd;
  color: #1976d2;
  transform: scale(1.05);
}

.hidden {
  display: none;
}

.loading {
  position: relative;
  z-index: 1;
}

.spinner {
  border: 8px solid rgba(255, 255, 255, 0.2);
  border-top: 8px solid #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#congratulations {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: fadeIn 1.5s ease-out forwards;
}

.celebration {
  width: 100%;
  height: 200px;
  background: url('https://media3.giphy.com/media/v1.Y2lkPTc5MGI3NjExeTVocnZuMmdiZndzMmxxNGo0cGg5N2Ywd3FjNXV2MHhrcHF6aG1neCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/ky8QnJeK2PI2HATkTq/giphy.gif') center/cover no-repeat;
  margin-top: 20px;
}
