#backDrop
{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0, 0.9);
    overflow: hidden;
}

#alert_box
{
    display: block;
    position: absolute;
    background-color: ghostwhite;
    color: black;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    min-width: 300px;
    max-width: calc(100% - 10px);
    min-height: 100px;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 3px 3px 5px black;
    box-sizing: border-box;
    border-radius: 3px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 2px solid black;
    z-index: 11000;
    transition: ease-in-out;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}
#alert_box > *:not(h1)
{
    display: block;
    position: relative;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    color: black;
    margin-top: 10px;
    margin-bottom: 10px;
}
#alert_box > h1
{
    display: block;
    position: relative;
    width: 98%;
    height: 30px;
    text-align: center;
    margin: 0;
    margin-top: 5px;
    padding: 0;
    font-size: 0.8rem;
    color: white;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    margin-bottom: 10px;

}

#alert_box > h1::after
{
    content: attr(alt);
    display: block;
    position: relative;
    color: white;
    width: 86%;
    top: 50%;
    left: 44%;
    transform: translateX(-50%) translateY(-50%);
}

#alert_box h1 > div
{
    display: inline-block;
    position: relative;
    height: 60% !important;
    width: 30px;
    padding: 1px 1px 1px;
    float: right;
    font-size: medium;
    font-weight: normal;
    margin-right: 5px;
    top: 50%;
    transform: translateY(-50%);
}
#alert_box h1 > div::after
{
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    z-index: 1;
}
#alert_box h1 > div:hover
{
    cursor: pointer;
}
#alert_box h1 > div.close
{
    color: black;
    background-color: white;
    border-radius: calc( 5 * 20px );
}
#alert_box h1 > .close::after
{
    content: "\2716";
}
#alert_box h1.alert > .close::after
{
    color: darkred;
}
#alert_box h1.message > .close::after
{
    color: navy;
}

#alert_box h1 > .close:hover
{
    background-color: #333;
    color: white;
}
#alert_box h1.alert
{
    background-color: darkred;
}
#alert_box h1.message
{
    background-color: navy;
}

@keyframes alertSwipeDown
{
    0%  { top: -1200px; }
    80% { top: 10% }
    100% { top:  50% }
}
.swipeDown_alert
{
    animation: alertSwipeDown 250ms linear;
}
@keyframes alertSwipeUp
{
    0%  { top: 50%; }
    10% { top: 10% }
    100% { top: -1200px }
}
.swipeUp_alert
{
    animation: alertSwipeUp 500ms linear;
}