*, *::before, *::after {
    font-family: "Overused Grotesk", sans-serif;
    box-sizing: border-box;

    --accent: light-dark(#5a41cd, #e4a81e);
    --anti-accent: light-dark(#e4a81e, #5a41cd);
    --background: light-dark(#fff, #000);
    --text: light-dark(#000, #fff);

    scrollbar-width: thin;
}

body {
    margin: 0;
    background: var(--background);
    overflow-y: scroll;
    overflow-x: hidden;
}

h1 {
    line-height: 2rem;
}

h3 {
    color: var(--anti-accent);
    font-weight: 500;
}

.flex-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.glassmorphism {
    backdrop-filter: blur(16px) saturate(100%);
    -webkit-backdrop-filter: blur(16px) saturate(100%);
    background-color: light-dark(rgba(143, 152, 170, 0.15), rgba(17, 25, 40, 0.75));
    border-radius: 1rem;
    border: 1px solid light-dark(rgba(0, 0, 0, 0.125), rgba(255, 255, 255, 0.125));
}

.accent-on-hover {
    color: var(--text);
    transition: all 300ms ease;
}

.accent-on-hover:hover {
    color: var(--accent);
}

button.unstyled {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: inherit;
}

@font-face {
    font-family: "Overused Grotesk";
    src: url("./fonts/OverusedGrotesk-VF.woff2") format("woff2 supports variations"),
    url("./fonts/OverusedGrotesk-VF.woff2") format("woff2-variations");
    font-weight: 300 900;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
    -moz-appearance: textfield; /* Firefox */
}

button:hover {
    cursor: pointer;
}

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