/* Retro styles — late 90s / early 2000s */

@font-face {
    font-family: 'pixChicago';
    src: url('fonts/pixChicago.woff2') format('woff2'),
         url('fonts/pixChicago.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Stedelijk';
    src: url('fonts/Stedelijk.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SUBWT';
    src: url('fonts/SUBWT.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Portfolio Bit';
    src: url('fonts/Portfolio_bit_full-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Fake Receipt';
    src: url('fonts/Fake-Receipt.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

/* Nearest-neighbor image scaling (pixelated, no smooth interpolation) — all images on retro pages */
body img {
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

body {
    margin: 0;
    padding: 20px 0 40px;
    font-family: 'Fake Receipt', 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: normal;
    color: #333;
    line-height: 1.5;
    background: #999 url('images/speaker-grill-texture-darker.png') repeat;
    background-size: 300px;
    min-height: 100vh;
    padding-bottom: 20px;
}

a {
    color: #ff6603;
    text-decoration: underline;
}

a:visited {
    color: #ff6603;
}

a:hover {
    color: #cc4f02;
}

/* Custom cursors — desktop only (mouse + hover) */
@media (hover: hover) and (pointer: fine) {
    body,
    body * {
        cursor: url('images/cursors/cursor-arrow.GIF') 0 0, auto;
    }
    a,
    button,
    [role="button"],
    .nav-btn,
    .nav-dropdown-trigger,
    .nav-dropdown-menu a,
    .retro-logo,
    .retro-badge,
    .nav-img,
    input[type="submit"],
    input[type="button"],
    input[type="reset"],
    label[for] {
        cursor: url('images/cursors/cursor-pointer.GIF') 0 0, pointer;
    }
    input[type="text"],
    input[type="email"],
    input[type="search"],
    input[type="password"],
    textarea,
    [contenteditable="true"] {
        cursor: url('images/cursors/cursor-text.GIF') 0 0, text;
    }
    .wait-cursor,
    body.busy {
        cursor: url('images/cursors/cursor-hour-glass.GIF') 0 0, wait;
    }
    [draggable="true"] {
        cursor: url('images/cursors/cursor-move-drag.GIF') 0 0, move;
    }
    .disabled,
    [aria-disabled="true"] {
        cursor: url('images/cursors/cursor-not-allowed.GIF') 0 0, not-allowed;
    }
    .cursor-resize-ew,
    [style*="resize: horizontal"] {
        cursor: url('images/cursors/cursor-resize-left-right.GIF') 0 0, ew-resize;
    }
    .cursor-resize-ns,
    [style*="resize: vertical"] {
        cursor: url('images/cursors/cursor-resize-top-bot.GIF') 0 0, ns-resize;
    }
    .cursor-resize-nesw {
        cursor: url('images/cursors/cursor-resize-ne-sw.GIF') 0 0, nesw-resize;
    }
    .cursor-resize-nwse,
    [style*="resize"] {
        cursor: url('images/cursors/cursor-resize-nw-se.GIF') 0 0, nwse-resize;
    }
}

.retro-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    background: #c0c0c0 url('images/background-vertical-brushed-steel.png') repeat;
    background-size: 400px 400px;
    border: 3px inset #000;
    border-radius: 25px 25px 0 0;
    padding-bottom: 2px;
}

/* Marquee */
.retro-marquee {
    width: 100%;
    background: #000;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 10px;
    padding: 0;
    border: 2px inset #000;
    border-radius: 20px;
}

.retro-marquee-wrapper {
    display: inline-flex;
    animation: scroll-marquee 20s linear infinite;
    will-change: transform;
}

.retro-marquee-content {
    display: inline-flex;
    align-items: center;
    font-family: 'Portfolio Bit', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 100px;
}

.retro-marquee-part {
    margin-right: 80px;
    display: inline-block;
}

.retro-marquee-part:last-child {
    margin-right: 0;
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 0px));
    }
}

/* Centered fixed-width container (era-appropriate ~800px) */
.retro-wrap {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 10px;
    padding: 0 10px 10px 10px;
    background: #ddd;
    background-size: 400px 400px;
    border: 3px inset #000;
    border-radius: 0 0 20px 20px;
    min-width: 0;
    overflow: hidden;
}
.header-container {
    width: 100%;
    max-width: 800px;
    height: 109px;
    margin: 0 auto;
    padding: 5px;
    background: #808080 url('images/orange-stripe-texture-02.png');
    background-size: 208px;
    border: 2px inset #000;
    border-radius: 2px;
    box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.6) inset;
}
/* Header + Nav group — width matches logo */
.retro-header-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.retro-logo {
    width: auto;
    height: 95px;
    margin: 0;
    object-fit: contain;
    /* box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.5); */
}

.retro-nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px;
}

.retro-nav-cog {
    flex: 0 0 auto;
    display: block;
    height: 25px;
    width: auto;
    margin: 0 8px 0 0;
    border: 2px inset #888;
    
}

.retro-nav-cog-right {
    margin: 0 0 0 8px;
}

.nav-btn {
    display: block;
    height: 25px;
    text-decoration: none;
    padding: 0;
    background: transparent;
    transform-origin: left center;
    line-height: 0;
    align-self: flex-start;
    
}

.nav-btn:last-child {
    margin-bottom: 0;
}

.nav-btn:hover {
    opacity: 1;
    /* filter: brightness(0.85); */
}

.nav-btn:hover .nav-img {
    border: 2px inset #888;
    filter: brightness(0.9);
}

.nav-img {
    display: block;
    border: 1px #000;
    height:25px;
    width:125px;
    margin: 0;
    padding: 0;
    border: 2px outset #888;
}

/* About dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    border: 0;
    background: transparent;
    font: inherit;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    /* padding: 4px 0 0; */
    min-width: 120px;
    background: #e8e8e8;
    border: 2px outset #888;
    /* border-radius: 6px; */
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

/* Invisible bridge so hover isn’t lost moving from trigger to menu */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 6px 14px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: #c0c0c0;
    color: #000;
}

