:root {
    --loader-background-color: #005B7A;
    --flag-background-color: white;
    --flag-accent-color: #F5922D;
    --flag-text-color: #1E1D1D;
    --slidepanel-text-color: white;
    --slidepanel-background-color: #00788E;
    --menu-background-color: white;
    --menu-text-color: #1E1D1D;
}

html, body {
    background: lightgray;
    padding: 0;
    margin: 0;
}

*, ::after, ::before {
    box-sizing: border-box;
}

#unityCanvas {
    background: {{ BACKGROUND_COLOR }}
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none
}

.baseSize {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.flexCenter {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
button {
    border: none;
    outline: none;
    cursor: pointer;
    pointer-events: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    margin: 10px;
}
button[onclick] {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 7px;
}
button img {
    position: absolute;
    margin: 0;
    top: 0;
    left: 0;
}
.action:hover {
    cursor: pointer;
}
.no-events {
    pointer-events: none;
}
img, p {
    margin: 0 0 1rem 0;
}
p {
    color: #000000;
    text-align: center;
    font-weight: 700;
    font-size: 20px;
    text-shadow: 2px 2px 5px rgb(0 0 0 / 25%);
    padding: 0 10px;
}
.hidden {
    visibility: hidden;
}
.showEffect {
    visibility: visible;
    opacity: 1;
    transition: opacity 500ms linear;
}
.hideEffect {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 500ms, opacity 500ms linear;
}
.cover {
    background: rgba(255,255,255,0.6);
}
.sceneImage {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
#boot p {
    text-transform: uppercase;
}
#diagnostics-icon {
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 10px 15px;
}
#pause-button {
    left: 0;
    bottom: 0;
}
#boot img,
#pause img {
    max-width: 50%;
}
.fullscreenButton {
    right: 0;
    bottom: 0;
}
#flag-button {
    bottom: 0;
    right: 50px;
}
#flag-button img {
    width: 34px;
    margin: 3px;
}

.close-button {
    box-sizing: content-box;
    width: 1em !important;
    height: 1em !important;
    padding: 0.25em 0.25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.25rem !important;
    opacity: .5;
    cursor: pointer;    
    position: absolute;
    right: 10px;
    top: 10px;
    background-size: cover;
    filter: invert(1) grayscale(100%) brightness(200%);
}

.slide-panel.open {
    visibility: visible;
    pointer-events: auto;
    background-color: rgba(0, 0, 0, .3);
}

.slide-panel-dialog {
    display: flex;
    color: var(--slidepanel-text-color);
    background: var(--slidepanel-background-color);
    position: fixed;
    width: 100%;
    max-height: 75%;
    bottom: calc(-75%);
    padding-top: 60px;
    transition: all 0.4s ease 0s, width 0ms ease 0s;
}

.slide-panel-dialog a {
    color: var(--slidepanel-text-color);
}

.slide-panel-dialog a:link {
    color: var(--slidepanel-text-color);
}

.slide-panel-dialog a:visited {
    color: var(--slidepanel-text-color);
}

.slide-panel-dialog a:visited:hover {
    color: var(--slidepanel-text-color);
}

.slide-panel-dialog a:hover {
    color: var(--slidepanel-text-color);
}

.slide-panel-dialog a:active {
    color: var(--slidepanel-text-color);
}

.slide-panel-dialog:before {
    position: absolute;
    content: ' ';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 25px 25px 25px;
    border-color: transparent transparent var(--slidepanel-background-color) transparent;
    top: -25px;
    left: 4%;
}

.slide-panel.open .slide-panel-dialog {
    visibility: visible;
    bottom: 0;
}

.slide-panel-dialog .btn-close {
    position: absolute;
    right: 24px;
    top: 20px;
    background-size: cover;
}

.slide-panel__scroll {
    overflow-y: auto;
    max-height: 100%;
    padding: 0 30px 40px 30px;
}

.slide-panel__title {
    font-size: 32px;
    opacity: 0.6;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-panel__content {
    font-size: 18px;
}
#info-message {
    text-align: center;
    font-size: 14pt;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .slide-panel-dialog {
        width: 500px;
        min-height: 100%;
        max-height: 100%;
        right: calc(-500px - 25px);
        bottom: auto;
        padding-top: 60px;
    }

    .slide-panel.open .slide-panel-dialog {
        right: 0;
    }

    .slide-panel-dialog:before {
        border-width: 25px 25px 25px 0;
        border-color: transparent var(--slidepanel-background-color) transparent transparent;
        top: 135px;
        left: -25px;
    }

    .slide-panel-dialog .btn-close {
        top: 80px;
    }
}

@media (min-width: 1400px) {
    .slide-panel-dialog {
        width: 700px;
        right: calc(-700px - 25px);
    }

    .slide-panel__scroll {
        padding-left: 50px;
        padding-right: 50px;
    }
}
