/* Global Styles */
:root {
  --primary-color: #00B4FF;
  --text-color: #333;
  --background-color: #fff;
  --section-padding: 4rem 0;
}

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

html {
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  padding-bottom: clamp(40px, 8vw, 50px); /* Responsive space for sticky grass footer */
  overflow-x: hidden; /* Prevent horizontal scroll */
  min-height: 100vh;
  position: relative;
}

/* Scroll-triggered text glitch */
.scroll-glitch {
  position: relative;
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  transform: translateZ(0);
}

.scroll-glitch::before,
.scroll-glitch::after {
  content: attr(data-glitch-content);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  color: inherit;
  mix-blend-mode: screen;
}

.scroll-glitch::before {
  color: rgba(75, 255, 249, 0.85);
}

.scroll-glitch::after {
  color: rgba(255, 56, 142, 0.8);
}

.scroll-glitch.is-glitching {
  animation: scroll-glitch-base 0.75s steps(1, end) 2;
}

.scroll-glitch.is-glitching::before {
  opacity: 1;
  animation: scroll-glitch-before 0.75s steps(1, end) 2;
}

.scroll-glitch.is-glitching::after {
  opacity: 1;
  animation: scroll-glitch-after 0.75s steps(1, end) 2;
}

@keyframes scroll-glitch-base {
  0% {
    transform: translate3d(0, 0, 0);
  }
  12% {
    transform: translate3d(-2px, 1px, 0);
  }
  28% {
    transform: translate3d(2px, -1px, 0);
  }
  45% {
    transform: translate3d(-1px, 2px, 0);
  }
  60% {
    transform: translate3d(3px, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes scroll-glitch-before {
  0% {
    clip-path: inset(0 0 65% 0);
    transform: translate3d(0, 0, 0);
    opacity: 0.4;
  }
  18% {
    clip-path: inset(20% 0 40% 0);
    transform: translate3d(-3px, -2px, 0);
    opacity: 0.85;
  }
  45% {
    clip-path: inset(35% 0 25% 0);
    transform: translate3d(2px, 1px, 0);
    opacity: 0.6;
  }
  70% {
    clip-path: inset(10% 0 55% 0);
    transform: translate3d(-2px, 2px, 0);
    opacity: 0.8;
  }
  100% {
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
}

@keyframes scroll-glitch-after {
  0% {
    clip-path: inset(55% 0 0 0);
    transform: translate3d(0, 0, 0);
    opacity: 0.45;
  }
  22% {
    clip-path: inset(35% 0 15% 0);
    transform: translate3d(3px, 1px, 0);
    opacity: 0.9;
  }
  48% {
    clip-path: inset(60% 0 5% 0);
    transform: translate3d(-2px, -2px, 0);
    opacity: 0.65;
  }
  72% {
    clip-path: inset(15% 0 35% 0);
    transform: translate3d(2px, -1px, 0);
    opacity: 0.85;
  }
  100% {
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-glitch,
  .scroll-glitch::before,
  .scroll-glitch::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Announcement Bar */
.announcement-bar {
  background-image: url('figures/minecraft-dirt-texture.jpg');
  background-size: 200px 200px;
  background-repeat: repeat;
  color: white;
  padding: 0.7rem 2rem;
  text-align: center;
  width: 100%;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.3), 0 4px 0 rgba(0, 0, 0, 0.2);
  z-index: 1002;
  position: fixed;  /* Keep only this one, remove the duplicate */
  top: 0;           /* Keep this */
  border-bottom: 2px solid rgba(0, 0, 0, 0.5);
  image-rendering: pixelated;
}

.announcement-bar p {
  margin: 0;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  line-height: 1.5;
  font-weight: 400;
  padding: 0 1rem;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}

.announcement-bar strong {
  font-weight: 700;
  color: #FFD700;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Scroll-driven Hero */
#hero-scroll {
  position: relative;
  min-height: 360vh;
  padding: clamp(60px, 12vh, 140px) 0;
  overflow: visible;
  background: linear-gradient(180deg, rgba(8, 24, 37, 0.92) 0%, rgba(9, 32, 50, 0.88) 55%, rgba(15, 40, 61, 0));
}

.hero-stage {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  --glitch-progress: 0;
  --glitch-fade: 0;
  --glitch-overlay: 0;
  --glitch-shift-x: 0px;
  --glitch-shift-y: 0px;
  --freeze-strength: 0;
  transition: filter 0.6s ease, transform 0.4s ease;
}

.hero-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(49, 79, 124, 0.3), rgba(1, 10, 24, 0.55));
  mix-blend-mode: screen;
  opacity: calc(var(--freeze-strength) * 0.85);
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 6;
}

.hero-stage.glitch-freeze {
  --freeze-strength: 0.65;
  cursor: wait;
}

.hero-stage.glitch-crash {
  --freeze-strength: 1;
}

.hero-stage.glitch-crash .minecraft-buttons,
.hero-stage.glitch-crash .minecraft-subtitle,
.hero-stage.glitch-crash .minecraft-paper-title {
  filter: blur(1px);
}

.hero-stage.glitch-complete #minecraft-hero {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-stage.glitch-complete .crash-dialog {
  opacity: 0;
  transform: translate(-50%, -52%) scale(0.92);
  pointer-events: none;
}

.hero-stage.glitch-complete .bug-swarm {
  opacity: 0;
  visibility: hidden;
}

.hero-stage.glitch-complete .hero-glitch-overlay {
  opacity: 0;
}


/* Minecraft Hero Section */
#minecraft-hero {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translate3d(calc(var(--glitch-shift-x, 0px) * 0.2), calc(var(--glitch-shift-y, 0px) * 0.2), 0);
  width: 100%;
  height: calc(100vh - clamp(40px, 8vw, 50px));
  min-height: 520px;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: clamp(40px, 8vw, 50px);
  overflow: hidden;
  opacity: calc(1 - var(--glitch-fade, 0));
  transition: opacity 0.25s ease, transform 0.35s ease;
  z-index: 3;
}

.minecraft-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('figures/minecraft-background.png');
  background-size: cover;
  background-position: center;
  filter: blur(5px);
  z-index: 1;
  transition: filter 0.3s ease, transform 0.2s ease;
}

