/* ======================= RESET & BASE ======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  color: #ffffff;
  overflow-x: hidden;
  /* min-height: 100vh; */
  transition: background 0.6s ease, color 0.6s ease;
}

/* ======================= HEADER ======================= */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 4rem;
  background: rgba(30, 30, 46, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid rgba(255, 107, 157, 0.3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: #FF6B9D;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.logo h1 {
  margin: 0;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #FF6B9D, #FFA502);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.desktop-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
  position: relative;
  /* padding: 0.5rem 0; */
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #FF6B9D, #FFA502);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  /* display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(30, 30, 46, 0.98);
  min-width: 200px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 0.5rem;
  border: 1px solid rgba(255, 107, 157, 0.2); */
   position: absolute;
  top: 100%;
  left: 0;
  background: rgba(30, 30, 46, 0.98);
  min-width: 200px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 107, 157, 0.2);

  /* Hide by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}

.dropdown-content a {

   display: block;
  padding: 1rem 1.25rem;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s;
}

.dropdown-content a:hover {
  background: rgba(255, 107, 157, 0.2);
  padding-left: 1.5rem;
}

.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown:hover .dropdown-content,
.dropdown-content:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #FF6B9D;
  border-radius: 3px;
  transition: all 0.3s;
}

/* ======================= SIDE DRAWER ======================= */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 998;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.side-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: rgba(30, 30, 46, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  transition: right 0.3s ease;
  z-index: 999;
  padding-top: 2rem;
  border-left: 2px solid rgba(255, 107, 157, 0.3);
}

.side-drawer.open {
  right: 0;
}

.side-drawer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-drawer li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-drawer a {
  display: block;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s;
}

.side-drawer a:hover {
  background: rgba(255, 107, 157, 0.2);
  padding-left: 2rem;
}

.side-drawer .submenu {
  padding-left: 1rem;
  background: rgba(0, 0, 0, 0.2);
}

/* ======================= MAIN CONTENT ======================= */
.main-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4rem;
  flex-wrap: wrap;
  padding: 4rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* ======================= WHEEL SECTION ======================= */
.left-section {
  flex: 0 0 auto;
}

.wheel-wrapper {
  position: relative;
  width: 550px;
  height: 550px;
}

.wheel-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.3) 0%, transparent 70%);
  animation: glow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
}

canvas#wheel {
  border-radius: 50%;
  box-shadow:
    0 0 40px rgba(255, 107, 157, 0.4),
    0 20px 60px rgba(0, 0, 0, 0.6),
    inset 0 0 50px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

/* ======================= SPIN BUTTON ======================= */
.spin-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B9D, #C44569);
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 20px rgba(255, 107, 157, 0.6),
    0 8px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  z-index: 10;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.spin-button:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow:
    0 0 30px rgba(255, 107, 157, 0.8),
    0 10px 40px rgba(0, 0, 0, 0.6);
}

.spin-button:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.95);
}

.spin-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spin-icon {
  width: 24px;
  height: 24px;
}

.spin-button span {
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* ======================= ARROW POINTER ======================= */
.arrow-pointer {
  /* position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 70px;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(255, 107, 157, 0.8));
  pointer-events: none; */
    position: absolute;
    top: 50%;
    right: -44px;
    transform: translateY(-50%) rotate(89deg);
    width: 64px;
}

.arrow-pointer svg {
  width: 100%;
  height: 100%;
  fill: #FF6B9D;
}

/* ======================= RIGHT SECTION ======================= */
.right-section {
  flex: 1;
  min-width: 350px;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ======================= CONTROL CARDS ======================= */
.control-card {
  background: rgba(30, 30, 46, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 107, 157, 0.2);
  transition: all 0.3s;
}

.control-card:hover {
  border-color: rgba(255, 107, 157, 0.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 107, 157, 0.2);
}

.card-icon {
  width: 24px;
  height: 24px;
  color: #FF6B9D;
}

.card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
}

/* ======================= RANGE INPUTS ======================= */
.range-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-wrapper label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.input-wrapper input {
  padding: 0.85rem 1.25rem;
  border: 2px solid rgba(255, 107, 157, 0.3);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  font-size: 0.95rem;
  color: #ffffff;
  transition: all 0.3s;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #FF6B9D;
  box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

.input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* ======================= GENERATE BUTTON ======================= */
.generate-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #1DD1A1, #10AC84);
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(29, 209, 161, 0.3);
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(29, 209, 161, 0.5);
}

.generate-btn:active {
  transform: translateY(0);
}

.generate-btn svg {
  width: 20px;
  height: 20px;
}

/* ======================= FLOATING BUTTONS ======================= */
.fullscreen-toggle,
.sound-btn {
  position: fixed;
  bottom: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B9D, #C44569);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 25px rgba(255, 107, 157, 0.4);
  transition: all 0.3s;
  z-index: 99;
}

.fullscreen-toggle {
  right: 2rem;
}

.sound-btn {
  right: 5.5rem;
}

.fullscreen-toggle:hover,
.sound-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(255, 107, 157, 0.6);
}

