/* base */

html {
    zoom: 0.9;
    /* zoom: 1.0; */
}

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

body {
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; */
    /* font-family: 'Courier Prime', serif; */
    font-family: 'Inconsolata', monospace;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    opacity: 1;
    transition: opacity 0.3s ease;
    min-height: 100vh;
    padding-bottom: 60px;
}

@starting-style {
    body {
        opacity: 0;
    }
}

/* index */

.scibar {
    position: relative;
    max-width: 1200px;
    margin: 34px auto 20px;
    padding: 0 20px;
}

.scibar-bar {
    height: 8px;
    border-radius: 0;
    background: linear-gradient(to right,
        #440154 0%, #440154 12.5%,
        #46327e 12.5%, #46327e 25%,
        #365c8d 25%, #365c8d 37.5%,
        #277f8e 37.5%, #277f8e 50%,
        #1fa187 50%, #1fa187 62.5%,
        #4ac16d 62.5%, #4ac16d 75%,
        #a0da39 75%, #a0da39 87.5%,
        #fde725 87.5%, #fde725 100%);
}

.scibar-tick {
    position: absolute;
    bottom: 100%;
    margin-bottom: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    pointer-events: none;
}

.scibar-tick-low {
    left: 20px;
    transform: translateX(-50%);
}

.scibar-tick-high {
    right: 20px;
    transform: translateX(50%);
}

.scibar-tick-mark {
    width: 1px;
    height: 6px;
    background: #999;
}

.scibar-tick-label {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.spacecraft-banner {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
    text-align: center;
}

.spacecraft-banner img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 600px) and (orientation: portrait) {
    .spacecraft-banner {
        width: 100%;
        max-width: none;
        aspect-ratio: 1608 / 2898;
        padding: 0;
        margin: 20px auto 0;
        overflow: hidden;
        position: relative;
    }

    .spacecraft-banner img {
        position: absolute;
        top: 50%;
        left: 50%;
        width: calc(100vw * 2898 / 1608);
        max-width: none;
        height: auto;
        transform: translate(-50%, -50%) rotate(90deg);
    }
}

.container {
    max-width: 900px;
    margin: 80px auto 20px;
    padding: 0 20px;
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    width: 180px;
}

.blinkies {
    display: grid;
    grid-template-columns: repeat(2, 88px);
    gap: 4px;
    margin-top: 10px;
    justify-content: flex-end;
}

.blinkies a {
    line-height: 0;
}

.profile-image {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.webring-label {
    width: 220px;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
    text-align: center;
    /* margin-top: 16px; */
}

.webring {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 220px;
    flex-shrink: 0;
    /* margin-bottom: 16px; */
}

.webring-arrow {
    flex: 1;
    display: block;
    text-align: center;
    color: #0066cc;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1;
}

.webring-arrow:hover {
    text-decoration: underline;
}

.webring-random {
    flex-shrink: 0;
    text-align: center;
    color: #0066cc;
    text-decoration: none;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.webring-random:hover {
    text-decoration: underline;
}

.tree-image {
    flex-shrink: 0;
    width: 220px;
}

.tree-image img {
    width: 100%;
    display: block;
}

p {
    font-size: 1rem;
}

.info h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.info p {
    color: #555;
    margin-bottom: 10px;
}

.info a {
    color: #0066cc;
    text-decoration: none;
}

.info a:hover {
    text-decoration: underline;
}


.info .disclaimer {
    font-size: 0.8rem;
    color: #888;
}

.contact {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.contact-label {
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-details {
    font-size: 0.85rem;
}

.view-counter {
    font-size: 0.75rem;
    color: #aaa;
    text-align: right;
    margin-top: 4px;
    letter-spacing: 0.02em;
}

/* THESE ARE THE CONFIGS FOR MOBILE!!!! */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: stretch;
        margin-top: 30px;
        gap: 4px;
    }

    .container .info {
        text-align: left;
    }

    p {
        font-size: 0.9rem;
    }

    .container .info h1 {
        text-align: center;
    }

    .container .info .links {
        text-align: center;
    }

    .profile-sidebar {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        width: fit-content;
        margin: 0 auto;
        /* margin: 0; */
    }

    .profile-image {
        width: 160px;
        height: 160px;
        flex-shrink: 0;
    }

    .tree-image {
        width: 160px;
    }

    .webring-label {
        width: 160px;
    }

    .webring {
        width: 160px;
    }

    .webring-random {
        font-size: 0.65rem;
    }

    .sidebar-right {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .blinkies {
        display: grid;
        grid-template-columns: repeat(2, 88px); /* set the column count here */
        gap: 4px;
        margin-top: 0;
        align-items: start;
    }

    .view-counter {
        text-align: left;
        margin-top: 0;
    }
}

@property --wave {
    syntax: '<number>';
    initial-value: 0;
    inherits: false;
}

@keyframes wave-roll {
    to { --wave: 6.283185; }
}

.wavy-trident {
    display: inline-block;
    animation: wave-roll 1.4s linear infinite;
    translate: 0 calc(sin(var(--nth) * 1.2 - var(--wave)) * 2px); /* I like this style already */
}

.proverb-separator {
    max-width: 1200px;
    margin: 30px auto 40px;
    padding: 0 20px;
    overflow: hidden;
}

.proverb-track {
    display: flex;
    width: fit-content;
    animation: proverb-scroll 22.8s linear infinite;
}

.proverb-track img {
    display: block;
    width: auto;
    height: 50px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .proverb-separator {
        padding: 0;
    }
}


@keyframes proverb-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-25%); }
}

.showcase {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.showcase h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
    /* border-bottom: 1px solid #e5e5e5; */
    /* padding-bottom: 5px; */
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.showcase-grid a {
    position: relative;
    display: block;
    transform: rotate(var(--r, 0deg));
}

.showcase-grid a:hover {
    z-index: 2;
}

.showcase-grid a.featured::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 3px dotted #1e1e1e;
    border-radius: 6px;
    pointer-events: none;
    transition: inset 0.2s ease;
}

.showcase-grid a.featured:hover::before {
    inset: calc(-3% - 6px);
}

.showcase-img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.5s ease;
}

