@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap");

:root {
    --color-primary: #ffbd61;
    --color-primary-light: #ffdaa5;
    --color-secondary: #03befc;
    --color-secondary-light: #03befc50;
    --color-secondary-dark: #036889;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    /* gap: 2em; */

    font-family: "Quicksand", sans;
    font-size: 20px;
    font-weight: 400;
    color: #0a0a0a;

    background-color: var(--color-primary-light);

    overflow-x: hidden;
}

header {
    z-index: 1;

    padding: 2em 1em;

    background-color: var(--color-primary);
    color: var(--color-secondary);

    --border-radius: 0;

    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.cols {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

@media (max-width: 600px) {
    .cols {
        flex-direction: column;
    }
}

.rows {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

header h1 {
    font-size: 2em;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-wrap: nowrap;

    --offset: 6px;
    --spread: 4px;
    --color: var(--color-secondary-light);
}

header title span {
    font-size: 1.5em;

    --offset: 6px;
    --spread: 4px;
    --color: #00000022;
}

header h1,
header span,
.emoji {
    text-shadow: var(--offset) var(--offset) var(--spread) var(--color),
        calc(var(--offset) * -1) calc(var(--offset) * -1) var(--spread)
            var(--color);
}

header .sub-title span {
    --offset: 2px;
    --spread: 4px;
    --color: var(--color-secondary-light);
}

header .title {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

header .sub-title {
    margin: 0 2em;

    color: var(--color-secondary-dark);
    text-align: center;
}

header .sub-title span {
    width: min-content;
    margin: auto;
    font-size: 1.5rem;
    text-align: justify;
}

main {
    display: flex;
    /* flex-direction: column-reverse; */
    flex-direction: column;
}

main > section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;

    padding: 4em 1em;

    background-color: var(--color-primary);
    box-shadow: inset 0px -16px 32px -16px #00000088;
}

main > section:nth-child(odd) {
    background-color: var(--color-primary-light);
}

main > section > * {
    max-width: 400px;
}

main > section > p {
    margin: 0;
    text-align: center;
}

main > section > img {
    border-radius: 4px;
    box-shadow: 2px 4px 24px 2px #00000088;
}

main > section > img + p {
    margin-top: 1em;
}

.hidden {
    display: none;
}

.lg {
    font-size: 1.5em;
}

.intro {
    font-size: 1.3em;
}

.shadow-bottom {
    box-shadow: 0px 16px 32px -16px #00000088;
}

.emoji {
    --offset: 4px;
    --spread: 8px;
    --color: #00000044;
}

.wiggle {
    --wiggle-tilt: 2deg;
    --pulse-scale: 0.01;

    --i: 0;
    --delay: calc(200ms * var(--i) * -1);

    animation: wiggle 800ms ease-in-out var(--delay) infinite alternate,
        pulse 400ms ease-in-out var(--delay) infinite alternate;

    /* transform: rotateZ(var(--transform-rotate-z)) scale(var(--transform-scale)); */
}

@keyframes wiggle {
    from {
        /* transform: rotateZ(calc(var(--wiggle-tilt) * -1)); */
        /* --transform-rotate-z: rotateZ(calc(var(--wiggle-tilt) * -1)); */
        rotate: z calc(var(--wiggle-tilt) * -1);
    }

    to {
        /* transform: rotateZ(var(--wiggle-tilt)); */
        /* --transform-rotate-z: rotateZ(var(--wiggle-tilt)); */
        rotate: z var(--wiggle-tilt);
    }
}

@keyframes pulse {
    from {
        /* transform: scale(calc(1 - var(--pulse-scale))); */
        /* --transform-scale: scale(calc(1 - var(--pulse-scale))); */
        scale: calc(1 - var(--pulse-scale));
    }

    to {
        /* transform: scale(calc(1 + var(--pulse-scale))); */
        /* --transform-scale: scale(calc(1 + var(--pulse-scale))); */
        scale: calc(1 + var(--pulse-scale));
    }
}
