* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
} */

      .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
/*   padding: 2rem 0; */
   background:linear-gradient(135deg, #87CEEB, #4682B4);
  color: #ffffff;
  border-radius: 16px;
	padding:40px 0;
  box-shadow: 0 2px 10px rgba(233, 30, 99, 0.1);
}

header h1 {
  font-size: 45px !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem;
	    color: white !important;
/*     font-family: inherit; */
	}


.wheel-container {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto 2rem;
}
@media (max-width: 767px) {
  #wheel{
    width: 80%;
    padding: 10px;
  }
 }

#wheel {
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

#pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: #ff4d4d;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  z-index: 100;
}
@media (max-width: 767px) {
  #pointer {
    position: absolute;
    top: -10px;
    left: 40%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #ff4d4d;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 100;
  }
	.number-controls {
  padding: 2rem;
  min-width: 99% !important;
   background:linear-gradient(135deg, #87CEEB, #4682B4) !important;
  border-radius: 1rem;
  color:black;
}
	.container{
		padding:5px !important;
	}
	h1{
		font-size:35px;
	}
	.e-con{
		padding:7px !important;
	}
 }

.controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.spin-button,
.reset-button {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.row {
    display: -ms-flexbox;
    display: flex
;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
/*     margin-right: -15px;
    margin-left: -15px; */
}

.spin-button {
   background:linear-gradient(135deg, #87CEEB, #4682B4) !important;
  color: white !important;
}

.reset-button {
  background: #64748b !important;
  color: white;
}

.spin-button:hover,
.reset-button:hover {
  transform: translateY(-2px);
}


.spin-button:active,
.reset-button:active {
  transform: translateY(0);
}

.result {
    text-align: center;
    background: #ededed;
    padding: 2rem;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px rgb(71 55 55 / 30%)!important ;
}

.number-controls {
  padding: 2rem;
  min-width: 420px;
   background:linear-gradient(135deg, #87CEEB, #4682B4) !important;
  border-radius: 1rem;
  color:black;
}

.number-controls h2 {
  margin-bottom: 1.5rem;
  color: whitesmoke;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  color:whitesmoke;
}

.range-inputs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.range-inputs span {
  color: var(--light-color);
}

input {
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--light-color);
  font-size: 1rem;
}

input[type='number'] {
  width: 80px;
}

input[type='text'] {
  width: 100%;
}

#selectedLetter {
  font-size: 4rem;
  font-weight: bold;
  color: #2563eb;
  margin-top: 1rem;
  min-height: 5rem;
}

.celebration-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.celebration-popup.show {
  display: block;
  opacity: 1;
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

/* Celebration Popup Styles */
.celebration-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: hidden;
}

.celebration-popup.active {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

.popup-content {
  background: transparent;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.generated-letter {
  font-size: 8rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Confetti */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #f00;
  transform-origin: center;
  animation: confettiFall linear forwards;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  80% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes confettiFall {
  0% {
    transform: translateY(-10px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }

  .button-group {
    flex-direction: column;
  }

  .checkbox-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  .generated-letter {
    font-size: 5rem;
  }
}
