/* Use full viewport height, flex layout, and keep footer at bottom */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: linear-gradient(135deg, #121212, #1e1e1e);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden; /* prevent scrolling */
}

/* Body content wrapper (all but footer) */
body > :not(footer) {
  flex-shrink: 0;
}

/* Title */
h1 {
  font-weight: 700;
  font-size: 3rem;
  margin-top: 20px;
  letter-spacing: 2px;
  text-shadow: 0 0 8px #00ff99;
}

/* Horizontal line */
hr {
  width: 200px;
  border: 1px solid #00ff99;
  margin: 20px 0 30px 0;
  box-shadow: 0 0 8px #00ff99;
}

/* Counter number */
#Count {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: 4px;
  user-select: none;
  text-shadow: 0 0 10px #00ff99;
}

/* Buttons container - side by side */
.buttons-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

/* Increase and decrease buttons */
#IncreasesBtn,
#DecreasesBtn {
  font-size: 3rem;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 255, 153, 0.6);
  transition: background-color 0.3s ease, transform 0.2s ease;
  user-select: none;
}

#IncreasesBtn {
  background-color: #00cc66;
}

#DecreasesBtn {
  background-color: #e63946;
}

#IncreasesBtn:hover {
  background-color: #00ff99;
  transform: scale(1.1);
}

#DecreasesBtn:hover {
  background-color: #ff6f79;
  transform: scale(1.1);
}

/* Reset button */
#ResetBtn {
  font-size: 1.8rem;
  padding: 12px 40px;
  border-radius: 25px;
  border: none;
  background-color: #555555;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(85, 85, 85, 0.8);
  transition: background-color 0.3s ease, transform 0.2s ease;
  user-select: none;
  margin-bottom: 20px;
}

#ResetBtn:hover {
  background-color: #777777;
  transform: scale(1.05);
}

/* Footer */
footer {
  width: 100%;

  color: #00ff99;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 10px;

  user-select: none;
  text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
    letter-spacing: 1px;
  }

  hr {
    width: 150px;
  }

  #Count {
    font-size: 4rem;
    letter-spacing: 3px;
  }

  .buttons-row {
    flex-direction: row;
    gap: 15px;
  }

  #IncreasesBtn,
  #DecreasesBtn {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
  }

  #ResetBtn {
    font-size: 1.5rem;
    padding: 10px 30px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 1.6rem;
  }

  hr {
    width: 120px;
  }

  #Count {
    font-size: 3.2rem;
    letter-spacing: 2px;
  }

  #IncreasesBtn,
  #DecreasesBtn {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  #ResetBtn {
    font-size: 1.2rem;
    padding: 8px 25px;
  }
}