.retro-hr {
    border: 0;
    height: 1px;
    background: #888;
    margin: 20px 0;
}

/* Main content */
/* .retro-main {
    padding: 10px 0 10px;
} */

.retro-welcome-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.retro-welcome-img {
    display: block;
    max-width: 100%;
    height: auto;
    /* margin-top: 10px; */
    border: 2px outset #999;
}

/* Homepage 1×4 row — white inset frame around grid + captions */
.retro-home-grid-frame {
    padding: 10px;
    background: #eee;
    border: 2px inset #999;
    border-radius: 0 0 20px 20px;
    box-sizing: border-box;
    margin: 10px 0;
}

.retro-home-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 10px;
    column-gap: 10px;
    min-width: 0;
    align-items: start;
}

.retro-home-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #999;
    border-radius: 10px;
    box-sizing: border-box;
}

.retro-home-grid-cell {
    width: 100%;
    aspect-ratio: 1;
    min-width: 0;
    overflow: hidden;
}

.retro-home-grid-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 2px inset #999;
    /* image-rendering: auto; */
}

.retro-home-grid-caption {
    margin: 8px 0 4px;
    padding: 0;
    font-size: 18px;
    font-weight: normal;
    line-height: 1.3;
    text-align: center;
    color: #000;
    align-self: stretch;
    /* Minimum height on desktop so GIFs in each row start at same height.
       Can grow if text wraps to more lines. */
    min-height: 60px;
}

.retro-home-grid-subcaption {
    margin: 8px 0 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    color: #999;
    align-self: stretch;
    /* Minimum height on desktop so GIFs align even when subcaptions wrap.
       Can grow if text wraps to more lines. */
    min-height: 48px;
}

/* Beveled "frame" boxes — classic 90s raised panel */
.retro-frame {
    margin-bottom: 10px;
    padding: 10px 10px;
    background: #e8e8e8;
    border: 1px solid #999;
    /* border: 2px inset #fff; */
    border-radius: 10px 10px 10px 10px;
}

.retro-frame:last-of-type {
    margin-bottom: 0;
}

h2 {
    margin: 16px 0 0 0px;
    padding:0;
    font-family: 'Portfolio Bit', 'Arial', monospace;
    font-size: 32px;
    font-weight: normal;
    color: #999;
    text-align: center;
    letter-spacing: 0.1em;
}

/* Heading-only frames: tighter vertical spacing */
.retro-frame--heading {
    padding-top: 8px;
    padding-bottom: 6px;
}

.retro-frame p {
    margin: 0 0 0 2px;
    text-align: left;
}

.retro-frame p:last-child {
    margin-bottom: 0;
}

