:root {
    --bg: #F7D5AD;
    --fg: #000000;
    --table-bg: #FFE5C6;
    --table-borders: #FEF7E3;
    --empty-2L-bg: #ABE6FF;
    --empty-2L-fg: #74D0F6;
    --empty-3L-bg: #FFD05F;
    --empty-3L-fg: #F8B20E;
    --empty-2W-bg: #AEF6AB;
    --empty-2W-fg: #7EE07A;
    --empty-3W-bg: #FF9E78;
    --empty-3W-fg: #F57C4B;
    --face-default-bg: #FFFFFF;
    --face-2L-bg: #72D0F6;
    --face-3L-bg: #F8B20D;
    --face-2W-bg: #7EE07A;
    --face-3W-bg: #F67C4B;
    --empty-center-bg: #FFF7E3;
    --empty-center-fg: #A36CF9;
    --tile-size: 40px;
    --tile-shadow: #BA958A;
    --last-word-border: #FEDF24;
}

body {
    background-color: var(--bg);
    height: 100%;
}

.image-container {
    display: flex;
    flex-direction: column;
    align-items: center;

}

#full-logo {
    width: min(40vh, 80vw);
}

.table-scroll {
    overflow-x: auto;
    padding-top: 20px;
    padding-left: 80px;
    padding-right: 80px;
    padding-bottom: 80px;
}

.table-center {
    /* shrink to the table’s intrinsic width; when there’s extra space, center it */
    width: max-content;
    margin-inline: auto;
}

table {
    table-layout: fixed;
    width: max-content;
    height: max-content;
    border: 2px solid var(--table-borders);
    border-collapse: collapse;
    display: inline-block;
    background: var(--table-bg);
}

td {
    border: 2px solid var(--table-borders);
    color: var(--fg);
    min-width: var(--tile-size);
    min-height: var(--tile-size);
    width: var(--tile-size);
    height: var(--tile-size);
    text-align: center;
    user-select: none;
    font-weight: bold;
    font-size: x-large;
    white-space: nowrap;
    position: relative;
}

td.selected {
    outline-width: 3px;
    outline-style: solid;
    outline-offset: -3px;
}

td.right {
    outline-color: blue;
}

td.down {
    outline-color: red;
}

.tile-shadow {
    position: absolute;
    top: 1px;
    left: 1px;
    min-width: var(--tile-size);
    min-height: var(--tile-size);
    width: var(--tile-size);
    height: var(--tile-size);
    background-color: var(--tile-shadow);
    border-radius: 8px;
}

.tile-face {
    background-color: var(--face-default-bg);
    color: #000000;
    min-width: var(--tile-size);
    min-height: var(--tile-size);
    width: var(--tile-size);
    height: var(--tile-size);
    border-radius: 8px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -3px);
    display: flex;
    justify-content: center;
    align-items: center;
}
.F2L {
    background: var(--face-2L-bg);
}

.M3L > div > div {
    background: var(--face-3L-bg);
    border: 2px solid var(--last-word-border);
}

.F2W {
    background: var(--face-2W-bg);
}

.M3W > div > div {
    background: var(--face-3W-bg);
    border: 2px solid var(--last-word-border);
}


.center {
    color: var(--empty-center-fg);
    background: var(--empty-center-bg);
    font-size: xx-large;
}

.M2L {
    color: var(--empty-2L-fg);
    background: var(--empty-2L-bg);
}

.M3L {
    color: var(--empty-3L-fg);
    background: var(--empty-3L-bg);
}

.M2W {
    color: var(--empty-2W-fg);
    background: var(--empty-2W-bg);
}

.M3W {
    color: var(--empty-3W-fg);
    background: var(--empty-3W-bg);
}