.minecraft-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.minecraft-menu {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: filter 0.2s ease;
}

.minecraft-logo {
  max-width: 1200px;
  width: 95%;
  height: auto;
  margin-bottom: 0.5rem;
  filter: drop-shadow(4px 4px 0px rgba(0, 0, 0, 0.5));
}

.minecraft-paper-title {
  text-align: center;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
  font-family: 'Press Start 2P', cursive;
}

.minecraft-paper-title p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
}

.minecraft-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
  font-family: 'Press Start 2P', cursive;
}

.minecraft-subtitle p {
  margin: 0.3rem 0;
  font-size: 0.65rem;
  font-weight: 400;
  line-height: 1.6;
}

.minecraft-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 400px;
  max-width: 90%;
}

.minecraft-button-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.minecraft-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  border: 2px solid rgba(0, 0, 0, 0.8);
  box-shadow: inset -2px -4px 0px rgba(0, 0, 0, 0.5), inset 2px 2px 0px rgba(255, 255, 255, 0.2);
  transition: all 0.1s ease;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
  font-family: 'Press Start 2P', cursive;
}

.minecraft-button i {
  font-size: 0.85rem;
  line-height: 1;
}

.minecraft-button-half {
  flex: 1;
}

.minecraft-button:hover {
  background-color: rgba(100, 100, 255, 0.6);
  box-shadow: inset -2px -4px 0px rgba(0, 0, 100, 0.5), inset 2px 2px 0px rgba(150, 150, 255, 0.5);
  transform: translateY(-2px);
}

.minecraft-button:active {
  transform: translateY(0);
  box-shadow: inset 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.hero-stage.is-glitching #minecraft-hero {
  filter: brightness(0.95) contrast(1.1) saturate(1.05);
}

.hero-stage.is-glitching .minecraft-background {
  transform: translate(var(--glitch-shift-x), var(--glitch-shift-y)) scale(calc(1 + var(--glitch-progress) * 0.06));
  filter: blur(5px) brightness(0.9) contrast(1.2);
}

.hero-stage.is-glitching .minecraft-menu {
  transform: translate(calc(var(--glitch-shift-x) * 0.45), calc(var(--glitch-shift-y) * 0.45));
  filter: hue-rotate(calc(var(--glitch-progress) * -12deg)) saturate(calc(1 + var(--glitch-progress) * 0.6));
}

.hero-stage.glitch-breakdown .minecraft-paper-title,
.hero-stage.glitch-breakdown .minecraft-subtitle {
  text-shadow: 0 0 6px rgba(0, 255, 204, 0.7), 0 0 16px rgba(0, 139, 255, 0.4);
}

.hero-stage.glitch-fading #minecraft-hero {
  filter: grayscale(0.4) contrast(1.4);
}

.hero-stage.glitch-freeze #minecraft-hero {
  filter: grayscale(0.6) contrast(1.15) blur(0.6px);
}

