@font-face {
    font-family: "MarioTitle";
    src: url("fonts/MarioTitle.woff2") format("woff2");
}

body {
    font-family: "MarioTitle", system-ui, sans-serif;
    font-size-adjust: 0.5;
    margin-top: 220px;
    color: #1e293b;
    line-height: 1.6;

    background-image:
        url("images/clouds.png"),
        url("images/hill.png"),
        linear-gradient(#5cc9ff, #73d7ff);
    background-repeat: repeat-x, repeat-x, no-repeat;
    background-size: 400px auto, 500px auto, cover;
    background-position: top 40px center, bottom center, center;
}

#css-zen-garden {
    min-height: 100vh;
}

.page-wrapper {
    max-width: 1100px;
    margin: 48px auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 3fr 1.2fr;
    grid-template-areas:
        "intro intro"
        "main sidebar";
    gap: 32px;
    background: #8b5a2b;
    border-radius: 24px;
    box-shadow: 0 30px 60px #000000a6;
    position: relative;
}

.page-wrapper::before {
    content: "";
    position: absolute;
    inset: -15%;
    background:
        radial-gradient(circle at top, #ffffff2e, transparent 60%);
    mix-blend-mode: screen;
    filter: blur(6px);
    pointer-events: none;
}

.intro {
    grid-area: intro;
}

.main.supporting {
    grid-area: main;
}

.sidebar {
    grid-area: sidebar;
}

.intro {
    position: relative;
    background: #9ce3ff;
    border-radius: 19px;
    padding: 35px 32px;
    overflow: hidden;
    box-shadow: 0 18px 40px #00000073;
}

.intro::before {
    content: "";
    position: absolute;
    left: -10%;
    top: 45%;
    width: 120%;
    height: 90px;
    background-image: url("images/Brick_Block.webp");
    background-size: 64px 64px;
    background-repeat: repeat-x;
    opacity: 1;
}

.intro::after {
    content: "";
    position: absolute;
    right: -5%;
    top: 10%;
    width: 40%;
    height: 80%;
    background: radial-gradient(circle, #ffffff66, transparent 60%);
    -webkit-mask-image: radial-gradient(circle, black 0, transparent 70%);
    mask-image: radial-gradient(circle, black 0, transparent 70%);
    opacity: 0.9;
}

.intro header h1 {
    margin: 0;
    font-size: clamp(43px, 3.5vw + 16px, 57px);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffe66d;

    text-wrap: balance;
    text-shadow:
        0 3px 0 #000000,
        0 6px 0 #b45309;

    -webkit-text-stroke: 2px #1f2937;

    animation: title-bounce 3s ease-in-out infinite alternate;
    transform-origin: bottom;

    transition: transform 0.3s ease;
}

.intro header h2 {
    margin: 0.5rem 0 0;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.95rem;
    color: #1e293b;
}

.intro header h1:hover {
    transform: translateY(-6px) scale(1.03) rotateX(8deg);
}

.summary,
.preamble {
    background: #ffe9a3;
    border-radius: 16px;
    padding: 20px 22px;
    margin-top: 15px;
    box-shadow:
        0 10px 0 #d97706,
        0 14px 25px #00000080;
    position: relative;
}

.summary::before,
.preamble::before {
    content: "?";
    position: absolute;
    top: 18px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #facc15;
    border: 3px solid #92400e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #92400e;
}

.summary {
    margin-bottom: 70px;
}

.preamble {
    margin-top: 100px;
}

.main.supporting {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 8px;
}

.main.supporting > div {
    background: #fefce8;
    border-radius: 17px;
    padding: 20px 29px;
    position: relative;
    overflow: hidden;

    border: 6px solid transparent;
    border-image: linear-gradient(90deg, #22c55e, #10b981) 1;

    box-shadow: 0 14px 35px #0000008c;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.main.supporting > div:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 22px 55px #000000b3;
}

.main.supporting > div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    bottom: 12%;
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(#16a34a, #22c55e);
}

.main.supporting h3 {
    margin: 0 0 14px;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #1e293b;
}

.explanation {
    column-count: 2;
    column-width: 260px;
    column-gap: 32px;
}

.sidebar .wrapper {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.design-selection,
.design-archives,
.zen-resources {
    background: #0b1120;
    border-radius: 16px;
    padding: 19px 21px;
    box-shadow: 0 16px 40px #000000cc;
}

.design-selection h3,
.design-archives h3,
.zen-resources h3 {
    margin: 0 0 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #facc15;
}

.design-selection nav ul,
.design-archives nav ul,
.zen-resources ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.design-selection li {
    color: white;
}

.design-selection li a{
    display: block;
}

.design-selection li a + a,
.design-archives li a + a {
    padding-left: 12px;
    opacity: 0.7;
    font-size: 0.85em;
}

.sidebar a {
    text-decoration: none;
    color: #e5e7eb;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 4px;
    border-radius: 12px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar a::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: radial-gradient(circle, #22c55e, #064e3b);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar a:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 10px #facc15e6;
}

.sidebar a:hover {
    color: #facc15;
    transform: translateX(2px);
}

footer {
    margin-top: 1.5rem;
    text-align: center;
}

footer a {
    display: inline-block;
    margin: 0 6px;
    color: #e5e7eb;
    font-size: 14px;
    text-decoration: none;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #94a3b8b3;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

footer a:hover {
    background-color: #fbbf24;
    color: #1f2937;
    transform: translateY(-1px);
}

.extra1 {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: #111827;
    color: #f9fafb;
    border-radius: 999px;
    font-size: 12px;
    box-shadow: 0 8px 24px #000000b3;
    z-index: 5;
}
.extra1::before {
    content: "WORLD 1-1  •  CSS ZEN GARDEN";
}

.extra2 {
    width: 60px;
    height: 60px;
    margin-left: 50%;
    background-image: url("images/coin.png");
    background-size: contain;
    background-repeat: no-repeat;
}

.extra3 {
    width: 64px;
    height: 64px;
    margin-left: 75%;
    background-image: url("images/question_block.webp");
    background-size: contain;
    background-repeat: no-repeat;
}

.extra4 {
    width: 175px;
    height: 175px;
    margin-bottom: -.5%;
    margin-left: 20%;
    background-image: url("images/pipe.png");
    background-size: contain;
    background-repeat: no-repeat;
}

.extra5,
.extra6 {
    display: none;
}

a {
    color: #2563eb;
}

input,
select,
textarea,
button {
    appearance: none;
    font-family: inherit;
}

@keyframes title-bounce {
    0% {
        transform: translateY(0) scale(1);
        text-shadow:
            0 3px 0 #000000,
            0 6px 0 #b45309;
    }
    50% {
        transform: translateY(-6px) scale(1.05);
        text-shadow:
            0 4px 0 #000000,
            0 10px 12px #fbbf24e6;
    }
    100% {
        transform: translateY(0) scale(1);
        text-shadow:
            0 3px 0 #000000,
            0 6px 0 #b45309;
    }
}

@media (max-width: 900px) {
    .page-wrapper {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "main"
            "sidebar";
        margin: 1.5rem;
    }

    .main.supporting {
        order: 2;
    }

    .sidebar {
        order: 3;
    }

    .explanation {
        column-count: 1;
    }
}

@media (max-width: 600px) {
    .intro {
        padding: 27px 24px;
    }

    .page-wrapper {
        padding: 18px;
    }
}