* {
    font-family: "IBM Plex Sans";

    outline: none;
    user-select: none;
}

body {
    background: url("assets/bg.png");
    background-size: cover;
    background-attachment: fixed;

    padding: 0;
    margin: 0;
    border: none;

    overflow: hidden;
}

/* styles */

.bold {
    font-weight: bold;
}

/* elements */

.loading-text {
    color: white;

    font-size: 3rem;

    text-align: center;
    margin-top: 48vh;
}

.loading-asset {
    display: none;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background: linear-gradient(to right, #00000080 0vw, transparent 40vw, transparent 60vw, #00000080 100vw);
    z-index: -1;
}

.content {
    height: 100vh;
    width: 100vw;

    margin: 0;
}

.logo {
    color: #dddddd55;
    font-size: 3em;

    margin: 1px 0 12px 0;
    padding: 0;
}

.unfocused-warning {
    color: #f53131e1;
    background: #00000033;

    font-size: 2.5rem;
    font-family: "Roboto Condensed";
    text-shadow: 0 0 6px;
    box-shadow: 0 0 6px;

    position: fixed;
    top: 43.5%;
    width: auto;

    margin: auto;
    padding: 18px 24px;
    border: 3px solid;
    border-radius: 8px;
}

.menu {
    padding: 12px 5vw 16px 0;
    margin-left: 20px;

    width: 16vw;
    height: calc(100vh - 28px);

    position: fixed;
    top: 0;
    left: 0;

    z-index: 1;
}

.mode-list-heading {
    color: #ccc;
    font-size: 1.05rem;
    font-family: "Roboto Condensed";
    font-weight: bold;

    margin: 20px 0 12px 0;
}

.mode-button-text {
    color: #ccc;
    background: #b8b8b833;
    font-size: 0.8rem;

    width: 13rem;

    padding: 6px 0 6px 40px;
    margin: 10px 0 10px -40px;
    border-radius: 0% 4px 28px 0% / 0% 4px calc(100% - 4px) 0%;

    cursor: pointer;
    transition: background-color 0.1s, margin-left 0.1s;
}

.mode-button-text:hover {
    background: #dddddd33;
    margin-left: -30px;
}

.mode-button-text:active {
    background: #ffffff33;
    margin-left: -20px;
}

.config-panel {
    color: #ccc;

    mask-image: linear-gradient(to bottom, transparent 0%, black 32px, black calc(100% - 32px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 32px, black calc(100% - 32px), transparent 100%);

    justify-self: flex-end;
    text-align: right;

    padding: 12px 24px 16px 5vw;
    width: 16vw;
    height: calc(100vh - 28px);

    position: fixed;
    top: 0;
    right: 0;

    overflow-y: scroll;
    scrollbar-width: none;
}

.config-panel::-webkit-scrollbar {
    display: none;
}

.config-panel-hidden {
    display: none;
}

.section-heading {
    color: #ddd;
    font-family: "Roboto Condensed";

    font-size: 1.05rem;
    font-weight: bold;

    margin: 14px 0;
}

.menu-option-label {
    font-size: 0.8rem;
    margin: 0;
}

.menu-option>select {
    background-color: #b8b8b833;
    color: #ccc;
    border: none;
    border-radius: 4px;

    font-size: 0.8rem;

    padding: 2px 6px;
    margin: 0 0 4px 6px;

    transition: background-color 0.1s;
}

.menu-option>select:hover {
    background-color: #dddddd33;
}

.menu-option>input[type=button] {
    background-color: #b8b8b833;
    color: #ccc;
    border: none;
    border-radius: 4px;

    font-size: 0.8rem;

    padding: 2px 6px;
    margin: 2px 0 2px 4px;

    transition: background-color 0.1s;
}

.menu-option-l>input[type=button] {
    margin: 2px 4px 2px 0 !important;
}

.menu-option>input[type=button]:hover {
    background-color: #dddddd33;
}

.menu-option>input[type=button]:active {
    background-color: #ffffff33;
}

.menu-button-box {
    margin-bottom: 6px;

    display: inline-flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}

.menu-button-box-l {
    flex-direction: row;
}

.game {
    justify-content: center;
    align-content: center;
    align-self: center;

    display: flex;
    flex-direction: row;
}

.field-panel {
    margin-right: 30px;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hold-piece-canvas {
    border: 4px solid #bbbbbb88;
    border-radius: 4px;

    box-shadow: 0 0 36px 0 #000000bb;
}

.game-stats {
    width: 0;
    margin-right: 12px;

    text-align: right;
    overflow: visible;
    white-space: nowrap;
}

.game-stats-label {
    color: #ccc;

    font-size: 1.2rem;
    font-family: "Roboto Condensed";
    font-weight: bold;

    /* direction: ltr !important; */
}

.game-stats>p {
    color: #ccc;
    direction: rtl;
}

.game-stats>.clear-text {
    font-size: 2rem;
    font-family: "Roboto Condensed";
    font-weight: bold;

    margin-bottom: -0.7rem;
}

.game-stats>.b2b-text {
    font-size: 1.4rem;
    font-weight: bold;
}

.game-stats>.combo-text {
    font-size: 1.4rem;
    margin: 2.5rem 0 -0.5rem 0;
}

.game-stats-display {
    color: #ccc !important;
    font-size: 1.8rem;
    margin: -14px 0 0 0;
    direction: rtl !important;
}

.field {
    border: 4px solid #bbbbbb88;
    border-radius: 4px;
    border-top: none;

    box-shadow: 0 0 36px 0 #000000bb;
}

.field-canvas {
    margin-bottom: -5px;
    /* ??? */
}

.field-canvas:focus {
    outline: none;
}

.next-queue-canvas {
    margin-left: 30px;

    border: 4px solid #bbbbbb88;
    border-radius: 4px;

    box-shadow: 0 0 36px 0 #000000bb;
}