body {
  font-family: 'Noto Sans', sans-serif;
  background-color: #d6f7ff;
  background-image: linear-gradient(#d6f7ff, #a8e9ff);
  text-align: center; /* Keeps headings centered */
  padding: 20px; /* Default padding for larger screens */
  overflow-x: hidden;
  position: relative;
}

h1 {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}
.main-title-image {
      max-width: 100%;
    height: auto;
}

h4 {
  font-weight: 400;
  max-width: 640px; /* Default max-width for larger screens */
  margin: 40px auto 20px;
  font-size: 1em;
}

.logo-parallax {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 400px; /* Increased height for parallax container on desktop */
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.logo-parallax img {
  width: 100%; /* Default width for larger screens */
  height: auto;
  opacity: 0.2;
  object-fit: cover;
  object-position: center top; /* Ensure top of image is prioritized */
  /* transform: translateY(-340px); This will now be handled by JS for desktop */
}

.content-wrapper {
  position: relative;
  z-index: 2;
  margin-top: 250px; /* Adjusted margin to match new parallax height + small offset */
}

.game-embed {
  display: block; /* Treat iframe as a block element */
  margin: 20px auto 0 auto; /* Center the iframe horizontally */
  width: 640px; /* Fixed width for desktop */
  max-width: 100%; /* Allow it to shrink on smaller screens */
}

.button-container {
  text-align: left; /* Aligns content within this container to the left */
  margin-top: 10px;
  max-width: 640px; /* Match the width of the game embed */
  margin-left: auto; /* Center the button container itself */
  margin-right: auto; /* Center the button container itself */
}

.button-container a {
  padding: 10px 20px;
  background-color: #ff0000;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  display: inline-block;
  font-family: 'Noto Sans', sans-serif;
  margin-bottom: 10px;
}

.red { color: red; }
.orange { color: orange; }
.blue { color: blue; }

.instructions {
  margin-top: 90px;
  text-align: left; /* Aligns content within this container to the left */
  max-width: 640px; /* Aligned with game embed and buttons */
  margin-left: auto; /* Center the instructions container itself */
  margin-right: auto; /* Center the instructions container itself */
  width: 90%
}

.instructions p {
  font-weight: 400;
}

/* --- Mobile Specific Styles --- */
@media (max-width: 768px) {
  body {
    padding: 10px; /* Reduce overall padding for smaller screens */
  }

  h1 {
    font-size: 2.2em; /* Adjust heading size for mobile */
  }

  h4 {
    font-size: 0.9em; /* Adjust subheading size for mobile */
    max-width: 100%; /* Allow h4 to take full width */
    padding: 0 10px; /* Add horizontal padding */
    box-sizing: border-box; /* Include padding in width */
  }

  .logo-parallax {
    height: 160px; /* Increased height for parallax container on mobile */
  }

  .logo-parallax img {
    width: 100%; /* Make image significantly wider for visible parallax effect */
    height: auto; /* Maintain aspect ratio */
    position: absolute;
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust transform to center horizontally */
    top: -20px; /* Align the very top of the image with the top of its container */
    object-position: center top; /* Ensure object-position is truly centered horizontally and aligned to top */
  }

  .content-wrapper {
margin-top: 100px
    }

  .game-embed {
    width: 100%; /* Make game embed take full width on mobile */
    height: 250px; /* Adjust height for better mobile viewing */
  }

  .button-container,
  .instructions {
    width: 100%; /* Make these containers take full width on mobile */
    max-width: 100%; /* Override fixed max-width */
    padding: 0 10px; /* Add horizontal padding */
    box-sizing: border-box; /* Include padding in width */
  }
}
