/* ------------------- Global Reset and Fonts ------------------- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #0b0f2c; /* गहरा नीला/पर्पल बैकग्राउंड */
    background-image: linear-gradient(135deg, #1c1d48 0%, #0b0f2c 100%);
    margin: 0;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}

.container {
    background-color: #1a1e3b;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px #ffd700; /* आकर्षक शैडो */
    max-width: 500px;
    width: 95%;
    text-align: center;
    border: 2px solid #ffcc00;
}

/* ------------------- Welcome Section Styles (New) ------------------- */
.welcome-section {
    background-color: #2b305e; 
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.festival-heading {
    font-family: 'Teko', sans-serif;
    color: #ffcc00;
    font-size: 2.2em;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.8);
    margin-bottom: 5px;
}

.sub-heading {
    color: #b0c4de;
    font-size: 1.1em;
    margin-bottom: 15px;
}

/* ------------------- Title and Views ------------------- */
.title-text {
    font-family: 'Teko', sans-serif;
    color: #ffcc00;
    font-size: 1.8em;
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.7);
    margin-bottom: 15px;
}

.views-section {
    margin: 10px 0 20px 0;
    font-weight: 700;
    color: #4CAF50;
    font-size: 1.1em;
    background-color: #262a4d;
    padding: 8px;
    border-radius: 5px;
}

/* ------------------- Input Form ------------------- */
.name-input-form hr {
    border-color: rgba(255, 204, 0, 0.3);
    margin: 20px 0;
}

.name-input-form input[type="text"] {
    width: calc(100% - 22px);
    padding: 12px;
    margin: 15px 0 10px 0;
    border: 2px solid #ffcc00;
    border-radius: 8px;
    font-size: 1.1em;
    background-color: #33395c;
    color: #fff;
    text-align: center;
    transition: border-color 0.3s;
}

.name-input-form input[type="text"]:focus {
    border-color: #fff;
    box-shadow: 0 0 10px #ffcc00;
    outline: none;
}

/* ------------------- Buttons ------------------- */
.btn-create, .share-options button {
    background-color: #e91e63; 
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 10px;
    box-shadow: 0 5px #c2185b;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-create:active, .share-options button:active {
    transform: translateY(2px);
    box-shadow: 0 3px #c2185b;
}

.big-btn {
    padding: 15px 30px !important; 
    font-size: 1.2em !important;
}

.whatsapp-share {
    background-color: #25d366 !important; 
    box-shadow: 0 5px #1eac4f !important;
}
.whatsapp-share:active {
    box-shadow: 0 3px #1eac4f !important;
}

/* ------------------- Greeting Card ------------------- */
.greeting-card {
    border: 8px solid #ffcc00; 
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
    
    /* Animation: Fade In (शुरू में ट्रांसपेरेंट) */
    opacity: 0; 
    animation: fadeIn 1s ease-out 0.2s forwards; 
}

.greeting-card img {
    width: 100%;
    height: auto;
    display: block;
}

.message {
    background-color: #e91e63; /* गुलाबी बैकग्राउंड */
    color: white;
    padding: 18px;
    border-top: 5px solid #ffcc00;
}

#personalized-message {
    margin: 0;
    font-size: 1.3em;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* ------------------- Ad Slots ------------------- */
.ad-slot {
    width: 100%;
    max-width: 500px;
    margin: 15px 0;
    padding: 0; 
    text-align: center;
}
.ad-slot img {
    width: 100%;
    /* Max-width 468px या 500px कंटेनर में फिट होने के लिए */
    max-width: 500px; 
    height: auto;
    display: block;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* ------------------- Animations ------------------- */

/* 1. Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); 
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Pulse Animation */
@keyframes pulsate {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); box-shadow: 0 0 30px rgba(255, 204, 0, 0.8); } 
    100% { transform: scale(1); }
}

/* 3. Pulse क्लास लागू करें (JS द्वारा जोड़ा जाएगा) */
.greeting-card.pulsate {
    animation: pulsate 0.5s ease-in-out;
}
/* ------------------- Greeting Card Media Styling ------------------- */

