.btn__modal{
    padding: .5rem 1rem;
    border-radius: 3px;
    cursor: pointer;
}

.modal-btn {
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
}



/* Modal */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
    overflow: auto;
    display: none;
    justify-content: center;
    align-items: flex-start;

}

.modal.modal-show  {
    animation: fadeIn 0.5s ease-in-out forwards;
}

.modal.modal-hide {
    animation: fadeOut 0.35s ease-in-out forwards;
}






.modal-content  {
    position: relative;
    background-color: #fff;
    width: 600px;
    max-width: 95%;
    max-height: 90%;
    margin: 2rem;
    padding: 2rem;
    border-radius: .25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    overflow: auto;
}

.modal-content__mail {
    width: 90%;
}

.modal.modal-show .modal-content {
    animation: fadeInDown 0.5s ease-in-out forwards;
}

.modal.modal-hide .modal-content {
    animation: fadeOutUp 0.35s ease-in-out forwards;
}

.modal-footer {
    margin-top: 2rem;
}

/* Animations */

@keyframes fadeIn{
    0%{
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0%{
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}


@keyframes fadeInDown {
    0%{
        opacity: 0;
        transform: translateY(-10rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutUp {
    0%{
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10rem);
    }
}


.modal-content h1 {
    text-align: center;
    font-size: 2rem;
}

.modal-close {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.75rem;
    font-weight: bold;
    padding: 0 0.75rem;
    color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    user-select: none;
}

.modal-close:hover, .modal-close:focus {
    color: rgba(0, 0, 0, 0.5);
}