.showcase-grid a:hover .showcase-img {
    transform: scale(1.08);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* overlay images - cycled by projects.js */
.showcase-img:not(:first-child) {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .showcase-img {
        height: 180px;
    }

    .extras-border img {
        width: 130px;
    }

    .characters-row .char-bow {
        width: 130px;
    }

    .characters-row .char-yari {
        width: 151px;
    }
}

.extras {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 20px;
    text-align: center;
}

.extras-border {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.extras-border img {
    width: 240px;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 1;
    display: block;
}

.characters-row img {
    height: auto;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 1;
    display: block;
}

.characters-row .char-bow {
    width: 240px;
}

.characters-row .char-yari {
    width: 284px;
}

.quote {
    max-width: 1200px;
    margin: 20px auto 20px;
    padding: 0 20px;
}

.quote summary {
    display: block;
    list-style: none;
    cursor: pointer;
    border-bottom: 1px solid #333;
    font-size: 1.0rem;
}

.quote summary::before {
    content: "↠ Click Me!";
}

.quote summary::-webkit-details-marker {
    display: none;
}

details[open].quote summary::before {
    content: "↡ UnClick Me!";
}

.quote p {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #333;
}

.extras > a img {
    margin-top: 10px;
}

.code-configs {
    max-width: 1200px;
    margin: 10px auto 0;
    padding: 0 20px;
    text-align: left;
}

.code-configs summary {
    cursor: pointer;
    font-size: 0.8rem;
    color: #555;
    list-style: none;
    user-select: none;
}

.code-configs summary::-webkit-details-marker {
    display: none;
}

.code-configs summary::before {
    content: "↠ ";
}

details[open].code-configs summary::before {
    content: "↡ ";
}

.code-configs-grid {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.code-configs-grid > div {
    flex: 1;
    min-width: 0;
}

.code-configs-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 2px;
}

.code-configs pre {
    padding: 8px 10px;
    border: 1px solid #ccc;
    font-size: 0.75rem;
    color: #333;
    background: #fafafa;
    text-align: left;
    white-space: pre;
    overflow-x: auto;
}

.gallery-label {
    display: block;
    height: 32px;
    width: auto;
    margin: 40px auto 0;
}

.goodies-link {
    text-align: center;
    margin-top: 20px;
}

.goodies-link a {
    color: #0066cc;
    text-decoration: none;
}

.goodies-link a:hover {
    text-decoration: underline;
}

.gallery {
    max-width: 1000px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.gallery h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 30px;
    text-align: center;
}

.gallery-board {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0px 0px;
    padding: 10px 0 30px;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #fff;
    padding: 10px 10px 30px;
    border: 1px solid #ddd;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transform: rotate(var(--r, 0deg));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
}

.gallery-img:hover {
    transform: rotate(0deg) scale(1.08);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

@media (max-width: 768px) {
    .gallery-board {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-img {
        padding: 6px 6px 18px;
    }
}

@media (max-width: 480px) {
    .gallery-board {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-img {
        padding: 4px 4px 14px;
    }
}

.lightbox {
    margin: auto;
    border: none;
    border-radius: 4px;
    padding: 20px;
    max-width: min(90vw, 700px);
    max-height: 90vh;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.7);
}

.lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #333;
}

.wwf-section {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 20px;
    text-align: center;
}

.wwf-section img {
    width: 440px;
    max-width: 100%;
    object-fit: cover;
}

/* goodies */

.back-link {
    display: inline-block;
    margin-bottom: 10px;
    color: #0066cc;
    text-decoration: none;
    font-size: 0.95rem;
}

.back-link:hover {
    text-decoration: underline;
}

.page-title {
    max-width: 900px;
    margin: 0 auto 0px;
    padding: 0 20px;
    text-align: center;
}

.page-title img {
    width: 100%;
    height: auto;
}

.section h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 8px;
}

.section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.section + .section {
    margin-top: 40px;
}

.section h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #000;
    /* margin-bottom: 15px; */
    /* border-bottom: 1px solid #e5e5e5; */
    /* padding-bottom: 5px; */
}

.section img {
    max-width: 100%;
}

.section-desc {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
}

.construction {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 0;
}

.construction-images {
    display: flex;
    gap: 4px;
    /* justify-content: center; */
}

.construction-images img {
    flex: 1;
    min-width: 0;
    height: auto;
}
