/* Reset + base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #e9f0ff, #f5f5f5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* padding: 30px 20px; */
}

/* Main container layout wrapper */
.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Container */
.container {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 480px;
  text-align: center;
  animation: fadeIn 0.6s ease-in-out;
}

/* Heading */
h1 {
  color: #007bff;
  font-size: 1.8rem;
  margin-bottom: 25px;
}

/* Input */
input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 4px #007bff40;
}

/* Button */
button {
  padding: 12px 20px;
  font-size: 16px;
  background-color: #007bff;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background-color: #0056b3;
  transform: scale(1.02);
}

/* Result box */
#result {
  margin-top: 20px;
  font-size: 17px;
  background: #f1f8ff;
  border: 1px solid #cce5ff;
  padding: 12px 15px;
  border-radius: 6px;
  color: #0056b3;
  word-wrap: break-word;
  transition: opacity 0.4s ease;
}

.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Footer */
.footer {
  width: 100%;
  text-align: center;
  padding: 18px 20px;
  background: linear-gradient(to right, #eef3fb, #f9f9f9);
  font-size: 0.95rem;
  color: #555;
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.6s ease-in-out;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile responsive */
@media (max-width: 500px) {
  .container {
    padding: 30px 20px;
  }

  h1 {
    font-size: 1.4rem;
  }

  button {
    font-size: 15px;
  }

  #result {
    font-size: 16px;
  }
}
