/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@media (max-width: 420px) {
  input[type="number"] {
    width: 90vw;
  }
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #1e293b; /* dark slate blue */
  color: #f8fafc; /* near white */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  user-select: none;
}

/* Heading */
h1 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #38bdf8; /* bright sky blue */
  text-shadow: 0 0 6px #38bdf8;
}

/* Subtext */
p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #94a3b8; /* light slate */
  max-width: 400px;
  text-align: center;
  line-height: 1.4;
}

/* Remove number input spinners (Chrome, Safari, Edge) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Remove number input spinners (Firefox) */
input[type="number"] {
  -moz-appearance: textfield;
}


/* Input styling */
input[type="number"] {
  width: 260px;       /* widen input to fit placeholder */
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  border-radius: 10px;
  border: none;
  outline: none;
  box-shadow: 0 0 8px #2563eb inset;
  background-color: #0f172a;
  color: #f8fafc;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

input[type="number"]:focus {
  box-shadow: 0 0 15px #38bdf8 inset;
}

/* Buttons */
.btn {
  font-size: 1.15rem;
  padding: 0.65rem 1.4rem;
  margin: 0.5rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(59, 130, 246, 0.6);
  transition: background 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
  user-select: none;
}

.btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.8);
}

.btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 3px 6px rgba(37, 99, 235, 0.5);
}

.btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

/* Message */
#message {
  font-weight: 600;
  margin-top: 1.2rem;
  font-size: 1.3rem;
  min-height: 1.6em;
  color: #e0e7ff;
  text-shadow: 0 0 5px #3b82f6;
}

/* Previous guesses */
#previousGuesses {
  margin-top: 1rem;
  font-style: italic;
  color: #a5b4fc;
  min-height: 1.2em;
  font-size: 1.1rem;
}

/* Responsive container */
@media (max-width: 420px) {
  input[type="number"] {
    width: 90vw;
    font-size: 1.2rem;
  }
  .btn {
    width: 90vw;
    font-size: 1.1rem;
    padding: 0.75rem 0;
  }
}

a, a:visited {
  color: #3b82f6; 
  text-decoration: none;
}

a:hover, a:visited:hover {
  color: #2563eb; 
  text-decoration: underline;
  transition: color 0.4s ease;

}

#nextHint {
  display: block;
  margin-top: 0.4rem;
  font-size: 1rem;
  color: #38bdf8;
  text-shadow: 0 0 4px #38bdf8;
  opacity: 0.9;
  animation: fadeout 4.5s ease-out forwards;
}

@keyframes fadeout {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

