html, body {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    background-color: #383838;
    font-family: sans-serif;
    touch-action: none;
}

body {
    margin: 0;
}

button {
    background-color: #ededed;
    border: none;
    padding: 4px 6px;
    border-radius: 2px;
    cursor: pointer;
}

#debug-cross {
    position: absolute;
    left: 50%;
    top: 50%;
    pointer-events: none;
}

#main-container {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.overlay {
    z-index: 100;
    position: absolute;
    box-shadow: #0000008a 1px 1px 4px 2px;
    background-color: #141414;
    opacity: 0.4;
    transition: opacity 200ms;
}

.overlay:hover {
    opacity: 0.9;
}

#controls-container {
    /*background-color: rgba(128, 128, 128, 0.29);*/
    padding: 10px 20px;
    border-radius: 20px;
    top: 20px;
    left: 20px;
    user-select: none;
    max-width: 50vw;
    opacity: 0.8;
}
#controls-container:hover,#controls-container:focus,#controls-container {
    opacity: 0.95;
}

@media (orientation: portrait) {
    #controls-container {
        max-width: 80vw;
    }
}

#colors-container {
    white-space: nowrap;
    overflow-x: auto;
    margin-bottom: 5px;
    padding: 0px 5px;
    /*-ms-overflow-style: none;*/
    /*scrollbar-width: none;*/
}

#colors-container::-webkit-scrollbar {
    /*display: none;*/
}

.color-button {
    cursor: pointer;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 10px;
    box-shadow: #818181 0 0 3px 3px
}

.color-button.selected-color {
    box-shadow: #eeeeee 0 0 6px 6px
}

#color-place-button, #color-cancel-button {
    width: 50px;
    height: 30px;
    padding: 8px 8px;
}

#timer-container {
    top: 20px;
    right: 20px;
    color: white;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 20px;
    user-select: none;
}

#position-container {
    bottom: 20px;
    left: 20px;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 18px;
}

#info-container {
    bottom: 20px;
    right: 20px;
    color: white;
    padding: 10px 10px;
    border-radius: 20px;
    font-size: 16px;
}

#camera {
    top: 0;
    left: 0;
    user-select: none;
    display: block;
    height: 100%;
    width: 100%;
    /*overflow: hidden;*/
    position: relative;
    transform-origin: left top;
}

#position {
    user-select: none;
    position: absolute;
    transform-origin: left top;
}

#zoom {
    user-select: none;
    position: relative;
    transform-origin: left top;
}

#selection-container {
    position: absolute;
    z-index: 1000;
    /*border: black solid;*/
    transform-origin: left top;
    pointer-events: none;
    transition: transform 200ms;
}

#selection-wrapper, #selection-container > svg {
    width: 100px;
    height: 100px
}

#selection-bubble {
    position: absolute;
    transform: translate(-206px, -194px) scale(0.5);
    border-radius: 50px;
    opacity: 0.9;
}

#selection-bubble > svg {
    border-radius: 20px;
}

#selection-text-container{
    position: absolute;
    font-size: 40px;
    width: 100%;
    height: 100%;
    vertical-align: center;
}

#selection-text {
    text-align: center;
    margin: 0 auto;
    top: 20%;
    width: 100%;
    position: absolute;
    transform: translateY(-20%);
}

#canvas-container {
    top: 0;
    left: 0;
    transform-origin: left top;
}

#canvas {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    left: 0;
    top: 0;
    /*top: 0;*/
    /*left: 0;*/
    transform-origin: left top;
}

#credits {
    font-size: 10px;
    transform: scale(0.2);
    width: 100%;
    color: white;
    opacity: 0.8;
    text-align: center;
}

#credits a {
    text-decoration: none;
    color: #6d6dff;
}

.grecaptcha-badge {
    bottom: 84px !important;
}
