:root {
    --popup-background-color: rgba(51,51,51,0.25);
    --popup-heading-background-color: #5b5b5b;
    --popup-heading-text-color: white;
    --popup-heading-border-color: #3c3d3d;
    --popup-text-color: #5b5b5b;
    --popup-no-color: #ba6060; /*#a64c4c;*/
    --popup-yes-color: #4783a1; /*#1183ba;*/
}

.fullscreenBackground {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    background: var(--popup-background-color);
    z-index: 9 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popupWindow {
    position: absolute;
    z-index: 10;
    font-family: bodyFont, Arial;
    background-color: white;
    color: var(--popup-text-color);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: auto;
    max-width: 90%;
    max-height: 90%;
}

.popupHeading {
    width: 100%;
    background-color: var(--popup-heading-background-color);
    color: var(--popup-heading-text-color);
    border-bottom: 1px solid var(--popup-heading-border-color);
    text-align: center;
    height: 40px;
    line-height: 40px;
    font-size: 16px;
    white-space: pre-wrap;
}

.popupHeadingCross {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: rgba(0, 0, 0, 0);
    color: var(--popup-heading-text-color);
    height: 40px;
    width: 40px;
    text-align: center;
    line-height: 40px;
    font-size: 25px;
    cursor: pointer;
    z-index: 1;
}

.popupHeadingCross:hover {
    background-color: var(--popup-no-color);
}

.popupContentPanel {
    white-space: pre-wrap;
    overflow: auto;
    padding: 15px;
    font-size: 14px;
}

.popup-button {
    display: inline;
    color: white;
    min-width: 80px;
    font-size: 15px;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    padding: 5px;
    margin: 15px 5px;
    cursor: pointer;
}

.popup-button:hover {
    filter: brightness(115%);
}

.popup-yes-button {
    background-color: var(--popup-yes-color);
}

.popup-no-button {
    background-color: var(--popup-no-color);
}


/* emerge (0->1 opacity) animation for popup windows */
@keyframes popupEmergeAnimation {
    from { opacity: 0.0; }
    to { opacity: 1.0; }
}

.popupEmerge {
    animation-name: popupEmergeAnimation;
    animation-duration: 0.1s;
}
