body {
    padding: 0;
    margin: 0;
    display: grid;
}

#cgol {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: grid;
    justify-items: center;
    align-items: center;
}

canvas {
    width: 100%;
    height: 100%;
    background-size: 40px 40px;
    background-color: #f4f6ff;
    background-image: radial-gradient(circle, #000000 1px, rgba(0, 0, 0, 0) 1px);
}

.controls {
    position: fixed;
    justify-self: center;
    width: fit-content;
    bottom: 1em;
    backdrop-filter: blur(6px);
    background-color: #adb8dfd3;
    box-shadow: 12px -12px 0 0 #00000074;
    border-radius: 50rem;
    padding: 1em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1em;
    max-width: 90%;
}

.controls button {
    padding: 0.5em 1em;
    min-width: fit-content;
    font-size: clamp(1em, 2.5vw, 1.2em);
    color: #000;
    background-color: #ffffff;
    border-radius: 50rem;
    border: none;
    cursor: pointer;
    box-shadow: inset 6px -6px 2px 0 #00000020;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    transition: all 0.2s ease;
}

.controls button:hover {
    color: #ffffff;
    background-color: #000000;
    box-shadow: inset 12px -12px 12px 0 #ffffff52;
}

.controls input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 150px;
    height: 1em;
    padding: 1em;
    border-radius: 50rem;
    background: #ffffff;
    box-shadow: inset 6px -6px 2px 0 #00000020;
    cursor: pointer;
    transition: 0.2s;
}

/* Slider thumb */
.controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.5em;
    height: 1.5em;
    background: #000000;
    border-radius: 50%;
    border: none;
    box-shadow: inset 4px -4px 2px 0 #ffffff52;
    transition: 0.2s;
}
.controls input[type="range"]::-moz-range-thumb {
    width: 1.5em;
    height: 1.5em;
    background: #000000;
    border-radius: 50%;
    border: none;
    box-shadow: inset 4px -4px 2px 0 #ffffff52;
    transition: 0.2s;
}

/* Hover effects */
.controls input[type="range"]:hover {
    background-color: #000000;
    box-shadow: inset 12px -12px 12px 0 #ffffff52;
}
.controls input[type="range"]:hover::-webkit-slider-thumb,
.controls input[type="range"]:hover::-moz-range-thumb {
    background: #ffffff;
    box-shadow: inset 4px -4px 2px 0 #00000020;
}


@media (max-width: 1000px) {
    .controls {
        border-radius: 0.2rem;
    }

    .controls button {
        border-radius: 0.2rem;
    }

    .controls input[type="range"] {
        border-radius: 0.2rem;
    }
}