.modal {
    display: none;
    position: fixed;
    z-index: 1999 !important;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: auto;
    text-align: center;
    background: transparent;
    transform: scale(0.9);
    transition: transform 0.5s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.closemodal {
    color: white;
    float: right;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -30px;
}