/* यह सुनिश्चित करता है कि IMG और VIDEO दोनों 100% चौड़ाई लें */
.greeting-card img, 
.greeting-card video { 
    width: 100%;
    height: auto;
    display: block;
    /* वीडियो के लिए अतिरिक्त स्टाइल: */
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* अगर आप GIF को इमेज से अलग स्टाइल करना चाहते हैं, तो आप media_type के आधार पर क्लास जोड़ सकते हैं */
/* ad-slot के अंदर के वीडियो एलिमेंट को स्टाइल करें */
.ad-slot video { 
    width: 100%;
    height: auto;
    display: block;
    max-width: 500px; /* कंटेनर के साइज़ से मैच करें */
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* अगर आपने a टैग को wrapper बनाया है, तो उसे भी ब्लॉक लेवल का बना दें */
.ad-video-link {
    display: block;
    width: 100%;
    /* ensure link wrapper fits video */
}
.navigation-buttons-section {
    margin: 30px 0;
    padding: 20px;
    background-color: #2b305e;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.navigation-buttons-section .title-text {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 कॉलम का ग्रिड */
    gap: 10px; /* बटनों के बीच की जगह */
}

/* 450px से बड़े स्क्रीन पर 3 कॉलम दिखाएँ */
@media (min-width: 450px) {
    .button-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.nav-button {
    text-decoration: none;
    background-color: #5d638c; /* हल्का नीला बैकग्राउंड */
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 3px #4b4f70;
}

.nav-button:hover {
    background-color: #4b4f70;
}

.nav-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px #4b4f70;
}

/* वर्तमान में सक्रिय बटन के लिए स्टाइल */
.active-nav-button {
    background-color: #ffcc00 !important; /* गोल्डन हाइलाइट */
    color: #1a1e3b !important;
    box-shadow: 0 3px #e5b800 !important;
    border: 1px solid #1a1e3b;
}
/* ------------------- FOOTER STYLES ------------------- */
.footer {
    width: 100%;
    max-width: 600px; 
    padding: 15px 0;
    text-align: center;
    color: #b0c4de; /* हल्का नीला/सिल्वर टेक्स्ट */
    font-size: 0.9em;
    margin-top: 30px; 
}

.footer p {
    margin: 0;
}

.brand-name {
    color: #ffcc00; /* गोल्डन हाइलाइट */
    font-weight: bold;
}

.creator-name {
    color: #00bcd4; /* हल्का आसमानी नीला रंग */
    font-weight: bold;
}
/* ------------------- NAVIGATION BUTTONS STYLES ------------------- */
.navigation-buttons-section {
    margin: 30px 0;
    padding: 20px;
    background-color: #2b305e; /* गहरा नीला/पर्पल बैकग्राउंड */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.navigation-buttons-section .title-text {
    font-size: 1.5em;
    color: #ffcc00; /* गोल्डन कलर */
    margin-bottom: 20px;
    text-shadow: none; /* यहाँ टाइटल शैडो हटा दें */
}

.button-grid {
    display: grid;
    /* छोटे स्क्रीन पर 2 कॉलम */
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px; 
}

/* 450px से बड़े स्क्रीन पर 3 कॉलम दिखाएँ */
@media (min-width: 450px) {
    .button-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.nav-button {
    /* सामान्य बटन स्टाइल */
    display: block;
    text-decoration: none;
    background-color: #4a5078; /* हल्का नीला बैकग्राउंड */
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 3px #3c4161;
}

.nav-button:hover {
    background-color: #5f6694; /* होवर पर थोड़ा गहरा रंग */
}

.nav-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px #3c4161;
}

/* वर्तमान में सक्रिय (Active) बटन के लिए स्टाइल */
.active-nav-button {
    background-color: #ffcc00 !important; /* गोल्डन हाइलाइट */
    color: #1a1e3b !important; /* गहरे रंग का टेक्स्ट */
    box-shadow: 0 3px #e5b800 !important;
    border: 1px solid #1a1e3b;
    font-weight: 700;
}