@import url('https://fonts.googleapis.com/css2?family=DotGothic16&display=swap');

body {
    background: #111;
    color: #ddd;
    margin: 0 auto;
    max-width: 900px;
    text-align: center;
    /* overflow-y: hidden; */ /* controversial */
}

a {
    color: #aee;
}

/* Front page */
#games {
    display: flex;
    flex-flow: row wrap;
    margin: 0 auto;
    max-width: 600px;
}

#games h2 {
    flex: 300px;
}

#games h2 img {
    display: block;
    margin: 0 auto;
}

/* Game page */
html, body {
    height: 100%;
}

#col {
    position: relative;
    /* display: flex;
    flex: 1;
    flex-flow: column; */
    height: 100%;
    justify-content: center;
    margin: 0 auto;
    max-width: 640px;
    background: #111;
}

#heading, #arthurmodes {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    max-width: 640px;
}

#heading h1, #heading p {
    font-size: 15px;
    margin: 12px;
}

/* #inner */ #game {
    /* display: flex;
    flex: 1;
    flex-flow: column; */
    justify-content: center;
}

#arthurmodes {
    justify-content: space-around;
}

#arthurmodes p {
    border: 1px solid;
    border-radius: 4px;
    cursor: pointer;
    margin: 6px 0;
    padding: 6px;
}

/* Show shorter buttons on mobile */
.arthurshort {
    display: none;
}

@media (max-width: 500px) {
    #arthurmodes p {
        font-size: 14px;
    }
    .arthurfull {
        display: none;
    }
    .arthurshort {
        display: block;
    }
}

canvas {
    position: absolute;
    display: block;
    border-radius: 2px;
    
    /* left: -50%; */
    left: 0;
    right: 0;
    top: 15%;
    
    z-index: 90;
}

#textinput {
    position: absolute;
    left: -10000px;
}

/* .arcadeButton {
    background-color: #4CAF50;
    border: none;
    color: black;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
} */

.arcade {
    position: relative;
    top: 10%;
}

.arcadeButton {
    position: absolute; 
    top: 5%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 46px;
    padding: 6px;
    
    color: #cdcdcd !important;
    font-size: 15px;
    background-color: #ffffff;
    border-width: thin;
    /* margin: 6px 0; */
    background: #2e2e2e;
    border-radius: 10px;
    border-color: #ecf0f157;
    cursor: pointer;
    z-index: 100;
}

pre {
    font-family: DotGothic16;
    word-spacing: -7.2px;
    font-weight: 500;
    font-size: 15px;
    line-height: 5px;
}

.arcadeButton:focus {
   color: #ECF0F1 !important;
   background: #19212A;
}

/* .arcadeButton:visited {
   color: white !important;
   background: #35BC27;
} */

.overlay {
    background: #111;
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0px;
    left: 0px;
    z-index: 110;
}

.loading {
    background: #111;
    color: #ddd;
    position: absolute;
    font-family: DotGothic16;
    width: 50%;
    margin: auto;
    left: 23%;
    top: 27.5%;
    z-index: auto;
}

.startButton {
    font-family: DotGothic16;
    color: #cdcdcd !important;
    font-size: 16px;
    width: 120px;
    height: 46px;
    padding: 6px;
    /* border-width: thin; */
    background-color: #ffffff;
    border-width: thick;
    margin: auto;
    top: 50%;
    background: #2e2e2e;
    border-radius: 10px;
    border-color: #ecf0f157;
    cursor: pointer;
}




::-webkit-scrollbar { width: 18px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #707278;
  border: 6.5px solid transparent;
  background-clip: padding-box;
  border-radius: 25px;
}
::-webkit-scrollbar-track-piece:end {
  background: transparent;
  margin-bottom: 14px; 
}
::-webkit-scrollbar-track-piece:start {
  background: transparent;
  margin-top: 14px;
  margin-left: 14px;
}
::-webkit-scrollbar-corner { display: none; }
