@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}

.amr-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 999999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow:hidden; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.amr-modal-content {
    --title-height: 40px;
    background-color: #fefefe;
    margin: 5vh auto 5vh auto;
    position: relative;

    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 90vh;
    animation-name: animatetop;
    animation-duration: 0.5s;
}

@media screen and (max-width: 1300px) {
    .amr-modal-content {
        margin: 5vh 5vw 5vh 5vw;
        max-width: 90vw;
    }
}

@media screen and (max-width: 576px) {
    .amr-modal-content {
        margin: 0!important;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
    }
}

.amr-title {
    background-color: #000;
    text-align: center;
}

.amr-close {
    display: inline-block;
    color: #fff;
    height: 80px;
    padding: 0 10px;
    height: var(--title-height);
    line-height: var(--title-height);
    cursor: pointer;
}

.amr-content {
    width: 100%;
    height: calc(100% - var(--title-height));
}

.amr-frame {
    border: none;
    width: 100%;
    height: 100%;
}
