@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Indie+Flower&display=swap');

body {
    background: linear-gradient(135deg, #1a3c34, #f4d03f 80%, #fffbe7 100%);
    color: #fff;
    text-align: center;
    font-family: 'Amiri', serif;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: bgShift 18s infinite alternate;
}

@keyframes bgShift {
    0% { background: linear-gradient(135deg, #1a3c34, #f4d03f 80%, #fffbe7 100%); }
    50% { background: linear-gradient(135deg, #2e8b57, #ffd700 80%, #fffbe7 100%); }
    100% { background: linear-gradient(135deg, #0a2f27, #fffacd 90%, #ffd700 100%); }
}

body::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1600&q=80') no-repeat center/cover;
    opacity: 0.13;
    z-index: -1;
    animation: subtleFade 20s infinite;
}

@keyframes subtleFade {
    0%, 100% { opacity: 0.13; }
    50% { opacity: 0.22; }
}

.skyline {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 120px;
    background: url('../image/eid-adha-skyline.png') bottom center repeat-x;
    opacity: 0.88;
    z-index: 0;
    pointer-events: none;
}

h2 {
    font-size: 2.5rem;
    font-family: 'Great Vibes', cursive, 'Indie Flower', cursive;
    text-shadow: 0 0 15px #ffd700, 0 0 30px #ff9800;
    animation: glowPulse 2s infinite alternate;
    color: #ffd700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

@keyframes glowPulse {
    0% { text-shadow: 0 0 10px #ffd700; }
    100% { text-shadow: 0 0 25px #ff9800; }
}

.input-container {
    background: rgba(255, 255, 255, 0.18);
    padding: 32px 22px 22px 22px;
    border-radius: 28px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.18);
    width: 90%;
    max-width: 420px;
    position: relative;
    z-index: 2;
    margin-top: 7vh;
    margin-bottom: 2vh;
    transition: transform 0.3s ease;
}

.input-container:hover {
    transform: scale(1.04);
}

.input-container::before {
    content: "🕋🌙";
    position: absolute;
    font-size: 2.2rem;
    top: -18px;
    left: 18px;
    animation: moonSpin 7s infinite linear;
}

@keyframes moonSpin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

.input-container p {
    color: #222;
    font-size: 1.13rem;
    margin-bottom: 1.2rem;
    font-family: 'Indie Flower', cursive;
    letter-spacing: 0.02em;
}

.form-control {
    border-radius: 18px;
    padding: 12px;
    font-size: 16px;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.13);
    border: 2px solid #ffd700;
    background: rgba(255, 255, 255, 0.25);
    color: #1a3c34;
    font-family: 'Indie Flower', cursive;
    margin-bottom: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:hover, .form-control:focus {
    border-color: #2e8b57;
    box-shadow: 0 0 18px rgba(46, 139, 87, 0.18);
    outline: none;
}

.btn-warning {
    background: linear-gradient(90deg, #ffd700 0%, #ff9800 100%);
    color: #1a3c34;
    font-size: 17px;
    padding: 10px 28px;
    border-radius: 22px;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.18);
    transition: all 0.3s;
    font-family: 'Indie Flower', cursive;
    font-weight: 600;
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(90deg, #ff9800 0%, #ffd700 100%);
    color: #fff;
    transform: scale(1.09) rotate(2deg);
    box-shadow: 0 0 28px #ffd700;
}

.lantern-container {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
}

.wish-lantern {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    animation: floatLantern 6s linear forwards;
    z-index: 11;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lantern-img {
    width: 60px;
    height: 90px;
    background: url('../image/lantern.png') center/contain no-repeat;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 8px #ffd700);
    animation: lanternGlow 1.5s infinite alternate;
}

@keyframes lanternGlow {
    0% { filter: drop-shadow(0 2px 8px #ffd700); }
    100% { filter: drop-shadow(0 4px 18px #ff9800); }
}

.wish-text {
    background: rgba(255,255,255,0.92);
    border-radius: 1.2rem;
    padding: 0.5rem 1.2rem;
    color: #ff9800;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    box-shadow: 0 0.2rem 0.7rem rgba(255,215,0,0.08);
    margin-bottom: 0.5rem;
    max-width: 220px;
    word-break: break-word;
    border: 1.5px solid #ffd700;
}

@keyframes floatLantern {
    0% { bottom: 120px; opacity: 1; }
    80% { opacity: 1; }
    100% { bottom: 90vh; opacity: 0; }
}

.wish-counter {
    position: fixed;
    bottom: 18px;
    right: 24px;
    background: linear-gradient(90deg, #ffd700 0%, #ff9800 100%);
    color: #222;
    border-radius: 2rem;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 0.2rem 1rem rgba(255,215,0,0.13);
    z-index: 100;
    font-family: 'Indie Flower', cursive;
    letter-spacing: 0.04em;
}

.feedback-message {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    color: #1a3c34;
    background: rgba(255, 215, 0, 0.9);
    padding: 8px 15px;
    border-radius: 15px;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.9);
    font-family: 'Indie Flower', cursive;
    animation: fadeOut 2.5s ease-out forwards;
    z-index: 1;
}

@keyframes fadeOut {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-15px); }
}

/* Eid Stars */
.star {
    position: absolute;
    width: 7px;
    height: 7px;
    background: #fff;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: twinkle 1.8s infinite;
    opacity: 0.7;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; transform: scale(0.6);}
    50% { opacity: 1; transform: scale(1.2);}
}

/* Responsive Design */
@media (max-width: 768px) {
    h2 { font-size: 2rem; }
    .input-container { padding: 18px; max-width: 340px; }
    .form-control { font-size: 14px; padding: 8px; }
    .btn-warning { font-size: 14px; padding: 7px 15px; }
    .wish-counter { font-size: 0.98rem; padding: 0.5rem 1rem; right: 8px; }
    .lantern-img { width: 48px; height: 70px; }
}

@media (max-width: 480px) {
    h2 { font-size: 1.4rem; }
    .input-container { padding: 10px; max-width: 98vw; }
    .form-control { font-size: 12px; padding: 6px; }
    .btn-warning { font-size: 12px; padding: 5px 10px; }
    .wish-counter { font-size: 0.85rem; }
    .lantern-img { width: 36px; height: 50px; }
    .skyline { height: 60px; }
}