body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.logo {
  height: 64px;
  max-width: 200px;
  object-fit: contain;
}

.history-inputs {
  min-height: 80px;
  border: 2px solid #facc15; /* Bright yellow border for visibility */
  background-color: #1f2937;
}

.history-inputs input {
  width: 60px;
  padding: 8px;
  margin: 4px;
  text-align: center;
  font-size: 14px;
  background-color: #1f2937 !important;
  color: #fff !important; /* White text for visibility */
  border: 1px solid #4b5563;
  border-radius: 4px;
}

.history-inputs input:focus {
  outline: none;
  border-color: #facc15;
  box-shadow: 0 0 5px rgba(250, 204, 21, 0.5);
}

.history-inputs input::placeholder {
  color: #9ca3af; /* Gray placeholder */
}

button:hover {
  transition: all 0.2s ease-in-out;
}

/* Hot/Cold number styling */
.hot-number {
  color: #ef4444;
  font-weight: bold;
}

.cold-number {
  color: #3b82f6;
  font-weight: bold;
}

/* Prediction result styling */
.prediction-result {
  padding: 8px;
  margin: 4px 0;
  border-radius: 4px;
  background-color: rgba(31, 41, 55, 0.8);
}

/* Animation for predictions */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Input validation styles */
.invalid-input {
  border-color: #ef4444 !important;
  box-shadow: 0 0 5px rgba(239, 68, 68, 0.5) !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .history-inputs input {
    width: 50px;
    padding: 6px;
    margin: 2px;
    font-size: 12px;
  }
  
  .topbar {
    flex-direction: column;
    text-align: center;
  }
  
  .game-title {
    text-align: center !important;
    margin-top: 16px;
  }
  
  .controls button {
    margin: 4px;
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Success/Error states */
.success {
  color: #10b981;
  font-weight: bold;
}

.error {
  color: #ef4444;
  font-weight: bold;
}

/* Prediction log styling */
#lastPredictionsList li {
  margin-bottom: 8px;
  padding: 4px;
  border-radius: 4px;
  background-color: rgba(55, 65, 81, 0.5);
}

/* Counter styling */
.counters p {
  font-size: 16px;
  font-weight: bold;
}

/* History container responsive grid */
.history-inputs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* Button enhancement */
button {
  cursor: pointer;
  user-select: none;
}

button:active {
  transform: scale(0.98);
}