:root {
    --bg: rgb(19, 3, 54);
    --col: #fff8a6;
}

html, body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

html, body, canvas {
    padding: 0;
    margin: 0;
    background: var(--bg);
    overflow: hidden;
}

* {
    outline: none;
    border: none;
    box-sizing: border-box;
    cursor: crosshair !important;
}

.flash {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    background: white;
    transition: opacity 0.1s;
}

.demo-title {
    font-family: Arial, Helvetica, sans-serif;
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 14pt;
    line-height: 1.4em;
}

.popup {
    position: absolute;
    left: 50vw;
    top: 50vh;
    transform: translate(-50%, -50%) rotateY(0deg);
    width: calc(95vh / 3 * 2);
    min-width: 50vw;
    max-width: calc(100vw - 5vh);
    height: 95vh;
    border-radius: 50px;
    background: var(--bg);
    box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    transition: transform 0.5s;
}

.popup video {
    height: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleX(-1);
}

.cam-error {
    display: none;
}

.cam-error span {
    color: red;
}

.cam-error .button-container {
    margin-top: 10vh;
    margin-bottom: 5vh;
}

.cam-error button {
    padding-left: 2.5vh;
    padding-right: 2.5vh;
    box-shadow: 0px 0px 50px var(--col) !important;
}

.cam-container {
    height: 100%;
    width: 100%;
    padding: 0px !important;
    box-shadow: 0px 0px 50px black;
}

.button-container {
    z-index: 10;
    cursor: pointer;
    white-space: nowrap;
}

.cam-container .button-container {
    position: absolute;
    bottom: 3.75vh;
    left: 50%;
    transform: translateX(-50%);
}

.cam-container button {
    width: 100px;
}

.button-container button {
    background: var(--bg);
    border-radius: 50px;
    font-size: 24pt;
    color: var(--col);
    height: 100;
    box-shadow: 0px 0px 60px var(--bg);
}

#overlay, #preview {
    position: absolute;
    left: 50%;
    top: calc(50% - 5vh);
    transform: translate(-50%, -50%) scaleX(-1);
    width: calc(100% - 5vh);
    max-width: 80vh;
    height: auto;
    z-index: 2;
    /* top: 5vh; */
}

#overlay {
    filter: drop-shadow(0px 0px 5px transparent);
}

#preview {
    display: none;
    clip-path: circle(50%);
    width: calc(100% - 5vh - 4px);
    top: calc(50% - 5vh - 1px);
}

.cam-container svg * {
    stroke-width: 2px;
    stroke: var(--bg);
    fill: transparent;
}

button:hover, button.enabled {
    background: var(--col);
    color: var(--bg);
}

.tiny {
    font-size: 10pt;
}

.mediumSize {
    font-size: 15pt;
}

.italic {
    font-style: italic;
}

.intro>* {
    position: relative;
}

.intro {
    position: absolute;
    color: var(--col);
    height: 100%;
    width: 100%;
    overflow-y: auto;
    z-index: 2;
    font-size: 28pt;
    overflow-y: scroll;
    scrollbar-color: var(--col) var(--bg);
    scrollbar-width: thin;
    overflow-x: hidden;
}

#button_2 {
    display: none;
}

button:not(:first-child) {
    margin-left: 5vh;
}

.popup.isConfirming #button_2 {
    display: inline-block !important;
}

.popup.isConfirming canvas {
    display: inline-block !important;
}

.popup.isConfirming #button_1 {
    display: none !important;
}

.popup.hide {
    transform: translate(-50%, -50%) rotateY(90deg);
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background-color: var(--col);
}

.intro>div {
    background: transparent;
    color: var(--col);
    font-family: arial;
    padding: 30px;
}

@media only screen and (min-width: 600px) and (max-width: 1000px) {
    .intro>div {
        padding: 45px;
    }
}

@media only screen and (min-width: 1000px) {
    .intro>div {
        padding: 60px;
    }
}

.test {
    position: absolute;
    top: 0px;
    left: 0px;
}

.stats {
    position: fixed;
    top: 0px;
    z-index: 10;
    left: 0px;
    background: var(--bg);
    color: var(--col);
    display: none;
}

.guide, .vitaminD {
    background: var(--bg);
    color: var(--col);
    position: absolute;
    left: 50vw;
    transform: translateX(-50%);
    padding: 1.25vh;
    border-radius: 10vh;
    display: none;
    text-align: center;
    font-family: arial;
    overflow: hidden;
}

.guide {
    top: 5vh;
}

.guide.visible {
    display: inline-block;
}

.vitaminD {
    bottom: 5vh;
    width: calc(100vw - 10vh);
    /* display: inline-block !important; */
    background: transparent;
    border: 1px solid white;
    mix-blend-mode: difference;
    /* background: var(--bg); */
    white-space: nowrap;
    display: none;
}

.vitaminD span {
    height: 100%;
    left: 0px;
    top: 0px;
}

.vitaminD .loader {
    position: absolute;
    background: yellow;
    z-index: 1;
}

.vitaminD .loader-text {
    mix-blend-mode: difference;
    position: relative;
    width: 100%;
    text-align: center;
    vertical-align: middle;
    z-index: 2;
}