:root {
    --base-color: black;
    --box-width: 60px;
    --box-gap: 15px;
    --shadow-factor: 5;
    --scale-limit: 0.05;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    position: relative;
    width: 100vw;
    height: 100dvh;
    background-color: var(--base-color);
    touch-action: none;
    overscroll-behavior: none;
    overflow: hidden;
    /* box-shadow: 0px 0px 10px 4px red inset; */
}

.flexCenter {
    display: flex;
    justify-content: center;
    align-items: center;
}

h1 {
    position: fixed;
    width: 100%;
    top: 0;
    color: white;
    text-align: center;
    padding: 10px;
    background-color: var(--base-color);
    box-shadow: 0px 0px 10px 4px black;
    font-family: Arial, Helvetica, sans-serif;
    font-family: cursive;
    /* font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; */
    z-index: 2;
}

#page {
    position: relative;
    width: 100%;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
    align-items: start;
    gap: var(--box-gap);
    z-index: 0;
}

#insetShadow {
    position: absolute;
    width: 100%;
    height: 100%;
    box-shadow: 0px 0px 22px 28px black inset;
    z-index: 1;
}

.shadowBox {
    position: relative;
    width: var(--box-width);
    aspect-ratio: 1/1;
    background-color: var(--base-color);
    border-radius: 10px;
    flex-shrink: 0;
    flex-grow: 0;
    /* outline: 1px solid white; */
}




@media (max-width: 650px) {
    :root {
        --box-width: 50px;
        --box-gap: 15px;
        --shadow-factor: 4;
    }
    .shadowBox {
        border-radius: 8px;
    }
}

@media (max-width: 550px) {
    :root {
        --box-width: 45px;
        --box-gap: 12px;
        --shadow-factor: 3;
    }
    .shadowBox {
        border-radius: 6px;
    }
}

@media (max-width: 400px) {
    :root {
        --box-width: 35px;
        --box-gap: 12px;
    }
    .shadowBox {
        border-radius: 4px;
    }
    h1 {
        font-size: 18pt;
    }
}

@media (max-width: 300px) {
    :root {
        --box-width: 25px;
        --box-gap: 10px;
        --shadow-factor: 2;
        --scale-limit: 0.35;
    }
    .shadowBox {
        border-radius: 4px;
    }
    h1 {
        font-size: 14pt;
    }
}