/* ===== 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);
    --tile_size: 10vmin;
    --tile_margin: 5px;
}

/* ===== 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;
}

.main-header {
    font-size: 2vmin;
    background-color: rgb(210, 210, 210);
    padding-bottom: 10px;
    margin: 10px;
    border-radius: 10px;
}

nav {
    text-align: center;

    font-size: 2vmin;
    background-color: rgb(210, 210, 210);
    padding-bottom: 10px;
    margin: 10px;
    border-radius: 10px;
}

a {
    text-decoration: none;
    color: var(--text);
}

main {
    align-items: center;
    text-align: center;
    justify-content: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, calc(var(--tile_size) + var(--tile_margin)));

    width: fit-content;
    margin: 0 auto;
}

.tile {
    width: var(--tile_size);
    height: var(--tile_size);
    border: 2px solid rgb(180, 180, 180);
    margin: calc(var(--tile_margin) / 2);
    border-radius: 20px;
    background-color: rgb(210, 210, 210);

    display: flex;
    justify-content: center;
    align-items: center;
}

.tile:hover {
    cursor: pointer;
}

.pipe {
    position: relative;
    transition: all 0.2s ease 0s;

    width: var(--tile_size);
    height: var(--tile_size);
}

.straight {
    width: calc(var(--tile_size) / 8);
    height: var(--tile_size);
    background-color: black;
}

.vertical {
    width: calc(var(--tile_size) / 8);
    height: calc((var(--tile_size) / 2) + (var(--tile_size) / 16));

    background-color: black;
    
    position: absolute;

    left: calc(50% - (var(--tile_size) / 16));
    top: 0;
}

.horizontal {
    width: calc((var(--tile_size) / 2) + (var(--tile_size) / 16) - 1px);
    height: calc(var(--tile_size) / 8) ;

    background-color: black;
    
    position: absolute;

    left: calc(50% - (var(--tile_size) / 16));
    top: calc(50% - (var(--tile_size) / 16));
}

.start_line {
    width: calc(var(--tile_size) / 8);
    height: calc((var(--tile_size) / 2) + (var(--tile_size) / 16));

    background-color: green;
    
    position: absolute;

    left: calc(50% - (var(--tile_size) / 16));
    top: 0;
}

.start_ball {
    width: calc(var(--tile_size) / 4);
    height: calc(var(--tile_size) / 4);

    background-color: rgb(0, 255, 0);

    position: absolute;

    left: calc(50% - var(--tile_size) / 8);
    top: calc(50% - var(--tile_size) / 8);

    border-radius: 50%;
}

.end_line {
    width: calc(var(--tile_size) / 8);
    height: calc((var(--tile_size) / 2) + (var(--tile_size) / 16));

    background-color: black;
    
    position: absolute;

    left: calc(50% - (var(--tile_size) / 16));
    top: 0;
}

.end_ball {
    width: calc(var(--tile_size) / 4);
    height: calc(var(--tile_size) / 4);

    background-color: red;

    position: absolute;

    left: calc(50% - var(--tile_size) / 8);
    top: calc(50% - var(--tile_size) / 8);

    border-radius: 50%;
}

.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);

    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
}

.next_button:hover {
    cursor: pointer;
}

.coming_soon {
    background-color: rgb(220, 220, 220);
    padding: 10px;
    margin: 10px;
    border-radius: 10px;
}