/* ======================= */
/* Global */
body {
  margin: 0;
  background-color: #20120f;
  color: #ffffff;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
}

/* ======================= */
/* Top Bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 56px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  font-family: "Press Start 2P", monospace;
  font-size: 22px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  justify-content: center;
}

/* ======================= */
/* GIF Container */
.gif-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ======================= */
/* Title above GIF */
.game-title {
  font-family: 'DotGothic16', monospace;
  font-size: 50px;
  color: #855307;
  text-align: center;
  margin-bottom: 12px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* ======================= */
/* GIF Wrapper */
.gif-wrapper {
  position: relative;
  width: 550px;       /* fixed desktop width */
  max-width: 90%;     /* scales on smaller screens */
}

/* GIF */
.gif-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

/* ======================= */
/* Black Box (responsive) */
.black-box {
  position: absolute;
  top: 35%;               /* % of GIF container height */
  left: 52%;              /* base horizontal position */
  transform: translate(-40%, -50%); /* shift slightly right from exact center */
  width: 26%;             /* % of GIF container width */
  height: 20%;            /* % of GIF container height */
  background-color: #000000;
  border-radius: 8px;
  z-index: 0;
}

/* ======================= */
/* Text under the GIF */
.status-text {
  margin-top: 16px;
  font-family: "IM Fell DW Pica", serif;
  font-size: 32px;
  font-weight: 700;
  color: #855307;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  text-align: center;
}

/* ======================= */
/* Tablet / Medium Screens */
@media (max-width: 768px) {
  .gif-wrapper {
    width: 80%;
  }

  .black-box {
    top: 35%;
    width: 28%;
    height: 22%;
  }

  .game-title {
    font-size: 36px;
  }

  .status-text {
    font-size: 24px;
  }
}

/* ======================= */
/* Very Small Screens */
@media (max-width: 480px) {
  .gif-wrapper {
    width: 95%;
  }

  .black-box {
    top: 38%;       /* slightly lower if needed */
    width: 30%;
    height: 24%;
  }

  .game-title {
    font-size: 28px;
  }

  .status-text {
    font-size: 20px;
  }
}
