:root {
    --main-bg-color: #605851;
}

#_alert_preview div {
    background-color: var(--main-bg-color);
}


/*  classes for the centered alert  */

.alert-parent {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    border: 1px solid rgba(255, 0, 0, .5);
    border-radius: 4px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, .66);
    padding: 0;
    height: 22rem;
    width: 60ch;
    min-width: 60ch;
    max-width: 60ch;
    position: fixed;
    z-index: 9999;
    background-color: white;
}

.alert-parent-blinky {
    animation: blinkyblink .5s 10;
}

@keyframes blinkyblink {
    0% {
        box-shadow: 0 0 0 rgba(0, 0, 0, .66);
    }
    25% {
        box-shadow: 0 0 4px rgba(255, 0, 0, .25);
    }
    50% {
        box-shadow: 0 0 12px rgba(255, 0, 0, .5);
    }
    75% {
        box-shadow: 0 0 4px rgba(255, 0, 0, .75);
    }
    100% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 1);
    }
}

.alert-parent .alert-title-bar {
    box-sizing: inherit;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    width: 100%;
    min-height: 2.5rem;
    margin: 0 0 1rem;
    background-color: var(--main-bg-color);
    padding: 0 1ch;
    border-radius: 4px 4px 0 0;
    order: 0;
}

.alert-parent .alert-title {
    color: #fcf6f0;
    font-size: 0.9rem;
    background-color: var(--main-bg-color);
}

.alert-parent .alert-title-x {
    cursor: pointer;
}

.alert-parent .alert-title-x:hover {
    text-shadow: 0 0 4px red;
}

.alert-parent .alert-content {
    box-sizing: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
    width: 90%;
    margin: 0;
    order: 10;
    height: 16rem;
    overflow-y: auto;
}

.alert-parent .alert-url {
    box-sizing: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    width: 90%;
    order: 20;
}

.alert-parent .alert-button-row {
    box-sizing: inherit;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-content: center;
    align-items: center;
    width: 100%;
    margin: 2rem 0 1rem;
    /* background-color: whitesmoke; */
    order: 30;
    min-height: 2rem;
    border-radius: 0 0 4px 4px;
    min-height: 2.5rem;
}

.alert-button-row .alert-ok-button {
    color: black;
    background-color: lightgray;
    cursor: pointer;
    border: 1px solid black;
    border-radius: 4px;
    padding: 1ch 4ch;
    font-weight: 500;
    width: 14ch;
}

.alert-button-row .alert-number-button {
    color: black;
    background-color: lightgray;
    cursor: pointer;
    border: 1px solid black;
    border-radius: 4px;
    padding: 1ch 4ch;
    font-weight: 500;
    width: 10ch;
}


/*  end classes for the centered alert  */


/* classes for the command-control bar */

.alert-command-control-parent {
    width: 60ch;
    height: 2.5rem;
    position: fixed;
    cursor: default;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    background: none;
}

.alert-command-control-parent .alert-command-control-insert {
    width: 59ch;
    height: 2rem;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    color: #fcf6f0;
    background-color: var(--main-bg-color);
    /*border: 1px solid rgba(0,0,0,.5);*/
    border-radius: .5ch;
}

.alert-command-control-insert .alert-command-preview {
    width: 54ch;
    height: 1.5rem;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
    margin: 0 .5ch;
    padding: 0 1ch;
    background-color: var(--main-bg-color);
}

.alert-flag-button {
    width: 1.5rem;
    height: 1.5rem;
    margin: .1rem;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    border-radius: .5ch;
}

.alert-flag-button:hover {
    background-color: var(--main-bg-color);
}

.alert-flag-button .alert-flag-button-unread {
    background-color: gray;
}

.alert-command-outer-list {
    width: 60ch;
    height: 20rem;
    cursor: default;
    position: fixed;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.alert-command-outer-list .alert-command-outer-list-insert {
    width: 59ch;
    height: 20rem;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, .5);
    border-radius: 0.5ch 0.5ch 0 0;
}

.alert-command-outer-list-insert .alert-command-outer-list-close {
    width: 100%;
    height: 2.5rem;
    display: flex;
    flex-flow: row nowrap;
    background-color: var(--main-bg-color);
    justify-content: space-between;
    align-content: center;
    align-items: center;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0 1ch;
    box-sizing: border-box;
    border-radius: 0.5ch 0.5ch 0 0;
}

.message-list-instructions {
    font-size: smaller;
    padding: 1ch;
    color: #dbd5ce;
    background-color: var(--main-bg-color);
}

.alert-command-outer-list-close .close-button {
    /* border: 1px outset silver; */
    border-radius: 4px;
    padding: 1px;
}

.alert-command-outer-list-close .close-button:hover {
    /* border: 1px inset red; */
    /* background-color: yellow; */
    text-shadow: 0 0 4px red;
}

.alert-command-outer-list-insert .alert-command-msg-list-container {
    width: 100%;
    height: 37ch;
    background-color: whitesmoke;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-content: center;
    align-items: flex-start;
}

.alert-command-msg-list-container .alert-command-message-subject {
    width: 100%;
    overflow-x: hidden;
    padding: .5rem 1ch;
    cursor: pointer;
    box-sizing: border-box;
    font-size: 0.9rem;
    overflow: hidden;
    flex-shrink: 0;
}

.alert-command-msg-list-container .alert-command-message-subject:hover {
    background-color: rgba(96, 88, 81, .2);
    font-size: 0.92rem;
}

.alert-command-msg-list-container .alert-command-message-subject-unread {
    color: rgba(255, 0, 0, .8);
    font-weight: bold;
}

.reload-circle-parent {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    height: 1.5rem;
    width: 1.5rem;
    cursor: pointer;
    background-color: var(--main-bg-color);
}

.reload-circle-parent .reload-circle {
    height: .9rem;
    width: .9rem;
    background-color: #fcf6f0;
    border-radius: 50%;
}

.reload-circle-parent .reload-circle:hover {
    height: .5rem;
    width: .5rem;
    background-color: red;
    box-shadow: 0 0 4px red;
}

.close-square-parent {
    cursor: pointer;
    background-color: var(--main-bg-color);
}

.close-square {
    height: .9rem;
    width: .9rem;
    background-color: #fcf6f0;
    border-radius: 0%;
}

.close-square:hover {
    height: .1rem;
    width: .9rem;
    background-color: red;
    box-shadow: 0 0 4px red;
}


/*  end classes for the command control bar */