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

body {
    font-family: Noteworthy, sans-serif;
    background-color: #FFFFFF;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    bottom: 15%;
    right: 15%;
    width: 50%;
    height: 50%;
    background-image: url(../images/duck_transparent.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: 0.2;
    z-index: -1;
}

a {
    color: #A01FCB;
}

a:visited {
    color: #800080;
}

a:active {
    color: #8018CB;
}

a:hover {
    color: #E3B4F3;
}

nav {
    background-color: #333;
    padding: 10px 20px;
    position: relative;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

nav a {
    color: #FFFFFF;
    text-decoration: none;
}

nav a:visited {
    color: #C9C9C9;
}

nav a:hover {
    color: #3FBF42;
}

nav a:active {
    color: #2E8F32;
}

nav a:focus-visible {
    outline: 2px solid #3FBF42;
    outline-offset: 2px;
}

nav a.current-page,
nav a.current-section {
    color: #3FBF42;
    font-weight: 700;
}

nav a.current-page {
    text-decoration: underline;
    text-underline-offset: 4px;
}

nav li {
    position: relative;
}

nav li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    z-index: 200;
}

nav li ul li {
    display: block;
}

nav li li ul {
    top: 0;
    left: 100%;
}
@media (max-width: 480px) {
    nav li li ul {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        min-width: 0;
    }
    nav li li ul a {
        padding-left: 24px;
    }
}

nav li ul a {
    display: block;
    padding: 8px 12px;
    white-space: nowrap;
}

nav li ul a:hover {
    background-color: #555;
}

main {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.spotify-embed {
  max-width: 523px;
  margin: 20px auto;
  background-color: #E5E5E5;
  border: 1px solid #A0A0A0;
  border-radius: 12px;
  overflow: hidden;
}

.spotify-embed iframe {
  display: block;
  width: 100%;
  height: 352px;
  border: 0;
}

.fm-label {
    font-size:12pt;
    font-family:Arial, Helvetica, sans-serif;
    color:#000000;
}

.apple-embed {
  max-width: 660px;
  margin: 20px auto;
}

.apple-embed iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}

.video-embed {
  max-width: 320px;
  margin: 20px auto;
}

.video-embed video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* --- Tape deck widget (shared across The Demos and its subpages) --- */
.tape-deck { max-width: 480px; margin: 0 auto 40px; font-family: Arial, Helvetica, sans-serif; }

.tape-photo-wrap { position: relative; width: 100%; line-height: 0; }
.tape-photo { width: 100%; display: block; }

.tape-album-overlay {
    position: absolute;
    top: 16%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    text-align: center;
    font-family: Noteworthy, sans-serif;
    font-weight: bold;
    font-size: 18px;
    color: #2b2116;
    line-height: 1.15;
}
.tape-year-overlay {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: Noteworthy, sans-serif;
    font-size: 11px;
    color: #6b5a3f;
}

.reel-photo {
    position: absolute;
    width: 12%;
    height: auto;
    top: 46.0%;
    transform: translate(-50%, -50%);
}
.reel-photo.left { left: 30.2%; }
.reel-photo.right { left: 69.9%; top: 46.1%; }
.tape-deck.playing .reel-photo { animation: reel-spin 2.6s linear infinite; }
@keyframes reel-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.tape-tracklist { list-style: none; margin: 14px 0 0; padding: 0; }
.tape-tracklist li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    font-size: 11pt;
    color: #2b2116;
    cursor: pointer;
    border-bottom: 1px dashed #b7a679;
}
.tape-tracklist li:last-child { border-bottom: none; }
.tape-tracklist li:hover { color: #7a1fcb; }
.tape-tracklist li.active { font-weight: bold; color: #7a1fcb; }
.tape-track-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tape-track-time { color: #6b5a3f; font-size: 10pt; }
.tape-download { color: #6b5a3f; text-decoration: none; font-size: 12pt; }
.tape-download:hover { color: #7a1fcb; }

.tape-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.tape-play {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2px solid #2b2116;
    background: #e8dcc0;
    cursor: pointer;
    font-size: 12pt;
    line-height: 1;
    flex-shrink: 0;
}
.tape-play:hover { background: #d9c9a3; }
.tape-progress {
    flex: 1;
    height: 6px;
    background: #b7a679;
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
}
.tape-progress-fill { height: 100%; width: 0%; background: #7a1fcb; }
.tape-time { font-size: 9pt; color: #6b5a3f; flex-shrink: 0; min-width: 72px; text-align: right; }
.tape-credit { text-align: center; font-size: 8pt; color: #999999; margin-top: 20px; }

/* --- Retro hit counter (index page footer) --- */
.hit-counter-wrap { text-align: center; margin-top: 16px; }
.hit-counter {
    display: inline-flex;
    gap: 2px;
    background: #1a1a1a;
    padding: 4px;
    border-radius: 4px;
    border: 2px solid #444;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.6);
}
.hit-digit {
    display: inline-block;
    width: 16px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 16px;
    color: #33ff33;
    background: #0d0d0d;
    padding: 2px 0;
    border-radius: 2px;
    text-shadow: 0 0 4px #33ff33;
}
.hit-counter-label {
    display: block;
    font-size: 7pt;
    color: #999999;
    margin-top: 4px;
    font-family: Arial, Helvetica, sans-serif;
}

/* --- Give the DucK a Qwack (guestbook) --- */
.qwack-title { font-size: 24px; font-family: Arial, Helvetica, sans-serif; color: #3FBF42; font-weight: bold; }
.qwack-intro { text-align: center; font-size: 11pt; font-family: Arial, Helvetica, sans-serif; color: #555555; font-style: italic; margin-bottom: 30px; }
.qwack-form { max-width: 420px; margin: 0 auto 40px; display: flex; flex-direction: column; gap: 6px; }
.qwack-label { font-size: 10pt; font-family: Arial, Helvetica, sans-serif; color: #333333; text-align: left; }
.qwack-form input, .qwack-form textarea {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11pt;
    padding: 8px;
    border: 1px solid #b7a679;
    border-radius: 4px;
    resize: vertical;
}
.qwack-submit {
    margin-top: 8px;
    padding: 10px;
    background: #A01FCB;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 12pt;
    cursor: pointer;
}
.qwack-submit:hover { background: #7a1fcb; }
.qwack-status { text-align: center; font-size: 10pt; color: #6b5a3f; min-height: 1.2em; }

.qwack-list { list-style: none; max-width: 480px; margin: 0 auto; padding: 0; text-align: left; }
.qwack-entry { border-bottom: 1px dashed #b7a679; padding: 12px 4px; }
.qwack-entry:last-child { border-bottom: none; }
.qwack-name { font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #2b2116; font-size: 11pt; }
.qwack-time { font-size: 9pt; font-family: Arial, Helvetica, sans-serif; color: #6b5a3f; margin-left: 8px; }
.qwack-message { margin-top: 4px; font-family: Arial, Helvetica, sans-serif; font-size: 11pt; color: #2b2116; white-space: pre-wrap; }

.qwack-teaser { text-align: center; font-size: 11pt; font-family: Arial, Helvetica, sans-serif; margin-top: 20px; }
