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

@font-face {
    font-family: 'Arabic Ramadan';
    src: url('../fonts/ArabicRamadanDisplay.woff2') format('woff2'),
        url('../fonts/ArabicRamadanDisplay.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.taranaa-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.popup-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    color: var(--popup-text-color, #333);
    overflow: hidden;
    height: 500px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: #fff;
    background-size: cover;
    background-position: center center;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    color: var(--popup-bg-color, #000);
}

.popup-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Lanterns */
.lantern {
    position: absolute;
    width: 40px;
    height: 60px;
    background: #4A90E2;
    border-radius: 20px;
    animation: float 3s infinite ease-in-out;
}

.lantern::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 10px;
    background: #2C3E50;
    border-radius: 5px 5px 0 0;
}
.lantern::after {
    content: "";
    background: #2C3E50;
    height: 150px;
    width: 1px;
    position: absolute;
    left: 50%;
    top: -150px;
}
.lantern-1 { left: 10%; top: 20%; animation-delay: 0s; }
.lantern-2 { left: 30%; top: 15%; animation-delay: 0.5s; }
.lantern-3 { right: 30%; top: 25%; animation-delay: 1s; }
.lantern-4 { right: 10%; top: 18%; animation-delay: 1.5s; }

/* Stars */
.star {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #FFD700;
    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 2s infinite;
}

.star-1 { left: 15%; top: 25%; animation-delay: 0s; }
.star-2 { left: 45%; top: 10%; animation-delay: 0.3s; }
.star-3 { right: 45%; top: 15%; animation-delay: 0.6s; }
.star-4 { right: 15%; top: 20%; animation-delay: 0.9s; }

/* Moons */
.moon {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #FFD700;
    border-radius: 50%;
    animation: glow 3s infinite;
}

.moon-1 { left: 25%; top: 30%; animation-delay: 0s; }
.moon-2 { left: 50%; top: 20%; animation-delay: 1s; }
.moon-3 { right: 25%; top: 25%; animation-delay: 2s; }

/* Popup Text */
.popup-text {
    position: relative;
    z-index: 1;
}

.countdown-container {
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.countdown-number {
    position: relative;
    font-family: 'Arabic Ramadan';
}
.countdown-number:after {
    position: absolute;
    content: "";
    left: 50%;
    top: 50%;
    width: calc(100% - 30px);
    background: #F594854D;
    height: calc(100% - 35px);
    z-index: 4;
    transform: translate(-50%, -50%);
    border-radius: 8px;
}
.popup-text h2, .countdown-text {
    font-size: 32px;
    margin: 0;
    line-height: 44px;
    font-weight: 400;
    color: inherit;
    position: relative;
    font-family: "Berkshire Swash", serif;
    padding: 10px 20px;
}
.popup-text h2:after, .countdown-text:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--popup-text-color, #fff);
    border-radius: 8px;
    opacity: .1;
}

.start-text {
    font-size: 20px;
    margin-top: 32px;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 22px;
}

.popup-btn {
    background: var(--popup-bg-color, #000);
    color: #fff;
    padding: 10px 20px;
    font-family: 'Roboto Slab', serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    border-radius: 5px;
    margin-bottom: 50px;
}
.countdown-container ~ .popup-btn {
    margin-bottom: 0;
}
/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px #FFD700; }
    50% { box-shadow: 0 0 20px #FFD700; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-content {
        padding: 20px;
        min-height: 400px;
        height: auto;
    }
    .popup-text h2, .countdown-text {
        font-size: 20px;
        line-height: 1.2;
        padding: 10px 15px;
    }
    .start-text {
        font-size: 16px;
        margin-top: 15px;
        line-height: 22px;
    }

}
@media (max-width: 455px) {
    .popup-text h2, .countdown-text {
        font-size: 16px;
        line-height: 1.2;
        padding: 7px 10px;
    }
   
    .popup-content {
        padding: 20px 10px 30px;
    }
    .countdown-container {
        margin: 30px 0 15px;
    }
    
}
@media (max-width: 355px) {
    .popup-text h2, .countdown-text {
        font-size: 16px;
        padding: 5px 5px;
    }
    .start-text {
        font-size: 14px;
        line-height: 18px;
    }
    .popup-content {
        min-height: 365px;
    }
}
@media (max-width: 330px) {
    .popup-text h2, .countdown-text {
        font-size: 14px;
    }
}