/* Meet the team — vertical stack of horizontal frames */
.retro-team-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.retro-team-member {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 12px;
    background: #fff;
    border: 2px inset #999;
    border-radius: 0;
    box-sizing: border-box;
}

.retro-team-member h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: bold;
    color: #000;
}

.retro-team-photo {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    object-fit: cover;
    border: 2px outset #ccc;
    flex-shrink: 0;
}

.retro-team-info {
    flex: 1;
    min-width: 0;
}

.retro-team-info p {
    margin: 0 0 6px;
}

.retro-team-info p:last-child {
    margin-bottom: 0;
}

/* Shop page: search, sort, filters */
.retro-shop-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    margin-bottom: 10px;
}

.retro-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.retro-search-label,
.retro-sort-label,
.retro-filter-label,
.retro-genre-label {
    font-size: 12px;
    font-weight: bold;
    color: #000;
    flex-shrink: 0;
}

.retro-search-input,
.retro-sort-select,
.retro-filter-input {
    font-family: 'Fake Receipt', 'Arial', monospace;
    font-size: 12px;
    padding: 6px 8px;
    border: 2px inset #999;
    background: #fff;
    color: #000;
}

.retro-search-input {
    min-width: 160px;
}

.retro-sort-select {
    min-width: 140px;
}

.retro-sort-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.retro-filter-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.retro-filter-input {
    width: 48px;
    box-sizing: border-box;
}

.retro-filter-sep {
    color: #666;
    font-size: 12px;
}

.retro-genre-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.retro-genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.retro-genre-tag {
    font-family: 'Fake Receipt', 'Arial', monospace;
    font-size: 11px;
    padding: 4px 8px;
    border: 2px outset #ccc;
    background: #e0e0e0;
    color: #000;
    /* cursor: pointer; */
}

.retro-genre-tag:hover {
    background: #d0d0d0;
}

.retro-genre-tag.retro-genre-active {
    border-style: inset;
    background: #bbb;
    color: #000;
}

.retro-product.retro-product-hidden {
    display: none !important;
}

/* Featured product */
.retro-products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    /* margin-top: 12px; */
}

.retro-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    flex-shrink: 0;
    margin-top: 10px;
}

.retro-product-link {
    flex-shrink: 0;
    text-decoration: none;
    border: 2px outset #ccc;
    margin: 0 auto;
    display: block;
    line-height: 0;
}

.retro-product-link:hover {
    border-color: #999;
}

.retro-product-img {
    display: block;
    max-width: 236px;
    width: auto;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    object-position: top center;
    border: 0;
}

.retro-product-info {
    font-family: 'Fake Receipt', 'Arial', monospace;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    box-sizing: border-box;
    padding: 0;

}

.retro-product-title {
    font-family: 'Fake Receipt', 'Arial', monospace;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    text-align: center;
    color: #000;
    margin-left: 0px !important;
}

.retro-product-artist {
    font-size: 14px;
    margin: 0;
    text-align: center;
    color: #333;
    margin-left: 0px !important;
}

.retro-product-year {
    font-size: 11px;
    color: #666;
    margin: 0 0 8px;
    text-align: center;
    margin-left: 0px !important;
}

.retro-product-meta {
    font-size: 9px;
    color: #888;
    margin: 0;
    text-align: center;
    margin-left: 0px !important;
}

.retro-product-price {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    text-align: center;
    color: #000;
    margin-left: 0px !important;
}

.retro-product-edition {
    font-size: 9px;
    font-weight: normal;
    color: #ff6603;
    padding-bottom: 1px;
    text-align: left;
    align-self: flex-start;
}

.retro-cta {
    display: inline-block;
    align-self: center;
    padding: 6px 8px;
    background: #ccc;
    border: 2px outset #ddd;
    color: #000;
    text-decoration: none;
    text-align: right;
    font-family: 'pixChicago', 'Arial', monospace;
    font-size: 12px;
    margin-top: 6px;
}

.retro-cta:visited {
    color: #000;
}

.retro-cta:hover {
    background: #bbb;
    border: 2px inset #ddd;
    /* color: #ff6603; */
}

/* Grayed-out order buttons and product image link when flag is on */
body.order-buttons-grayed .retro-product-link {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.85;
}

body.order-buttons-grayed .retro-cta {
    background: #ccc;
    border-color: #ccc;
    color: #aaa;
    border: 2px inset #ddd;
    pointer-events: none;
    cursor: not-allowed;
}

