@font-face {
    font-family: "RobotoMono";
    src: url("/static/roboto-mono/RobotoMono-VariableFont_wght.ttf") format("woff2-variations");
    font-weight: 125 950;
    font-stretch: 75% 125%;
    font-style: normal;
}

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    width: 100%;
    height: 100%;
    touch-action: manipulation;
}

.loading-text {
    width: 100%;
    text-align: center;
    font-size: 24px;
}

.label {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 4px;
}

.modal-divider {
    color: #DEE2E6;
    opacity: 1;
    margin-left: -1rem;
    margin-right: -1rem;
}

.btn-square {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-sm.btn-square {
    width: 31px;
    height: 31px;
    font-size: 22px;
}



/* General Grid */

.grid-tile {
    border-radius: 0.25rem;
    border: 1px solid black;
    margin-right: 4px;
    width: 31px;
    height: 31px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
}

.grid-tile * {
    position: relative;
    left: 0.5px;
    top: -0.5px;
}

.grid-tile-black {
    background-color: black;
    color: white;
}

.grid-tile-faded * {
    opacity: 0.5;
}

.grid-groups {
    display: flex;
    flex-direction: row;
}

.grid-full-row {
    grid-column: 1/-1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 4px;
}

.grid-right {
    justify-content: right;
}

.grid-options button {
    margin-right: 4px;
}

.grid-options.grid-right button {
    margin-right: 0px;
    margin-left: 4px;
}



/* User Grid */

.user-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-row-gap: 4px;
}

.user-grid-status {
    font-size: 20px;
    margin-left: 4px;
}



/* Team Grid */

.team-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-row-gap: 4px;
}



/* Color Select */

.player-color-select {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 4px;
}

.player-team-row {
    align-items: center;
    padding: 4px;
}

.player-team-row.active .grid-tile-black {
    background-color: white;
    color: black;
    border-color: white;
}

.player-team-row .grid-tile {
    margin-right: 8px;
}



/* QR Code */

.code-url {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.code-canvas {
    width: 100%;
    padding-left: 32px;
    padding-right: 32px;
}


.display-code-url {
    font-size: 5vh;
    margin-top: 2.5vh;
    font-weight: bold;
    text-align: center;
}

.display-code-canvas {
    width: 50vh;
    padding-left: 32px;
    padding-right: 32px;
}

.game-content {
    width: 100%;
    height: 100%;
}

.pause-overlay {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: black;
    z-index: 100;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 5vh;
    font-weight: bold;
}


/* Display Grid */

.display-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    grid-row-gap: 4px;
    grid-column-gap: 4px;
}

.display-grid-status {
    font-size: 20px;
}


/* Utility */

.flex-row {
    display: flex;
    flex-direction: row;
}

.align-center {
    align-items: center;
}

.flex-auto {
    flex: 0 0 auto;
}

.flex-1 {
    flex: 1 0 0;
}

.ml-1 {
    margin-left: 4px;
}

.mt-1 {
    margin-top: 4px;
}

.select-none {
    user-select: none;
}