body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
}

video, canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

canvas {
    transform: scaleX(-1);
}

.mirrored {
    transform: scaleX(-1);
}

.switcher-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    margin-top: 10px;
    color: #fff;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-left: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

#statusLabel {
    margin-left: 10px;
}

#infotext {
    position: fixed;
    bottom: 5px;
    right: 10px;
    max-width: 160px;
    width: 160px;
    height: 50px;
    text-align: center;
    z-index: 1;
    font-size: 12px;
    color: grey;
    font-family: Arial, Helvetica, sans-serif;
}

#closingbutton {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    text-align: right;
    z-index: 1;
    color: grey;
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    background-color: rgba(128, 128, 128, .4);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#linkbutton {
    position: fixed;
    bottom: 60px;
    right: 10px;
    left: 10px;
    width: auto;
    height: 55px;
    z-index: 1;
    color: #fff;
    background-color: rgba(28, 28, 28, .5);
    backdrop-filter: blur(10px);
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

#linktext {
    flex: 1;
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
}

.text-content {
    display: block;
    margin-left: 10px;
    font-size: 12px;
}

#linkurl {
    color: gray;
}

#gotext {
    color: #0a84fe;
    text-align: right;
    margin-right: 15px;
    font-size: 17px;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
}

#immersivebutton {
    position: fixed;
    top: -35px;
    left: 30px;
    width: 200px;
    height: 60px;
    margin-right: 50px;
    text-align: left;
    z-index: 1;
}

#switchcamera {
    position: fixed;
    bottom: 5px;
    left: 0;
    max-width: 400px;
    height: 50px;
    text-align: center;
    font-size: 15px;
    z-index: 1;
    color: grey;
    font-family: Arial, Helvetica, sans-serif;
}

#photoButton, #cameraButton {
    background-color: white;
    border: 2px solid #ccc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    transition: background-color 0.3s;
    position: absolute;
    top: 5px;
    display: inline-block;
}

#photoButton {
    left: 60px;
}

#cameraButton {
    left: 0px;
}

#photoButton svg, #cameraButton svg {
    width: 30px;
    height: 30px;
    fill: #CCC;
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#photoButton:hover, #cameraButton:hover {
    background-color: #f0f0f0;
}


.modal {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 15px;
    border: 1px solid #888;
    width: 70%;
    max-width: 600px;
    text-align: center;
    position: relative;
    border-radius: 10px;
}

.modal-header {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    margin-bottom: 10px;
    margin-top: 40px;
}

.modal img {
    width: 100%;
    height: auto;
}

.close {
    color: #CCC;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    background-color: #EEE;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.download {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 70px;
    top: 10px;
    background-color: #EEE;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.download svg {
    width: 20px;
    height: 20px;
    fill: #CCC;
}

.download:hover, .download:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#splash {
    display: none;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    margin: auto;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.loading {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: .25rem solid rgba(255, 255, 255, .2);
    border-top-color: #fff;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#loadingcontainer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#loadingtext {
    margin-top: 8px;
    font-size: 16px;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
	visibility: hidden;
    height: 0;
}

#loadingtext.visible {
    visibility: visible;
    height: auto;
}

#videoContainer {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: none;
}
