* {
    margin: 0;
    padding: 0;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body > div#shadow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.33);
    overflow: hidden;
    z-index: 999999999;
}
body > div#shadow #box {
    pointer-events: none;
    position: absolute;
    /* padding: 40px 5px 20px 5px; */
    background-color: #fff;
    /* overflow: hidden; */

    transition: 0.3s;

    z-index: 999999999;
}
body > div#shadow #box > * {
    pointer-events: auto;
}

body > div#shadow #box.popUp {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);

    -webkit-border-radius: 3px;
    border-radius: 3px;

    -webkit-box-shadow: 0 0 0 10000px rgba(0,0,0,.33);
    box-shadow: 0 0 0 10000px rgba(0,0,0,.33);
}
body > div#shadow #box.popUp::before {
    content: '✕';
    pointer-events: auto;
    position: absolute;
    top: -9px;
    right: -9px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    outline: none;
    line-height: 30px;
    text-align: center;
    font-size: 16px;
    background-color: lightcoral;

    -webkit-border-radius: 3px;
    border-radius: 3px;

    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,.33);
    box-shadow: 0 2px 8px rgba(0,0,0,.33);

    z-index: 999999999;
}


body > div#shadow #box.full {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
body > div#shadow #box.full::before {
    content: '✕';
    pointer-events: auto;
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    cursor: pointer;
    outline: none;
    line-height: 30px;
    text-align: center;
    font-size: 16px;
    background-color: lightcoral;
    
    -webkit-border-radius: 0 0 0 3px; 
    border-radius: 0 0 0 3px;

    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,.33); 
    box-shadow: 0 2px 8px rgba(0,0,0,.33);

    z-index: 999999999
}


body > div#shadow #box.confirm {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);

    -webkit-border-radius: 3px;
    border-radius: 3px;

    -webkit-box-shadow: 0 0 0 10000px rgba(0,0,0,.33);
    box-shadow: 0 0 0 10000px rgba(0,0,0,.33);
}


/* @media screen and (min-width: 800px) {
    body > div#shadow #box {
        padding: 40px 20px 20px 20px;
    }
} */