.disableClosePopup .popupBackground {
    pointer-events: none;
}
.disableClosePopup .closePopup {
    display: none;
}
#popupDialog {
    z-index: 105;
}
.popupBackground {
    background: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
}

.videoContainer {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#popupVideo video {
    max-height: 100vh;
    max-width: 100vw;
    padding: 20px;
}

html.popupOpened, html.popupOpened body {
    /*overflow: hidden;
    height: auto;*/
}

.popup {
    background: rgba(0,0,0,0.7);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display:none;
    z-index:100;
    color: white;
    overflow: auto;
}

.popup[style*='display: block'] {
    display: flex !important;
    align-items: center;
    justify-content: space-around;
    flex-flow: nowrap;
    flex-direction: column;
}

#popupDialog[style*='display: block'] {
    justify-content: center;
}

.popup h3 {
    text-align: center;
}

.popup.popupHideBackground {
    backdrop-filter: blur(10px);
}

.popup .closePopup, #errorDiv .btnError {
    margin: 0 !important;
    background: none;
    font-weight: normal;
    height: 50px;
    width: 50px;
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    cursor: pointer;
    z-index: 10;
    text-align: center;
    transform: rotate(45deg);
}
.popup .closePopup:hover, .popup .closePopup:focus, #errorDiv .btnError:hover {
    background-color: transparent;
}
.popup .closePopup:after, #errorDiv .btnError:after {
    margin: 0 !important;
    font-size: 40px;
    line-height: 42px;
    content: '+';
    color: white;
    font-weight: 900;
}
.popup .closePopup:hover:after, #errorDiv .btnError:hover:after {
    color: #ccc;
}

#dialogTitle {

}

#dialogContainer {
    text-align: center;
    max-width: 600px;
}

#dialogContainer .dialogText {
    margin: 20px;
}

#dialogContainer .btn {
    margin: 0 10px;
}

/*Settings Popup*/
#popupSettings .popupInner, #popupControls .popupInner {
    min-width: 450px;
    display: block;
}
.popupInner {
    padding: 40px 60px;
    z-index: 1;
    color: #111;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    text-align: center;
    position: relative;
}

.popupInner .popupInnerBackground {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    z-index: -1;
    border: 100px solid transparent;
    border-image: url('../images/pop-up_cornice.png') 200;
    border-image-width: 100px;
    background: url('../images/pop-up_center.png') center center;
    background-size: 100% 100%;
    background-clip: padding-box;
}

.popupTitle {
    width: 100%;
    font-family: 'Bebas Neue';
    font-size: 26px;
    text-align: center;
}

.popupContent {
    max-height: 450px;
    overflow: auto;
}
#settingsOptions {
    font-weight: bold;
}
.settingsSlider {
    display: block;
    margin: 20px 5%;
}
.sliderTitle {
    width: 100%;
}
.settingsSlider .sliderContainer {
    width: 100%;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.settingsSlider input {
    accent-color: #89271d;
}
.settingsSlider input[type=range] {
    flex-grow: 1;
}
.settingsSlider .valueSpan {
    width: 40px;
    text-align: right;
}


#popupInstructions .popupInner {
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    min-height: 200px;
}

#popupInstructionsContent {
    margin: 20px 0;
}

.sliderContainer.qualContainer {
    display: block;
}
#qualitySlider {
    width: 100%;
}
.labelsCont {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.qualLabel {
    display: block;
    width: 33%;
    position:relative;
    font-weight: normal;
    font-size: 12px;
}
.qualIndicator {
    position: absolute;
    width: 4px;
    height: 20px;
    background: #89271d;
    pointer-events: none;
    /* border: 1px solid black; */
    border-radius: 8px;
    top: -18px;
    left: 50%;
    z-index: 0;
}
.qualIndicator.leftIndicator {
    left: 6%;
    margin-left: 1px;
}
.qualIndicator.rightIndicator {
    left: 93%;
    margin-left: 1px;
}
#qualitySlider {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: transparent;
    opacity: 1;
    -webkit-transition: opacity .15s ease-in-out;
    transition: opacity .15s ease-in-out;
    outline: 1px solid #89271d;
}
#scoreBoxes {
    display: flex;
    flex-wrap: wrap;
    max-width: 900px;
}
.scoreBox {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}
#endGamePopup .popupTitle {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    font-size: 30px;
}
.subTitle {
    font-size: 24px;
}
#endGamePopup .popupInner {
    flex-direction: column;
    max-width: 900px;
}
#endOfContentDesc {
    font-size: 14px;
}
.sceneDesc {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
    padding: 0 15px;
}
.scoreName {
    font-size: 22px;
    text-transform: uppercase;
    font-family: 'Bebas Neue';
}

#endGamePopup a, #endGamePopup a:hover, #endGamePopup a:active {
    color: #ba4d3c;
}

.finalScore {
    font-size: 16px;
    color: #ba4d3c;
    margin: 0 10px;
    text-transform: uppercase;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
.scoreValue {
    display: flex;
    font-size: 30px;
    text-align: center;
}

#finalScoreDiv {
    font-family: 'Bebas Neue';
    font-size: 26px;
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.finalScoreValue {
    color: #ba4d3c;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

#popupMenu .popupInner {
    flex-direction: column;
}

#menuOptions {
    display: flex;
    flex-direction: column;
}
#popupMenu {
    z-index: 9;
}
