@import url('https://fonts.googleapis.com/css2?family=Amiri&display=swap');

body {
  margin: 0;
  font-family: 'Amiri', serif;
  background: radial-gradient(circle at center, #001a33, #000814);
  overflow: hidden;
  color: gold;
  text-align: center;
  height: 100vh;
}

/* Soft glowing background animation */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
  animation: glow 6s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes glow {
  from { opacity: 0.4; transform: scale(1); }
  to { opacity: 0.9; transform: scale(1.2); }
}

.container {
  position: relative;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
  padding: 20px;
}

.title {
  font-size: 80px;
  margin: 0;
  color: gold;
  text-shadow: 0 0 20px #ffbf00, 0 0 40px #ffd700;
}

.subtitle {
  font-size: 26px;
  color: #f7d774;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

/* Search box */
.search-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

input {
  width: 60%;
  padding: 10px;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  outline: none;
  text-align: right;
}

button {
  background: linear-gradient(90deg, #ffcc00, #ff9900);
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 18px;
  color: #000;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: linear-gradient(90deg, #ffdf00, #ffaa00);
  transform: scale(1.05);
}

/* Response box */
.response-box {
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 15px;
  padding: 20px;
  width: 80%;
  margin: auto;
  min-height: 120px;
  color: #fff7d4;
  font-size: 20px;
  line-height: 1.6;
}

/* Floating lanterns */
.lantern {
  position: absolute;
  width: 40px;
  height: 80px;
  background: radial-gradient(circle, #ffcc00 30%, #cc9900 70%);
  border-radius: 50% 50% 0 0;
  box-shadow: 0 0 30px 10px rgba(255,215,0,0.3);
  animation: floatLantern 8s ease-in-out infinite;
}

.lantern1 { left: 10%; animation-delay: 1s; }
.lantern2 { right: 10%; animation-delay: 3s; }

@keyframes floatLantern {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(-20px); opacity: 1; }
}

@media (max-width: 600px) {
  .title { font-size: 60px; }
  .subtitle { font-size: 20px; }
  input { width: 70%; font-size: 16px; }
  button { font-size: 16px; }
}