.fullscreen-toggle:active,
.sound-btn:active {
  transform: scale(0.95);
}

.fullscreen-toggle svg,
.sound-btn svg {
  width: 24px;
  height: 24px;
  color: white;
}

/* /////////////////toggle full screen /////////////////////////////////////// */

.fullscreen-active .desktop-nav,
.fullscreen-active .main-content .right-section,
.fullscreen-active .control-card,
.fullscreen-active .result-section,
.fullscreen-active .theme-toggle,
.fullscreen-active .desc-wrapper,
.fullscreen-active .number_picker_wheel,
.fullscreen-active footer
{
  display: none;
}

.fullscreen-active .main-content {

    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    flex-wrap: wrap;
    padding: 4rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
     /* background: rgb(246, 246, 246); */
}

/* LIGHT THEME — fullscreen background */
body.light-theme.fullscreen-active .main-content {
  background: rgb(246, 246, 246);
}

/* DARK THEME — fullscreen background */
body.dark-theme.fullscreen-active .main-content {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}
.fullscreen-active .main-content {
  transition: background 0.6s ease;
}


 


/* Fullscreen mode — BIG & CENTERED */
.fullscreen-active canvas#wheel {
  width: min(90vw, 90vh);
  
}

/* Center wheel in fullscreen */
.fullscreen-active body,
.fullscreen-active .main-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.fullscreen-active .left-section{
  align-items: center;
  
}
.fullscreen-active .wheel-wrapper {
    position: relative;
  
    width: 699px;
    height: 702px;
      margin: 0 auto;
  align-items: center;
  
}
@media(max-width:790px) {
 .fullscreen-active .wheel-wrapper {
    position: relative;
  
    width: 499px;
    height: 502px;
      margin: 0 auto;
  align-items: center;
  
} 
.fullscreen-active .main-content {
        /* padding: 9.5rem 0.75rem; */
                padding-bottom: 42%;
                height: 100%;
  }

  .fullscreen-active .wheel-wrapper {
           max-width: 490px;
        height: 490px;
    }
  

  .fullscreen-active .wheel-glow {
    width: 340px;
    height: 340px;
  }

  .fullscreen-active .canvas#wheel {
    width: 320px !important;
    height: 320px !important;
  }

  .fullscreen-active .spin-button {
    width: 70px;
    height: 70px;
    font-size: 0.85rem;
    position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  }

  .fullscreen-active .spin-icon {
    width: 18px;
    height: 18px;
  }

  .fullscreen-active .arrow-pointer {
    width: 64px;
    height: 50px;
    top: 50%;
  }

  
}

