@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    box-sizing: border-box;
}

:root {
    --bg: white;
    --primaryText: black;
    --secondaryText: #999999;
    --tertiaryText: #cccccc;
    --link: #0099FF;
    --svg-color: #0099FF;
}

body {
    display: flex;
    justify-content: center;
    background: var(--bg);
    color: var(--primaryText);
    position: relative;
}

.block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 16px;
    max-width: 440px;
    position: relative;
}

.paragraph {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.widget {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

p {
    font-family: "Geist", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
}

p2 {
    font-family: "Geist", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--secondaryText);
}

p3 {
    font-family: "Geist", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--tertiaryText);
}

a {
    font-family: "Geist", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--link);
    text-decoration: none;
}

/* Stickman SVG Styles */
.stickman {
    position: absolute;
    width: 182.21px;
    height: 189.71px;
    left: 180px;
    top: 544px;
    color: var(--svg-color);
}

/* SVG Path Animation - Hand-drawn effect */
.svg-path {
    fill: none;
    stroke-dasharray: var(--length);
    stroke-dashoffset: var(--length);
    animation: draw 0.8s ease-out forwards;
}

/* Stage animations with sequential delays */
.stage-head {
    animation-duration: 0.35s;
    animation-delay: 3.2s;
}

.stage-face-eye1 {
    animation-name: drawFast;
    animation-duration: 0.22s;
    animation-delay: 3.7s;
}

.stage-face-eye2 {
    animation-name: drawFast;
    animation-duration: 0.22s;
    animation-delay: 4.07s;
}

.stage-smile {
    animation-name: drawFast;
    animation-duration: 0.3s;
    animation-delay: 4.44s;
}

.stage-hands-left {
    animation-duration: 0.15s;
    animation-delay: 4.89s;
}

.stage-hands-right {
    animation-duration: 0.45s;
    animation-delay: 5.04s;
}

.stage-body {
    animation-duration: 0.6s;
    animation-delay: 5.64s;
}

.stage-legs-left {
    animation-name: drawFast;
    animation-duration: 0.3s;
    animation-delay: 6.39s;
}

.stage-legs-right {
    animation-name: drawFast;
    animation-duration: 0.3s;
    animation-delay: 6.84s;
}

.stage-word-main {
    animation-duration: 1.2s;
    animation-delay: 7.29s;
}

.stage-word-exclamation-line {
    animation-name: drawFast;
    animation-duration: 0.3s;
    animation-delay: 8.64s;
}

.stage-word-exclamation-dot {
    animation-name: drawFast;
    animation-duration: 0.22s;
    animation-delay: 9.09s;
}

@keyframes draw {
    0% {
        stroke-dashoffset: var(--length);
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawFast {
    0% {
        stroke-dashoffset: var(--length);
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.time-colon {
    animation: blink 2s step-start infinite;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: black;
    --primaryText: white;
    --secondaryText: #777777;
    --tertiaryText: #4F4F4F;
    --link: #FFAE00;
    --svg-color: #FFAE00;
  }
}