.hero-stage.glitch-crash #minecraft-hero {
  filter: grayscale(0.85) contrast(1.25) blur(1.3px);
}

.hero-glitch-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: calc(var(--glitch-overlay, 0) * (1 - var(--glitch-fade, 0)));  /* Add fade multiplier */
  transition: opacity 0.3s ease;
  mix-blend-mode: lighten;
}
.glitch-noise {
  position: absolute;
  inset: -5%;
  background: repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0.06) 2px,
      transparent 2px,
      transparent 4px
    );
  opacity: 0.6;
  animation: noiseShift 4s steps(2) infinite;
}

.hero-stage.glitch-freeze .glitch-noise,
.hero-stage.glitch-freeze .glitch-noise--alt {
  animation-duration: 6s;
  opacity: 0.8;
}

.hero-stage.glitch-crash .glitch-noise,
.hero-stage.glitch-crash .glitch-noise--alt,
.hero-stage.glitch-crash .glitch-scanline {
  animation-play-state: paused;
  opacity: 1;
}

.glitch-noise--alt {
  background: repeating-linear-gradient(
      90deg,
      rgba(40, 255, 220, 0.08) 0px,
      rgba(40, 255, 220, 0.08) 3px,
      transparent 3px,
      transparent 6px
    );
  mix-blend-mode: screen;
  opacity: 0.7;
  animation-duration: 2.2s;
}

.glitch-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  background-size: 100% 4px;
  opacity: 0.45;
  animation: scanline 1.5s linear infinite;
}

.bug-swarm {
  position: fixed;  /* Change from absolute */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
}

.glitch-bug {
  position: fixed;
  top: var(--bug-y, 50%);
  left: var(--bug-x, 50%);
  width: clamp(32px, 6vw, 64px);
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.4));
  transition: opacity 0.25s ease;
}

.hero-stage.glitch-freeze .glitch-bug {
  opacity: 0.45;
}

.hero-stage.glitch-crash .glitch-bug {
  opacity: 0.65;
  filter: grayscale(0.6) drop-shadow(0 0 14px rgba(0, 204, 255, 0.35));
}

.glitch-bug img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes noiseShift {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(2px, -1px, 0); }
  100% { transform: translate3d(-2px, 2px, 0); }
}

@keyframes scanline {
  0% { background-position: 0 0; }
  100% { background-position: 0 4px; }
}

.crash-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.95);
  width: clamp(280px, 60vw, 420px);
  background: linear-gradient(180deg, #f7f7f7 0%, #e7e7e7 100%);
  border: 1px solid #8aa1c6;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  z-index: 8;
  font-family: 'Segoe UI', 'Inter', sans-serif;
  color: #1e1e1e;
}

.crash-dialog__titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(90deg, #2b579a 0%, #1b386f 100%);
  color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 5px 5px 0 0;
}

