﻿.mst-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.mst-modal-nonoverlay {
    position: fixed;
    top: calc(50% - 70px);
    left: calc(20% - 220px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    max-width: 50%;
}

.mst-modal-nonoverlayCenter {
    position: fixed;
    top: calc(50% - (55vh / 2));
    left: calc(50% - 220px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    max-width: 50%;
}

.mst-modal-container {
    padding: 30px;
    margin: 0px 5px;
    max-width: 800px;
    max-height: 95vh;
    border-radius: 3vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.mst-modal-transparent {
    background-color: transparent;
    border-color: transparent;
}

.mst-modal-containerSmall {
    padding: 30px;
    margin: 0px 5px;
    max-width: 800px;
    max-height: 55vh;
    border-radius: 3px;
    overflow-y: auto;
    box-sizing: border-box;
}

    .mst-modal-container img, .mst-modal-containerSmall img {
        max-width: 100%;
    }

.mst-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mst-modal-headerCenter {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mst-modal-title {
    margin-top: 0;
    margin-bottom: 0;
    /*font-weight: 600;
    color: #00449e;*/
    box-sizing: border-box;
}


.mst-modal-content {
    margin-top: 2rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    /*color: rgba(0,0,0,.8);*/
}

.mst-modal-linkInput {
    margin-top: 2rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    /*color: rgba(0,0,0,.8);*/
}

.mst-modal-linkInput {
    width: 100%;
    border-radius: 3px;
    border-width: 1px;
    padding: 0px 10px;
    padding-left: 10px;
    word-break: break-word;
}

    .mst-modal-linkInput:focus {
        outline: none;
        padding-left: 10px;
        z-index: 1;
    }

.mst-modal {
    display: none;
}

    .mst-modal.is-open {
        display: block;
    }

/*SrollBar*/
.mst-modal-container::-webkit-scrollbar {
    width: 14px;
    height: 18px;
}

.mst-modal-container::-webkit-scrollbar-thumb {
    height: 6px;
    border: 4px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
    -webkit-border-radius: 7px;
    background-color: rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: inset -1px -1px 0px rgba(0, 0, 0, 0.05), inset 1px 1px 0px rgba(0, 0, 0, 0.05);
}

.mst-modal-container::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}

.mst-modal-container::-webkit-scrollbar-corner {
    background-color: transparent;
}

@media all and (max-width:1366px) { /* XL */
    .mst-modal-nonoverlay {
        left: calc(25% - 220px);
    }
}

@media all and (max-width:1024px) { /* LG */
    .mst-modal-nonoverlay {
        left: calc(35% - 220px);
    }
}

@media all and (max-width:640px) { /* MD */
    .mst-modal-nonoverlay {
        top: calc(65% - 70px);
        left: calc(-2.5% - 0px);
        display: block;
        max-width: 105%;
        width: 105%;
    }

        .mst-modal-nonoverlay .mst-modal-header {
            display: block;
        }

        .mst-modal-nonoverlay .mst-modal-container.ms-depth-4 {
            box-shadow: none;
        }
}

@media all and (max-width:480px) { /* SM */
    .mst-modal-nonoverlay {
        top: calc(65% - 70px);
        left: calc(-2.5% - 0px);
        display: block;
        max-width: 105%;
        width: 105%;
    }

        .mst-modal-nonoverlay .mst-modal-header {
            display: block;
        }

        .mst-modal-nonoverlay .mst-modal-footer .ms-Button {
            width: 100%;
        }

        .mst-modal-nonoverlay .mst-modal-container.ms-depth-4 {
            box-shadow: none;
        }
}
