.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;

    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: -15px;      
    right: -15px;    
    width: 40px;     
    height: 40px;    
    font-size: 20px; 
    color: white;    
    background-color: #6600ff; 
    border-radius: 50%; 
    cursor: pointer;
    transition: all 0.3s; 
    line-height: 40px;   
    text-align: center;   
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.5); 
    border: 2px solid white; 
}

.close-btn:hover {
    background-color: #ff1744;
    transform: scale(1.1);   
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.7); 
}

.modal-image {
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.modal-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    padding-top: 10px; 
}