/*
Version : 5
*/

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 20%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: red;
    float: right;
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 479px) {
    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .modal-content {
        width: 80%;
        margin: 15% auto;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .modal-content {
        width: 60%;
        margin: 10% auto;
    }
}

@media (min-width: 1024px) {
    .modal-content {
        width: 40%;
        margin: 8% auto;
    }
}