
@font-face {
    font-family: "Creepster";
    src: url("./res/font/Creepster.eot");
    src: url("./res/font/Creepster.eot?#iefix")format("embedded-opentype"),
        url("./res/font/Creepster.woff2")format("woff2"),
        url("./res/font/Creepster.woff")format("woff"),
        url("./res/font/Creepster.ttf")format("truetype"),
        url("./res/font/Creepster.svg#Creepster")format("svg");
}

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

body {
    
    margin:0;
}

/*ALL*/

label,
input,
select,
option,
span {
    font-size: 1.5rem;
}

input, select{
    width: 15rem;
}

label{
    width: auto;
    margin-right: 1rem;
}

.control{
    display: flex;
    flex-direction: column;
    position: absolute;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    width: 30rem;
}

.control > div {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.container {
    position: relative;
    width: 100;
    height: 100vh;
    padding: 3rem;
    background-color: lavender;
}

.container-dark {
    background-color: black;
}

.container-rainbow {
    background: linear-gradient(45deg,red,green,blue);
}

.container-dark label,
.container-rainbow label,
.container-dark span,
.container-rainbow span {
    color:white;
}

/*
GAME */
.loading{
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color:white;
    white-space: nowrap;
    font-family: "Creepster", Arial, Helvetica, sans-serif;
    text-align: center;
    line-height: 0.5em;
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    /* Standard syntax */
}

#gameCanvas,
#guiCanvas,
#valueCanvas,
#controlCanvas,
#pointerCanvas,
#markerCanvas,
#aiCanvas {
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* image-rendering: crisp-edges;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    -ms-interpolation-mode: nearest-neighbor; */
    /* border: 3px solid white; */
}

#markerCanvas,
#pointerCanvas,
#aiCanvas {
    opacity: 0.5;
}
#markerCanvas.hide,
#pointerCanvas.hide,
#aiCanvas.hide,
.hide {
    opacity: 0;
}


#gameContainer:-webkit-full-screen > canvas {
    width: 100% !important;
}

#gameContainer:-moz-full-screen > canvas {
    width: 100% !important;
}

#gameContainer:-ms-fullscreen > canvas {
    width: 100% !important;
}

#gameContainer:fullscreen > canvas {
    width: 100% !important;
}

/* loader */
.lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #fff;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #fff transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }

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