@media (max-width:680px) {
   .fullscreen-active .wheel-wrapper {
                max-width: 322px;
        height: 322px;
    }
  
}
@media (max-width:369px) {
   .fullscreen-active .wheel-wrapper {
                max-width: 220px;
        height: 220px;
    }
    .fullscreen-active .spin-button {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
    position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  }
   .fullscreen-active .spin-icon {
    width: 12px;
    height: 12px;
  }
   .fullscreen-active .main-content {
        /* padding: 9.5rem 0.75rem; */
                padding-bottom: 72%;
  }
}
@media (max-width:276px) {
   .fullscreen-active .main-content {
        /* padding: 9.5rem 0.75rem; */
                padding-bottom: 200%;
  }
   .fullscreen-active .wheel-wrapper {
                max-width: 99px;
        height: 99px;
    }
    .fullscreen-active .spin-button {
    width: 22px;
    height: 22px;
    font-size: 0.85rem;
    position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  }
   .fullscreen-active .spin-icon {
    width: 8px;
    height: 8px;
  }
   .fullscreen-active .spin-button span{
    font-size: 2px;

   }
       .fullscreen-active .arrow-pointer {
        width: 20px;
        height: 50px;
        top: 50%;
    }
    .fullscreen-active .sound-btn {
        bottom: 1rem;
        right: 38px;
        width: 21px;
        height: 21px;
    }
      .fullscreen-active .fullscreen-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 19px;
        height: 19px;
    }
}








/* /////////////////////////////////////////////////////////////////////////////////// */

/* ======================= MODAL ======================= */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(30, 30, 46, 0.98);
  backdrop-filter: blur(20px);
  padding: 0;
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
  text-align: center;
  overflow: hidden;
  z-index: 10000;
  width: 90%;
  max-width: 450px;
  animation: modalAppear 0.4s ease-out;
  border: 2px solid rgba(255, 107, 157, 0.3);
}

