:root {
  --primary-color: #e66f22;
  --primary-dark: #c85f1d;
  --primary-light: #fff3ea;
  --secondary-color: #1f2937;
  --accent-color: #07378b;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --dark-color: #1f2937;
  --light-color: #f9fafb;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--light-color);
  color: var(--dark-color);
  min-height: 100vh;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  display: none;
}

/* Firefox */
body {
  scrollbar-width: none;
}

/* IE & Old Edge */
body {
  -ms-overflow-style: none;
}

.text-primary {
  color: var(--primary-color) !important;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

.btn-outline-primary {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary-color) !important;
  color: #fff !important;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  font-size: 1.1rem;
}
.nav-link.active {
  font-weight: 600;
  font-size: 1.1rem;
}

.hero-section {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--secondary-color)
  );
  color: white;
  padding: 100px 0;
  text-align: center;
}

.game-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.game-card1 {
  top: 30%;
}

@media (max-width: 992px) {
  .player-count-btn {
    display: flex;
    height: 75px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }
  .player-count-btn h3 {
    display: none;
  }
}

/* Player Avatar Selection Cards */
.avatar-selection-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.avatar-selection-card .card-header {
  background: linear-gradient(135deg, #082350 0%, #1d4ed8 100%) !important;
  position: relative;
  border-bottom: none;
}

.avatar-selection-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.avatar-selection-card.active {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 3px rgba(230, 111, 34, 0.1) !important;
}

.player-avatar-selected {
  font-size: 3rem;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /*background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));*/
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.avatar-selection-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #dee2e6;
}

.avatar-option {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  border: 2px solid transparent;
}

.avatar-option:hover {
  transform: scale(1.1);
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.avatar-option.selected {
  border-color: var(--accent-color);
  background: #dbeafe;
  box-shadow: 0 0 0 3px rgba(34, 90, 230, 0.2);
  transform: scale(1.1);
}

.avatar-option.selected {
  border-color: var(--secondary-color);
  transform: scale(1.1);
  background-color: #dbeafe;
}

.player-card {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 5px solid var(--secondary-color);
}

.current-player {
  border-left-color: var(--warning-color);
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
}

.answer-option {
  padding: 15px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.answer-option:hover {
  background-color: #f3f4f6;
  border-color: var(--secondary-color);
}

.answer-option.correct {
  background-color: #d1fae5;
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.answer-option.incorrect {
  background-color: #fee2e2;
  border-color: var(--danger-color);
  color: var(--danger-color);
}

.current-player {
  border-left-color: var(--warning-color);
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
}

.leaderboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background-color: white;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.leaderboard-rank {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 1.1rem;
}

.rank-1 {
  background-color: #fbbf24;
}
.rank-2 {
  background-color: #9ca3af;
}
.rank-3 {
  background-color: #b45309;
}

.question-card {
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.answer-option {
  padding: 15px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.answer-option:hover {
  background-color: #f3f4f6;
  border-color: var(--secondary-color);
}

.answer-option.correct {
  background-color: #d1fae5;
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.answer-option.incorrect {
  background-color: #fee2e2;
  border-color: var(--danger-color);
  color: var(--danger-color);
}

/* Wheel Styles */
.wheel-container {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 40px auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 12px solid #2c3e50;
  background: linear-gradient(45deg, #34495e, #2c3e50);
}

.wheel {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 50%;
  transition: transform 3s cubic-bezier(0.2, 0.8, 0.3, 1);
  transform: rotate(0deg);
  overflow: hidden;
}

.wheel-section {
  position: absolute;
  width: 50%;
  height: 50%;
  transform-origin: 100% 100%;
  left: 0;
  top: 0;
  /* display: flex;
            align-items: center;
            justify-content: center; */
  background: conic-gradient(
    var(--main-color) 0deg 60deg,
    #ffcc80 60deg 120deg,
    #f8c4d4 120deg 180deg,
    #c8a2c8 180deg 240deg,
    #4db6ac 240deg 300deg,
    gold 300deg 360deg
  );
  overflow: hidden;
  border-right: 2px solid rgba(255, 255, 255, 0.3);
}

/* .wheel-section:nth-child(1) { background-color: #3498db; }
        .wheel-section:nth-child(2) { background-color: #2ecc71; }
        .wheel-section:nth-child(3) { background-color: #e74c3c; }
        .wheel-section:nth-child(4) { background-color: #f39c12; }
        .wheel-section:nth-child(5) { background-color: #9b59b6; }
        .wheel-section:nth-child(6) { background-color: #1abc9c; }
        .wheel-section:nth-child(7) { background-color: #e67e22; }
        .wheel-section:nth-child(8) { background-color: #3498db; }
        .wheel-section:nth-child(9) { background-color: #2ecc71; }
        .wheel-section:nth-child(10) { background-color: #e74c3c; }
        .wheel-section:nth-child(11) { background-color: #f39c12; }
        .wheel-section:nth-child(12) { background-color: #9b59b6; }
         */

/* .wheel-section {
            width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 5px solid var(--second-color);
    background: conic-gradient(var(--main-color) 0deg 60deg, #ffcc80 60deg 120deg, #f8c4d4 120deg 180deg, #c8a2c8 180deg 240deg, #4db6ac 240deg 300deg, gold 300deg 360deg);
    transition: transform 5s cubic-bezier(0.33, 1, 0.68, 1);
    position: relative;
} */

.wheel-section-content {
  position: absolute;
  left: 100px;
  top: 25%;
  transform: translateY(0%) rotate(65deg);
  font-size: 1.6rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: rgba(0, 0, 0, 0.2); */
  /* border-radius: 50%; */
}

.wheel-pointer {
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 40px solid #dc3545;
  z-index: 10;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
}

.spin-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f59e0b, #e78b0d);
  border: 5px solid #fff;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.spin-button:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.spin-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Modal Styles */
.wheel-result-icon {
  font-size: 4rem;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  animation: bounceIn 0.8s ease;
}

.reward-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.penalty-icon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.wheel-result-points {
  font-size: 3.5rem;
  font-weight: bold;
  margin: 20px 0;
  animation: pulse 1.5s infinite;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Prevent backdrop click */
.modal-backdrop {
  pointer-events: none;
}

.modal {
  pointer-events: all;
}

.modal-backdrop.show {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .wheel-container {
    width: 300px;
    height: 300px;
  }

  .wheel-section-content {
    left: 48px;
    top: 35%;
    font-size: 1.2rem;
    width: 50px;
    height: 50px;
  }

  .spin-button {
    width: 80px;
    height: 80px;
    font-size: 0.8rem;
  }

  .avatar-selection-grid {
    grid-template-columns: repeat(4, 1fr);
    max-height: 150px;
  }
}

@media (max-width: 576px) {
  .avatar-selection-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
