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

:root {
  --primary-color: #E6FAFB;
  --secondary-color: #92D8FC;
  --background-color: #232659;
}

* {
    margin: 0px;
    padding: 0px;
    font-family: "BBH Sans Hegarty", system-ui, monospace;
    text-align: center;
    box-sizing: border-box;
}

header, footer {
    display: flex;
    width: 100%;
    height: 100px;
    margin-top: 20px;
    padding: 20px 30px;
    justify-content: center;
    align-items: center;
}

header h1 {
    font-size: min(10vw, 5rem);
    text-shadow: 0 0 10px var(--background-color);
}

footer a {
    font-size: min(3vw, 1.25rem);
    color: var(--primary-color);
    text-decoration: none;
    text-shadow: 0 0 5px var(--secondary-colorr);
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    color: var(--primary-color);
    background: linear-gradient(var(--secondary-color), var(--background-color));
    background-attachment: fixed;
}

section {
    display: flex;
    flex-wrap: wrap-reverse;
    flex-grow: 1;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
    gap: 50px;
}

.options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
}

input[type="color"] {
    width: 100px;
    height: 100px;
    padding: 0;
    border: solid var(--primary-color) 2px;
    transition: transform 0.1s ease;
}
input[type="color"]:hover {
    transform: scale(1.1);
}

.options h2 {
    font-size: 32px;
    font-weight: 500;
    text-shadow: 0 0 5px var(--secondary-color);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 25px;
  background-color: var(--secondary-color);
  box-shadow: 0px 0px 10px var(--secondary-color);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 30px;
  background-color: var(--background-color);
  border: dashed var(--primary-color) 2px;
  box-shadow: 0px 0px 15px var(--secondary-color);
  transition: transform 0.05s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 30px;
  background-color: var(--background-color);
  border: dashed var(--primary-color) 2px;
  box-shadow: 0px 0px 15px var(--secondary-color);
  transition: transform 0.05s ease;
}
input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.25);
}

button {
    width: 100%;
    height: 50px;
    font-size: 25px;
    font-weight: 400;
    border: dashed var(--primary-color) 2px;
    border-radius: 0;
    padding: 10px 20px;
    color: var(--primary-color);
    background-color: transparent;
    box-shadow: 0px 0px 15px var(--secondary-color);
    transition: transform 0.15s ease, color 0.1s ease, background-color 0.2s ease;
}

button:active, button.selected {
    color: var(--background-color);
    background-color: var(--primary-color);
    transform: scale(1.25);
}

@media (any-hover: hover) {
    button:hover {
        color: var(--background-color);
        background-color: var(--primary-color);
        transform: scale(1.25);
    }
}

button:active {
    transform: scale(1.35);
}

.square-grid {
    display: flex;
    flex-wrap: wrap;
    width: 512px;
    aspect-ratio: 1/1;

    background-color: #ffffff;
    box-shadow: 0px 0px 15px var(--secondary-color);

    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;

    will-change: transform;
}

.pixel {
    aspect-ratio: 1/1;
    transition: background-color 0.1s ease;
}

.pixel:hover {
    border: solid var(--background-color) 1rpx;
}