/* Base Page Layout */
body {
  margin: 0;
  padding: 0;
  font-family: 'Quicksand', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-image: url('https://images.pexels.com/photos/196664/pexels-photo-196664.jpeg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  background-color: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

#instructions {
  margin: 1.5rem auto 1rem auto;
  font-size: 1rem;
  background-color: #ff99cc;
  border-radius: 10px;
  padding: 1rem 2rem;
  max-width: 500px;
}

/* Typography */
h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #cc0066;
  text-shadow: 1px 1px #fff;
}

label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
  color: #99004d;
  font-family: 'Quicksand', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Inputs and Button */
input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 2px solid #ff99cc;
  border-radius: 8px;
  font-size: 1rem;
}

button#calculate {
  margin-top: 1.5rem;
  background-color: #ff3399;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button#calculate:hover {
  background-color: #e60073;
}

/* Result Display */
#result {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #ffe6f0;
  border-radius: 12px;
  font-size: 1.5rem;
  color: #cc0066;
  display: none;
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Footer */
footer{
    font-family: 'Quicksand', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Responsive Design */
@media (max-width: 480px) {
  main {
    padding: 1.25rem;
    width: 90%;
  }

  h1 {
    font-size: 1.5rem;
  }

  input[type="text"], button#calculate {
    font-size: 0.95rem;
  }

  #result {
    font-size: 1.2rem;
  }
}
