/* Basic reset */
body, h1, h2, h3, h4, p, form, button {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Set default font size and family */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #f5f7fa, #c3cfe2); /* Gradient background */
  color: #333;
  padding: 25px;
  padding-left:0;
  padding-right:0;
  padding-bottom:0;
  min-height: 100vh; /* Full viewport height */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.main-content {
  flex: 1; /* takes remaining space */
}

/* Center alignment for header and form */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background-color: #ffffffde; /* Slight transparency */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* More pronounced shadow */
  border-radius: 12px; /* Rounded corners */
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.3s ease;
}

/* Hover shadow effect */
.container:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Style header */
h1 {
  font-size: 2.8em;
  margin-bottom: 10px;
  color: #2c3e50; /* Darker brand color */
  text-align: center;
}

/* Style header */
h4 {
  margin-bottom: 0px;
}

/* Subtitle below main heading */
p {
  margin-bottom: 20px;
  font-size: 1.2em;
  line-height: 1.5;
  color: #666; /* Muted text for description */
  text-align: center;
}

/* Input and button styles */
input[type="number"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  transition: border-color 0.3s;
}

/* Input focus effect */
input[type="number"]:focus {
  border-color: #007bff;
  outline: none;
}

/* Specific styling for buttons */
button {
  padding: 12px 25px;
  font-size: 1.2em;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s;
}

/* Button hover effects */
button:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

/* Form layout */
form {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: left;
}

footer {
  width: 100%;
}

#termsModal .modal-body {
  text-align: left;
}


/* Responsive for small screens */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  h1 {
    font-size: 2.2em;
  }

  button {
    font-size: 1em;
  }
}
