.disableClosePopup .popupBackground {
    pointer-events: none;
}
.disableClosePopup .closePopup {
    display: none;
}

.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: center;
    flex-flow: wrap;
}

.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;
}


#popupDialog {
    flex-direction: column;
}
/*
#popupDialog .popupHeader {
    background-color: var(--secondary-color-light);
    color: var(--primary-color-light);
}
#popupDialog .popupInner {
    background-color: var(--primary-color-light);
    color: var(--secondary-color-dark);
}
#popupDialog .btn {
    color: var(--primary-color-light);
    background-color: var(--secondary-color-dark);
}
#popupDialog .btn:hover, #popupDialog .btn:focus  {
    color: var(--secondary-color-dark);
    background-color: var(--secondary-color);
}
*/

#dialogTitle {
    font-size: 22px;
    font-weight: bold;

}

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

#dialogContainer .dialogText {
    margin: 20px;
}

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

/*Settings Popup*/
#popupSettings .popupInner {
    width: 450px;
    display: block;
}
.popupInner {
    padding: 20px;
    z-index: 1;
    color:#4b311b;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    text-align: center;
    background: url("../images/background.jpg");
    border: 6px solid transparent;
    border-image: url("../images/cornice_box.png") 12;
}
#settingsTitle {
    width: 100%;
    font-family: Hidayatullah;
    text-align: center;
}
#settingsOptions {
    font-weight: bold;
}
.settingsSlider {
    display: block;
    font-family: 'Segoe UI';
    margin: 20px 5%;
}
.sliderTitle {
    font-family: 'Segoe UI';
    width: 100%;
}
.settingsSlider .sliderContainer {
    width: 100%;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.settingsSlider input[type=range] {
    accent-color: #754715;
    flex-grow: 1;
}
.settingsSlider .valueSpan {
    width: 40px;
    text-align: right;
}




#popupScore .popupInner {
    display: block;
    background: none;
    border: none;
}
#totalScore {
    margin-top: 30px;
    font-weight: bold;
    font-family: 'Philosoper', sans-serif;
}
#totalScore span {
    font-size: 22px;
    vertical-align: middle;
}
#scoreResume {
    padding: 0 40px;
}
#scoreTitle {
    font-weight: bold;
    margin-bottom: 30px;
    font-family: 'Philosoper', sans-serif;
}
#popupScore .score {
    display: flex;
    align-items: center;
    transition: 1s color;
    margin-left: 25px;
    font-size: 14px;
    justify-content: end;
    flex-grow: 1;
    font-family: 'Philosoper', sans-serif;
}

#scoreParchment {
    flex-grow: 1;
    display: flex;
    background: url("../images/pergamena_verticale_center.png");
    background-size: 100% 100%;
    padding: 20px 80px;
    margin: 70px;
    position: relative;
    width: 550px;
    min-height: 300px;
    flex-direction: column;
}
#scoreParchment:before {
    content: "";
    position: absolute;
    height: 57px;
    top: -57px;
    left: -20px;
    right: -20px;

    background: url("../images/pergamena_verticale_top.png");
    background-size: 100% 100%;

}
#scoreParchment:after {
    content: "";
    position: absolute;
    height: 57px;
    bottom: -57px;
    left: 0;
    right: 0;

    background: url("../images/pergamena_verticale_down.png");
    background-size: 100% 100%;
}

#scoreParchment #scoreLogo {
    width: 300px;
    margin: 0 auto 30px;
}

.scoreBadge {
    display: flex;
    align-items: center;
    margin: 5px 0;
    text-align: left;
    font-size: 14px;
}

.scoreBadge .image {
    height: 42px;
    flex: none;
    margin-right: 5px;
    filter: saturate(0.1);
}
.scoreBadge.badgeTaken .image {
    filter: saturate(1);
}

@media print {
    #popupScore {
        overflow: hidden;
    }

    #popupScore .popupBackground {
        background: white;
    }

    #scoreButtons {
        display: none;
    }
}

.totalNoImg {
    width: 42px;
}
#banditTitle {
    width: 100%;
    display: block;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}

#banditImg {
    display: block;
    text-align: center;
    width: auto;
    margin: 12px auto;
    background: url("../images/bandits.jpg");
    height: 350px;
    background-position: center center;
    background-size: cover;
    border-radius: 10px;
}
#banditText {
    margin: 20px auto;
    display: block;
}
.lossDiv {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px 0px;
}

.lossDiv .smallItems {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    align-content: flex-start;
    width: 150px;
    margin: 0 20px;

}
.arrowContainer {
    display: flex;
    align-items: center;
    justify-content: center;
}
.arrowContainer .changedQuantity {
    position: relative;
    display: block;
    left: 0;
    margin: 0px 3px;
    animation: none;
    width: 28px;
    height: 28px;
    font-size: 14px;
    line-height: 25px;

}
.arrowQuantity {
    width: 20px;
    height: 20px;
    background: url("../images/ico_arrow-next.png");
    background-position: center;
    background-size: cover;
}
.smallItems.lessItems {
    flex-direction: row-reverse;
}
.lessItems .name {
    margin-right: 15px;
    margin-left: 0px;
}
.smallItems.lessItems .quantity {
    right: -13px;
    left: auto;
}


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

#popupInstructionsTitle {
    font-size: 24px;
    margin-top: 10px;
    font-family: 'Palatino';
}
#popupInstructionsContent {
    margin: 20px 0;
}

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

#popupControlsTitle {
    font-size: 24px;
    margin-top: 10px;
    font-family: 'Palatino';
}
#popupControlsContent {
    margin: 20px 0;
    text-align: center;
}


.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: #754715;
    /* 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 #754715;
}
