/* fonts */
@font-face {
  font-family: 'Lyno-Jean';
  src: url('../Lyno-Jean 2.otf') format('opentype');
}

@font-face {
  font-family: 'Lyno-Stan';
  src: url('../Lyno-Stan 2.otf') format('opentype');
}

@font-face {
  font-family: 'Lyno-Ulys';
  src: url('../Lyno-Ulys 2.otf') format('opentype');
}

@font-face {
  font-family: 'ecommandfont';
  src: url('../fonts/EnterCommand.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}




/* Navigation Bar */
.nav-bar {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  background-color: #7b3f00;
  /* brown background */
  justify-content: center;
  font-family: 'Lyno-Stan', sans-serif;
}

.nav-bar>li {
  position: relative;
}

.nav-bar a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #fff5e1;
  background-color: #7b3f00;
}

.nav-bar a:hover {
  background-color: #aa4c1b;
  color: #ffeedc;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #cd9066;
  min-width: 180px;
  z-index: 1000;
  border: 2px solid #5a2f00;
  font-size: 90%;
}

.dropdown-content a {
  padding: 8px 12px;
  color: #fff5e1;
}

.dropdown:hover .dropdown-content {
  display: block;
}


/* Polaroid Photo Pile */


.photopile figure {
  max-width: 250px;
  /* ← set this to match your polaroid frame’s width */
}

.photopile figure img {
  display: block;
  width: 100%;
  height: auto;
  /* preserves aspect ratio */
}

.photopile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.photopile figure {
  display: inline-block;
  max-width: 40%;
  background: white;
  box-shadow: 1px 4px 5px rgba(0, 0, 0, 0.55);
  transform: rotate(2deg);
  margin: 0 -25px;
}

.photopile figure img {
  max-width: calc(100% - 2rem);
  margin: 1rem 1rem 0 1rem;
  border: 2px rgb(0, 0, 0, 0.55) inset;
}

.photopile figcaption {
  text-align: center;
  margin: 0.5rem 1rem 1rem 1rem;
  font-size: 0.8rem;
  color: black;
}

.photopile figure:hover {
  z-index: 3;
}

.photopile figure:nth-child(2n) {
  transform: rotate(-10deg);
}

.photopile figure:nth-child(3n) {
  transform: rotate(5deg);
}

.photopile figure:nth-child(4n) {
  transform: rotate(4deg);
}

.photopile figure:nth-child(5n) {
  transform: rotate(-2deg);
}

.photopile figure:nth-child(6n) {
  transform: rotate(-7deg);
}


/* Basic Body Styles with Tiled Background */


body {
  background-color: #fdf6e3;
  background-image: url('../images/tape-audio-0090.gif');
  background-repeat: repeat;
  background-size: 50px 50px;
  color: #333;
  font-family: 'Lyno-Stan', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

header,
main,
footer,
.photopile,
.wiggle-title,
.music-section {
  position: relative;
  z-index: 1;
}


/* Model Figure Caption Font */


.model-figure {
  font-family: 'ecommandfont', sans-serif;
}


/* Local Lists Styling */


ul {
  list-style: square;
  margin-left: 20px;
  padding: 0;
  line-height: 1.6;
  text-align: left;
}

li {
  margin-bottom: 0.5em;
}

.gear-block {
  text-align: left;
  margin: 2.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gear-block h2 {
  margin-bottom: 1.1rem;
  text-align: left;
  width: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #f0bb82;
}

.gear-block h2 .title-text {
  background: #a7d9f9;
  padding: 0.2rem 0.5rem;
  border: 2px solid rgba(255, 186, 47, 0.78);
  border-radius: 12px;
}

.gear-list {
  list-style: square;
  padding: 1.25rem 2.25rem 1.4rem 2.75rem;
  margin: 23px;
  margin-left: 23;
  margin-right: auto;
  width: min(95%, 760px);
  background-color: #7b3f00;
  color: #f7e0b3;
  border-radius: 20px;
  border: 2px solid rgba(255, 186, 47, 0.78);
  box-shadow: 6px 8px 0 rgba(47, 18, 0, 0.85);
  text-align: left;
  line-height: 1.7;
  list-style-position: inside;
  padding-left: 0;
}

.gear-block .highlight {
  justify-content: center;
}

.gear-list li {
  color: inherit;
  margin-bottom: 0.4em;
}

.gear-list li:last-child {
  margin-bottom: 0;
}

/* Ensure section background uses tiled body BG */

section {
  background: transparent;
}

/* 3D Model Viewer Placeholder */

figure.model-figure {
  text-align: left;
  background-color: #aa4935;
  border: 1px solid #a0522d;
  padding: 10px;
  margin: 20px auto;
  max-width: 300px;
  box-shadow: 2.7px 4px 0 #592215;
}


/* Animations */

@keyframes wiggle-title {
  0% {
    transform: rotateX(0deg) rotateY(0deg) scale(1);
  }

  50% {
    transform: rotateX(10deg) rotateY(15deg) scale(0.95);
  }

  100% {
    transform: rotateX(-10deg) rotateY(-15deg) scale(0.85);
  }
}

@keyframes wiggle-slow {

  0%,
  100% {
    transform: rotateX(10deg) rotateZ(0deg);
  }

  50% {
    transform: rotateX(90deg) rotateZ(4deg);
  }
}

.threeD {
  display: block;
  text-align: center;
  perspective: 5000px;
  transform-style: preserve-3d;
}

.wiggle-title {
  font-family: 'Lyno-Jean';
  font-size: 3em;
  display: inline-block;
  transform-origin: center;
  animation: wiggle-title 20s infinite ease-in-out;
  text-shadow: 2px 4px 3px rgba(0, 0, 0, 0.3);
}

.wiggle-title img {
  display: block;
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: 0 auto 0.35rem;
}

/* Highlight Styling */


.highlight {
  background-color: #7b3f00;
  color: #fff5e1;
  padding: 0.35em 0.85em;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 3px 4px 0 rgba(35, 14, 0, 0.75);
  line-height: 1.2;
  font-weight: 600;
  flex-wrap: wrap;
}

.highlight img {
  filter: drop-shadow(1px 2px 0 rgba(0, 0, 0, 0.35));
}

figcaption.highlight {
  border-radius: 14px;
  display: block;
  padding: 0.7em 1em;
}

.highlight p,
.highlight summary,
.highlight a,
.highlight details {
  color: inherit;
}

/* Sticker collage floating around the layout */

.sticker-wall {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 4600px;
  pointer-events: none;
  z-index: 0;
}

.sticker {
  position: absolute;
  width: clamp(110px, 18vw, 210px);
  opacity: 0.9;
  filter: drop-shadow(6px 9px 0 rgba(46, 21, 0, 0.6));
  transform-origin: center;
  --tilt: -4deg;
}

@keyframes stickerDriftA {
  0% {
    transform: translate(-30px, -20px) rotate(calc(var(--tilt) - 2deg)) scale(0.96);
  }

  20% {
    transform: translate(90px, -140px) rotate(calc(var(--tilt) + 4deg)) scale(1.02);
  }

  40% {
    transform: translate(160px, 10px) rotate(calc(var(--tilt) + 1deg)) scale(1.04);
  }

  60% {
    transform: translate(-60px, 140px) rotate(calc(var(--tilt) - 3deg)) scale(1.01);
  }

  80% {
    transform: translate(-180px, -40px) rotate(calc(var(--tilt) + 2deg)) scale(0.98);
  }

  100% {
    transform: translate(20px, 120px) rotate(calc(var(--tilt) - 1deg)) scale(1.03);
  }
}

@keyframes stickerDriftB {
  0% {
    transform: translate(20px, -30px) rotate(calc(var(--tilt) + 1deg)) scale(0.94);
  }

  25% {
    transform: translate(-80px, -160px) rotate(calc(var(--tilt) - 4deg)) scale(1.03);
  }

  50% {
    transform: translate(-10px, 40px) rotate(calc(var(--tilt) + 3deg)) scale(1.07);
  }

  75% {
    transform: translate(120px, 90px) rotate(calc(var(--tilt) - 2deg)) scale(1);
  }

  100% {
    transform: translate(-140px, 10px) rotate(calc(var(--tilt) + 2deg)) scale(1.02);
  }
}

@keyframes stickerDriftC {
  0% {
    transform: translate(-40px, 0) rotate(calc(var(--tilt) - 1deg)) scale(0.97);
  }

  20% {
    transform: translate(70px, -110px) rotate(calc(var(--tilt) + 5deg)) scale(1.05);
  }

  45% {
    transform: translate(30px, 90px) rotate(calc(var(--tilt) - 3deg)) scale(1.01);
  }

  65% {
    transform: translate(-120px, 40px) rotate(calc(var(--tilt) + 2deg)) scale(0.99);
  }

  100% {
    transform: translate(110px, -80px) rotate(calc(var(--tilt) - 2deg)) scale(1.04);
  }
}

@keyframes stickerDriftD {
  0% {
    transform: translate(0, 0) rotate(calc(var(--tilt) - 2deg)) scale(0.95);
  }

  15% {
    transform: translate(80px, -140px) rotate(calc(var(--tilt) + 2deg)) scale(1.02);
  }

  40% {
    transform: translate(-140px, -90px) rotate(calc(var(--tilt) + 5deg)) scale(1.06);
  }

  70% {
    transform: translate(60px, 130px) rotate(calc(var(--tilt) - 3deg)) scale(1);
  }

  100% {
    transform: translate(-100px, 60px) rotate(calc(var(--tilt) + 1deg)) scale(1.03);
  }
}

@keyframes stickerDriftE {
  0% {
    transform: translate(-20px, -20px) rotate(calc(var(--tilt) + 1deg)) scale(0.94);
  }

  30% {
    transform: translate(140px, -80px) rotate(calc(var(--tilt) - 3deg)) scale(1.06);
  }

  55% {
    transform: translate(-40px, 150px) rotate(calc(var(--tilt) + 4deg)) scale(1.01);
  }

  80% {
    transform: translate(-160px, -30px) rotate(calc(var(--tilt) - 2deg)) scale(0.98);
  }

  100% {
    transform: translate(40px, 80px) rotate(calc(var(--tilt) + 3deg)) scale(1.04);
  }
}

@keyframes stickerDriftF {
  0% {
    transform: translate(-60px, 0) rotate(calc(var(--tilt) - 3deg)) scale(0.96);
  }

  25% {
    transform: translate(40px, -150px) rotate(calc(var(--tilt) + 4deg)) scale(1.05);
  }

  50% {
    transform: translate(160px, 20px) rotate(calc(var(--tilt) - 1deg)) scale(1.02);
  }

  75% {
    transform: translate(-20px, 140px) rotate(calc(var(--tilt) + 2deg)) scale(0.99);
  }

  100% {
    transform: translate(-150px, -60px) rotate(calc(var(--tilt) - 2deg)) scale(1.03);
  }
}

.sticker-op1 {
  top: 820px;
  left: 60%;
  --tilt: -6deg;
  animation: stickerDriftA 48s ease-in-out infinite alternate;
}

.sticker-korg {
  top: 3140px;
  left: 72%;
  --tilt: -8deg;
  animation: stickerDriftB 60s ease-in-out infinite alternate;
}

.sticker-jx3p {
  top: 2420px;
  right: 4%;
  --tilt: 12deg;
  animation: stickerDriftC 54s ease-in-out infinite alternate;
}

.sticker-tascam {
  top: 4000px;
  right: 12%;
  --tilt: -4deg;
  animation: stickerDriftD 62s ease-in-out infinite alternate;
}

.sticker-mt4x {
  top: 1350px;
  left: 8%;
  --tilt: 6deg;
  animation: stickerDriftE 58s ease-in-out infinite alternate;
}

.sticker-fxunit {
  top: 1900px;
  right: 18%;
  --tilt: -14deg;
  animation: stickerDriftF 64s ease-in-out infinite alternate;
}

@media (max-width: 900px) {
  .sticker {
    display: none;
  }
}

/* Footer */


footer {
  background-color: #8b4513;
  color: #fff;
  text-align: center;
  padding: 5px;
  width: 100%;
  font-family: 'Lyno-Stan', Arial, sans-serif;
  font-size: 0.9em;
}

.footer-badges {
  display: inline;
  max-height: 50px;
}
