/* ========================
   BASE STYLES
======================== */
body {
  margin: 0;
  color: black;
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  line-height: 1.6;

  /* tropical wave background */
  background: linear-gradient(120deg, #00bfae, #00f0ff, #ffe29c, #ffb07c, #00bfae);
  background-size: 400% 400%;
  animation: tropicalWaves 20s ease infinite;
}

/* ========================
   FLOATING IMAGES
======================== */
.floating-thing,
.floating-thing2,
.floating-p,
.floating-p2 {
  position: fixed;
  pointer-events: none;
  width: 243px;
  z-index: 9999; /* above all content */
  filter: drop-shadow(6px 6px 0 rgba(0,0,0,0.25));
  animation: floaty 6s ease-in-out infinite;
}

/* separate positions if needed */
.floating-thing { left: 40px; top: 60%; transform: translateY(-50%); }
.floating-thing2 { left: 60%; top: 40%; transform: translate(-50%, -50%); }
.floating-p { left: 10%; top: 60%; transform: translate(-50%, -50%); }
.floating-p2 { left: 86%; top: 28%; transform: translate(-50%, -50%); }

/* float animation */
@keyframes floaty {
  0% { transform: translateY(-50%) translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-50%) translateY(-12px) rotate(2deg); }
  100% { transform: translateY(-50%) translateY(0px) rotate(-2deg); }
}

.bottom-leaves {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: url('leave.png') repeat-x;
  background-size: auto 200px;
  pointer-events: none;
  opacity: 0.45;
  animation: floatLeaves 6s ease-in-out infinite alternate;
  z-index: 0; /* <-- changed from -1 */
}

.game {
  position: relative;
  z-index: 1; /* above leaves */
  background: rgba(0,0,0,0.35);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  transition: transform .2s;
}

.game:hover { transform: translateY(-4px); }

/* ========================
   LAYOUT STRUCTURE
======================== */
body, html {
  margin: 0;
  padding: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }
footer { flex-shrink: 0; position: relative; z-index: 1; }

/* ========================
   BACKGROUND ANIMATION
======================== */
@keyframes tropicalWaves {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========================
   HEADER + NAV
======================== */
header {
  text-align: center;
  padding: 30px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}

nav {
  margin-top: 15px;
}

nav a {
  color: #8feaff;
  margin: 0 15px;
  text-decoration: none;
  font-size: 10px;
}

nav a:hover {
  color: white;
}

/* marquee */
.header-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: rgba(0,0,0,0.4);
  padding: 12px 0;
  text-align: left;
}

.header-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: headerScroll 20s linear infinite;
  font-family: "Press Start 2P", monospace;
  font-size: 16px;
  color: #14c9ff;
  animation-delay: -10s;
}

@keyframes headerScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

/* ========================
   TYPOGRAPHY
======================== */
p { line-height: 1.8; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
h3 { font-size: 14px; }

/* ========================
   MAIN CONTENT
======================== */
main { max-width: 900px; margin: auto; padding: 40px; }

.hero {
  background: rgba(0,0,0,0.4);
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 40px;
  text-align: center;
}

/* ========================
   BUTTONS
======================== */
button {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  background: #14c9ff;
  border: none;
  padding: 12px 18px;
  color: black;
  cursor: pointer;
  box-shadow: 0 0 10px #14c9ff;
}

button:hover { box-shadow: 0 0 20px #14c9ff; }

/* ========================
   FOOTER
======================== */
footer {
  text-align: center;
  padding: 30px;
  font-size: 8px;
  opacity: .7;
}