﻿@media screen and (min-width:1000px){
    .ShowDialog_Big {
        display: block;
        position: fixed;
        top: calc(50vh - 42.5vh);
        left: calc(50vw - 25vw);
        width: 50vw;
        min-width:860px;
        height: 85vh;
        background-color: white;
        border: none;
        box-shadow: rgba(126,126,126,0.5) 0px 0px 15px;
        z-index: 9999;
        border-radius: 10px;
    }

    .ShowDialog1 {
        display: block;
        position: fixed;
        top: calc(50vh - 25vh);
        left: calc(50vw - 23vw);
        width: 46vw;
        min-width: 860px;
        height: 50vh;
        background-color: white;
        border: none;
        box-shadow: rgba(126,126,126,0.5) 0px 0px 15px;
        z-index: 9998;
        border-radius: 10px;
    }

    .ShowDialog2 {
        display: block;
        position: fixed;
        top: calc(50vh - 33.5vh);
        left: calc(50vw - 25vw);
        width: 55vw;
        min-width: 860px;
        height: 67vh;
        background-color: white;
        border: none;
        box-shadow: rgba(126,126,126,0.5) 0px 0px 15px;
        z-index: 9999;
        border-radius: 10px;
    }

    .MessageDialog {
        width: 25vw;
        min-width: 0px;
        height: max-content;
        min-height:140px;
    }
        .MessageDialog.open {
            animation: MessageDialogOpen 0.3s ease-in-out forwards;
            animation-delay: 0s;
        }
        .MessageDialog.closed{
            display:none;
        }

    .MessageIcon {
        width: 15%;
        height: auto;
        margin: auto 7%;
    }

    .CrossBtn {
        margin: 0 0 auto 85%;
        font-size: 40px;
        cursor: pointer;
    }

    @keyframes MessageDialogOpen {
        from {
            right:30px;
            top: -100px;
            opacity:0;
        }

        to {
            right: 30px;
            top: 30px;
            opacity: 1;
        }
    }

    @keyframes ShowDialog_BigClose {
        from {
            right: 30px;
            top: 30px;
        }

        to {
            right: 30px;
            top: -100px;
            opacity: 0;
            display: none;
            z-index: -999;
        }
    }
}

@media screen and (max-width:1000px){
    .ShowDialog_Big {
        display: block;
        position: fixed;
        top: calc(50vh - 45vh);
        left: calc(50vw - 45vw);
        width: 90vw;
        height: 90vh;
        background-color: white;
        border: none;
        box-shadow: rgba(126,126,126,0.5) 0px 0px 15px;
        z-index: 9999;
        border-radius: 10px;
    }

    .ShowDialog1 {
        display: block;
        position: fixed;
        top: calc(50vh - 45vh);
        left: calc(50vw - 45vw);
        width: 90vw;
        height: 65vh;
        background-color: white;
        border: none;
        box-shadow: rgba(126,126,126,0.5) 0px 0px 15px;
        z-index: 9999;
        border-radius: 10px;
    }

    .ShowDialog2 {
        display: block;
        position: fixed;
        top: calc(50vh - 33.5vh);
        left: calc(50vw - 45vw);
        width: 90vw;
        height: 67vh;
        background-color: white;
        border: none;
        box-shadow: rgba(126,126,126,0.5) 0px 0px 15px;
        z-index: 9999;
        border-radius: 10px;
    }

    .MessageDialog {
        width: 90vw;
        min-width: 0px;
        height: max-content;
        min-height: 100px;
    }

        .MessageDialog.open {
            animation: MessageDialogOpen 0.5s ease-in-out forwards;
            animation-delay: 0s;
        }

        .MessageDialog.closed {
            display: none;
        }

    .MessageIcon {
        width: 10%;
        height: auto;
        margin: auto 7%;
    }

    .CrossBtn {
        margin: 0 10px auto calc(90% - 10px);
        font-size: 30px;
        cursor: pointer;
    }

    @keyframes MessageDialogOpen {
        from {
            left:calc(7vw / 2);
            bottom: -30px;
            opacity:0;
        }

        to {
            left: calc(7vw / 2);
            bottom: 100px;
            opacity: 1;
        }
    }

    @keyframes ShowDialog_BigClose {
        from {
            left: calc(7vw / 2);
            bottom: 100px;
        }

        to {
            left: calc(7vw / 2);
            bottom: -30px;
            opacity: 0;
            display: none;
            z-index: -999;
        }
    }
}

.MessageDialog {
    display: block;
    position: fixed;
    background-color: white;
    border: none;
    box-shadow: rgba(126,126,126,0.5) 0px 0px 15px;
    z-index: 9999;
    border-radius: 8px;
    padding: 10px 10px 10px 10px;
}

.MessageArea {
    display: block;
    margin: auto 0;
}

.MessageTitle {
    font-size: 200%;
    font-weight: bold;
    overflow-wrap: anywhere;
    overflow-wrap: anywhere;
}

.MessageSubmessage {
    font-size: 150%;
    overflow-wrap:anywhere;
}

    .CrossBtn:hover {
        color: #E84945;
    }

    .ShowDialog.close {
        animation: ShowDialog_BigClose 0.25s ease-in-out forwards;
        animation-delay: 0s;
    }

    .ShowDialog.closed{
        display:none;
        z-index:-9999;
    }

.DialogBG{
    display:block;
    position:fixed;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    background-color:gray;
    opacity:0.5;
    z-index:9998;
}

    .DialogBG.close {
        animation: DialogBGClose 0.25s ease-in-out forwards;
        animation-delay: 0s;
    }

    .DialogBG.closed{
        display:none;
        z-index:-9999;
    }

@keyframes DialogBGClose{
    to{
        opacity:0;
        display:none;
        z-index:-999;
    }
}