.crash-dialog__title {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.crash-dialog__controls {
  display: flex;
  gap: 0.35rem;
}

.crash-dialog__control {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.crash-dialog__body {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.4rem 0.6rem;
}

.crash-dialog__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2b579a 0%, #5c88d6 100%);
  position: relative;
  flex-shrink: 0;
}

.crash-dialog__icon::before,
.crash-dialog__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 26px;
  background: white;
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.crash-dialog__icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.crash-dialog__headline {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.crash-dialog__sub {
  font-size: 0.85rem;
  color: #333;
}

.crash-dialog__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem 1.2rem;
}

.crash-dialog__button {
  background: linear-gradient(180deg, #fafafa 0%, #dedede 100%);
  border: 1px solid #8aa1c6;
  border-radius: 4px;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  color: #1f314f;
  text-align: left;
  cursor: default;
  transition: background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.crash-dialog__button--primary {
  background: linear-gradient(180deg, #2b579a 0%, #1b386f 100%);
  color: #f0f4ff;
  border-color: #1b386f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.hero-stage.glitch-crash .crash-dialog {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.hero-stage.glitch-crash .crash-dialog__button:hover {
  border-color: #6b83ad;
}

.hero-stage.glitch-crash .crash-dialog__button--primary:hover {
  border-color: #274a85;
}

.minecraft-footer {
  position: absolute;
  bottom: 4rem;
  z-index: 2;
  color: white;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
  font-family: 'Press Start 2P', cursive;
}

.minecraft-footer-left {
  left: 2rem;
  text-align: left;
}

.minecraft-footer-right {
  right: 2rem;
  text-align: right;
}

.minecraft-footer p {
  margin: 0.2rem 0;
  font-size: 0.6rem;
  line-height: 1.5;
}

/* Header Styles */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0;
  width: 100%;
  text-align: center;
}

.header-container {
  max-width: 1000px;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.title-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.title-section .title-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
}

.title-section h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.title-section h2 {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.4;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.title-section h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.authors {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.authors p {
  margin: 0.3rem 0;
}

.header-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.header-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background-color: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 140px;
  justify-content: center;
}

.header-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-button i {
  font-size: 1.1rem;
}

/* Tablet Styles */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  #hero-scroll {
    min-height: 360vh;
    padding: clamp(50px, 10vh, 110px) 0;
  }

  .minecraft-logo {
    max-width: 85%;
  }

  .minecraft-buttons {
    width: 450px;
  }

  .content-section {
    padding: 3rem 0;
  }

  .content-section h2 {
    font-size: 2rem;
  }

  .content-section p {
    font-size: 1.05rem;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    min-height: 100svh; /* Use small viewport height for mobile */
  }

  #hero-scroll {
    min-height: 320vh;
    padding: clamp(44px, 12vh, 96px) 0;
  }

  .hero-stage {
    position: relative;
    min-height: 480px;
  }

  #minecraft-hero {
    height: calc(100% - clamp(32px, 12vw, 44px));
    padding-bottom: clamp(32px, 12vw, 44px);
  }

  .grass-footer {
    position: fixed !important;
    display: block !important;
    visibility: visible !important;
  }

  .minecraft-character,
  .minecraft-bug {
    position: fixed !important;
    display: block !important;
    visibility: visible !important;
  }

  .glitch-bug {
    width: clamp(24px, 14vw, 52px);
  }

  .minecraft-logo {
    max-width: 90%;
    margin-bottom: 0.3rem;
  }

  .minecraft-paper-title p {
    font-size: 0.75rem;
  }

  .minecraft-subtitle {
    margin-bottom: 1.5rem;
  }

  .minecraft-subtitle p {
    font-size: 0.45rem;
    margin: 0.2rem 0;
  }

  .minecraft-footer {
    bottom: 3rem;
  }

  .minecraft-footer-left {
    left: 0.5rem;
  }

  .minecraft-footer-right {
    display: none; /* Hide authors on mobile */
  }

  .minecraft-footer p {
    font-size: 0.5rem;
  }

  .minecraft-buttons {
    width: 95%;
    max-width: 350px;
  }

  .minecraft-button {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
  }

  .minecraft-footer {
    bottom: 1rem;
    left: 1rem;
  }

  .minecraft-footer p {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .container {
    padding: 0 1rem;
  }

  .content-section {
    padding: 2.5rem 0;
    margin: 1rem 0;
  }

  .content-section h2 {
    font-size: 1.75rem;
    gap: 0.7rem;
  }

  .content-section p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }

  .hero-container {
    padding: 0 0.5rem;
  }

  .image-caption {
    font-size: 0.85rem;
  }

  .results-subsection h3 {
    font-size: 1.5rem;
  }

  .results-subsection h4 {
    font-size: 1.2rem;
  }

  .results-data {
    padding: 0.8rem 1rem;
  }

  .results-list li {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }

  header {
    padding: 3rem 0;
  }

  .title-section .title-image {
    max-width: 90%;
  }

  .title-section h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }

  .title-section h2 {
    font-size: 1.3rem;
    padding: 0 1rem;
  }

  .title-section h3 {
    font-size: 1.1rem;
  }

  .authors {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .header-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    gap: 0.8rem;
  }

  .header-button {
    width: 100%;
    justify-content: center;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .announcement-bar {
    padding: 0.5rem 0.3rem;
  }

  .announcement-bar p {
    font-size: 0.75rem;
    padding: 0;
  }

  #minecraft-hero {
    min-height: 500px;
  }

  .minecraft-logo {
    max-width: 95%;
  }

  .minecraft-subtitle p {
    font-size: 0.55rem;
  }

  .minecraft-buttons {
    width: 100%;
    padding: 0 1rem;
  }

  .minecraft-button {
    font-size: 0.7rem;
    padding: 0.55rem 0.8rem;
  }

  .minecraft-footer p {
    font-size: 0.7rem;
  }

  .content-section h2 {
    font-size: 1.5rem;
  }

  .content-section p {
    font-size: 0.95rem;
  }

  .results-subsection h3 {
    font-size: 1.3rem;
  }

  .results-subsection h4 {
    font-size: 1.1rem;
  }

  .results-subsection h5 {
    font-size: 1rem;
  }
}

/* Hero Section */
#hero {
  margin: 3rem 0;
  width: 100%;
  overflow: hidden;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border: 4px solid #8B4513;
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 0 0 2px rgba(139, 69, 19, 0.3);
}

