@font-face {
    font-family: "Open Sans";
    src: url("./fonts/ObjectSans-Regular.woff") format("woff");
}  

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
}

h2 {
    font-size: 250%;
    font-weight: normal;
}

#contentOverlay h2 {
    margin: 20px 200px 20px 80px;
}

#contentOverlay h2:not(:first-of-type) {
    margin-top: 250px;
}

p.underline {
    text-decoration: underline;
    cursor: pointer;
}

#contentOverlay p {
    margin: 20px 200px 20px 80px;
    font-size: 150%;
}

#contentOverlay a {
    color: #000000;
    font-size: 150%;
    text-align: right;
}

#contentOverlay p > a {
    font-size: 100%;
    text-decoration: none;
}

#contentOverlay .two-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    margin: 20px 200px 20px 80px;
    min-width: calc(100% - 280px);
    justify-items: stretch;
}

#contentOverlay .two-columns p {
    margin: 0 15px 15px 0;
}

#contentOverlay .row {
    display: flex;
    margin: 10px 0 20px 80px;
}

#contentOverlay .row > img {
    width: 50px;
    margin-right: 20px;
}

#videos {
    display: none;
}

canvas {
    margin: 0;
    padding: 0;
}

#container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#fpsCounter, #speed {
    position: fixed;
    top: 25px;
    right: 20px;
    color: #FFFFFF;
    margin: 0;
    text-align: right;
}

#speed {
    top: 46px;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

.flex-center.dark {
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}

.flex-center.dark > img {
    position: fixed;
    top: 50px;
    left: 50px;
    filter: invert(1);
    cursor: pointer;
}

#crosshair {
    width: 12px;
    height: 12px;
}

#overlay-video {
    height: 90%;
    width: 90%;
    max-width: 90%;
    max-height: 90%;
}

#overlay, #loadingOverlay, #contentOverlay {
    position: fixed;
    top: 0;
    /* change to 50% after homegate review */
    left: 0;
    /* change to 50 after homegate review */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
}

#contentOverlay {
    left: 0;
    background-color: #FFFFFF;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-y: auto;
}

#overlay {
    z-index: 5;
    background-color: unset;
}

#loadingOverlay {
    z-index: 20;
}

#startButton, #reloadBenchmark {
    border: 2px solid #FFFFFF;
    background-color: #000000;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 200%;
    padding: 7px 12px;
}

#startButton {
    position: fixed;
}

#reloadBenchmark {
    font-size: 100%;
    position: fixed;
    bottom: 20px;
    left: 20px;
}

#touchControls {
    display: none;
}

#touchControls > img {
    position: fixed;
    z-index: 2;
    filter: invert(1);
    background-color: rgba(255, 255, 255, 0.5);
}

#touchControls > img:hover {
    background-color: rgba(230, 230, 230, 0.5);
}

#arrowLeft {
    bottom: 20px;
    left: 20px;
    transform: rotate(90deg);
}

#arrowDown {
    bottom: 20px;
    left: 80px;
}

#arrowRight {
    bottom: 20px;
    left: 140px;
    transform: rotate(-90deg);
}

#arrowUp {
    bottom: 80px;
    left: 80px;
    transform: rotate(180deg);
}

#mobileSettings {
    padding: 10px;
    top: 20px;
    left: 20px;
}

#loadingOverlay {
    background-color: rgba(0, 0, 0, 0.99);
    opacity: 1;
    transition: 1s all;
}

#progressBarBackground {
    display: flex;
    justify-content: flex-end;
    width: 20vw;
    height: 0.5vw;
    background: linear-gradient(90deg, rgba(236,118,115,1) 0%, rgba(178,90,160,1) 28%, rgba(90,87,179,1) 62%, rgba(85,82,169,1) 85%, rgba(54,52,107,1) 100%);
}

#progressBar {
    display: block;
    width: 20vw;
    height: 0.5vw;
    background-color: #000000;
}

#percentageText {
    color: #FFFFFF;
    font-size: 2vw;
    margin: 1vw 0;
}

#progressText {
    color: #FFFFFF;
    font-size: 1.5vw;
    margin: 0.75vw 0;
}

#graphicsSliderLabel {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    color: #FFFFFF;
    width: 80vw;
    max-width: 300px;
}

.logo {
    width: 150px;
    padding: 80px;
}

/* Slider */
input[type=range] {
    -webkit-appearance: none;
    margin: 18px 0;
    width: 100%;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 28px;
    cursor: pointer;
    background: #000000;
    border: 2px solid #FFFFFF;
    box-shadow: none;
    border-radius: 0;
    padding: 0 1px;
}

input[type=range]::-webkit-slider-thumb {
    box-shadow: none;
    border: none;
    height: 22px;
    width: 22px;
    border-radius: 0;
    background: #FFFFFF;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: 1px;
}

input[type=range]:focus::-webkit-slider-runnable-track {
    background: #000000;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 28px;
    cursor: pointer;
    background: #000000;
    border: 2px solid #FFFFFF;
    box-shadow: none;
    border-radius: 0;
    padding: 0 2px;
}

input[type=range]::-moz-range-thumb {
    box-shadow: none;
    border: none;
    height: 22px;
    width: 22px;
    border-radius: 0;
    background: #FFFFFF;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: 2px;
}

.dg.ac {
    z-index: 10 !important;
}