body {
  margin: 0;
  padding: 0;
  background-color: #50beec;
  font-family: "Arial", sans-serif;
  color: white;
  text-align: center;
}

.top-panel {
  background-color: #a3dff9;
  color: #000;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 14px;
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
}

.top-panel > div {
  text-align: center;
}

.top-panel strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: #000;
}

.top-panel span {
  font-size: 18px;
  color: #000;
}

.container {
  padding: 40px 20px;
}

.task-box {
  background-color: #3ab0e2;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  display: inline-block;
  margin-bottom: 30px;
}

.task-box p {
    font-size: 20px;
  margin: 0;
}

#target-number {
  font-size: 36px;
  font-weight: bold;
  margin-top: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(2, 100px);
  justify-content: center;
  gap: 15px;
  margin: 0 auto 30px;
}

.number-box {
  width: 100px;
  height: 100px;
  background-color: #ffffff55;
  border-radius: 8px;
  font-size: 28px;
  font-weight: bold;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.number-box:hover {
  transform: scale(1.05);
}

.correct {
  background-color: #26ff31 !important;
}

.incorrect {
  background-color: #ef5350 !important;
}

.game-over {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.game-over-content {
  background: #4292d3;
  padding: 30px 40px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }

#restart-btn {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 18px;
  background: white;
  color: #2196f3;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

#restart-btn:hover {
  background: #f1f1f1;
}
.number-box {
  animation: pop-in 0.3s ease;
}

@keyframes pop-in {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.correct {
  animation: correct-pop 0.4s ease;
}

@keyframes correct-pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

.game-over {
  opacity: 0;
  animation: fade-in 0.5s forwards ease;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

.tutorial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  color: rgb(0, 0, 0);
}

.tutorial-content {
  background: #2196f3;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

#start-game-btn {
  margin-top: 20px;
  padding: 10px 24px;
  font-size: 18px;
  background: white;
  color: #000000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

#start-game-btn:hover {
  background: #e0e0e0;
}