.hero-container img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border: 4px solid #8B4513;
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 0 0 2px rgba(139, 69, 19, 0.3);
}

.image-caption {
  margin-top: 1rem;
  color: #654321;
  font-style: italic;
  text-align: center;
  font-weight: 500;
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
}

/* Add responsive adjustments for hero section */
@media (max-width: 768px) {
  #hero {
    margin-top: 2rem;
  }
  
  .hero-container img {
    width: 100%;
  }
}

/* Content Sections */
.content-section {
  padding: var(--section-padding);
  background-color: rgba(255, 255, 255, 0.95);
  margin: 2rem 0;
  border: 4px solid #8B4513;
  box-shadow:
    inset 0 0 0 2px rgba(139, 69, 19, 0.3),
    0 8px 0 rgba(0, 0, 0, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 69, 19, 0.03) 2px, rgba(139, 69, 19, 0.03) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 69, 19, 0.03) 2px, rgba(139, 69, 19, 0.03) 4px);
}

.content-section:nth-child(even) {
  background-color: rgba(248, 249, 250, 0.95);
}

.content-section h2 {
  color: #8B4513;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background-color: rgba(139, 69, 19, 0.15);
  border: 3px solid #8B4513;
  box-shadow:
    inset -2px -2px 0px rgba(0, 0, 0, 0.3),
    inset 2px 2px 0px rgba(255, 255, 255, 0.2);
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.content-section h2::after {
  content: none;
}

.content-section h2 i {
  color: #D2691E;
  filter: drop-shadow(1px 1px 0px rgba(0, 0, 0, 0.2));
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.content-section p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
}

.image-container {
  margin: 2rem auto;
  text-align: center;
  max-width: 800px;
  overflow: hidden;
}

.section-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border: 4px solid #8B4513;
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 0 0 2px rgba(139, 69, 19, 0.3);
  transition: transform 0.3s ease;
}

.section-image:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow:
    0 8px 0 rgba(0, 0, 0, 0.3),
    0 6px 20px rgba(0, 0, 0, 0.25),
    inset 0 0 0 2px rgba(139, 69, 19, 0.3);
}

@media (max-width: 768px) {
  .section-image {
    width: 100%;
  }
}

/* Leaderboard Section */
.leaderboard-container {
  margin: 2rem 0;
}

.tab-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  background-color: rgba(139, 69, 19, 0.2);
  color: #654321;
  border: 3px solid #8B4513;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow:
    inset -2px -2px 0px rgba(0, 0, 0, 0.3),
    inset 2px 2px 0px rgba(255, 255, 255, 0.2);
  font-family: 'Inter', sans-serif;
}

.tab-button:hover {
  background-color: rgba(139, 69, 19, 0.3);
  transform: translateY(-2px);
}

.tab-button.active {
  background-color: rgba(139, 69, 19, 0.5);
  color: #fff;
  box-shadow:
    inset 2px 2px 0px rgba(0, 0, 0, 0.3),
    inset -2px -2px 0px rgba(255, 255, 255, 0.1);
  transform: translateY(0);
}

.table-scroll {
  overflow-x: auto;
  background-color: rgba(255, 255, 255, 0.6);
  border: 3px solid #8B4513;
  box-shadow:
    inset -1px -1px 0px rgba(0, 0, 0, 0.2),
    inset 1px 1px 0px rgba(255, 255, 255, 0.3);
}

.leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1rem;
}

.leaderboard-table thead tr {
  background-color: rgba(139, 69, 19, 0.3);
}

.leaderboard-table thead tr th {
  border-bottom: 3px solid #8B4513;
}

.leaderboard-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: #654321;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.leaderboard-table td {
  padding: 1rem;
}

.leaderboard-table tbody tr {
  border-bottom: 2px solid #8B4513;
}

.leaderboard-table tbody tr:last-child {
  border-bottom: none;
}

.leaderboard-table tbody tr:hover {
  background-color: rgba(139, 69, 19, 0.1);
}

.model-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: #654321;
}

.emoji {
  font-size: 1.5rem;
}

.model-text {
  font-size: 1.05rem;
}

.percent-cell {
  font-size: 1.5rem;
  font-weight: 700;
  color: #8B4513;
}

.org-cell {
  padding: 0.5rem 1rem;
}

.org-icon {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.date-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background-color: rgba(139, 69, 19, 0.2);
  border: 2px solid #A0522D;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #654321;
}

.check-cell {
  text-align: center;
  color: #2E7D32;
  font-size: 1.2rem;
}

.link-cell {
  text-align: center;
}

