#bg-camera {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: absolute;
}

body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background-color: black;
}

.overlay-button {
    position: absolute;
    bottom: 28px;
    background-color: #1a5cc0;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    z-index: 101;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 32px;
    cursor: pointer;
}

.i-lock {
    left: 16px;
    background-image: url("../images/lock-solid.svg");
    background-color: #ffffff;
}

.i-unlock {
    left: 16px;
    background-image: url("../images/unlock-solid.svg");
}

.i-bars {
    right: 16px;
    background-image: url("../images/bars-solid.svg");
}

.i-close {
    background-image: url("../images/close-solid.svg");
}

.i-message {
	bottom: 90px;
    right: 16px;
    background-image: url("../images/message-solid.svg");
    background-size: 24px;
}

.i-ai-chat {
	bottom: 90px;
    right: 16px;
    background-image: url("../images/ai-chat.svg");
    background-size: 24px;
}

#overlay-qr-button {
	background-color: #ffffff;
	border-radius: 24px;
	bottom: 90px;
	cursor: pointer;
	display: inline-block;
	height: 48px;
	left: 16px;
	line-height: 48px;
	min-width: 48px;
    width: 48px;
    max-width: 300px;
	position: absolute;
    overflow: hidden;
    -webkit-transition: width 0.3s ease-in-out;
    -o-transition: width 0.3s ease-in-out;
	transition: width 0.3s ease-in-out;
	z-index: 101;
    color: white;
    text-align: center;
}

#overlay-qr-button.active {
	background-color: #1a5cc0;
    width: calc(100vw - 24px);
    padding-right: 16px;
}

#overlay-qr-button > span {
    padding-left: 16x;
    background-color: #1a5cc0;
}    

#overlay-qr-button-icon {
	background-image: url("../images/qrcode-solid.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 28px;
	border-radius: 50%;
	display: block;
	float: left;
	height: 48px;
	width: 48px;
}

#qr-paint-canvas {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* https://www.w3schools.com/howto/howto_js_sidenav.asp */

.sidenav {
    height: 100%;
    width: 0;
    
    position: fixed;
    z-index: 110;
    top: 0;
    right: 0;
    background-color: #303e53a3;
    overflow-x: hidden;
    padding: 40px 0;
    transition: 0.5s;
    white-space: nowrap;
    box-sizing: border-box;
    backdrop-filter: blur(24px);
    display: flex;
    flex-flow: column;
}

.sidenav a {
    padding: 8px 8px 8px 32px;
    margin-right: 16px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    display: block;
    transition: 0.3s;
}

.sidenav .sidenav-spacer {
    flex: 1 1 auto;
}

.sidenav .text-button {
    background-color: transparent;
    cursor: pointer;
    color: #FFFFFF;
    font-family: Arial;
    font-size: 20px;
    padding: 16px;
    text-decoration: none;
    user-select: none;
    margin: 0;
    width: 28px;
}

.sidenav .text-button:hover {
    background-color: gray;
    color: black;
}

.sidenav .text-button:active {
    transform: translateY(-10px) rotate(0);
    -webkit-transform: translateY(-10px) rotate(0);
}

.sidenav .text-button.selected {
    background-color: white;
    color: black;
}

.sidenav-button {
    background-color: #ffffff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    z-index: 101;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
    
    position: absolute;
    bottom: 26px;
    right: 16px;
    font-size: 36px;
    cursor: pointer;
}

.language-buttons-container {
    display: flex;
    position: absolute;
    bottom: 26px;
    left: 16px;
}

#main {
    transition: margin-left 0.5s;
    padding: 20px;
}

@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }

    .sidenav a {
        font-size: 18px;
    }
}

#immersive-mode-button {
    background-color: #ffffff;
	border-radius: 24px;
	bottom: 24px;
	cursor: pointer;
	display: inline-block;
	height: 48px;
    left: 50%;
    transform: translateX(-50%);
	line-height: 48px;
	min-width: 48px;
    width: 48px;
    max-width: 300px;
	position: absolute;
    overflow: hidden;
	z-index: 101;
    color: black;
    text-align: center;
    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
}

#immersive-mode-button.active {
	background-color: #1a5cc0;
    width: calc(100vw - 24px);
    padding-right: 16px;
}

#immersive-mode-button > span {
    padding-left: 16x;
}    

#immersive-mode-button-icon {
	background-image: url("../images/qrcode-solid.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 28px;
	border-radius: 50%;
	display: block;
	float: left;
	height: 48px;
	width: 48px;
}

#model-overlay {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 100%;
    z-index:99;
    pointer-events: none;
    visibility: hidden;
}

#model-overlay.active {
    visibility: visible;
}

.model-overlay-column {
    background-color: #aaaaaa;
    float: left;
    flex: 1;
    width: 33.33%;
    height: 100%;
    opacity: 0.1;
    pointer-events: all;
}

.model-overlay-column:nth-of-type(2){
    flex: 8;
    background-color: #ffffff;
    opacity: 0.0;
    pointer-events: none;
}

.modal-chat {
    height: 100%;
    width: 0;
    
    position: fixed;
    z-index: 110;
    top: 0;
    right: 0;
    background-color: #303e53a3;
    overflow-x: hidden;
    padding: 40px 0;
    transition: 0.5s;
    white-space: nowrap;
    box-sizing: border-box;
    backdrop-filter: blur(24px);
    display: flex;
    flex-flow: column;
}

#meta-text {
    position: absolute;
    bottom: 0px;
    right: 0px;
    background-color: transparent; 
    color: #ffffff;
    opacity: 0.15;
    z-index: 9999; 
    font-size: 8px;
    text-align: center;
    pointer-events: none; 
}