body.order-buttons-grayed .retro-cta:hover {
    background: #e0e0e0;
    border-color: #ccc;
    color: #888;
}

#release-countdown {
    align-self: center;
    margin: 10px 0 0;
    font-family: 'Fake Receipt', 'Arial', monospace;
    font-size: 12px;
    color: #000;
}

/* News — horizontally scrolling box section */
.retro-news-container {
    overflow: hidden;
}

.retro-news-items {
    display: flex;
    flex-direction: row;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
}

.retro-news-item {
    flex-shrink: 0;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    padding: 0 8px 0 0;
}

.retro-news-item:last-child {
    padding-right: 0;
}

.retro-news-item-inner {
    border: 2px inset #999;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100px;
    box-sizing: border-box;
}

.retro-news-date {
    border-bottom: 1px dashed #666;
    padding: 8px 10px;
    font-family: 'Fake Receipt', 'Arial', monospace;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    flex-shrink: 0;
}

.retro-news-text {
    padding: 10px;
    font-family: 'Fake Receipt', 'Arial', monospace;
    font-size: 12px;
    color: #000;
    line-height: 1.35;
    flex: 1;
}

.retro-news-text a {
    color: #ff6603;
    text-decoration: none;
}

.retro-news-text a:visited {
    color: #ff6603;
}

.retro-news-text a:hover {
    color: #cc4f02;
    text-decoration: underline;
}

/* CD walking across bottom of viewport */
.retro-cd-runner-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 56px;
    overflow: hidden;
    pointer-events: none;
    z-index: 100;
}

.retro-cd-runner {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 48px;
    width: auto;
    animation: cd-runner-walk 25s linear infinite;
}

.retro-cd-runner img {
    display: block;
    height: 48px;
    width: auto;
}

@keyframes cd-runner-walk {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100vw);
    }
}

/* Footer */
.retro-footer {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 16px 70px;
    font-size: 12px;
    color: #555;
    background: #e8e8e8;
    border: 2px inset #666;
    border-radius: 100px;
    margin-top: 10px;
}

.retro-footer-speaker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

.retro-footer-speaker-left {
    left: 50px;
}

.retro-footer-speaker-right {
    right: 50px;
}

.retro-footer-woofer {
    height: 100%;
    width: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.retro-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


.retro-footer p {
    margin: 0 0 6px;
}

.retro-footer a {
    color: #ff6603;
}

.retro-footer a:hover {
    color: #cc4f02;
}

.retro-footer-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 12px 0 0;
}

.retro-footer-badges a {
    display: inline-block;
}

.retro-badge {
    display: block;
    width: 88px;
    height: 31px;
    object-fit: contain;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.retro-footer-logo {
    display: block;
    margin: 12px auto 0;
    max-width: 250px;
    height: auto;
}

@media (max-width: 600px) {
    /* Home grid: single column on mobile (stack the 4 cells) */
    .retro-home-grid {
        grid-template-columns: 1fr;
    }

    .retro-home-grid-caption {
        text-align: center;
        /* Let captions grow naturally on mobile so text isn't clipped */
        min-height: auto;
        height: auto;
        /* Consistent spacing between caption bottom and GIF top, regardless of wrapping */
        margin-bottom: 12px;
    }

    .retro-home-grid-subcaption {
        text-align: center;
        /* Let subcaptions grow naturally on mobile */
        min-height: auto;
        height: auto;
    }

    /* Header & logo */
    .header-container {
        height: 73px;
    }

    .retro-logo {
        height: 60px;
    }

    .retro-marquee-content {
        font-size: 9px;
    }

    .retro-marquee-part {
        font-size: 9px;
    }

    .retro-marquee {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    /* Nav: smaller buttons; hide cogs */
    .nav-img {
        height: 17.5px;
        width: 87.5px;
    }

    .nav-btn {
        height: 17.5px;
    }

    .retro-nav-cog,
    .retro-nav-cog-right {
        display: none;
    }

    /* Headings */
    h2 {
        font-size: 24px;
    }

    /* Hide footer speaker-woofer images on mobile */
    .retro-footer-speaker {
        display: none;
    }

    /* Product grid */
    .retro-product {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .retro-product-info {
        text-align: center;
    }

    .retro-product-title,
    .retro-product-artist,
    .retro-product-meta,
    .retro-product-price {
        text-align: center;
    }
    .retro-home-grid-caption {
        margin: 8px 0 16px;
    }
}
