/* ===== RESET ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== VARIABLES ===== */

:root {
    --background: #f5f5f5;
    --surface: #ffffff;
    --text: #222222;
    --accent: #4f8cff;
    --border: #dddddd;
    --radius: 12px;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    --board_width: 80vmin;
    --board_height: 70vmin;
    --tile_size: 10vmin;
    --tile_margin: calc(var(--tile_size) / 25);
}

/* ===== PAGE ===== */

body {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: var(--background);
    color: var(--text);

    min-height: 100vh;
}

header {
    text-align: center;
}

nav {
    text-align: center;

    font-size: 2vmin;
    background-color: rgb(210, 210, 210);
    padding-bottom: 10px;
    margin: 10px;
    border-radius: 10px;
}

.main-header {
    font-size: 2vmin;
    background-color: rgb(210, 210, 210);
    padding-bottom: 10px;
    margin: 10px;
    border-radius: 10px;
}

.next_button {
    width: 75vmin;
    height: var(--tile_size);
    border: 2px solid rgb(180, 180, 180);
    margin: calc(var(--tile_margin) / 2);
    border-radius: 20px;
    background-color: rgb(240, 255, 240);

    position: relative;

    z-index: 10000;

    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
}

.next_button:hover {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: var(--text);
}

#fullscreen {
    position: fixed;
    top: 15px;
    right: 15px;

    width: 35px;
    height: 35px;

    padding: 0;
    border: none;
    background: transparent;

    font-size: 25px;
    cursor: pointer;

    user-select: none;
    outline: none;

    z-index: 1000;
}

.game {
    width: var(--board_width);
    height: var(--board_height);

    margin-left: calc((100vw - var(--board_width)) / 2);
    margin-right: calc((100vw - var(--board_width)) / 2);

    border-radius: 1vmin;

    background-color: rgb(48, 48, 48);
}

#road_markings {
    width: 100%;
    height: 100%;

    position: relative;
    overflow: hidden;
}

#lane0, #lane1, #lane2 {
    width: 33.3333333333333333%;
    height: 100%;

    position: absolute;

    z-index: 2;
}

#lane0 {
    left: 0;
}

#lane1 {
    left: 33.3333333333333333%;
}

#lane2 {
    left: 66.6666666666666666%;
}

#left {
    width: calc(var(--board_width) / 40);
    height: 100%;

    position: absolute;

    left: calc(33.3333333333333333% - ((var(--board_width) / 40) / 2));
}

#right {
    width: calc(var(--board_width) / 40);
    height: 100%;

    position: absolute;

    left: calc(66.6666666666666666% - ((var(--board_width) / 40) / 2));
}

.white {
    width: 100%;
    height: calc(var(--board_height) / 6);

    background-color: rgb(220, 220, 220);
}

.spacer {
    width: 100%;
    height: calc(var(--board_height) / 6);
}

.item {
    width: 25%;
    aspect-ratio: 1 / 1;

    position: absolute;

    left: 37.5%;
}

#left_click {
    width: 50%;
    height: 100%;

    z-index: 100;

    touch-action: none;

    position: absolute;
}

#right_click {
    width: 50%;
    height: 100%;

    z-index: 100;

    touch-action: none;

    left: 50%;

    position: absolute;
}

#player {
    width: 35%;
    aspect-ratio: 1 / 1;

    position: absolute;

    left: 32.5%;

    bottom: 2.5%;

    background-color: #4f8cff;

    border-radius: 50%;
}