/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

/* Remove list styles on ul, ol elements with a list role */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove animations for people who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Utility classes  */
.flex {
    display: flex;
    gap: var(--gap, 1rem);
}

.grid {
    display: grid;
    gap: var(--gap, 1rem);
}

.container {
    padding-inline: 3em;
    margin-inline: auto;
    max-width: 80rem;
}

/* screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
    --base: #ffc600;
    --blur: 0;
    --padding: 5px;
}

.main {
    min-height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    background-color: hsl(214, 17%, 92%);
    ;
}

.canvas {
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

span {
    color: var(--base);
}

.controls {
    gap: 2rem;
}

.controls label {
    font-weight: 700;
    font-size: 1rem;
}

.random-img {
    background-color: var(--base);
    filter: blur(var(--blur));
    padding: var(--padding);
    width: 300px;
    border-radius: 20px;
}

@media (max-width: 740px) {
    .controls {
        flex-direction: column;
        width: 100%;
    }
}