body {
  font-family: Arial;
  background: linear-gradient(to right, #1e1e2f, #2c2c54);
  color: white;
  text-align: center;

  margin: 0;
}

.container {
  max-width: 400px;
  margin: auto;
  padding: 20px;

  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px; 
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 26px;
}

input {
  width: 80%;
  padding: 12px;
  font-size: 18px;
  margin: 10px 0;
  border-radius: 10px;
  border: none;
}

button {
  padding: 12px 25px;
  font-size: 18px;
  width: 60%;
  max-width: 400px;
  cursor: pointer;
  border-radius: 10px;
  border: none;
  background: #00c853;
  color: white;
  transition: 0.2s;
}

button:hover {
  background: #00e676;
}

.bar-container {
  margin-top: 40px;
  width: 100%;
  height: 40px;
  background: #555;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

#bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #00c853, #69f0ae);
  transition: width 0.5s ease;
}

#character {
  position: absolute;
  top: -30px;
  left: 0;
  font-size: 28px;
  transition: left 0.5s ease;
}

.finish {
  position: absolute;
  right: 0;
  top: -30px;
  font-size: 28px;
}

#message {
  margin-top: 20px;
  font-size: 20px;
  font-weight: bold;
}

.reset-container {
  margin-top: 50px;
  text-align: center;
}

.reset-btn {
  padding: 12px 25px;
  font-size: 18px;
  border-radius: 10px;
  width: 60%;
  max-width: 400px;
  border: none;
  cursor: pointer;

  background: #ff5252;
  color: white;

  opacity: 0.85;
  transition: all 0.25s ease;
}

.reset-btn:hover {
  opacity: 1;
  transform: scale(1.05);
  background: #ff1744;
}


