﻿/*Modal*/

.modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.gray-background {
    position: fixed;
    z-index: 50;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center
}


@media (max-aspect-ratio:1/1) {
    /*Mobile*/
    .modal-adapt {
        width: 80vw;
        height: 80vh;
        overflow-y: scroll;
    }
}

/* Mobile panel (hides non selected tabs)*/
@media (max-width: 600px) {
    .modal-position {
        margin-top: auto;
        margin-bottom: 21px;
        animation: modal-slideIn 0.5s ease-out;
    }

    @keyframes modal-slideIn {
        from {
            margin-bottom: -50vh;
        }

        to {
            margin-bottom: 21px;
        }
    }

    .gray-background {
        position: fixed;
        z-index: 50;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center
    }
}

.popoverSub {
    top: anchor(top) !important;
    right: anchor(start) !important;
    top: 10%; /* Fallback (Firefox) */
    right: 10%; /* Fallback (Firefox) */
}

.popoverSub::backdrop {
    background-color: transparent; /* Semi-transparent background */
}