.link-icon {
  color: #8B4513;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.link-icon:hover {
  color: #D2691E;
}

@media (max-width: 768px) {
  .tab-group {
    flex-direction: column;
  }

  .tab-button {
    width: 100%;
  }

  .leaderboard-table {
    font-size: 0.9rem;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 0.75rem 0.5rem;
  }

  .percent-cell {
    font-size: 1.2rem;
  }

  .org-icon {
    height: 24px;
  }
}

/* Results Note */
.results-note {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: rgba(222, 184, 135, 0.15);
  border: 2px solid #A0522D;
  border-left: 4px solid #8B4513;
  text-align: center;
}

.results-note p {
  margin: 0;
  font-size: 1rem;
  color: #654321;
}

.results-note a {
  color: #8B4513;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid #D2691E;
  transition: all 0.2s ease;
}

.results-note a:hover {
  color: #D2691E;
  border-bottom-color: #8B4513;
}

/* Dataset Section */
.dataset-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.metric-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background-color: rgba(139, 69, 19, 0.15);
  border: 3px solid #8B4513;
  box-shadow:
    inset -2px -2px 0px rgba(0, 0, 0, 0.2),
    inset 2px 2px 0px rgba(255, 255, 255, 0.3);
}

.metric-value {
  font-size: 3rem;
  font-weight: 700;
  color: #8B4513;
  line-height: 1;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.metric-label {
  font-size: 1.1rem;
  color: #654321;
  font-weight: 600;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dataset-details {
  margin: 2rem 0;
}

.dataset-details h3 {
  color: #8B4513;
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
  padding: 0.75rem 1rem;
  background-color: rgba(139, 69, 19, 0.1);
  border-left: 4px solid #8B4513;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.feature-list li {
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background-color: rgba(255, 255, 255, 0.6);
  border: 2px solid #A0522D;
  box-shadow: inset -1px -1px 0px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
}

.feature-list li i {
  color: #8B4513;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.sub-list {
  list-style: disc;
  margin-left: 2rem;
  margin-top: 0.5rem;
}

.sub-list li {
  padding: 0.25rem 0;
  margin-bottom: 0.25rem;
  background: none;
  border: none;
  box-shadow: none;
  display: list-item;
}

.wiki-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: rgba(222, 184, 135, 0.15);
  border: 3px solid #8B4513;
  box-shadow:
    inset -1px -1px 0px rgba(0, 0, 0, 0.15),
    inset 1px 1px 0px rgba(255, 255, 255, 0.2);
}

.wiki-section h3 {
  color: #8B4513;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wiki-section h3 i {
  color: #D2691E;
}

.wiki-section p {
  margin: 0;
  line-height: 1.7;
}

.dataset-cta {
  margin: 2rem 0;
  padding: 2rem;
  text-align: center;
  background-color: rgba(139, 69, 19, 0.1);
  border: 3px solid #8B4513;
  box-shadow:
    inset -2px -2px 0px rgba(0, 0, 0, 0.2),
    inset 2px 2px 0px rgba(255, 255, 255, 0.3);
}

.dataset-cta p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #654321;
  font-weight: 500;
}

.dataset-button {
  display: inline-block;
  margin: 0 auto;
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
}

@media (max-width: 768px) {
  .metric-value {
    font-size: 2.5rem;
  }

  .dataset-metrics {
    gap: 1rem;
  }
}

/* Video Section */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 2rem 0;
  border: 4px solid #8B4513;
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 0 0 2px rgba(139, 69, 19, 0.3);
  background-color: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* How to Cite Section */
#cite pre {
  background-color: rgba(40, 40, 40, 0.95);
  border: 3px solid #8B4513;
  padding: 1.5rem;
  overflow-x: auto;
  box-shadow:
    inset -2px -2px 0px rgba(0, 0, 0, 0.5),
    inset 2px 2px 0px rgba(255, 255, 255, 0.1);
}

#cite code {
  color: #7CFC00;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 2px rgba(124, 252, 0, 0.3);
}

/* Contact Section */
#contact {
  background-color: rgba(222, 184, 135, 0.1);
}

#contact ul {
  list-style: none;
  padding: 0;
}

#contact ul li {
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background-color: rgba(255, 255, 255, 0.6);
  border: 2px solid #A0522D;
  box-shadow: inset -1px -1px 0px rgba(0, 0, 0, 0.15);
}

