﻿/* Popup Styles */
.popup-container {
    display: none;
    position: fixed;
    top: 170px;
    left:initial;
    right : 10%;
    width: max-content;
    height: auto;
    background-color: rgb(229, 229, 229);
    padding: 30px;
    z-index: 10000;
}

.popup-content {
    position: relative;
    text-align: center;
}

    .popup-content img {
        max-width: 25%; /* Adjust the size as needed */
        height: auto;
        position: relative;
        z-index: 100000; /* Ensure the poster image is above everything else */
    }

.close-popup-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10001; /* Ensure the close button is above the poster */
}

/* Media Queries for Mobile and Tablet */
@media only screen and (max-width: 768px) {
    .popup-container {
        
        top: 170px;
        left:10%;
        right: 10%;
        width: 80%;
        height: auto; /* Adjust padding for smaller screens */
    }

    .popup-content img {
        max-width: 80%; /* Adjust the size as needed for smaller screens */
    }

    .close-popup-btn {
        top: 5px; /* Adjust top position for smaller screens */
        right: 5px; /* Adjust right position for smaller screens */
    }
}

#popupContainer {
    display: none; /* Initially hidden */
    opacity: 0; /* Fully transparent */
    transition: opacity 1s ease-in-out; /* Smooth transition for opacity */
}

    #popupContainer.fade-in {
        opacity: 1; /* Fully visible */
    }