﻿.modal {
    visibility: hidden;
    position: fixed;
    z-index: 11111;
    left: 0;
    top: 0;
    width: 100lvw;
    height: 100lvh;
    overflow: auto;
    background-color: rgba(16,16,16,0.7);
    backdrop-filter: blur(2px);
}

.modal-content {
    width: 60%;
    padding: 1rem;
}

@media (width < 900px) {
    .modal-content {
        width: 90%;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-fadein{
    animation: modal-fadein-ani 100ms forwards linear;
}
@keyframes modal-fadein-ani{
    0%{
        transform: translateY(-5rem);
        opacity: 0;
    }
    100%{
        transform: translate(0rem);
        opacity: 1;
    }
}

.modal-fadeout{
    animation: modal-fadeout-ani 100ms forwards linear;
}
@keyframes modal-fadeout-ani{
    0% {
        transform: translate(0rem);
        opacity: 1;
        visibility: visible;
    }
    100% {
        transform: translateY(5rem);
        opacity: 0;
        visibility: hidden;
    }
}