.delayed-modal {
    display: none;
    position: fixed;
    z-index: 102;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: transparent;
    backdrop-filter: blur(5px);
}

.delayed-modal-content {
    background-color: #ffffff;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    padding: 50px;
    max-width: 720px;
    max-height: 90vh;
    width: 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    overflow-y: auto;
}

.delayed-modal[aria-hidden="false"] {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
    z-index: 102;
}

.delayed-modal[aria-hidden="false"] .delayed-modal-content {
    animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

/* When the modal is hidden */
.delayed-modal[aria-hidden="true"] {
    animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.delayed-modal[aria-hidden="true"] .delayed-modal-content {
    animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.delayed-modal,
.delayed-modal-content {
    will-change: transform;
}

.delayed-modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.delayed-modal .close:hover,
.delayed-modal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.delayed-modal .close:hover svg,
.delayed-modal .close:focus svg {
    transform: unset;
}

.delayed-modal {
    animation-name: modalFadeIn;
    animation-duration: 0.5s;
}

.delayed-modal-inner {
    margin: 2rem 0;
}

@media screen and (max-width: 767px) {
    .delayed-modal-content {
        padding: 20px;
        max-width: 90%;
    }
}

@keyframes mmfadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes mmfadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes mmslideIn {
    from {
        transform: translateY(15%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes mmslideOut {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10%);
    }
}
