/* ======================= 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;
}

/* ======================= 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);
  /* 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: 6rem 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.25rem;
  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;
}

.badge {
  background: linear-gradient(135deg, #FF6B9D, #C44569);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ======================= INPUT GROUP ======================= */
.input-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.input-group input {
  flex: 1;
  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-group input:focus {
  outline: none;
  border-color: #FF6B9D;
  box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.add-btn {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FF6B9D, #C44569);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.add-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5);
}

.add-btn svg {
  width: 24px;
  height: 24px;
  color: white;
}

/* ======================= ACTION BUTTONS ======================= */
.action-buttons {
  display: flex;
  gap: 0.75rem;
}

.action-btn {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.action-btn svg {
  width: 18px;
  height: 18px;
}

.load-btn {
  background: linear-gradient(135deg, #1DD1A1, #10AC84);
  color: white;
  box-shadow: 0 4px 15px rgba(29, 209, 161, 0.3);
}

.load-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 209, 161, 0.4);
}

.reset-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.reset-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ======================= NAMES LIST ======================= */
.names-card {
  max-height: 450px;
  display: flex;
  flex-direction: column;
}

.names-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-right: 0.5rem;
}

.names-list::-webkit-scrollbar {
  width: 8px;
}

.names-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.names-list::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #FF6B9D, #C44569);
  border-radius: 10px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

.empty-state svg {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-state span {
  font-size: 0.9rem;
}

.name-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 2px solid rgba(255, 107, 157, 0.2);
  transition: all 0.3s;
}

.name-item:hover {
  border-color: rgba(255, 107, 157, 0.4);
  background: rgba(0, 0, 0, 0.4);
  transform: translateX(5px);
}

.name-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.name-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.name-text {
  font-weight: 500;
  font-size: 1rem;
}

.remove-name-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 71, 87, 0.2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.remove-name-btn:hover {
  background: rgba(255, 71, 87, 0.4);
  transform: scale(1.1);
}

.remove-name-btn svg {
  width: 16px;
  height: 16px;
  color: #FF4757;
}

/* ======================= 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 fullscreen //////////////*/

/* /////////////////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 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: white; */
}
/* 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;
}
/* body.dark-theme .desc-header 
body.dark-theme .desc-sub{
  color: #000000;
}
 .desc-header .desc-sub{
  color: #ffffff;
 } */


/* 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;
  
}


/* /////////////////////fullscreen media quary /////////////*/

@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:370px) {
   .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-bottom: 72%;
  }
  /* .fullscreen-active .name_picker_wheel h2{
    font-size: 18px;
  } */


}
@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;
}

/* ======================= RESPONSIVE ======================= */

@media(max-width: 992px){
    .desktop-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
  .name_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;

} 
#nameInput{
  width: 1%;
}
.action-btn{
  width: 1%;
}

}


@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;

} 
.name_picker_wheel p {
    font-size: 6px;
}
.name_picker_wheel h2
 {
    font-size: 8px;
}
}


/* /////////////////////light theam/////////////////// */
/* ==== Default Theme Variables ==== */
/* light them  */
/* ======================= LIGHT THEME ======================= */
body.light-theme {
  background: linear-gradient(135deg, #f8fafc 0%, #e8ecf3 50%, #fdfdfd 100%);
  color: #222;


}

body.light-theme .desc-block p,
body.light-theme .desc-block ol, 
body.light-theme .desc-block ul {
  color: #333;
}
body.light-theme .desc-header, 
body.light-theme .desc-sub {
  color: #000;
}

/* 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);
}




/* ///////////////////////////////////////////// */
body.light-theme .name_picker_wheel{
      padding: 1rem 4rem;
    background-color: rgb(255 193 192);
    
}
body.light-theme .name_picker_wheel h2{
  font-size: 22px;
}
body.light-theme .name_picker_wheel p{
  font-size: 11px;
}

 .name_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);
    
}
 .name_picker_wheel h2{
  font-size: 22px;
}
 .name_picker_wheel p{
  font-size: 11px;
}




/* ///////////////////////////////////////// */

/* 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 .reset-btn {
      color: #ffffff;
    background-color: #e25883;
}
body.light-theme .remove-name-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 71, 87, 0.2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
body.light-theme .remove-name-btn svg {
 
  color: #000000;
}
body.light-theme .name-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: rgb(255 255 255 / 75%);
    border-radius: 12px;
    border: 2px solid rgba(255, 107, 157, 0.2);
    transition: all 0.3s;
}
body.light-theme .input-group input {
 background: rgb(255 255 255 / 75%);
 color: black;
}


/* ================= RESULTS SECTION ================= */
.results-card {
  margin-top: 20px;
}

.result-list {
  max-height: 180px; /* adjust height as you wish */
  overflow-y: auto;
  padding: 10px;
  list-style: none;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  scrollbar-width: thin; /* for Firefox */
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Custom Scrollbar (for Chrome, Edge, Safari) */
.result-list::-webkit-scrollbar {
  width: 6px;
}

.result-list::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 6px;
}

.result-list::-webkit-scrollbar-track {
  background: transparent;
}


