:root {
  --bg-color: #1e1e24;
  --slot-bg: #2b2b36;
  --highlight: #ffffff;
  --success: #4ade80;
  --fail: #f87171;
  /* Game Colors */
  --c0: #ef476f; /* Red */
  --c1: #ffd166; /* Yellow */
  --c2: #06d6a0; /* Green */
  --c3: #118ab2; /* Blue */
  --c4: #9d4edd; /* Purple */
  --c5: #ff9f1c; /* Orange */
  /* diffierent difficulty colors */
  --color-difficulty-0: #06d6a0; /* Easy - Green */
  --color-difficulty-1: #ffd166; /* Medium - Yellow */
  --color-difficulty-2: #ef476f; /* Hard - Red */
}

body {
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: sans-serif;
  height: 100vh;
  overflow: hidden;
  user-select: none;
}

/* Icons */
svg {
  width: 24px;
  height: 24px;
  fill: white;
}

#main-area {
  display: flex;
  align-items: left;
  flex-direction: column;
  overflow-y: auto; /* Enable vertical scrolling */
}

#game-board {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 1;
  transition: opacity 0.3s;
}

.row.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.slots-container {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: var(--slot-bg);
  border-radius: 12px;
}

.slot {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background-color: #3f3f4e;
  cursor: pointer;
  transition:
    transform 0.1s,
    border 0.1s;
  border: 3px solid transparent;
}

.slot.active {
  border-color: var(--highlight);
  transform: scale(1.05);
}

/* Color classes */
.color-0 {
  background-color: var(--c0);
}
.color-1 {
  background-color: var(--c1);
}
.color-2 {
  background-color: var(--c2);
}
.color-3 {
  background-color: var(--c3);
}
.color-4 {
  background-color: var(--c4);
}
.color-5 {
  background-color: var(--c5);
}

/* Feedback Indicators */
.feedback {
  display: flex;
  gap: 4px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #3f3f4e;
}

.dot.correct {
  background-color: var(--success);
  box-shadow: 0 0 5px var(--success);
}

/* Controls Area */
#controls {
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

.btn {
  background: var(--slot-bg);
  border: none;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  margin: 12px;
}

.btn:hover {
  background: #3f3f4e;
}
.btn:active {
  transform: scale(0.95);
}

/* Overlay for Win/Lose */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
}

#overlay.show {
  visibility: visible;
  opacity: 1;
}

#result-icon svg {
  width: 80px;
  height: 80px;
}
.win-color {
  fill: var(--success);
}
.lose-color {
  fill: var(--fail);
}

#answer-reveal {
  display: flex;
  gap: 10px;
  margin: 30px 0;
}

.top-bar {
  position: absolute;
  top: 20px;
  right: 20px;
}

.hidden {
  display: none;
}
