/* Full-screen modal */
.modal-dialog {
    max-width: 100%;
    height: 100%;
    margin: 0;
}

.modal-content {
    height: 100vh;
    background: url('https://source.unsplash.com/800x600/?sale,discount') center/cover no-repeat;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    flex-direction: column;
    padding: 20px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

#shopNowBtn {
    font-size: 14px;
    /* Smaller text */
    padding: 8px 16px;
    /* Reduced padding */
    border-radius: 5px;
    /* Slightly rounded corners */
    background-color: gold;
}

/* Image inside the flyer */
.flyer-image {
    width: 100%;
    /* Makes the image responsive */
    max-width: 400px;
    /* Limits the max size */
    border-radius: 10px;
    margin-bottom: 20px;
}

.discount-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 10px;
}

/* Confetti Styles */
.confetti {
    position: fixed;
    top: -10px;
    /* Start above the viewport */
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 1;
    pointer-events: none;
    z-index: 9999;
    /* Ensure confetti is above everything */
    animation: fall linear infinite;
}

/* Falling animation */
@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        /* Adds spin effect */
        opacity: 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .flyer-image {
        width: 80%;
        /* Larger on smaller screens */
    }
}