@font-face {
    font-family: 'studio Grotesk';
    src: url('/assets/fonts/StudioGrotesk-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'studio Grotesk';
    src: url('/assets/fonts/StudioGrotesk-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'studio Grotesk';
    src: url('/assets/fonts/StudioGrotesk-ExtraBold.otf') format('opentype');
    font-weight: bolder;
    font-style: normal;
}

@font-face {
    font-family: 'studio Grotesk';
    src: url('/assets/fonts/StudioGrotesk-Light.otf') format('opentype');
    font-weight: lighter;
    font-style: normal;
}

@font-face {
    font-family: 'Geist';
    src: url('/assets/fonts/Geist-Regular.otf') format('opentype'),
        url('/assets/fonts/Geist-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --color-pink: #fbbce8;
    --color-green: #36872f;
    --color-blue: #4e8aff;
    --color-orange: #f9bb4d;
    --color-red: #c3280b;
    --color-gray: #faf5f1;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    background-color: var(--color-gray);
}

canvas {
    display: block;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0); /* mobile webkit */
}

button {
    touch-action: manipulation;
    font-size: 1rem;
}

button:disabled {
    cursor: default !important;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 5px;
    margin: 0 10px;
    row-gap: 1.8rem;
    max-width: 800px;
    padding-bottom: 1.875rem;
}

@media screen and (min-width: 800px) {
    .grid {
        margin: 0 auto;
    }
}

.logo {
    grid-column: 6 / span 6;
    margin-top: 4.375rem;
}

.logo img {
    width: 100%;
    max-width: 25rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    grid-column: 1 / span 12;
    font-family: 'studio Grotesk', sans-serif;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    line-height: 100%;
}

h1 {
    font-size: 3.4375rem;
    color: var(--color-blue);
}

h1.small {
    font-size: 1.875rem;
    line-height: 100%;
}

h2 {
    font-size: 1.875rem;
    color: var(--color-green);
    grid-column: 1 / span 9;
}

p {
    grid-column: 1 / span 10;
    margin: 0;
    font-family: 'Geist', sans-serif;
    line-height: 1.5;
}

ul {
    grid-column: 1 / span 10;
    margin: 0;
    padding: 0;
    list-style: none;
}

.canvas-container {
    position: relative;
    grid-column: 1 / span 12;
    height: 77svh;
    border: solid black 2px;
    background-color: white;
}

.sliderWrapper {
    grid-column: 1 / span 12;
    overflow: scroll;
}

.slider {
    --itemCount: 2;
    display: flex;
    overflow: scroll;
    width: calc(85vw * var(--itemCount));
    gap: 1.25rem;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
}

.slider .item {
    width: 85vw;
    scroll-snap-align: start;
}

@media screen and (min-width: 500px) {
    .slider {
        width: calc(40vw * var(--itemCount));
    }

    .slider .item {
        width: 40vw;
    }
}

@media screen and (min-width: 800px) {
    .slider {
        width: calc(25vw * var(--itemCount));
    }

    .slider .item {
        width: 25vw;
    }
}

.slider .item img {
    width: 100%;
    margin-bottom: 10px;
    border: solid 2px black;
}

.slider::-webkit-scrollbar {
    display: none;
    height: 0;
}

.slider .info {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    align-items: center;
    margin-bottom: 15px;
}

.slider a {
    text-decoration: none;
    color: black;
}

button.default-button {
    background: none;
    border: solid 2px black;
    cursor: pointer;
    outline: none;
    padding: 0.5rem 1rem;
    background-color: white;
    color: black;
}

figure {
    font-family: 'Geist', sans-serif;
    font-size: 1rem;
    margin: 0;
    margin-left: 0.5rem;
}

footer {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 5px;
    margin: 0 10px;
    row-gap: 1.875rem;
    max-width: 800px;
}

@media screen and (min-width: 800px) {
    footer {
        margin: 0 auto;
    }
}

.social {
    grid-column: 1 / span 12;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 5px;
}

.social img {
    grid-column: 1 / span 2;
    width: 100%;
    align-self: end;
}

.social p {
    line-height: 200%;
    font-size: 0.75rem;
}

.links {
    grid-column: 4 / span 10;
    display: grid;
    align-items: end;
}

@media screen and (min-width: 650px) {
    .links {
        grid-column: 3 / span 6;
    }

    .social img {
        grid-column: 1 / span 1;
        width: 100%;
    }
}

.links a {
    display: block;
    font-family: 'Geist', sans-serif;
    color: black;
    text-decoration: underline;
    font-weight: bold;
}

.signature {
    grid-column: 1 / span 12;
    height: 6.25rem;
    text-align: center;
}

.signature p {
    font-family: 'Geist', sans-serif;
    font-size: 0.75rem;
    color: #9c9393;
}

.signature a {
    color: #9c9393;
    text-decoration: none;
}

button.image-button {
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    transition: 100ms ease-in-out;
}

button.image-button .label {
    display: block;
    margin-top: 0.5rem;
    color: #000;
}

button.image-button:not(:disabled):active {
    transform: scale(0.8);
}

button.image-button:disabled {
    opacity: 0.5;
    filter: grayscale(1);
}

.tool-bar {
    grid-column: 2 / span 10;
    display: flex;
    justify-content: space-between;
}

a.link-prominent,
a.link-prominent:visited {
    font-family: 'studio Grotesk', sans-serif;
    font-size: 1.875rem;
    font-weight: bold;
    text-decoration: underline;
    color: var(--color-green);
}

.divider-logo {
    grid-column: 8 / span 4;
}

.divider-logo img {
    width: 100%;
}

.generated {
    grid-column: 1 / span 12;
}

.generated canvas {
    display: none;
}

.generated img {
    width: 100%;
}

video {
    width: 100%;
}

.loading-notice {
    position: fixed;
    inset: 0;
    background-color: var(--color-gray);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.loading-notice video {
    max-width: 20rem;
    margin-bottom: 2rem;
}

.loading-notice p {
    font-family: 'Geist', sans-serif;
    font-size: 1rem;
    color: black;
    max-width: 20rem;
    text-align: center;
}

.draw-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    gap: 2rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-gray);
    text-align: center;
    padding: 2rem;
}

.draw-overlay .icons {
    display: flex;
    gap: 2rem;
}

.no-touch-device-notice {
    display: none;
}

.actions {
    grid-column: 2 / span 10;
    display: flex;
    justify-content: center;
    gap: 6vw;
}

.hide {
    display: none;
}
