
.modal-content {
    background-color: #fff;
    margin: 8% auto;
    padding: 20px;
    border: 1px solid #641d79;
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    opacity: 0;
    animation: fadeIn3 0.3s forwards; 
}

.modal-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.modal-left {
    flex: 1;
    padding-right: 20px;
}

.modal-left img {
    width: 100%;
    border-radius: 8px;
}


.modal-right {
    flex: 2;
}

.modal-right h4 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}

.modal-right p {
    text-align: justify;
    font-size: 16px;
    line-height: 1.5;
}


.close {
    color: #f46f22;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close:hover,
.close:focus {
    color: #641d79;
    text-decoration: none;
    cursor: pointer;
}


@keyframes fadeIn3 {
    0% {
        opacity: 0;
        transform: scale(0.8); 
    }
    100% {
        opacity: 1;
        transform: scale(1); 
    }
}


.modal-content.hide {
    animation: fadeOut 0.3s forwards; 
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}






@media (max-width: 768px) {
    .modal-inner {
        flex-direction: column;
        align-items: center;
    }

    .modal-content {
 
        width: 100%;
        margin-top: 3%;
        max-height: 98%;
        overflow-y: auto;/* Enable scrolling if the content is too long */
    }

    .modal-left,
    .modal-right {
        padding: 10px;
        text-align: center;
    }

    .modal-left img {
        width: 80%;
    }
}
