@font-face {
	font-family: 'Bangers';
	font-style: normal;
	font-weight: 400;
	font-display: fallback;
	src: url('assets/bangers-v25-latin-regular.woff2') format('woff2'),
		url('assets/bangers-v25-latin-regular.ttf') format('truetype');
}

@view-transition {
  navigation: auto;
}

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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #f0eeeb;
    font-family: system-ui, sans-serif;
}

body section {
    width: 100%;
    max-width: 1024px;
    margin-top: 20px;
    padding: 20px;
    border-bottom: 1px solid gray;
}

.header h1 {
    text-align: center;
}
.header h1 + * {
    margin-top: 20px;
}

section h2 + * {
    margin-top: 10px;
}

.text-content {}
    .text-content ul {
        padding: 10px 20px;
    }

.try__footer {
    margin-top: 20px;
}

button {
    padding: 10px;
}

p + p {
    margin-top: 10px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.flex-item {
    display: flex;
    flex-direction: column;
}

.border-radius {
    display: flex;
    width: 180px;
    height: 180px;
    align-items: center;
    justify-content: center;

    font-weight: 700;
    text-align: center;

    color: #fff;
    background-color: #030303;
    border-radius: 60px;
    text-shadow: 1px 1px 0px #000000;
}
.border-radius--50 {
    border-radius: 50%;
}
.border-radius--wide {
    width: 280px;
}

.border-radius--squircle {
    corner-shape: squircle;
}
.border-radius--square {
    corner-shape: square;
}
.border-radius--round {
    corner-shape: round;
}
.border-radius--bevel {
    corner-shape: bevel;
}
.border-radius--notch {
    corner-shape: notch;
}
.border-radius--scoop {
    corner-shape: scoop;
}

.osh {

}

.osh-title {
    position: relative;
    color: #FCDB1C;/*#FBCB21;*/
    font-family: 'Bangers';
}

.osh-title__text,
.osh-title__overlay {
    margin: 0;

    font-size: 150px;
    font-weight: 400;
    line-height: 0.8;

    -webkit-text-stroke: 0.02em black;
}

.osh-title__text {
    text-shadow: 0.03em 0.03em 0px #000000;

    position: relative;
}

.osh-title__overlay {
    display: block;
    width: 100%;

    background: linear-gradient(180deg, #FCDB1C 19.71%, #FFB100 100%);
    background-size: 100% 0.8em;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    /* -webkit-text-size-adjust: auto; */

    position: absolute;
    top: 0;
    left: 0;
}



/**
 *  ANCHOR / TOOLTIP
 */
.anchor-button {
    anchor-name: --my-button;
}

.anchor-tooltip {
    position: absolute;
    position-anchor: --my-button;

    bottom: anchor(top);
    left: anchor(center);
    translate: -50% 0;
    margin-bottom: 12px;

    background: #1a1a1a;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}

.anchor-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    translate: -50% 0;
    border: 6px solid transparent;
    border-top-color: #1a1a1a;
}

.anchor-button:hover + .anchor-tooltip,
.anchor-button:focus + .anchor-tooltip {
    opacity: 1;
}

/**
 *  ANCHOR / TOOLTIP
 */
.popover-button {}

.popover-target {
    position-area: bottom span-right;
    position-try: flip-block;

    inset: unset;
    margin: 0;
    border: none;
    padding: 12px;
    background: white;
    overflow: visible;
}

.popover-target::backdrop {
    background: #000;
    opacity: 0.2;
}

.popover-target {
    opacity: 0;
    transform: scale(0.95) translateY(4px);
    transition:
        opacity 0.15s,
        transform 0.15s;
        /* display 0.15s allow-discrete; */
}

.popover-target:popover-open {
    opacity: 1;
    transform: scale(1) translateY(0);
}

@starting-style {
    .popover-target:popover-open {
        opacity: 0;
        transform: scale(0.95) translateY(4px);
    }
}


/**
 *  GRID LANES
 */
.grid-lanes-container {
    display: grid-lanes;
    grid-template-columns: 200px repeat(auto-fill, minmax(120px, 1fr));
    flow-tolerance: 1em;
    gap: 1em;

    div {
        background: #ddd;
        padding: 10px;
        text-align: left;
        border-radius: 10px;

        word-break: break-word;
    }

    div:nth-child(3n) {
        grid-column: span 2;
        background-color: #ccc;
    }
}


/**
 *  VIEW TRANSITIONS
 */

.card {
    view-transition-name: post;

    display: block;
    max-width: 250px;
    padding: 10px;

    border: 1px solid grey;
    border-radius: 8px;
}

.card__title {
    view-transition-name: post-title;

    font-size: 24px;

}


.page-detail {
    view-transition-name: post;

    display: block;
    padding: 10px;

    border: 1px solid grey;
    border-radius: 8px;
}

.page-detail__title {
    view-transition-name: post-title;

    font-size: 48px;
    color: fuchsia;
}


/**
 * Scroll driven animations
 */

 .try--scroll-driven-animation {
    view-timeline-name: --progressbars
 }

.progress-bar {
    display: block;
    width: 100%;
    height: 4px;

    background-color: lightgray;
}

.progress-bar__inner {
    display: block;
    width: 100%;
    height: 4px;

    background-color: red;

    transform: scaleX(0);
    transform-origin: left;

    animation: progress ease-in-out;
    animation-timeline: --progressbars;/*view();*/
}

.progress-bar__inner--range {
    animation-range: entry 25% cover 75%;
}

@keyframes progress {
    to {
        transform: scalex(1);
    }
}


@property --a {
    /* syntax: "<angle>"; */
    initial-value: 10deg;
}

.gradient-glow {
    display: block;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;

    /* border: 1px solid green; */
    border-radius: 15px;

    background: conic-gradient(from var(--a), red, yellow, green);
    animation: spin 3s linear infinite;
    /* transition: background 2s linear; */
}

@keyframes spin { to { --a: 360deg; } }


.sparkle {
    display: block;
    width: 100%;
    height: 300px;

    background-color: black;
    background-image:
        radial-gradient(circle, #ffffff 1px, transparent 1.5px),
        radial-gradient(circle, #ffd6a5 1px, transparent 1.5px),
        radial-gradient(circle, #a0c4ff 1px, transparent 1.5px);
    background-size: 30px 30px, 45px 45px, 70px 70px;
    background-position: 0 0, 15px 20px, 45px 10px;
    animation: twinkle 12s linear infinite;
}

@keyframes twinkle {
    to { background-position: 60px 60px, -60px 130px, 210px -120px; }
}

.neon-wrapper {
    background-color: black;
    padding: 40px;
}

.neon {
    font-size: 2rem;

    color: #ffffff;
    text-shadow:
        0 0 4px #ffffff,
        0 0 12px #ff2e88,
        0 0 28px #ff2e88,
        0 0 68px #ff2e88;
    animation: flicker 4s infinite;
}

@keyframes flicker {
    0% {
        opacity: 1;
    }
    45% {
        opacity: 1;
    }
    46% {
        opacity: 0.4;
    }
    48% {
        opacity: 0.9;
    }
    50% {
        opacity: 1;
    }
    51% {
        opacity: 0.5;
    }
    53% {
        opacity: 1;
    }
    96% {
        opacity: 1;
    }
    97% {
        opacity: 0.4;
    }
}

.typewriter-container {
    display: flex;
    flex-wrap: nowrap;
    /* justify-content: flex-start; */
    width: 100%;
    overflow: hidden;

    font-size: 200%;
    font-weight: 700;
}
.typewriter-container > * {
    display: block;
    white-space: nowrap;
    /* overflow: hidden; */
    /* flex: 1 1 auto; */
}

.typewriter {
    width: 100ch;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    animation: typewriter 2s steps(100);
}
span.typewriter {
    display: inline-block;
}

.typewriter span {
    color: purple;
    font-style: italic;
}

@keyframes typewriter {
    from { width: 0; }
}


.split {

}

