/* Reset default margins and fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  height: 100vh;
  background: linear-gradient(135deg, #6a5acd, #ff69b4, #00bfff);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

/* Gradient animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Title */
h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Input field */
#guess {
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 25px;
  outline: none;
  width: 200px;
  text-align: center;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  transition: 0.3s;
}

#guess:focus {
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.8);
}

/* Buttons */
button {
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  margin: 0.5rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-weight: bold;
}

#submit {
  background: linear-gradient(135deg, #6a5acd, #00bfff);
}

#reset {
  background: linear-gradient(135deg, #ff69b4, #ff7bff);
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Text feedback */
#hint,
#showLastNumber,
#chance {
  margin-top: 1rem;
  font-size: 1.2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Optional: subtle glowing border for feedback */
#hint {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
}
