/* ----------------------------
   Base Styles
---------------------------- */
body {
  background: #222;
  font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui,
    helvetica neue, helvetica, Ubuntu, roboto, noto, arial, sans-serif;
  color: hotpink;
}

/* Main content layout: centers everything vertically and horizontally */
main {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

/* ----------------------------
   Typography
---------------------------- */
h1 {
  font-size: 3rem;
  margin-bottom: 2.5rem; /* Space below the heading */
}

p {
  font-size: 1.3rem;
}

/* ----------------------------
   Form Elements
---------------------------- */
form {
  margin-bottom: 2rem; /* Space between form and result */
}

label {
  font-size: 1.5rem;
  margin-right: 1rem;
  text-align: center;
}

/* Shared styles for <select> and <button> */
select,
button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  font-size: 1rem;
  background: #888;
  padding: 0.8rem 1rem;
  color: white;
  cursor: pointer;
  border-radius: 8px;
  margin-right: 1rem;
}

/* Specific button styling */
button {
  width: 160px;
  background: hotpink;
  color: #222;
  font-weight: bold;
}

button:hover {
  background: #ff89c0;
}

/* ----------------------------
   Result Section
---------------------------- */
div.result {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-top: 1.5rem;
  padding: 0 1rem;
  animation: fadeIn 0.4s ease-in;
}

/* Animation for fading in result */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ----------------------------
   Footer
---------------------------- */
#footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.95rem;
  color: hotpink;
}

#footer p {
  font-size: 1rem;
}

#footer nav {
  margin-top: 0.5rem;
}

#footer nav a {
  margin: 0 10px;
  text-decoration: none;
  color: hotpink;
  transition: color 0.3s ease;
}

#footer nav a:hover {
  color: #ff89c0;
}

/* Global anchor styling */
a {
  color: hotpink;
}

/* ----------------------------
   Mobile Responsive Styles
---------------------------- */
@media (max-width: 600px) {
  label {
    display: block;
    margin-bottom: 1rem;
  }

  select,
  button {
    width: 100%;
    max-width: 300px;
    padding: 0.8rem;
    text-align: center;
  }

  form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}
