.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.5);
    z-index: 8888;

    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;

    width: 410px;
    height: 30%;
    background: #fff;
    
    border-width: 1px;
    border-style: solid;
    border-color: rgb(51, 51, 51);
    border-radius: 8px;

    font-weight: bold;
    font-size: 13px;

    transition: all 0.25s ease;
}

.modal-content {
    padding: 20px;
    text-align: center;
}

.botao:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

@media (max-width: 768px) {
    .modal {
        width: 80%;
        height: auto;      
        max-height: 80vh;  
        overflow-y: auto;
    }
}

.modal-close {
    color: #c00;
    position: absolute;
    top: 6px;
    right: 8px;

    background: transparent;
    border: none;

    font-weight: bold;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;       
    padding: 4px 8px; 
}

.modal-close:hover {
    color: rgb(255, 0, 0);
}

body.modal-open {
    overflow: hidden;
}