@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Roboto+Mono&display=swap');

:root {
    --theme-light: #7FE5FF;
    --theme-normal: #00C8FF;
    --theme-dark: #00A0CD;
    --space-size: 6vw;
    --space-gap: 0.7vw;
    --border-radius: min(2.5vw, 2vh);
    --theme-red: #f66;
    --theme-green: #0c6;
    --toggle-size: 20px;
    --toggle-space: 3px;
}

html,
body {
    padding: 0;
    margin: 0;
}

#depth-value {
    padding: 0 8px;
}

.depth-button {
    padding: 0px;
    width: 1.6em;
    height: 1.6em;
}

input[type=checkbox] {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    border-radius: 99999px;
    width: calc(var(--toggle-size) * 2);
    height: var(--toggle-size);
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
    background-color: var(--theme-red);
    transition: background-color 100ms;
}

input[type=checkbox]::after {
    border-radius: 99999px;
    width: calc(var(--toggle-size) - calc(var(--toggle-space) * 2));
    height: calc(var(--toggle-size) - calc(var(--toggle-space) * 2));
    cursor: pointer;
    position: absolute;
    top: var(--toggle-space);
    left: var(--toggle-space);
    transform: none;
    background-color: white;
    content: "";
    display: block;
    transition: left 100ms, transform 100ms;
}

input[type=checkbox]:checked::after {
    left: calc(100% - 2px);
    transform: translate(-100%, 0);
}

input[type=checkbox]:checked {
    background-color: var(--theme-green);
}

.config-item {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.config-spacer {
    flex-grow: 1;
}

button {
    background-color: var(--theme-normal);
    border-radius: 8px;
    font-size: 1.2em;
    padding: 8px 32px;
    border-width: 0;
    outline: none;
    cursor: pointer;
}

body {
    background-color: var(--theme-light);
}

* {
    font-family: "Roboto Mono";
}

#container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    flex-direction: row;
}

#board-container {
    background-color: var(--theme-normal);
    border-radius: var(--border-radius);
    padding-top: var(--space-gap);
    padding-left: var(--space-gap);
}

#config-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 25vw;
    padding: 16px;
}

h1 {
    text-align: center;
}

@media only screen and (max-width: 900px) {
    #container {
        flex-direction: column;
        height: auto;
        width: auto;
        margin-top: 5vw;
    }
    #config-container {
        width: 50%;
    }
    :root {
        --space-size: 12vw;
    }
}

#config {
    width: 100%;
    transition: max-height 500ms;
    overflow: hidden;
}

#board {
    position: relative;
    width: calc(calc(var(--space-size) + var(--space-gap)) * 7);
    height: calc(calc(var(--space-size) + var(--space-gap)) * 6);
    user-select: none !important;
}

#ethereal {
    transform: scale(1);
    left: 0;
    opacity: 0.5;
}

.tile {
    pointer-events: none;
    position: absolute;
    width: var(--space-size);
    height: var(--space-size);
    background-color: #00A0CD;
    transition: top ease-in-out 300ms, left ease-in-out 50ms, transform ease-in-out 200ms;
    transform: scale(0);
    border-radius: calc(var(--border-radius) * 0.7);
}

.tile>img {
    image-rendering: pixelated;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
}

.muffin-select {
    border-radius: calc(var(--border-radius) * 0.7);
    width: var(--space-size);
    height: var(--space-size);
    background-color: #00C8FF;
    overflow-y: hidden;
    cursor: pointer;
}

.muffin-select img {
    width: 80%;
    padding: 10%;
    image-rendering: pixelated;
    user-select: none;
}

#row-muffin-select {
    display: flex;
    flex-direction: row;
    align-items: space-evenly;
    justify-content: space-evenly;
    width: 100%;
}

#row-muffin-select>div {
    text-align: center;
}