html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  background: url("https://sadhost.neocities.org/images/tiles/stars3.gif");
  font-family: "Courier New", monospace;
}

h1 {
  margin-top: 0;
}

#overlay-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2147483647;
}

/* Allow interaction on smiley and loot */
#overlay-layer .smileyspin,
#overlay-layer .floating-loot {
  pointer-events: auto;
}

/* SMILEY — fixed position, proper spot */
.smileyspin {
  position: fixed;
  top: 80px;
  left: 80px;
  width: 40px;
  z-index: 2150000000;
  /* above everything */
}

/* LOOT container */
.floating-loot {
  position: fixed;
  top: 32px;
  left: calc(50% + 18px);
  width: 720px;
  height: 360px;
  pointer-events: auto;
  user-select: none;
  z-index: 2150000000;
  background: none;
  border: none;
}

/* Loot items */
.floating-loot .item {
  position: absolute;
  width: 100px;
  height: auto;

  cursor: grab;
  user-select: none;
  pointer-events: auto;

  animation: bob 4s ease-in-out infinite,
    idle-rotate 10s linear infinite;
  transform-origin: center;

  filter: drop-shadow(0 0 6px #0ff);
}

/* While dragging */
.floating-loot .item.dragging {
  animation-play-state: paused !important;
  cursor: grabbing;
  filter: drop-shadow(0 0 12px #ff0);
}

/* Bob animation */
@keyframes bob {
  0% {
    transform: translateY(0) rotate(var(--rot));
  }

  50% {
    transform: translateY(-8px) rotate(var(--rot));
  }

  100% {
    transform: translateY(0) rotate(var(--rot));
  }
}

/* rotate animation */
@keyframes idle-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.marquee {
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: scroll 20s linear infinite;
}

.marquee__content {
  display: flex;
  padding: 0;
  /* 🔥 removes UL gap */
  margin: 0;
  /* 🔥 removes UL gap */
  list-style: none;
  flex-shrink: 0;
}

.marquee__content li {
  display: block;
}

.marquee__content img {
  display: block;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover */
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* LAYOUT */
.page-center {
  display: flex;
  justify-content: center;
  padding-top: 100px;
}

.main-container {
  display: flex;
  gap: 160px;
  position: relative;
  align-items: flex-start;
}

/* WINDOWS */

.window>.title-bar {
  background: linear-gradient(to right, #db20d8, #42eff5);
}

.title-bar-text {
  color: white !important;
}

/* SMILEY */
.smileyspin {
  position: absolute;
  top: 100px;
  left: 125px;
  width: 40px;
}

/* GABBA */

:root {
  --gabba-size: 460px;
}

#gabbaImage {
  width: var(--gabba-size);
  height: auto;
  display: block;
  transform-origin: center;
  backface-visibility: hidden;
}

#gabbaImage.flip {
  animation: gabba-squeeze-flip 0.45s ease forwards;
}

.floating-gabba {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 9999;
}

/* IDLE BOUNCE */
.gabba-inner img {
  display: block;
}

/* CLICK SQUEEZE + FLIP */
.gabba-inner {
  animation: gabba-bounce 8s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}

.gabba-inner.squeeze img {
  animation: gabba-squeeze-flip 0.45s ease forwards;
}

/* BOUNCE */
@keyframes gabba-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-30px);
  }
}

/* SQUEEZE + FLIP */
@keyframes gabba-squeeze-flip {
  0% {
    transform: scale(1) rotateY(0deg);
  }

  40% {
    transform: scale(0.75, 1.25) rotateY(90deg);
  }

  100% {
    transform: scale(1) rotateY(0deg);
  }
}

/* NOTEPAD COLUMN */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.window.notepad {
  width: 350px;
  margin-left: -40px;
  overflow: visible;
}

/* inner text box */
.notepad-body {
  height: 40px;
  padding: 6px;
  margin: 2px;

  overflow-x: hidden;
  overflow-y: hidden;

  background: white;

  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-bottom: 2px solid white;
  border-right: 2px solid white;

  transition: height 0.25s ease;
  padding-right: 18px;
}

.notepad-body .tree-view {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin: 0;
}

/* expand on hover */
.window.notepad:hover .notepad-body {
  height: 14em;
  overflow-y: auto;
}

.window.notepad:hover {
  border-image: url('lace.png') 17 round;
}

.menu-bar {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 1px 0px;
  background: #c0c0c0;
  border-top: 1px solid white;
  border-left: 1px solid white;
  border-bottom: 1px solid #808080;
  border-right: 1px solid #808080;
  list-style: none;
  user-select: none;
  font-family: 'MS Sans Serif', Tahoma, Geneva, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  cursor: default;
}

.menu-bar li {
  padding: 1px 6px;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.menu-bar li:hover {
  border-color: #000080 #ffffff #ffffff #000080;
  background: #000080;
  color: white;
}

.menu-bar li u {
  text-decoration: underline;
}

.menu-bar li::marker {
  content: none;
}

/* loot */

/* FORCE loot above all windows */
.floating-loot {
  z-index: 99999;
  pointer-events: auto;
}

/* push windows below loot */
.window.right {
  position: fixed;
  right: 50px;
  bottom: -150px;
  width: 300px;
  height: auto;
  z-index: 1000;
}


/* favorites should be under loot, not above */
.window.right {
  z-index: 900;
}

/* keep favorites underneath */
.window.right {
  position: relative;
  z-index: 1000;
}

/* loot items */
.floating-loot {
  position: fixed !important;
  bottom: 300px !important;
  right: 60px !important;
  width: 720px;
  height: 360px;
  pointer-events: auto;
  user-select: none;
  z-index: 9999;
  background: none;
  border: none;
}


.floating-loot .item {
  position: absolute;
  width: 100px;
  height: auto;

  cursor: grab;
  user-select: none;
  pointer-events: auto;

  animation: bob 4s ease-in-out infinite;
  transform-origin: center;

  filter: drop-shadow(3px 3px 0px #0ff);
}

/* while dragging */
.floating-loot .item.dragging {
  animation-play-state: paused !important;
  cursor: grabbing;
  filter: drop-shadow(3px 3px 5px #ff0);
}

/* idle float */
@keyframes bob {
  0% {
    transform: translateY(0) rotate(var(--rot));
  }

  50% {
    transform: translateY(-8px) rotate(var(--rot));
  }

  100% {
    transform: translateY(0) rotate(var(--rot));
  }
}