@font-face {
    font-family: 'Quicksand';
    src: url('../fonts/Quicksand/Quicksand-Regular.woff2') format('woff2'),
        url('../fonts/Quicksand/Quicksand-Regular.woff') format('woff'),
        url('../fonts/Quicksand/Quicksand-Regular.ttf') format('truetype'),
        url('../fonts/Quicksand/Quicksand-Regular.svg#Quicksand-Regular') format('svg');
}

body {
    margin: 0px; 
    padding: 0px;
    font-family: Quicksand, helvetica, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
    position: fixed;
}

h1 {
    font-family: Quicksand, helvetica, sans-serif;
    font-weight: 600;
    line-height: 1.5;
    margin: 0px;
}

h2 {
    font-family: Quicksand, helvetica, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.5;
    margin: 1.5em 0px 0.5em 0px;
}

@keyframes slide-in {
    from { left: -100vw; display: none; }
    to { left: 0px; display: inline-block; }
}

@keyframes slide-out {
    from { left: 0px; display: inline-block; }
    to { left: -100vw; display: none; }
}

label {
    margin: 0px 0.5em 0px 0px;
    display: inline-block;
    vertical-align: middle;
}

label + span {
    margin-left: 0.5em;
    display: inline-block;
    vertical-align: middle;
}

label.slider {
    height: 24px;
}

input.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 20em;
    height: 6px;
    background: #ccc;
    border-radius: 2px;
    vertical-align: middle;
    margin: 0px;
}

input.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #333399;
    border: 1px solid white;
    cursor: pointer;
}

input.slider::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #333399;
    border: 1px solid white;
    cursor: pointer;
}

label.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 27px;
    vertical-align: middle;
}

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

label.switch span {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid white;
    background-color: #ccc;
    border-radius: 24px;
    -webkit-transition: .4s;
    transition: .4s;
}

label.switch span:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    -webkit-transition: .4s;
    transition: .4s;
}

input.switch:checked + span {
    background-color: #333399;
}
  
input.switch:focus + span {
    box-shadow: 0 0 1px #333399;
}
  
input.switch:checked + span:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

.page { 
    position: absolute; 
    top: 0px;
    left: 0px;
    width:100vw; 
    height: 100vh; 
    height: 100svh; 
    overflow: hidden; 
    touch-action: none;
    backdrop-filter: blur(10px); 
    background-color: #262626AA;
    color: white;
}

.page.open { 
    animation-name: slide-in;
    animation-duration: 0.25s;
    animation-fill-mode: both;
    animation-timing-function: linear;
}

.page.close { 
    animation-name: slide-out;
    animation-duration: 0.25s;
    animation-fill-mode: both;
    animation-timing-function: linear;
}

.page.hidden { 
    display: none;
}

.page .menu { 
    touch-action: none; 
    display: inline-block; 
}

.page .menu.nw { position: absolute; top: 10px; left: 10px; }
.page .menu.ne { position: absolute; top: 10px; right: 10px; }
.page .menu.sw { position: absolute; bottom: 10px; left: 10px; }
.page .menu.se { position: absolute; bottom: 10px; right: 10px; }

.page .menu .button {
    width: 48px; /*5vh;*/
    aspect-ratio: 1/1;
    min-width: 32px; 
    overflow: hidden; 
    display: inline-block; 
    touch-action: none; 
    cursor: pointer; 
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.page .menu .button img { 
    width: 200%; 
    height: 100%; 
    position: relative; 
    left: 0%; 
    touch-action: none; 
}

.page .menu .button img:active { 
    position: relative; 
    left: -100%; 
}

@media (pointer: fine) {
    .page .menu .button img:hover { 
        position: relative; 
        left: -100%; 
    }
}

#cube { 
    width:100vw; 
    height: 100vh; 
    height: 100svh; 
    touch-action: none; 
    cursor: pointer; 
    background-color: #262626;
}

#cube.rotate { cursor: grabbing; }
#cube.move { cursor: move; }

#settings {
    color: white;
    display: display-block;
    touch-action: auto;
    overflow: auto;
}

#settings .content {
    padding: 0px 20px 2em 20px;
}

#settings .content .button {
    width: 72px; /*8vh;*/
    aspect-ratio: 1/1;
    min-width: 32px; 
}

#settings .content .button.selected img {
    position: relative; 
    left: -100%; 
}
