html, body {
    margin: 0;
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    min-height: 100vh;
    text-align: center;
    background-image: url('assets/wall.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    padding-right: 210px; /* breathe room for fixed sidebar */    
}

.row img {
    image-rendering: pixelated;
    margin: 4px;
}

hr {
  border: none;
  height: 1px;
  margin: 0px;
  padding: 0px;
  background: #f8f8ff;
}

/* layout */
.page-container {
    margin: 0 auto;
    max-width: 1000px;
    width: calc(100% - 220px); /* leave room for the sidebar */
    padding: 20px;
    text-align:center;
    box-sizing: border-box;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 5px solid transparent;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(90deg,
            #ff8fab,
            #ffd166,
            #caffbf,
            #9bf6ff,
            #bdb2ff,
            #ffc6ff,
            #ff8fab) border-box;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
}

main {
    margin: 0 auto;
    text-align: center;
}

footer {
    text-align: center;
    vertical-align: bottom;
    margin-top: auto;
}

/* title */
.site-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 30px;
    display: flex;
    gap: 2px;
    letter-spacing: 1px;
    width: 100%;
    height: 90px;
    align-items: center;
    justify-content: center;
}

.site-title span {
    display: inline-block;
    text-shadow:
        2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000,
        1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000;
}
.site-title span:nth-child(6n+1) { color: #ff8fab }
.site-title span:nth-child(6n+2) { color: #ffd166 }
.site-title span:nth-child(6n+3) { color: #caffbf }
.site-title span:nth-child(6n+4) { color: #9bf6ff }
.site-title span:nth-child(6n+5) { color: #bdb2ff }
.site-title span:nth-child(6n+6) { color: #ffc6ff }

.section-title span {
    display: inline-block;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;

    text-shadow:
        2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000,
        1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000;

    animation: letterBounce 1.2s ease forwards infinite;
    animation-delay: calc(var(--i) * 0.12s);
}

/* color cycle */
.section-title span:nth-child(6n+1) { color: #ff8fab; }
.section-title span:nth-child(6n+2) { color: #ffd166; }
.section-title span:nth-child(6n+3) { color: #caffbf; }
.section-title span:nth-child(6n+4) { color: #9bf6ff; }
.section-title span:nth-child(6n+5) { color: #bdb2ff; }
.section-title span:nth-child(6n+6) { color: #ffc6ff; }

@keyframes letterBounce {
    0% { transform: translateY(0); }
    20% { transform: translateY(-10px); }
    40% { transform: translateY(3px); }
    60% { transform: translateY(0); }
    100% { transform: translateY(0); }
}


/* ---- Multi-section page layout ---- */
.page-wrapper {
    margin: 0 auto;
    max-width: 1000px;
    width: calc(100% - 220px);
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px;
    box-sizing: border-box;
}

.content-box {
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 5px solid transparent;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(90deg,
            #ff8fab,
            #ffd166,
            #caffbf,
            #9bf6ff,
            #bdb2ff,
            #ffc6ff,
            #ff8fab) border-box;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
}

/* ---- Blinkie grid rows ---- */
.blinkie-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.blinkie-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.blinkie-column a {
    display: block;
    text-align: center;
}

.blinkie-column img {
    min-height: 30px;
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* ---- Column title (rainbow bouncing) ---- */
.column-title {
    text-align: center;
    margin-bottom: 6px;
    font-size: 14px;
    letter-spacing: 1px;
    min-height: 24px;
}

/* The .section-title span rules in your existing CSS already handle color + bounce,
   so .column-title just needs the container styling above. */
   
/* typography */
.page-container h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 26px;
    margin-bottom: 12px;
    letter-spacing: 1px;
    line-height: 1.2;
    color: #fff;
    text-transform: uppercase;
    text-shadow:
        2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000,
        1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000;
}

.page-container h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: center;
    color: #fff;
    text-shadow:
        2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000,
        1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000;
}

.page-container h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

.page-container p {
    margin: 0 auto 12px
    max-width: 65ch
}

.page-container a {
    color: #4a6cf7;
    text-decoration: underline;
    font-weight: 500;
}
.page-container a:hover {
    text-decoration: none
}

.top-link a {
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    font-family: 'Press Start 2P', cursive;
    text-align: left;
    font-size: 12px;
}

/* nav */
.side-nav {
    position: fixed;
    right: 0;
    top: 0;
    width: 200px;
    height: 100vh;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    /* frosted glass */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 4px solid #ffffff;
}
.nav-section h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    letter-spacing: 1px;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: left;
    color: #fff;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}
/* nav list */
.side-nav ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
}
.side-nav li {
    position: relative;
    padding-left: 18px;
    font-size: 12px;
}
.side-nav li::before {
    content: "★";
    position: absolute;
    left: 0;
    font-size: 20px;
    text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000;
}
.side-nav li:nth-child(6n+1)::before { color: #ff8fab }
.side-nav li:nth-child(6n+2)::before { color: #ffd166 }
.side-nav li:nth-child(6n+3)::before { color: #caffbf }
.side-nav li:nth-child(6n+4)::before { color: #9bf6ff }
.side-nav li:nth-child(6n+5)::before { color: #bdb2ff }
.side-nav li:nth-child(6n+6)::before { color: #ffc6ff }
.side-nav a {
    display: inline-block;
    padding: 2px 2px;
    text-decoration: none;
    color: #000000;
    font-size: 12px;
    text-align: left;
    transition: .2s;
}
.side-nav a:hover {
    background: rgba(255, 255, 255, 0.4);
}
.nav-links a {
    display: block;
    font-size: 12px;
    text-align: left;
}