@font-face {
    font-family: "BebasNeue";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
    url("../assets/fonts/BebasNeueRegular.otf") format("opentype");
}

html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    font-family: "BebasNeue", sans-serif;
    overflow: hidden;
}

body#loginPage {
    display: flex;
    justify-content: center;
    align-items: center;
}

body#loginPage form {
    box-shadow: 0px 0px 4px 1px black;
    border-radius: 8px;
    padding: 50px;
}

body#loginPage form input {
    border: 1px solid black;
    padding: 8px;
    font-family: "BebasNeue", sans-serif;
    font-size: 1em;
    outline: none;
}

body:has(.GameContainer) {
    display: flex;
    flex-direction: row;
    background-image: url("../assets/images/back3.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position-y: center;
}

.GameContainer {
    width: 100%;
    height: 100%;
    display: grid;
    /*grid-template-rows: minmax(90px, 1fr) minmax(270px, 3fr) minmax(90px, 1fr);*/
    grid-template-rows: 22% 60% 18%;
    transition: 0.5s all;
    transform: translateX(100%);
    opacity: 0;
}

.GameContainer.animation-left {
    transform: translateX(-100%);
}

.GameContainer.no-animation {
    transform: translateX(0);
    opacity: 1;
}

.GameContainer.no-pointer-events {
    pointer-events: none;
}

.GameContainer .alignCenter {
    align-items: center;
}

.GameContainer .justifyEnd {
    justify-content: end;
}

.GameContainer .buttonOrange,
.GameContainer .buttonBlue,
.GameContainer .buttonPurple {
    font-family: "BebasNeue", sans-serif;
    font-size: 7cqh;
    background: #FD6700;
    color: white;
    border: 0;
    border-radius: 1.876cqh;
    padding: 0px 1.876cqh;
    cursor: pointer;
}

/* specifically target safari on IOS */
/* @supports (-webkit-touch-callout: none) {
    .GameContainer .buttonOrange,
    .GameContainer .buttonBlue,
    .GameContainer .buttonPurple {
        padding-bottom: 2px; /* TODO: convert to cqh *//*
    }
} */

.GameContainer .buttonOrange {
    font-size: 8cqh;
    background: #FD6700;
    line-height: 8.3cqh;
}

.GameContainer .buttonBlue {
    font-size: 5cqh;
    background: #0059FA;
}

.GameContainer .buttonPurple {
    font-size: 5cqh;
    background: #000FA8;
}

.GameContainer .TopContainer, .GameContainer .BottomContainer {
    display: flex;
    gap: 1.5635cqh;
    margin: 2.344cqh 4.688cqh;
}

.GameContainer .BottomContainer {
    gap: 2cqh;
}

.GameContainer .TopContainer img {
    height: 100%;
}

.GameContainer .MiddleContainer.TeamForm {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    padding: 0 50% 0 8%;
}

.GameContainer .MiddleContainer.TeamForm .formInput {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.GameContainer .MiddleContainer.TeamForm .formInput label {
    font-size: 6cqh;
    flex: 1;
    color: #0059FA;
    display: flex;
    align-items: flex-end;
}

.GameContainer .MiddleContainer.TeamForm .formInput input {
    flex: 1;
    font-size: 6cqh;
    border: 0.156cqh solid black;
    border-radius: 2.35cqh;
    padding: 0px 1.5635cqh;
}

.GameContainer .MiddleContainer.TeamForm .formInput input.missingInput {
    background: rgb(255, 187, 187);
}

.GameContainer .MiddleContainer:has(.buttonBlue) {
    display: flex;
    justify-content: center;
    align-items: center;
}

.GameContainer .MiddleContainer .buttonBlue {
    font-size: 12.5cqh;
    height: min-content;
    padding: 0px 2.35cqh;
}

.GameContainer .MiddleContainer:has(.timer) {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.GameContainer .MiddleContainer .timer {
    display: flex;
    flex-direction: row;
    border: 0.156cqh solid black;
    border-radius: 1.5635cqh;
    gap: 1.5635cqh;
    text-align: center;
    padding: 0px 2.35cqh;
}

.GameContainer .MiddleContainer .timer div {
    display: flex;
    flex-direction: column;
}

.GameContainer .MiddleContainer .timer div span {
    font-size: 4cqh;
    color: #FD6700;
}

.GameContainer .MiddleContainer .timer div span:not(:last-child) {
    font-size: 16cqh;
    color: #0059FA;
    line-height: 1;
}

.GameContainer .MiddleContainer .timer div span.timerWidthHack {
    height: 0;
    overflow: hidden;
}

.GameContainer .MiddleContainer .questionQuestion {
    font-size: 6cqh;
    color: #0059FA;
    padding: 1.563cqh 14.063cqh;
    text-align: center;
}

.GameContainer .MiddleContainer .questionQuestion span {
    display: block;
    background: white;
    border-radius: 4cqh;
    padding: 1cqh 4cqh;
}

.GameContainer .MiddleContainer .questionAnswers {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 58%;
    gap: 3.125cqh;
}

.GameContainer .MiddleContainer .questionAnswers .buttonPurple {
    font-size: 6cqh;
    padding: 1.9cqh 2cqh;
}

@media only screen and (max-width: 1200px) {
    .GameContainer .MiddleContainer .questionQuestion {
        font-size: 6cqh;
    }
    
    .GameContainer .MiddleContainer .questionAnswers .buttonPurple {
        font-size: 5cqh;
    }
}

.GameContainer .MiddleContainer:has(.magicpointsTimeStopped) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6.25cqh;
}

.GameContainer .MiddleContainer .magicpointsTimeStopped {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.GameContainer .MiddleContainer .magicpointsTimeStopped .magicpointsTimeLabel {
    color: #0059FA;
    font-size: 14cqh;
    line-height: 11.2cqh;
}

.GameContainer .MiddleContainer .magicpointsTimeStopped .magicpointsTime {
    color: #FD6700;
    font-size: 20cqh;
    line-height: 16cqh;
}

.GameContainer .MiddleContainer .magicpointsTimeStopped .magicpointsTime .magicpointsTotalTime {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.GameContainer .MiddleContainer .magicpointsTimeStopped .magicpointsTime .magicpointsTotalTime span span {
    position: absolute;
    padding-left: 1.6cqh;
    font-size: 8cqh;
}

.GameContainer .MiddleContainer .magicpointsWordPoints {
    color: #0059FA;
    font-size: 6cqh;
    display: flex;
    flex-direction: row;
    gap: 3.125cqh;
}

.GameContainer .MiddleContainer .magicpointsWordPoints span:has(select) {
    display: flex;
    align-items: center;
}

.GameContainer .MiddleContainer .magicpointsWordPoints select {
    background: #000FA8;
    color: white;
    font-size: 4.5cqh;
    border: 0;
    border-radius: 1.9cqh;
    padding: 0.1cqh 1.9cqh;
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sOS4yMDYsMjkuOTk0LDEwLjE4M3oiLz4gPC9nPiA8L2c+Cg08L3N2Zz4=);
    background-size: 2.5cqh;
    background-repeat: no-repeat;
    background-position-x: 83%;
    background-position-y: center;
}

.GameContainer .MiddleContainer:has(.teamScore) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.GameContainer .MiddleContainer .teamScore {
    color: #0059FA;
    font-size: 12cqh;
}

.GameContainer .MiddleContainer .teamPoints {
    color: #000FA8;
    font-size: 8cqh;
}

.GameContainer .MiddleContainer .teamPointsTotal {
    color: #FD6700;
    font-size: 20cqh;
    padding-top: 6cqh;
}

.GameContainer .MiddleContainer .teamPointsTotal .teamPointsTotalPoints {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.GameContainer .MiddleContainer .teamPointsTotal .teamPointsTotalPoints span:first-of-type {
    font-size: 8cqh;
    line-height: 0cqh;
}

.GameContainer .MiddleContainer .teamPointsTotal .teamPointsTotalPoints span:last-of-type {
    line-height: 23cqh;
}

.GameContainer .MiddleContainer:has(.topTenLabel) {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.GameContainer .MiddleContainer .topTenLabel {
    color: #000FA8;
    font-size: 10cqh;
}

.GameContainer .MiddleContainer .topTenRecords {
    border-collapse: collapse;
}

.GameContainer .MiddleContainer .topTenRecord {
    color: #0059FA;
    font-size: 4.6cqh;
    line-height: 4.87cqh;
}

.GameContainer .MiddleContainer .topTenRecord.newTopTenRecord {
    background: #FDD0B0;
}

.GameContainer .MiddleContainer .topTenRecord.newTopTenRecord td:first-of-type {
    border-radius: 1.75cqh 0px 0px 1.75cqh;
}

.GameContainer .MiddleContainer .topTenRecord.newTopTenRecord td:last-of-type {
    border-radius: 0px 1.75cqh 1.75cqh 0px;
}

.GameContainer .MiddleContainer .topTenRecord td {
    padding: 0px 3cqh;
}

.GameContainer .MiddleContainer .topTenRecord td:last-of-type {
    text-align: end;
}

.GameContainer .MiddleContainer:has(video) {
    display: flex;
    justify-content: center;
}

.GameContainer .MiddleContainer video {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.GameContainer .MiddleContainer .tempinsert {
    display: none;
    position: absolute;
    color: red;
    font-size: 7cqh;
    transform: translateY(-100%);
}

.GameContainer .MiddleContainer:has(.loader.fullloader) {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.GameContainer .BottomContainer img {
    height: 78%;
}

.loader {
    width: 3.75cqh;
    height: 3.75cqh;
    border: 0.391cqh solid #0084e9;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader.fullloader {
    width: auto;
    height: 50%;
    aspect-ratio: 1 / 1;
    border-width: 0.781cqh;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}