/* Base Styles */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #ffecd2, #fcb69f);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  color: #333;
  background-image: url('https://picsum.photos/1600/900?random=1');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-blend-mode: overlay;
}

h1 {
  margin-top: 20px;
  font-size: 2.5em;
  color: #0f51b9;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  text-align: center;
}

/* Wheel Styles */
#wheel {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  border: 8px solid #4A148C;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  margin: 30px auto;
  background: conic-gradient(
    #f06292 0% 25%,
    #ba68c8 25% 50%,
    #4dd0e1 50% 75%,
    #aed581 75% 100%
  );
  transition: transform 5s cubic-bezier(0.33, 1, 0.68, 1);
  position: relative;
}

#wheel::after {
  content: '';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  border: 15px solid transparent;
  border-bottom: 30px solid #4A148C;
}

/* Spin Button */
#spinBtn {
  padding: 15px 30px;
  font-size: 1.2em;
  background-color: #4A148C;
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#spinBtn:hover {
  background-color: #6A1B9A;
  transform: scale(1.05);
}

/* Winner Text */
#winner {
  font-size: 1.5em;
  font-weight: bold;
  color: #0f51b9;
  margin-top: 20px;
  text-align: center;
}

/* Input & Button */
#namesInput,
#addNameBtn {
  margin-top: 20px;
  font-size: 1em;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* Name Tags */
#namesList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}

.name-tag {
  background: #f8bbd0;
  padding: 6px 12px;
  border-radius: 20px;
  color: #0f51b9;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.name-tag:hover {
  background: #f48fb1;
}

/* Weather Info */
#weather {
  margin-top: 30px;
  font-size: 1.1em;
  color: #0f51b9;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 600px) {
  #wheel {
    width: 250px;
    height: 250px;
  }

  h1 {
    font-size: 1.8em;
  }

  #spinBtn {
    padding: 12px 25px;
  }
}

/* Winner Animation */
.winner-text {
  font-size: 2em;
  text-align: center;
  font-weight: bold;
  color: #fff;
  margin-top: 20px;
  opacity: 0;
  transform: scale(1);
  transition: transform 1s ease, opacity 1s ease;
}

.winner-text.zoom-out {
  opacity: 1;
  transform: scale(3);
  animation: zoomAndFade 2s ease forwards;
}

@keyframes zoomAndFade {
  0% {
    transform: scale(1);
    opacity: 0;
  }
  30% {
    transform: scale(2);
    opacity: 1;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}
