@charset "utf-8";


.main-content {
    height: 800px;
    width: 1000px;
    margin: 0 auto;
}

.overlay-content h1{
    font-size:24px;
    text-transform:capitalize;
    padding:0 0 10px 0;
    border-bottom:1px solid #ededed;
    margin:0 0 15px 0;
    font-weight:normal;
    color:#db3119;
    text-align:center;
}

.overlay-bg {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    height:100%;
    width: 100%;
    cursor: pointer;
    z-index: 1000; /* high z-index */
    background: #000; /* fallback */
    background: rgba(0,0,0,0.75);
}
.overlay-content {
    display: none;
    background: #fff;
    padding: 1%;
    width: 50%;
    position: absolute;
    top: 5%;
    left: 44%;
    margin: 0 0 0 -20%; /* add negative left margin for half the width to center the div */
    cursor: default;
    z-index: 10001;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.9);
}

.overlay-content img{
    padding: 0 15px 15px 0; 
    width: 100%!important;
    height: auto!important;
}

.close-btn {
    cursor: pointer;
    border: 1px solid #fff;
    padding: 1% 2%;
    background:#c4161c  ; /* fallback */
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
    position: absolute;
    top: -5px;
    right: -5px;
    border-radius: 3px;
    color: #FFF

}
.close-btn:hover {
    background: #053f88 ;
}



/* media query for most mobile devices */
@media only screen and (max-width: 480px){

    .overlay-content {
        width: 88%;
        margin: 0 6%;
        left: 0;
    }
    .overlay-content img{
    padding: 0 10px 10px 0; 
    width: 100%!important;
    height: auto!important;
}
}

/* Popup Overlay */
    .popup-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.75);
        z-index: 99999;
        justify-content: center;
        align-items: center;
        animation: fadeIn 0.3s ease;
    }

    /* Popup Content */
    .popup-content {
        background: white;
        padding: 30px;
        border-radius: 12px;
        max-width: 550px;
        width: 92%;
        position: relative;
        box-shadow: 0 10px 40px rgba(0,0,0,0.3);
        animation: slideDown 0.4s ease;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Close Button */
    .close-btn {
        position: absolute;
        top: 10px;
        right: 15px;
        background: #ff0000;
        color: white;
        border: none;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        font-size: 22px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        z-index: 10;
        line-height: 1;
    }

    .close-btn:hover {
        background: #cc0000;
        transform: rotate(90deg);
    }

    /* Popup Header */
    .popup-header {
        text-align: center;
        margin-bottom: 20px;
        padding-right: 20px;
    }

    .popup-title {
        color: #333;
        text-decoration: none;
        font-size: 24px;
        font-weight: bold;
        border-bottom: 3px solid #007bff;
        padding-bottom: 8px;
        display: inline-block;
    }

    .popup-title:hover {
        color: #007bff;
    }

    /* Popup Body */
    .popup-body {
        text-align: center;
        margin: 15px 0;
    }

    .popup-image {
        width: 100%;
        max-width: 450px;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
        cursor: pointer;
    }

    .popup-image:hover {
        transform: scale(1.02);
    }

    /* Popup Footer */
    .popup-footer {
        text-align: center;
        margin-top: 20px;
    }

    .btn-view-all {
        display: inline-block;
        padding: 10px 30px;
        background: #007bff;
        color: white;
        text-decoration: none;
        border-radius: 6px;
        font-weight: 500;
        transition: all 0.3s ease;
        border: 2px solid #007bff;
    }

    .btn-view-all:hover {
        background: transparent;
        color: #007bff;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    }

    /* Animations */
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes slideDown {
        from {
            transform: translateY(-60px) scale(0.9);
            opacity: 0;
        }
        to {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
    }

    /* Responsive */
    @media (max-width: 600px) {
        .popup-content {
            padding: 20px;
            width: 95%;
        }
        
        .popup-title {
            font-size: 20px;
        }
        
        .close-btn {
            width: 32px;
            height: 32px;
            font-size: 18px;
            top: 8px;
            right: 10px;
        }
    }