@keyframes modalAppear {
  from {
    transform: translate(-50%, -60%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

.modal-header {
  background: linear-gradient(135deg, #FF6B9D, #C44569);
  padding: 3rem 2rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.modal-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.winner-badge {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.winner-badge svg {
  width: 60px;
  height: 60px;
  fill: #FFD700;
  filter: drop-shadow(0 4px 10px rgba(255, 215, 0, 0.5));
}

.result-text {
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  margin: 0 0 0.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  word-break: break-word;
}

.winner-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 3px;
  position: relative;
  z-index: 1;
}

.modal-body {
  padding: 2.5rem 2rem 2rem;
}

.result-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

.btn-container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.btn_done,
.btn_remove {
  flex: 1;
  font-size: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn_done svg,
.btn_remove svg {
  width: 20px;
  height: 20px;
}

.btn_done {
  background: linear-gradient(135deg, #1DD1A1, #10AC84);
  color: white;
  box-shadow: 0 4px 15px rgba(29, 209, 161, 0.3);
}

.btn_done:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(29, 209, 161, 0.5);
}

.btn_remove {
  background: rgba(255, 71, 87, 0.2);
  color: #FF4757;
  border: 2px solid rgba(255, 71, 87, 0.4);
}

.btn_remove:hover {
  background: rgba(255, 71, 87, 0.3);
  border-color: #FF4757;
  transform: translateY(-2px);
}

/* ======================= CONFETTI ======================= */
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ////////////////////// picker wheel heading ////////////////////////// */

body.light-theme .number_picker_wheel{
      padding: 1rem 4rem;
    background-color: rgb(255 193 192);
    
}
body.light-theme .number_picker_wheel h2{
  font-size: 22px;
}
body.light-theme .number_picker_wheel p{
  font-size: 11px;
}
/* body.light-theme .fullscreen-active{
  background-color: white;
} */

/* ///////////////////dark them/////////////////// */
 .number_picker_wheel{
      padding: 1rem 4rem;
        background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
       border-bottom: 2px solid rgba(255, 107, 157, 0.3);
    
}
 .number_picker_wheel h2{
  font-size: 22px;
}
 .number_picker_wheel p{
  font-size: 11px;
}




/* /////////////////////////////////////////////////// */

/* ======================= RESPONSIVE ======================= */
/* @media (max-width: 1024px) {
  .header {
    padding: 1rem 2rem;
  }

  .main-content {
    gap: 3rem;
    padding: 3rem 1.5rem;
  }
} */
/* /////////768 */

/* @media (max-width: 940px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header {
    padding: 1rem 1.5rem;
  }

  .logo h1 {
    font-size: 1.25rem;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }

  .main-content {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .wheel-wrapper {
    width: 100%;
    max-width: 400px;
    height: 400px;
    position: relative;
  }

  .wheel-glow {
    width: 420px;
    height: 420px;
  }

  canvas#wheel {
    width: 400px !important;
    height: 400px !important;
   
  }

  .spin-button {
    width: 80px;
    height: 80px;
    font-size: 0.9rem;
  }

  .spin-icon {
    width: 20px;
    height: 20px;
  }

  .arrow-pointer {
    width: 64px;
    height: 60px;
    top: 50%;
  }

  .right-section {
    width: 100%;
    max-width: 500px;
  }

  .fullscreen-toggle {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
  }

  .sound-btn {
    bottom: 1.5rem;
    right: 5rem;
    width: 50px;
    height: 50px;
  }

  .fullscreen-toggle svg,
  .sound-btn svg {
    width: 22px;
    height: 22px;
  }

  .modal {
    max-width: 90%;
  }

  .result-text {
    font-size: 2rem;
  }
} */


@media(max-width: 992px){
    .desktop-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
  .number_picker_wheel{
        text-align: center;
  }
}


  

 @media (max-width: 680px) {
  .header {
    padding: 0.875rem 1rem;
  }

  .logo h1 {
    font-size: 1.1rem;
  }

  .logo-icon {
    width: 24px;
    height: 24px;
  }

  .main-content {
    padding: 1.5rem 0.75rem;
  }

  .wheel-wrapper {
    max-width: 320px;
    height: 320px;
  }

  .wheel-glow {
    width: 340px;
    height: 340px;
  }

  canvas#wheel {
    width: 320px !important;
    height: 320px !important;
  }

  .spin-button {
    width: 70px;
    height: 70px;
    font-size: 0.85rem;
  }

  .spin-icon {
    width: 18px;
    height: 18px;
  }

  .arrow-pointer {
    width: 64px;
    height: 50px;
    top: 50%;
  }

  .control-card {
    padding: 1.25rem;
  }

  .card-header h3 {
    font-size: 1rem;
  }

  .fullscreen-toggle {
    bottom: 1rem;
    right: 1rem;
    width: 46px;
    height: 46px;
  }

  .sound-btn {
    bottom: 1rem;
    right: 4rem;
    width: 46px;
    height: 46px;
  }

  .fullscreen-toggle svg,
  .sound-btn svg {
    width: 20px;
    height: 20px;
  }

  .result-text {
    font-size: 1.75rem;
  }

  .btn-container {
    flex-direction: column;
  }

  .winner-badge {
    width: 80px;
    height: 80px;
  }

  .winner-badge svg {
    width: 50px;
    height: 50px;
  }
} 


/* //////////////////////////////////////////////////370//////////////// */
@media (max-width: 370px) {
  .header {
    padding: 0.875rem 1rem;
  }

  .logo h1 {
    font-size: 1.1rem;
  }

  .logo-icon {
    width: 18px;
    height: 18px;
  }

  .main-content {
    padding: 1.5rem 0.75rem;
  }

  .wheel-wrapper {
    max-width: 220px;
    height: 220px;
  }

  .wheel-glow {
    width: 240px;
    height: 240px;
  }

  canvas#wheel {
    width: 220px !important;
    height: 220px !important;
  }

  .spin-button {
    width: 40px;
    height: 40px;
    font-size: 5px;
  }

  .spin-icon {
    width: 12px;
    height: 12px;
  }

  .arrow-pointer {
    width: 45px;
    height: 45px;
    top: 50%;
    left: 94%;
  }

  .control-card {
    padding: 1.25rem;
  }

  .card-header h3 {
    font-size: 1rem;
  }

  .fullscreen-toggle {
    bottom: 1rem;
    right: 1rem;
    width: 46px;
    height: 46px;
  }

  .sound-btn {
    bottom: 1rem;
    right: 4rem;
    width: 46px;
    height: 46px;
  }

  .fullscreen-toggle svg,
  .sound-btn svg {
    width: 20px;
    height: 20px;
  }

  .result-text {
    font-size: 1.75rem;
  }

  .btn-container {
    flex-direction: column;
  }

  .winner-badge {
    width: 50px;
    height: 50px;
  }

  .winner-badge svg {
    width: 20px;
    height: 20px;
  }
  .right-section {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.spin-button span {
    font-size: 5px;
    letter-spacing: 1px;

} 

}


@media (max-width: 277px) {
  .right-section {
  flex: 1;
  min-width: 150px;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
 .header {
    padding: 0.875rem 1rem;
  }

  .logo h1 {
    font-size: 8px;
  }

  .logo-icon {
    width: 12px;
    height: 12px;
  }

  .main-content {
    padding: 1.5rem 0.75rem;
  }

  .wheel-wrapper {
    max-width: 100px;
    height: 100px;
  }

  .wheel-glow {
    width: 100px;
    height: 100px;
  }

  canvas#wheel {
    width: 100px !important;
    height: 100px !important;
  }

  .spin-button {
    width: 20px;
    height: 20px;
    font-size: 5px;
  }

  .spin-icon {
    width: 10px;
    height: 10px;
  }

  .arrow-pointer {
    width: 20px;
    height: 20px;
    top: 50%;
    left: 94%;
    
  }

  .control-card {
    padding: 1.25rem;
  }

  .card-header h3 {
    font-size: 1rem;
  }

  .fullscreen-toggle {
    bottom: 1rem;
    right: 1rem;
    width: 46px;
    height: 46px;
  }

  .sound-btn {
    bottom: 1rem;
    right: 4rem;
    width: 46px;
    height: 46px;
  }

  .fullscreen-toggle svg,
  .sound-btn svg {
    width: 18px;
    height: 18px;
  }

  .result-text {
    font-size: 1.75rem;
  }

  .btn-container {
    flex-direction: column;
  }

  .winner-badge {
    width: 30px;
    height: 30px;
  }

  .winner-badge svg {
    width: 15px;
    height: 15px;
  }

.spin-button span {
    font-size: 5px;
    letter-spacing: 1px;

} 
/* .number_picker_wheel p {
    font-size: 6px;
}
.number_picker_wheel h2
 {
    font-size: 8px;
} */
}
/* ////////////////////////////////////////////////////////////////////////// */
.result-section {
  /* margin: 40px auto; */
  padding: 20px;
  max-width: 600px;
  background: rgb(33 32 53);
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}
#result-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 20px;
    border-radius: 8px;
    /* background-color: rgba(255, 255, 255, 0.05); */
    scrollbar-width: thin;
    border: 2px solid rgba(255, 107, 157, 0.3);
    
}

/* light them  */
/* ======================= LIGHT THEME ======================= */
body.light-theme {
  background: linear-gradient(135deg, #f8fafc 0%, #e8ecf3 50%, #fdfdfd 100%);
  color: #222;


}

/* Header Light Mode */
body.light-theme .header {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.light-theme .logo-icon {
  color: #ff7f50;
}

body.light-theme .logo h1 {
  /* background: linear-gradient(135deg, #ff7f50, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; */
    background: linear-gradient(135deg, #ff7f50, #ffb347);
  background-clip: text;
  -webkit-background-clip: text; /* for Safari & Chrome */
  color: transparent;
  -webkit-text-fill-color: transparent; /* required for Safari */
}

body.light-theme .nav-link {
  color: #333;
}

body.light-theme .nav-link::after {
  background: linear-gradient(135deg, #ff7f50, #ffb347);
}

body.light-theme .dropdown-content {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .dropdown-content a {
  color: #333;
}

body.light-theme .dropdown-content a:hover {
  background: rgba(255, 127, 80, 0.1);
}

/* Side Drawer */
body.light-theme .side-drawer {
  background: rgba(255, 255, 255, 0.97);
  border-left: 2px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .side-drawer a {
  color: #333;
}

body.light-theme .side-drawer a:hover {
  background: rgba(255, 127, 80, 0.1);
}

/* Wheel */
body.light-theme .wheel-glow {
  background: radial-gradient(circle, rgba(255, 165, 0, 0.3) 0%, transparent 70%);
}

body.light-theme canvas#wheel {
  box-shadow:
    0 0 30px rgba(255, 193, 94, 0.4),
    0 20px 60px rgba(0, 0, 0, 0.1),
    inset 0 0 50px rgba(255, 255, 255, 0.2);
}

/* Spin Button */
body.light-theme .spin-button {
  background: linear-gradient(135deg, #ffb347, #ff7f50);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 15px rgba(255, 165, 0, 0.4),
    0 8px 25px rgba(0, 0, 0, 0.2);
  color: #fff;
}

/* Control Card */
body.light-theme .control-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  color: #222;
}

/* Buttons inside modals */
body.light-theme .btn_done {
  background: linear-gradient(135deg, #28a745, #6edc83);
}

body.light-theme .btn_remove {
  /* background: linear-gradient(135deg, #dc3545, #f78888); */
  background: rgba(255, 71, 87, 0.2);
    color: #FF4757;
    border: 2px solid rgba(255, 71, 87, 0.4);
}

body.light-theme .modal {
  /* background: #ffffff; */
  color: #222;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
   backdrop-filter: blur(20px);
      animation: modalAppear 0.4s 
ease-out;
    border: 2px solid rgba(255, 107, 157, 0.3);
}


/* Theme Buttons */
.theme-toggle {
  display: flex;
  gap: 0.5rem;
}

.theme-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  color: #fff;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.theme-btn:hover {
  background: rgba(255,255,255,0.2);
}

body.light-theme .theme-btn {
  color: #333;
  border: 1px solid rgba(0,0,0,0.2);
}

body.light-theme .theme-btn:hover {
  background: rgba(0,0,0,0.05);
}
body.light-theme .input-wrapper input {
  padding: 0.85rem 1.25rem;
  border: 2px solid rgba(255, 107, 157, 0.3);
  background:rgb(255 255 255 / 30%);
  border-radius: 12px;
  font-size: 0.95rem;
  color: #000000;
  transition: all 0.3s;
}
body.light-theme .input-wrapper label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgb(0 0 0 / 80%);
}

/* ===== Result Section ===== */
body.light-theme .result-section {
  /* margin: 40px auto; */
  padding: 20px;
  max-width: 600px;
  background:rgb(254 254 254);
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.result-section h2 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: #ffffff;
}

.result-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-color, #fff);
}

.result-section ul li {
 background: rgb(228 89 133);
  margin: 6px 0;
  padding: 10px;
  border-radius: 8px;
  font-size: 1.1rem;
  color: rgb(255, 255, 255);
 
  
}

.clear-btn {
  margin-top: 10px;
  background: crimson;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

.clear-btn:hover {
  background: #b40000;
}
body.light-theme .result-section h2 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #000000;
}

body.light-theme #result-list {
  max-height: 200px;   /* You can adjust height as you like */
  overflow-y: auto;    /* Enables vertical scrolling */
  padding: 20px;
  /* border: 1px solid #ccc; Optional for visual clarity */
  border-radius: 8px;     /* Optional for smooth edges */
  background-color: rgba(255, 255, 255, 0.05); /* Adjust for theme */
  scrollbar-width: thin;  /* For Firefox */
  border: 2px solid rgba(255, 107, 157, 0.3);
}

/* Optional: Make scrollbar look neat */
#result-list::-webkit-scrollbar {
  width: 6px;
}

#result-list::-webkit-scrollbar-thumb {
  background-color: #999;
  border-radius: 3px;
}

.result-index {
  font-weight: bold;
  color: #ffe0d6;
  /* text-shadow: 1px 1px 2px rgba(0,0,0,0.3); */
  margin-right: 6px;
  font-size: 1.1em;
}

/* Optional: style the whole list for better spacing */
#resultList li {
  margin-bottom: 6px;
  font-family: "Poppins", sans-serif;
  color: #fff; /* adjust for light/dark theme */
  list-style: none;
}

/* /////////////////////ABOUT-SECTION ////////////////////////////////// */

/* ========================= DESCRIPTION / SEO SECTION ========================= */
:root {
  --desc-maxwidth: 1100px;
  --desc-gap: 28px;
  --ad-minwidth: 120px;
}

/* Theme variables (will be overridden by body.light-theme / body.dark-theme) */
.desc-wrapper .ad-placeholder { color: #fff; }
.desc-content h2, .desc-content h3, .desc-content p { transition: color .25s, background .25s; }

/* Layout: 3-column grid: ad | content | ad (desktop), collapses on mobile */
.desc-wrapper {
  display: grid;
  grid-template-columns: minmax(var(--ad-minwidth), 1fr) minmax(0, var(--desc-maxwidth)) minmax(var(--ad-minwidth), 1fr);
  gap: var(--desc-gap);
  align-items: start;
  padding: 3.25rem 2rem;
  box-sizing: border-box;
  width: 100%;
}
.set-range-img img{
 width: 50%;
    height: 100%;
    margin-top: 6%;
    margin-left: 24%;
    border-radius: 5%;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    
}

.spin-time{
  margin-top: 14%;
}
.spin-time img{
  width: 50%;
  height: 100%;
  margin-top: 6%;
  margin-left: 24%;   
}

.spin-wheel-img img{
   width: 50%;
  height: 100%;
  margin-top: 6%;
  margin-left: 24%; 

}
.spin-button-img img{
  width: 13%;
  height: 100%;
  margin-top: 6%;
  margin-left: 24%; 
}
.view-result-img img{
    width: 50%;
  height: 100%;
  margin-top: 6%;
  margin-left: 24%; 

}
.Review_history_img img{
   width: 50%;
  height: 100%;
  margin-top: 6%;
  margin-left: 24%; 

}
.full_screen_img img{
     width: 13%;
  height: 100%;
  margin-top: 6%;
  margin-left: 24%; 
}
 /* ////////////footer section ////////////////////////// */

     /* ---------------- Footer ---------------- */
    footer {
      background: #222;
      color: #ddd;
      padding: 40px 20px;
      font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
      margin-top: 50px;
    }

    .footer-container {
      max-width: 1100px;
      margin: auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 30px;
    }

    .footer-section h3 {
      font-size: 1.2rem;
      margin-bottom: 15px;
      color: #fff;
    }

    .footer-section ul {
      list-style: none;
      padding: 0;
    }

    .footer-section ul li {
      margin-bottom: 10px;
    }

    .footer-section ul li a {
      text-decoration: none;
      color: #ddd;
      transition: 0.3s;
    }

    .footer-section ul li a:hover {
      color: #4a90e2;
    }

    .social-icons {
      display: flex;
      gap: 15px;
      margin-top: 15px;
    }

    .social-icons a {
      display: inline-block;
      width: 35px;
      height: 35px;
      background: #444;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: 0.3s;
    }

    .social-icons a:hover {
      background: #4a90e2;
    }

    .social-icons img {
      width: 18px;
      height: 18px;
      filter: invert(1);
    }

    .footer-bottom {
      text-align: center;
      padding: 15px;
      margin-top: 20px;
      border-top: 1px solid #444;
      font-size: 0.9rem;
      color: #aaa;
    }
/* //////////////////////////////////////////////////////////// */

















/* center the main column */
.desc-content {
  max-width: calc(var(--desc-maxwidth));
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  line-height: 1.6;
}

/* Ad placeholders */
.ad-slot {
  display: flex;
  justify-content: center;
  align-items: start;
  padding-top: 2.25rem;
}
.ad-placeholder {
  width: 100%;
  max-width: 320px;
  min-height: 250px;
  border-radius: 12px;
  border: 2px dashed rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: .6px;
  opacity: 0.95;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 12px;
}

/* Main header inside content */
.desc-header h2 {
  margin: 0 0 .25rem 0;
  font-size: 1.6rem;
  letter-spacing: -0.2px;
}
.desc-sub {
  margin: 0 0 1rem 0;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* Blocks */
.desc-block {
  margin: 1rem 0;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.desc-block h3 { margin: 0 0 .5rem 0; font-size: 1.05rem; }
.desc-block p, .desc-block li { color: rgba(17, 17, 17, 0.9); font-size: 0.97rem; list-style: none; }

/* Example grid for small cards */
.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 0.6rem;
}
.example {
  background: rgba(255,255,255,0.03);
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.03);
  font-size: 0.95rem;
}

/* SEO paragraph styling */
.seo-paragraph {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
}

/* Keywords */
.keyword-block .keywords {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* Make sure lists look good */
.desc-content ol { padding-left: 1.2rem; }
.desc-content code { background: rgba(255,255,255,0.03); padding: 2px 6px; border-radius: 4px; font-size: .92em; }

/* ========================= LIGHT / DARK THEME ADAPTATION ========================= */
/* Dark theme (default in your project) */

body.dark-theme .light_setrange_img,
body.dark-theme .light_spinwheel_img,
body.dark-theme .light_spinbutton_img,
body.dark-theme .light_spin_result,
body.dark-theme .light_fullscreen
{
  display: none;
}

body.light-theme .dark_setrange_img,
body.light-theme .dark_spinwheel_img,
body.light-theme .dark_spinbutton_img,
body.light-theme .dark_result,
body.light-theme .dark_fullscreen
 {
  display: none;
}






body.dark-theme .desc-content {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,107,157,0.06);
}
body.dark-theme .desc-header .desc-sub,
body.dark-theme .desc-block p,
body.dark-theme .desc-block li,
body.dark-theme .seo-paragraph,
body.dark-theme .keywords {
  color: rgba(255,255,255,0.88);
}
body.dark-theme .ad-placeholder {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,107,157,0.08), rgba(30,30,46,0.02));
  border: 2px dashed rgba(255,107,157,0.08);
}

/* Light theme */
body.light-theme .desc-content {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(250,250,250,0.98));
  border: 1px solid rgba(0,0,0,0.06);
  color: #222;
  box-shadow: 0 6px 22px rgba(0,0,0,0.06);
}
body.light-theme .desc-header .desc-sub,
body.light-theme .desc-block p,
body.light-theme .seo-paragraph,
body.light-theme .keywords {
  color: #333;
}
body.light-theme .ad-placeholder {
  color: #222;
  background: linear-gradient(135deg, rgba(240,240,240,0.95), rgba(255,255,255,0.98));
  border: 2px dashed rgba(0,0,0,0.06);
}

/* ========================= RESPONSIVE RULES ========================= */
/* tablets and smaller: hide left/right ad columns and show slim ad banner between wheel and description if desired */
@media (max-width: 1024px) {
  .desc-wrapper {
    grid-template-columns: 1fr minmax(0, 900px) 1fr;
    padding: 2.25rem 1.5rem;
  }
  .ad-placeholder { max-width: 220px; min-height: 140px; }
}

/* small tablets / large phones: convert to single column; show ad placeholders as small horizontal banners above/below content */
@media (max-width: 780px) {
  .desc-wrapper {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
  }
  .ad-left, .ad-right { display: none; }         /* hide tall ad columns on small screens */
  .desc-content { padding: 1rem; }
  /* Add small in-content banner that can be used for mobile ads (you can replace this with real ad code) */
  .desc-content::before {
    content: "AD BANNER";
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 0 12px 0;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    border: 1px dashed rgba(255,255,255,0.04);
  }
  body.light-theme .desc-content::before { background: rgba(0,0,0,0.03); color: #222; border: 1px dashed rgba(0,0,0,0.06); }
}

/* very small phones — tighten spacing */
@media (max-width: 380px) {
  .desc-wrapper { padding: 1rem 0.5rem; }
  .desc-content { padding: 0.75rem; }
  .desc-header h2 { font-size: 1.25rem; }
  .desc-block h3 { font-size: 0.98rem; }
}

/* Ensure printing / readability */
@media print {
  .ad-slot, .ad-placeholder, .desc-content::before { display: none !important; }
}
