/* clPopup */
:root
{
    color-scheme: light dark;
    --popup-font-color: light-dark(#222, #ddd);
    --popup-background: light-dark(#ddd, #222);
    --popup-button-color: light-dark(#222, #ddd);
    --popup-button-background: light-dark(#ddd, #222);
    --popup-button-border-radius: 2rem;
    --popup-hyperlink-color: #ccffff;
    --popup-border-style: 0.1rem solid var(--popup-font-color);
}

#popupWrapper
{
    position: relative;
    z-index: 1;
    width: 100%;
    height: 78%; /* 470px */
    overflow: hidden;
}

.popup
{
    font-size: 1.2rem;
    color: var(--popup-font-color);
    /*border: 0.1rem solid #A6A6A6;*/
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000000000; /*2147483647 absolute maximum */
    pointer-events: auto;

    background: var(--popup-background);
}

#xClosesPopup
{
    position: absolute;
    color: var(--error-font-color);
    background: var(--error-background-color);
    font-size: 2rem;
    border: var(--popup-border-style);
    top: 0%;
    left: 96%;
    width: 2rem;
    margin: 0;
    padding: 0;
    text-align: center;
    display: block;
    cursor: pointer;
}

.popupDivCentered, .popupDivFloat1, .popupDivFloat2
{
    text-align: center;
}

.popupDivFloat1, .popupDivFloat2
{
    width:      50%;
}

.popupDivFloat1
{
    float:      left;
}

.popupDivFloat2 /*right*/
{
    float:      right;
}

.popupTitleDiv
{
    height:         5%;
    width:          100%;
    text-align:     center;
}

.popupTitle
{
    /*color:      #FFF;*/
    font-weight:bold;
    height:     100%;
    width:      100%;

    font-size:  2rem;
}

.popupHTMLText
{
    font-size:      1.2rem;
    width:          99%;
    margin:         0 auto;
    height:         85%;
    text-align:     center;
}

.popupButtonArea
{
    height: 10%;
}

/* Copy from .glassButton */
/* most of this should be obsolete! */
.popupButton
{
    text-align:center;
    font-size: 2rem !important;
    font-weight:bold;
    /*padding: 1rem;*/
    border: var(--popup-border-style);
    border-radius: var(--popup-button-border-radius);

    display: inline-block;
    text-decoration: none;
    cursor: pointer;

    /* see .blueBackground */
    /* must be separate because otherwise it will use the precedence in common.css and not get displayed as desired */
    color: var(--popup-button-color) /*!important*/;
    background-color: var(--popup-button-background) /*!important*/;
    background-image: none /*!important*/;
    min-width: 15rem;
    /*height: 100%;*/
}

.popupButton:hover, .popupButton:focus, .popupButton:active
{
  -webkit-transform: scale(0.9);
  transform: scale(0.9);
}

.popupEntryText
{
    font-size: 1.2rem;
    font-weight:bold;
    /*color: #FFF;*/
}

.popupEntryTextTitle
{
    font-size: 1.2rem;
    font-weight:bold;
    /*color:#FFF;*/
}

/* TODO: move to separate .css files! */
/* obsolete, only used in callMenuExtrasPopup.js */
.popupMenuExtraEntryText
{
    min-width: 100px;
    padding: 5px;
    margin: 5px;
    display: inline-block;
    color: #FFF;
    border: var(--popup-border-style);
    border-radius: var(--popup-button-border-radius);
}

/* obsolete, only used in callPayPal.js */
.popupPayPalExpressDiv
{
    font-size: 1.2rem;
    background: #FFFFFF;
    color: #000;
    border: var(--popup-border-style);
    border-radius: var(--popup-button-border-radius);
    width: 200px;
    height: 45px;
    text-align: center;
    vertical-align: middle;
    cursor:pointer;
    margin:30px auto 0 auto;
    padding: 4px;
}

.popupPayPalDiv
{
    font-size: 1.2rem;
    background: #FFF;
    color: #000;
    border: var(--popup-border-style);
    border-radius: var(--popup-button-border-radius);
    width: 30%;
    height: 45px;
    text-align: center;
    vertical-align: middle;
    cursor:pointer;
    margin:30px auto 0 auto;
    padding: 4px;
    float: left;
}

/* obsolete, only used in tagPopup.js */
#tagTable
{
    width: 100%;
    text-align: center;
    font-size: 2rem;
    color: #FFFFFF;
}

@media only all and (orientation: portrait)
{
    .popupButton
    {
        min-width: 10rem;
    }
}