/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  animation: colorChange 15s infinite alternate;
  transition: background-color 0.5s ease;
  box-sizing: border-box;
  font-size: 1rem; /* Base font size for scalable units */
}

/* Live Color Changing Theme */
@keyframes colorChange {
  0% { background-color: #f9f9f9; }
  50% { background-color: #e9eaf0; }
  100% { background-color: #f0f3fc; }
}

/* Header and Footer Styles */
header, footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  padding: 1.5rem 2.5rem;
  height: 4rem;
  color: white;
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.2);
  animation: slideIn 1s ease-out;
  transition: padding 0.5s ease;
}

/* Header Animation */
@keyframes slideIn {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Logo and Title Styling */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 3rem;
  width: auto;
  margin-right: 1rem;
  cursor: pointer;
}

header h1, footer h1 {
  font-size: 1.5rem;
  text-shadow: 0.0625rem 0.0625rem 0.3125rem rgba(0, 0, 0, 0.3);
  margin: 0;
}

/* Main Container */
.container {
  width: 90%;
  margin: 2.5rem auto;
  padding: 1.25rem;
  border-radius: 0.625rem;
  background-color: white;
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease forwards;
  max-width: 75rem;
}

/* Main Content */
h2 {
  text-align: center;
  color: #333;
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  margin-bottom: 0.3125rem;
  font-size: 1rem;
  font-weight: bold;
}

input[type="text"], select {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 0.0625rem solid #ccc;
  border-radius: 0.25rem;
  transition: border-color 0.3s;
}

input[type="text"]:focus, select:focus {
  border-color: #6a11cb;
}

/* Button Styling */
button {
  background-color: #6a11cb;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  transition: background-color 0.3s, transform 0.3s;
  animation: pulse 1s infinite;
}

button:hover {
  background-color: #2575fc;
  transform: scale(1.05);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Result Box */
.result {
  margin-top: 1.25rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.result p {
  background-color: #f1f1f1;
  padding: 0.9375rem;
  border-radius: 0.25rem;
  border-left: 0.3125rem solid #6a11cb;
  margin-bottom: 0.625rem;
  animation: slideIn 0.5s ease;
}

/* Responsive Media Queries */
@media (max-width: 48rem) {
  header, footer {
    flex-direction: column;
    padding: 1rem;
    text-align: center;
    height: auto;
  }

  .logo-container img {
    margin-bottom: 0.625rem;
  }

  header h1, footer h1 {
    font-size: 1.25rem;
    margin: 0;
  }

  .container {
    padding: 1rem;
  }

  button {
    width: auto;
    padding: 0.625rem 1.875rem;
  }
}

/* Additional Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(1.25rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
