.popupBackground {
    background: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 0;
}

.videoContainer {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#popupVideo video {
    max-height: 100vh;
    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;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    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 .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;
}

/*Settings Popup*/
#popupSettings .popupInner {
    width: 450px;
    height: 300px;
    padding: 20px;
    background: url("../images/box_opzioni.png");
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color:#4b311b;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#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;
}
