/* [20-10-2026] The tutorials (lib/helpers/Tutorials.php, lib/tutorials/*.html): what they have more than an ordinary page
   of the site - a readable column, steps, code to copy, screenshots, a small window with a wall of blinkies. The site's
   own fonts and headings; its pink for what can be clicked */

.tutorial { max-width: 720px; margin: 0 auto; padding: 4px 12px 24px; text-align: left; line-height: 1.6; font-size: 15px; color: #3a1d47; }
.tutorial h1 { margin: 6px 0 10px; font-size: 26px; line-height: 1.25; text-wrap: balance; }
.tutorial h2 { display: flex; align-items: center; gap: 10px; margin: 34px 0 10px; font-size: 20px; line-height: 1.3; }
.tutorial p, .tutorial li { margin: 0 0 12px; }
.tutorial a { color: #b81f74; }
.tutorial code { padding: 1px 5px; border-radius: 5px; background: #fbeaf4; font-size: 13.5px; }
.tutorial b { color: #2a1235; }

.tut-crumbs { margin: 0; font-size: 13px; }
.tut-lead { font-size: 16.5px; color: #5d4566; }
.tut-step { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
            background: linear-gradient(#ff8fc7, #e23d97); color: #fff; font-size: 15px; box-shadow: 0 2px 4px rgba(160, 30, 100, .3); }

/* blinkies as they are: their own size, sharp */
.tut-shelf { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 18px 0 22px; }
.tut-shelf img, .tut-wall img { display: block; image-rendering: pixelated; }

.tut-toc { padding: 12px 18px 4px; border-radius: 14px; background: #fff5fa; border: 1px solid #f3d3e5; }
.tut-toc ol { margin: 6px 0 8px; padding-left: 22px; }
.tut-toc li { margin: 0 0 4px; }

.tut-steps { padding-left: 22px; }

/* code to copy */
.tut-code { position: relative; margin: 0 0 14px; }
.tut-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; border-radius: 12px; background: #2a1235; color: #ffe1f1;
                font-size: 13px; line-height: 1.55; white-space: pre; }
.tut-code code { padding: 0; background: none; font-size: inherit; color: inherit; }
.tut-copy { position: absolute; right: 8px; top: 8px; padding: 4px 12px; border: 0; border-radius: 999px; cursor: pointer;
            background: #e23d97; color: #fff; font: bold 12px/1.4 inherit; }
.tut-copy:hover { background: #b81f74; }
.tut-copy:focus-visible { outline: 3px solid #ffd1ec; outline-offset: 2px; }

/* screenshots */
.tut-shot { margin: 6px 0 18px; text-align: center; }
.tut-shot img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 12px; box-shadow: 0 0 0 1px #ecd2e3, 0 10px 24px -12px rgba(90, 40, 80, .45); }
.tut-shot figcaption { margin-top: 8px; font-size: 13px; color: #7b6283; }

/* a small window with a Neocities page in it */
.tut-demo { margin: 6px 0 18px; }
.tut-window { overflow: hidden; border-radius: 12px; box-shadow: 0 0 0 1px #d9b8cc, 0 12px 26px -12px rgba(60, 20, 50, .5); }
.tut-bar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: #f1e3ec; font-size: 12px; color: #7b6283; }
.tut-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e6b3cf; }
.tut-bar span { margin-left: 8px; padding: 1px 10px; border-radius: 999px; background: #fff; }
.tut-page { padding: 20px 16px 24px; background: #170b26 radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .5) 0 1px, transparent 2px) 0 0 / 46px 46px;
            text-align: center; }
.tut-hello { margin: 0 0 14px; color: #ffb3dc; font: 16px/1.3 "Courier New", monospace; }
.tut-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 470px; margin: 0 auto; }

.tut-tip { padding: 10px 14px; border-radius: 12px; background: #fff8e6; border: 1px solid #f3e2b3; }

.tut-go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 0; }
.tut-button { display: inline-block; padding: 10px 20px; border-radius: 999px; text-decoration: none; font-weight: bold;
              background: linear-gradient(#ff8fc7, #e23d97); color: #fff !important; box-shadow: 0 2px 6px rgba(160, 30, 100, .35); }
.tut-button:hover { background: linear-gradient(#ff80bf, #d2318a); }
.tut-more li { margin-bottom: 8px; }
.tut-back { margin-top: 30px; }

/* the list of tutorials, and the ones to go on with under a tutorial: a card each, with a moving graphic of the site on a
   tile in the color of its group (Serhat: "de index pagina verbeteren en speelser maken"). The tilt and the lift answer the
   pointer, on the compositor */
.tut-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 18px 16px; margin-top: 14px; }
.tut-card { --tint: #ffe1f1; --tint2: #ffc2e1; display: flex; flex-direction: column; gap: 3px; padding: 8px 8px 14px; border-radius: 16px;
            text-decoration: none; background: #fff; box-shadow: 0 0 0 1px #f0d4e5, 0 8px 20px -12px rgba(90, 40, 80, .45);
            transition: transform .2s ease, box-shadow .2s ease; }
.tut-card:hover, .tut-card:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 2px #e23d97, 0 12px 22px -12px rgba(90, 40, 80, .5); }
.tut-card:focus-visible { outline: 3px solid #ffd1ec; outline-offset: 2px; }
.tut-badge { display: grid; place-items: center; height: 86px; margin-bottom: 8px; overflow: hidden; border-radius: 11px;
             background: radial-gradient(circle at 18% 28%, rgba(255, 255, 255, .9) 0 1.5px, transparent 2.5px) 0 0 / 26px 26px,
                         linear-gradient(135deg, var(--tint), var(--tint2)); }
.tut-badge img { display: block; max-width: calc(100% - 16px); height: auto; image-rendering: pixelated; }
.tut-card b { padding: 0 4px; font-size: 15.5px; line-height: 1.3; color: #2a1235; }
.tut-card span { padding: 0 4px; font-size: 13px; line-height: 1.45; color: #7b6283; }
.tut-g-make .tut-card { --tint: #ffe1f1; --tint2: #ffbfdf; }
.tut-g-share .tut-card { --tint: #ece6ff; --tint2: #cfc2ff; }
.tut-g-page .tut-card { --tint: #ddf7ec; --tint2: #b6ead6; }
.tut-g-little .tut-card { --tint: #fff4cf; --tint2: #ffe08f; }

.tut-index h1 { font-size: 30px; }
.tut-group { margin-top: 30px; }
.tut-group h2 { display: block; margin: 0; font-size: 21px; }
.tut-group h2 small { display: block; margin-top: 2px; font-size: 13.5px; font-weight: normal; color: #7b6283; }
.tut-index .tut-card:nth-child(3n + 1) { transform: rotate(-1.2deg); }
.tut-index .tut-card:nth-child(3n + 2) { transform: rotate(.8deg); }
.tut-index .tut-card:nth-child(3n) { transform: rotate(-.4deg); }
.tut-index .tut-card:hover, .tut-index .tut-card:focus-visible { transform: rotate(0) translateY(-3px); }
.tut-g-little .tut-badge { height: 62px; }

.tut-related { margin-top: 38px; padding-top: 6px; border-top: 1px dashed #ecc7dd; }
.tut-related h2 { margin-top: 18px; }
.tut-related .tut-badge { height: 64px; }
@media (prefers-reduced-motion: reduce) { .tut-card { transition: none; } }

@media (max-width: 600px)
{
    .tutorial { padding: 4px 4px 20px; font-size: 15px; }
    .tutorial h1 { font-size: 22px; }
    .tutorial h2 { font-size: 18px; }
}

/* [20-10-2026] graphics-on-your-site: a light page inside the small window (.tut-page is the dark one), to show what a code
   makes; side-by-side shows its rows in one too */
.tut-plain { padding: 22px 16px 24px; background: #fff; text-align: center; color: #3a1d47; }
.tut-plain a { color: #0000ee; }

/* [20-10-2026] glitter-backgrounds: a page with a background of the site behind it (the tile is set where it is used), words
   right on the glitter and words in a box, to see the difference */
.tut-bgpage { padding: 26px 16px 30px; background-repeat: repeat; text-align: center; }
.tut-bare { margin: 0 0 16px; font: bold 17px/1.3 Georgia, serif; color: #2a1235; }
.tut-readable { max-width: 340px; margin: 0 auto; padding: 14px 18px; border-radius: 12px;
                background: rgba(255, 255, 255, .88); color: #2a1235; text-align: left; }
.tut-readable p { margin: 0; }

/* [20-10-2026] bigger-without-blur: one blinkie three times as big (twice on a phone, where three times does not fit),
   smoothed, sharp, and sharp at one and a half times */
.tut-zoom { display: grid; gap: 6px; justify-items: center; margin: 6px 0 18px; padding: 18px 12px; border-radius: 12px;
            background: #fff5fa; border: 1px solid #f3d3e5; }
.tut-zoom img { display: block; }
.tut-zoom .tut-x3 { width: 450px; height: 60px; }
.tut-zoom .tut-x15 { width: 225px; height: 30px; }
.tut-zoom .tut-sharp { image-rendering: pixelated; }
.tut-zoom span { margin: 2px 0 12px; font-size: 13px; color: #7b6283; text-align: center; }
.tut-zoom span:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .tut-zoom .tut-x3 { width: 300px; height: 40px; } }

/* [20-10-2026] side-by-side: a dashed box for "your page" with graphics in it, as each piece of code puts them - the rows
   and the middle with the same rules as the code above them */
.tut-sbs { margin: 0 0 16px; padding: 14px; border: 2px dashed #ecc7dd; border-radius: 12px; background: #fff; }
.tut-sbs p { margin: 0; }
.tut-sbs-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tut-sbs-middle { text-align: center; }
.tut-sbs-block { display: block; margin: 0 auto; }

/* [20-10-2026] glitter-on-facebook: a made-up post, to show roughly what friends see - your words, a link back to more,
   the moving GIF. Plain on purpose: no one's logo or look */
.tut-post { max-width: 420px; margin: 0 auto; padding: 12px 14px 14px; border-radius: 14px; background: #fff; text-align: left;
            box-shadow: 0 0 0 1px #e3d6df, 0 10px 24px -14px rgba(60, 20, 50, .45); }
.tut-post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; line-height: 1.25; }
.tut-post-head small { display: block; color: #8d7a90; font-size: 12px; }
.tut-post-face { flex: none; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #ffb3dc, #b8a3ef); }
.tut-post p { margin: 0 0 4px; }
.tut-post-link { color: #b81f74; text-decoration: underline; }
.tut-post img { display: block; max-width: 100%; height: auto; margin: 10px auto 0; border-radius: 8px; }
.tut-caption { margin-top: 8px; font-size: 13px; color: #7b6283; text-align: center; }

/* [20-10-2026] blinkie-sizes: each size of the small web at its real size, beside its name and what it is for; a wide one
   scrolls in its own row instead of shrinking, so it stays its real size on a phone too */
.tut-sizes { display: grid; gap: 10px; margin: 10px 0 18px; }
.tut-size { padding: 12px 14px; border-radius: 14px; background: #fff5fa; border: 1px solid #f3d3e5; }
.tut-size-pic { overflow-x: auto; padding: 2px 0 6px; }
.tut-size-pic img { display: block; image-rendering: pixelated; }
.tut-size-pic.tut-twice { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.tut-size b { font-size: 16px; }
.tut-px { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #fff; border: 1px solid #ecd2e3; font-size: 12.5px;
          font-variant-numeric: tabular-nums; color: #7b6283; white-space: nowrap; }
.tut-size p { margin: 4px 0 0; font-size: 14px; }
/* [20-10-2026] blinkie-sizes: the column may not grow to the banner's 468 px on a phone; its row scrolls instead */
.tut-sizes { grid-template-columns: minmax(0, 1fr); }
