/* Ensure full height and proper layout */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Allow scrolling for content that exceeds viewport height */
body {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: light dark;
  color: rgba(225, 235, 227, 0.877);
  background: linear-gradient(45deg, #1a31dc, #80ef12);
  animation: gradientCycle 6s ease infinite;
  background-size: 400% 400%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto; /* Enable vertical scrolling if needed */
}

/* Centering the heading */
h1 {
  font-size: 3.2em;
  line-height: 1.1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Container for buttons */
#container {
  display: flex;
  flex-direction: column; /* Stack buttons vertically */
  align-items: center; /* Center buttons horizontally */
  gap: 10px; /* Adds space between buttons */
  flex-grow: 1; /* Ensure it takes the remaining space */
  width: 100%;
  padding-bottom: 20px; /* Add some space at the bottom */
}

/* Button styling */
button {
  width: 70vw;
  height: 13vh;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 2em;
  font-weight: 500;
  font-family: inherit;
  color: #000000;
  background: rgba(250, 250, 250, 0.875);
  box-shadow: 0 0 7px #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

button:hover {
  border-color: #ffffff;
}

button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.25);
}

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

/* Styling for the result box */
.result {
  display: none; /* Initially hidden */
  color: rgba(255, 255, 255, 0.956);
  font-size: 1.5em;
  border: 2px solid rgb(255, 255, 255);
  background-color: rgba(0, 0, 0, 0.337);
  font-weight: bold;
  text-align: center;
  padding: 5px;
  border-radius: 10px;
  width: 50vw;
}
