#modalBG {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(5px) saturate(0.5) contrast(0.75);
    -webkit-backdrop-filter: blur(5px) saturate(0.5) contrast(0.75);
    background-color: rgba(0, 0, 0, .5);
    z-index: 20;
    animation: fadein .15s ease-in;
    animation-iteration-count: 1;
}

#modalBG #modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #14213D;
    background-image: linear-gradient(to bottom right, #14213D, rgb(10, 10, 30));
    border-radius: 25px;
    box-shadow: 5px 10px 10px rgb(0 0 0 / 33%);
    max-height: 90vh;
    max-width: 90%;
    min-width: 60%;
    display: inline-block;
    padding-right: 20px;
    padding-left: 20px;
    padding-top: 15px;
    padding-bottom: 10px;
    font-size: 16px;
    padding: 15px;
    animation: fadein .35s ease-in;
    animation-iteration-count: 1;
}

#modalBG .modalFadeOut {
    transition: .1s all;
    opacity: 0;
}

#modalBG #modalText {
    color: #fff;
    text-align: center;
    display: inline-block;
    text-shadow: 2px 2px 6px rgb(0 0 0 / 42%);
    overflow: auto;
    max-height: 86vh;
    width: 100%;
    padding: 15px;
    font-weight: normal;
    scroll-behavior: smooth;
}

#modalBG #modalText iframe {
    min-width: 80vw;
    height: 81vh;
    border-radius: 25px;
    box-shadow: 5px 10px 10px rgb(0 0 0 / 33%);
    border-style: none;
}

#modalBG #exit {
    text-align: center;
    position: fixed;
    top: -10px;
    left: -10px;
    background-color: dimgray;
    background-image: linear-gradient(to bottom right, indianred, dimgray);
    border-radius: 50%;
    width: 33px;
    height: 33px;
    text-decoration: none;
    color: white;
    cursor: pointer;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, .42);
    transition: .33s all;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, .33);
    margin: 0;
    z-index: 22;
}

#modalBG #exit:hover {
    background-color: crimson !important;
    background-image: linear-gradient(to bottom right, crimson, darkred) !important;
}

#modalBG #x {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: -1px;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, .42);
}

#modalBG #modalText::-webkit-scrollbar-thumb {
    border-radius: 7px;
}