.result-list li {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
}

.result-index {
  font-weight: bold;
  color: #fff5cc; /* soft cream for pink background */
  margin-right: 8px;
  font-size: 1.1em;
}

.light-theme .result-list li {
  color: #333;
}

.light-theme .result-index {
  color: #e8894a; /* pastel orange for light theme */
}

/* /////////////////////ABOUT-SECTION ////////////////////////////////// */


 /* ////////////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;
    }
/* //////////////////////////////////////////////////////////// */




/* /////////////////about-section//////////////////// */



/* ======================= BASE & LAYOUT ======================= */
/* ========================= 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: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  padding: 60px 20px;
  /* background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%); */
  /* color: #ffffff; */
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
}

/* ======================= SIDEBAR (ADS) ======================= */
.ad-slot {
  flex: 0 0 160px;
  height: 100%;
}

.ad-left,
.ad-right {
  background: transparent;
}

/* ======================= MAIN CONTENT ======================= */
.desc-content {
  flex: 1;
  max-width: 900px;
  line-height: 1.7;
}

.desc-header {
  text-align: center;
  margin-bottom: 40px;
}

.desc-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffd369;
  margin-bottom: 10px;
}

.desc-header .desc-sub {
  font-size: 1.1rem;
  color: #ffffff;
}

/* ======================= BLOCK SECTIONS ======================= */
.desc-block {
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}

.desc-block h3 {
  font-size: 1.5rem;
  color: #ffcc70;
  margin-bottom: 12px;
  border-left: 4px solid #ffcc70;
  padding-left: 10px;
}

.desc-block h4 {
  color: #ffd369;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.desc-block p,
.desc-block ol,
.desc-block ul {
  font-size: 1rem;
  color: #e3e3e3;
}

.desc-block ol,
.desc-block ul {
  margin: 10px 0 15px 20px;
}

.desc-block ol li,
.desc-block ul li {
  margin-bottom: 6px;
}

/* ======================= IMAGE STYLING ======================= */
/* .add-names-img,
.load-wheel-img,
.spin-wheel-img,
.view-result-img,
.review-history-img,
.fullscreen-sound-img {
 
  margin-top: 15px;
}

.add-names-img img,
.load-wheel-img img,
.spin-wheel-img img,
.view-result-img img,
.review-history-img img,
.fullscreen-sound-img img {
  width: 100%;
  max-width: 550px;
  border-radius: 10px;
  transition: opacity 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
} */
.add-names-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;
}
.load-wheel-img img{
   width: 50%;
  height: 100%;
  margin-top: 6%;
  margin-left: 24%; 
}
.spin-wheel-img img{
  width: 13%;
  height: 100%;
  margin-top: 6%;
  margin-left: 24%; 
}
.view-result 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%; 
}
.fullscreen-sound-img img{
       width: 13%;
  height: 100%;
  margin-top: 6%;
  margin-left: 24%;
}



/* ======================= LIGHT / DARK IMAGE SWITCH ======================= */
/* .light_add_names,
.light_load_wheel,
.light_spinwheel_img,
.light_result,
.light_fullscreen {
  display: block;
} */

body.light-theme .dark_add_names,
body.light-theme .dark_load_wheel,
body.light-theme .dark_spinwheel_img,
body.light-theme .dark_result,
body.light-theme .dark_fullscreen {
  display: none;
}

/* When Dark Mode is active (you can toggle using JS by adding .dark-mode to body) */
body.dark-theme .light_add_names,
body.dark-theme .light_load_wheel,
body.dark-theme .light_spinwheel_img,
body.dark-theme .light_result,
body.dark-theme .light_fullscreen {
  display: none;
}

/* body.dark-mode .dark_add_names,
body.dark-mode .dark_load_wheel,
body.dark-mode .dark_spinwheel_img,
body.dark-mode .dark_result,
body.dark-mode .dark_fullscreen {
  display: block;
} */



/* ======================= KEYWORDS / LIST STYLING ======================= */
.keyword-block {
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  padding-top: 15px;
}

.keywords {
  color: #b3b3b3;
  font-size: 0.95rem;
}

/* ======================= RESPONSIVE DESIGN ======================= */
@media (max-width: 1024px) {
  .desc-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 40px 15px;
  }

  .ad-slot {
    display: none;
  }

  .desc-content {
    max-width: 100%;
  }

  .desc-header h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .desc-block {
    padding: 20px;
  }

  .desc-header h2 {
    font-size: 1.6rem;
  }

  .desc-header .desc-sub {
    font-size: 1rem;
  }

  .desc-block h3 {
    font-size: 1.3rem;
  }

  .desc-block h4 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .desc-wrapper {
    padding: 30px 10px;
  }

  .desc-header h2 {
    font-size: 1.4rem;
  }

  .desc-header .desc-sub {
    font-size: 0.95rem;
  }

  .desc-block {
    padding: 15px;
  }

  .desc-block p,
  .desc-block ol,
  .desc-block ul {
    font-size: 0.9rem;
  }

  img {
    max-width: 100%;
  }
}
