@font-face {
    font-family: "Ubuntu Mono";
    src: url("/static/fonts/UbuntuMono-Regular.ttf");
}


:root {
    --main-color: #e95420;
    --main-light: #ef835e;
    --main-trans: #e9542069;
}

canvas {
    /* border:1px solid #d3d3d3; */
    /* background-color: #020011; */
    padding-left: 0;
    padding-right: 0;
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: 60px;
    background-color: rgba(2,0,17,0.6);
}

#loadingImgs {
    width: 200px;
    height: 200px;
    background: radial-gradient(rgba(2,0,17,0.6) 1%, rgba(2,0,17,0) 70%);
    top: 40%;
}

body {
    font-family: Ubuntu Mono, Lucida Console, Lucida Sans Typewriter, monospace;
    background-color: #020011;
    background-image: url("/static/content/bg.jpg");
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    padding: 0;
    margin: 0;
}

.content {
    width: 90%;
    height: 90vh;
    display: block;
    /* margin:auto; */
    margin-top: 10px;
    margin-bottom: 0;
    /* background-color: #ffffff;
    box-shadow: 0 0 10px #ffffff; */
    padding: 10px;
    background: inherit;
    position: absolute;
    overflow: hidden;
    left: 0;
    right: 0;
    margin: 0 auto;
    border-bottom-left-radius: 3px; 
    border-bottom-right-radius: 3px; 
}

.content:before{
    width: 150%;
    height: 150%;
    content: "";
    position: absolute;
    top: -25px;
    left: -25px;
    bottom: 0;
    right: 0;
    background: inherit;
    box-shadow: inset 0 0 0 1000px rgba(95, 95, 95, 0.2);
    filter: blur(30px);
}

.content-inner {
    max-width: 100%;
    height: 90vh;
    display: block;
    margin:auto;
    margin-top: 10px;
    margin-bottom: 0;
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    padding-left: 100px;
    padding-right: 100px;
}

.content-inner > h1 {
    color: white;
    text-align: center;
    margin: 0;
}

.content-inner > p {
    color: rgb(224, 224, 224);
    text-align: center;
}

.overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.8);
    z-index: 100;
}

.dialogueBox {
    background-color: white;
    width: 400px;
    box-shadow: 0 10px 10px rgba(0,0,0,0.5);
    padding: 15px;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: center;
}

.dialogueBox > table {
    margin: auto;
    margin-bottom: 20px;
    color: black;
}

.btn {
    font-family: Ubuntu Mono, Lucida Console, Lucida Sans Typewriter, monospace;
    background-color: var(--main-color);
    color: white;
    border: none;
    border-radius: 1px;
    padding: 5px;
    margin: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.4);
    font-size: 16px;
    font-weight: bold;
}

.btn:hover {
    box-shadow: 1px 1px 10px rgba(0,0,0,0.8);
    background-color: var(--main-light);
    padding: 7px;
    margin: 2px;
}

table {
    text-align: center;
    border-collapse: collapse;
    /* box-shadow: 1px 1px 3px rgba(0,0,0,0.8); */
    /* margin: 3px; */
    margin: auto;
    color: white;
}

td {
    border-top: 1px solid var(--main-color);
    border-bottom: 1px solid var(--main-color);
}

th,
td {
    padding: 3px 15px;
}

th {
    color: var(--main-color);
    font-weight: normal;
    font-size: 17px;
    text-shadow: 1px 1px 7px black;
}

tr:nth-child(even) {
    background-color: var(--main-trans);
}

td:nth-of-type(3) {
    color: var(--main-light);
    font-weight: bold;
}

td:nth-of-type(2) {
    font-weight: bold;
}

.progress-bar {
    width:100%;
    background-color: grey;
    margin-top: 100px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    border-radius: 1px;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 30px;
    background-color: var(--main-color);
    font-family: Ubuntu Mono, Lucida Console, Lucida Sans Typewriter, monospace;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: bold;
    line-height: 30px;
    box-shadow: 6px 0 20px rgba(0,0,0,0.7);
}

.controls {
    margin: 10px;
    text-align: center;
}

#scoreboard {
    margin-top: 0;
    display: none;
}

button {
    cursor: pointer;
}

button.cooldown {
    border: 0;
    color: white;
    overflow: hidden;
    cursor: pointer;
}

button.disabled {
    background: var(--main-trans);
    color: #d9d9d9;
    cursor: default;
    padding: 3px;
    margin: 5px;
    -webkit-box-shadow: inset 3px 3px 10px 0px rgba(0, 0, 0, 0.2);
            box-shadow: inset 3px 3px 10px 0px rgba(0, 0, 0, 0.2);
}

.btn.disabled:hover {
    background: var(--main-trans);
    color: #d9d9d9;
    cursor: default;
    padding: 3px;
    margin: 5px;
    -webkit-box-shadow: inset 3px 3px 10px 0px rgba(0, 0, 0, 0.2);
            box-shadow: inset 3px 3px 10px 0px rgba(0, 0, 0, 0.2);
}

button.cooldown:disabled:after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    left: 0;
    height: 5px;
    background: var(--main-color);
    -webkit-animation: cooldown 10s linear;
            animation: cooldown 10s linear;
    }

@-webkit-keyframes cooldown {
0% {
    width: 100%;
}
100% {
    width: 0;
}
}

@keyframes cooldown {
0% {
    width: 100%;
}
100% {
    width: 0;
}
}

.country-btn {
    background-color: rgba(255,255,255,0.5);
    padding: 2px;
    margin: 7px;
    -webkit-animation: wiggle 1.5s infinite;
            animation: wiggle 1.5s infinite;
}

.country-btn.active {
    padding: 7px;
    margin: 2px;
    box-shadow: 1px 1px 10px rgba(0,0,0,0.9);
    animation: none;
}