.contact-link {
  color: #8B4513;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #D2691E;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background-image: url('figures/minecraft-dirt-texture.jpg');
  background-size: 200px 200px;
  background-repeat: repeat;
  color: white;
  padding: 2rem 0;
  text-align: center;
  border-top: 4px solid #654321;
  box-shadow:
    inset 0 4px 0 rgba(0, 0, 0, 0.3),
    0 -4px 0 rgba(0, 0, 0, 0.2);
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
  position: relative;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(0, 0, 0, 0.1) 4px, rgba(0, 0, 0, 0.1) 8px),
    repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(0, 0, 0, 0.1) 4px, rgba(0, 0, 0, 0.1) 8px),
    linear-gradient(to bottom, #8B4513, #654321);
}

.social-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-link {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--secondary-color);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-section {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Scroll Behavior */
html {
  scroll-behavior: smooth;
}
  
/* Results Section Specific Styles */
.results-subsection {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.results-subsection h3 {
  font-size: 1.8rem;
  color: #654321;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  background-color: rgba(139, 69, 19, 0.1);
  border-left: 4px solid #8B4513;
  box-shadow: inset -1px -1px 0px rgba(0, 0, 0, 0.1);
}

.results-subsection h3 i {
  color: #D2691E;
  font-size: 1.5rem;
}


.results-subsection h4,
.results-subsection h5 {
  font-size: 1.4rem;
  color: #654321;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  background-color: rgba(139, 69, 19, 0.08);
  border-left: 3px solid #A0522D;
}

.results-subsection h5 {
    font-size: 1.2rem;
    color: #654321;
    margin-top: 1.5rem;
    border-left: 2px solid #A0522D;
}

.results-data {
  background-color: rgba(222, 184, 135, 0.15);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 3px solid #8B4513;
  box-shadow:
    inset -1px -1px 0px rgba(0, 0, 0, 0.2),
    inset 1px 1px 0px rgba(255, 255, 255, 0.3);
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(139, 69, 19, 0.05) 4px, rgba(139, 69, 19, 0.05) 8px);
}

.results-data p {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.results-data p:last-child {
  margin-bottom: 0;
}

.results-list {
  list-style: none; /* Remove default bullets */
  padding-left: 0;
  margin-top: 1rem;
}

.results-list li {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border: 2px solid #A0522D;
  box-shadow:
    inset -1px -1px 0px rgba(0, 0, 0, 0.15),
    inset 1px 1px 0px rgba(255, 255, 255, 0.2);
  font-size: 1.05rem;
  line-height: 1.7;
}

.results-list li strong {
    color: #E65100; /* A distinct color for failure types */
    display: block; /* Make strong element take its own line */
    margin-bottom: 0.3rem; /* Add space after failure type name */
}

/* Nested lists for detailed breakdowns */
.results-list ul {
    list-style: none;
    padding-left: 1.5rem; /* Indent nested list */
    margin-top: 0.8rem;
}

.results-list ul li {
    background-color: rgba(245, 245, 220, 0.4);
    border: 2px solid #BC8F8F;
    box-shadow: inset -1px -1px 0px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
}

.results-list ul li ul li {
    background-color: rgba(255, 250, 240, 0.6);
    border: 2px solid #D2B48C;
    padding: 0.6rem 0.8rem;
}

/* Make nested list item text slightly smaller if desired */
.results-list ul li,
.results-list ul li ul li {
    font-size: 1rem;
}

/* Adjustments for nested strong tags if needed */
.results-list ul li strong {
    color: #EF6C00; /* Slightly different shade if needed */
    display: inline; /* Keep nested strong tags inline */
    margin-bottom: 0;
}

.results-list ul li em,
.results-list ul li ul li em {
    color: #666; /* Style emphasis text */
    font-style: italic;
    margin-left: 0.5rem;
}

/* Ensure image caption is consistent */
.image-caption {
  margin-top: 1rem;
  color: #666;
  font-style: italic;
  text-align: center;
  font-size: 0.95rem;
}

/* Minecraft Grass Footer */
.grass-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(40px, 8vw, 50px); /* Responsive height */
  background-image: url('figures/minecraft-grass.png');
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: bottom;
  z-index: 1000;
  pointer-events: none;
  transform: translateZ(0); /* Force GPU acceleration for mobile */
  -webkit-transform: translateZ(0);
}

/* Minecraft Character Running Animation */
.minecraft-character {
  position: fixed;
  bottom: clamp(20px, 4vw, 30px); /* Responsive to grass height - lowered to touch grass */
  left: -100px; /* Start off-screen */
  width: clamp(50px, 10vw, 60px); /* Responsive width */
  height: auto;
  z-index: 1001;
  pointer-events: none;
  animation: runCharacter 15s linear infinite, runFrames 1s steps(3) infinite;
  transform: translateZ(0); /* Force GPU acceleration for mobile */
  -webkit-transform: translateZ(0);
  background-image: url('figures/steve-run-1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.minecraft-character img {
  opacity: 0;
}

/* Minecraft Bug Running Animation */
.minecraft-bug {
  position: fixed;
  bottom: clamp(36px, 7.2vw, 45px); /* Responsive to grass height */
  left: -20px; /* Start ahead of character */
  width: clamp(25px, 5vw, 30px); /* Responsive width */
  height: auto;
  z-index: 1001;
  pointer-events: none;
  animation: runBug 15s linear infinite;
  transform: translateZ(0); /* Force GPU acceleration for mobile */
  -webkit-transform: translateZ(0);
}

@keyframes runCharacter {
  0% {
    left: -100px;
  }
  100% {
    left: 100%;
  }
}

@keyframes runFrames {
  0% {
    background-image: url('figures/steve-run-1.png');
  }
  33.33% {
    background-image: url('figures/steve-run-2.png');
  }
  66.66% {
    background-image: url('figures/steve-run-3.png');
  }
}

@keyframes runBug {
  0% {
    left: -20px; /* Bug starts 80px ahead of character */
  }
  100% {
    left: calc(100% + 80px);
  }
}

/* Settings Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: rgba(255, 255, 255, 0.98);
  margin: 5% auto;
  padding: 0;
  border: 4px solid #8B4513;
  width: 90%;
  max-width: 600px;
  box-shadow:
    0 8px 0 rgba(0, 0, 0, 0.4),
    0 6px 30px rgba(0, 0, 0, 0.3),
    inset 0 0 0 2px rgba(139, 69, 19, 0.3);
  animation: slideDown 0.3s ease;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 69, 19, 0.03) 2px, rgba(139, 69, 19, 0.03) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 69, 19, 0.03) 2px, rgba(139, 69, 19, 0.03) 4px);
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  position: relative;
  background-color: rgba(139, 69, 19, 0.15);
  border-bottom: 3px solid #8B4513;
  box-shadow:
    inset -2px -2px 0px rgba(0, 0, 0, 0.3),
    inset 2px 2px 0px rgba(255, 255, 255, 0.2);
}

.modal-content h2 {
  color: #8B4513;
  margin: 0;
  padding: 1.5rem 2rem;
  padding-right: 4rem;
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.modal-content h2 i {
  color: #D2691E;
  filter: drop-shadow(1px 1px 0px rgba(0, 0, 0, 0.2));
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: #654321;
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  background: none;
  border: none;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover,
.modal-close:focus {
  color: #D2691E;
  transform: scale(1.2);
}

.modal-body {
  padding: 2rem;
}

.settings-message {
  text-align: center;
}

.settings-message h3 {
  color: #654321;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.settings-message p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.contact-info {
  background-color: rgba(139, 69, 19, 0.1);
  border: 3px solid #8B4513;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow:
    inset -2px -2px 0px rgba(0, 0, 0, 0.2),
    inset 2px 2px 0px rgba(255, 255, 255, 0.3);
}

.contact-info p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.contact-info a {
  color: #8B4513;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.contact-info a:hover {
  color: #D2691E;
  border-bottom-color: #D2691E;
}

.contact-info i {
  color: #D2691E;
  margin-right: 0.5rem;
}

.modal-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.modal-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background-color: rgba(139, 69, 19, 0.15);
  border: 2px solid #8B4513;
  color: #654321;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow:
    inset -1px -1px 0px rgba(0, 0, 0, 0.2),
    inset 1px 1px 0px rgba(255, 255, 255, 0.3);
}

.modal-links a:hover {
  background-color: rgba(139, 69, 19, 0.25);
  color: #8B4513;
  transform: translateY(-2px);
  box-shadow:
    inset -1px -1px 0px rgba(0, 0, 0, 0.2),
    inset 1px 1px 0px rgba(255, 255, 255, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.15);
}

.modal-links a i {
  color: #D2691E;
}

.settings-footer {
  font-style: italic;
  color: #654321;
  font-size: 1rem;
  margin-top: 1.5rem;
}

.settings-easter-egg {
  font-size: 0.8rem;
  color: rgba(101, 67, 33, 0.15);
  margin-top: 0.75rem;
  user-select: none;
  pointer-events: none;
}

.settings-function,
.settings-variable {
  font-style: normal;
  font-family: "Courier New", Courier, monospace;
}

.settings-variable {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .modal-content h2 {
    font-size: 1.5rem;
    padding: 1rem 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .settings-message h3 {
    font-size: 1.3rem;
  }

  .settings-message p {
    font-size: 1rem;
  }
}
