/* BASE STYLES */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: url('background.jpg') no-repeat center center fixed;
  background-size: cover;
  background-color: #121212;
  color: #e0e0e0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(16px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: env(safe-area-inset-top);
}

/* CONTAINER */
.container {
  flex: 1;
  padding: 24px 12px 80px;
  border-radius: 24px;
  max-width: 600px;
  min-width: 358px;
  width: 100%;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

/* RESULTS */
#results {
  min-height: 300px;
  line-height: 1.7;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

/* BUTTON */
button {
  background: #8bb50b;
  color: white;
  border: none;
  border-radius: 24px;
  padding: 16px 24px;
  font-size: clamp(20px, 4vw, 36px);
  font-weight: 500;
  cursor: pointer;
  width: 90%;
  max-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease, transform 0.1s ease;
}
button:active {
  background: #6d9108;
  transform: scale(0.97);
}

/* LINKS */
a {
  color: #90caf9;
  text-decoration: none;
}

/* HEADER */
.app-header {
  background-color: #8bb50b;
  color: white;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  padding: calc(16px + env(safe-area-inset-top)) 0 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 50;
}
.app-header.shrink {
  padding: 12px 0;
  font-size: 18px;
}
.logo {
  font-size: 32px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* FOOTER */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #8bb50b;
  color: white;
  padding: 16px 12px 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.15);
  z-index: 50;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* FOOTER BUTTONS */
.footer-btn {
  width: 56px;
  height: 56px;
  background: transparent;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.1s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.4s ease-out forwards;
  will-change: transform, opacity;
}
.footer-btn:nth-child(1) {
  animation-delay: 0.2s;
}
.footer-btn:nth-child(2) {
  animation-delay: 0.35s;
}
.footer-btn:nth-child(3) {
  animation-delay: 0.5s;
}
.footer-btn:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
}
.footer-btn i {
  pointer-events: none;
}
.footer-btn:hover {
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

/* SPACER (OPTIONAL) */
.footer-spacer {
  width: 28px;
  height: 56px;
}

/* FOOTER ANIMATION */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}