.country-btn:hover {
    animation: none;
}

.btn-row {
    margin-bottom: 10px;
}

@keyframes wiggle {
    0% { transform: rotate(0deg); }
   80% { transform: rotate(0deg); }
   85% { transform: rotate(5deg); }
   95% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

@-webkit-keyframes wiggle {
    0% { transform: rotate(0deg); }
   80% { transform: rotate(0deg); }
   85% { transform: rotate(5deg); }
   95% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

.tabs-row {
    border-bottom: solid thin var(--main-color);
    width: 50%;
    left: 0;
    right: 0;
    margin: 0 auto;
    margin-bottom: 8px;
    margin-top: 40px;
    padding-left: 100px;
    overflow: hidden;
}

.tabs-row > button {
    font-family: Ubuntu Mono, Lucida Console, Lucida Sans Typewriter, monospace;
    font-size: 18px;
    color: var(--main-color);
    background: none;
    border-top-right-radius: 1px;
    border-top-left-radius: 1px;
    border: solid thin var(--main-color);
    border-bottom: none;
}

.tabs-row > button:hover {
    background-color: var(--main-trans);
    padding-top: 2px;
}

.tabs-row > button.active {
    color: white;
    background-color: var(--main-color);
    padding-top: 5px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 1);
}

.control-box {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 5px;
    z-index: 99;
}

.options-box > .btn,
.control-box > .btn {
    -webkit-animation: wiggle 1.5s infinite;
            animation: wiggle 1.5s infinite;
}

.options-box > .btn.active,
.control-box > .btn.active {
    margin: 0;
    color: var(--main-color);
    background: none;
    border: solid thin var(--main-color);
    border-bottom: none;
    animation: none;
    margin-left: 5px;
}

.control-expand {
    display: none;
    color: var(--main-color);
    background-color: rgba(0,0,0,0.9);
    box-shadow: 1px 1px 10px rgba(0,0,0,0.5);
    padding-top: 2px;
    padding-bottom: 2px;
    padding-right: 10px;
    border-radius: 2px;
    border-top: solid thin var(--main-color);
}

.control-expand > ul {
    padding-left: 25px;
    margin-top: 5px;
}

.options-box {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 5px;
    z-index: 99;
}

.slider-box {
    padding-left: 10px;
}

.slider-box > label {
    float: left;
}

.slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-progress-appearance: none;
    appearance: none;
    outline: none;
}

.slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border: none;
    background-color: var(--main-color);
    cursor: pointer;
}

.slider::-webkit-slider-thumb  {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border: none;
    background-color: var(--main-color);
    cursor: pointer;
}

#musicIcon,
#soundIcon {
    float: right;
    width: 16px;
    cursor: pointer;
}

footer {
    position: absolute;
    color: white;
    text-align: center;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.9);
}

footer > a {
    color: var(--main-color);
}

.row {
    width: 100%;
    padding: 0;
    overflow: hidden;
}

/* .col:nth-child(2) {
    border-left: solid thin var(--main-color);
} */

.col {
    width: 50%;
    float: left;
    padding: 0;
    margin: 0;
    text-align: center;
    color: white;
}
.col > p {
    max-width: 300px;
    text-align: justify;
    left: 0;
    right: 0;
    margin: 0 auto;
}
.col:nth-child(2) > p {
    max-width: unset;
}

.help-box {
    color: white;
    max-width: 800px;
    text-align: center;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.mobile-warning {
    display: none;
}

.small-warning {
    display: none;
}

.zoom-warning {
    display: none;
}

#hardMode {
    line-height: 15px;
    color: var(--main-color);
    border: solid thin var(--main-color);
    background-color: unset;
}

#hardMode:hover {
    font-size: 18px;
    margin: 1px;
}

#hardMode.active {
    line-height: 17px;
    color: white;
    border: none;
    background-color: var(--main-color);
    margin-left: 6px;
}

#hardMode.active:hover {
    margin: 2px;
}

@media only screen and (orientation: portrait) {
    th:nth-child(n+4),
    td:nth-child(n+4) {
        display: none;
    }
    .content-inner {
        overflow-y: scroll;
        padding-left: 5px;
        padding-right: 5px;
    }
    .country-btn,
    #startBtnEndless,
    #startBtnTut,
    /* #hardMode, */
    .control-box > .btn,
    .options-box > .btn {
        display: none;
    }
    .tabs-row {
        width: 90%;
        padding-left: 10px;
    }
    .dialogueBox {
        width: 95% !important;
    }
    .col {
        width: 80%;
        margin: 5px;
        padding: 5px;
    }
    footer {
        font-size: 12px;
    }
    .mobile-warning {
        display: block;
        color: white;
        text-align: center;
    }
}

@media only screen and (max-width: 1000px) and (orientation: landscape) {
    th:nth-child(n+4),
    td:nth-child(n+4) {
        display: none;
    }
    .content-inner {
        overflow-y: scroll;
        padding-left: 5px;
        padding-right: 5px;
    }
    .country-btn,
    #startBtnEndless,
    #startBtnTut,
    /* #hardMode, */
    .control-box > .btn,
    .options-box > .btn {
        display: none;
    }
    .tabs-row {
        width: 90%;
        padding-left: 10px;
    }
    .dialogueBox {
        width: 95% !important;
    }
    .col {
        width: 80%;
        margin: 5px;
        padding: 5px;
    }
    footer {
        font-size: 12px;
    }
    .small-warning {
        display: block;
        color: white;
        text-align: center;
    }
}

@media only screen and (max-height:800px) and (min-width: 1000px) and (orientation: landscape) {
    .zoom-warning {
        display: block;
        color: white;
        text-align: center;
    }
}
