* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Comic Sans MS", sans-serif;
  background-color: #f0f8ff;
  padding: 2% 0;
  overflow-x: hidden; /* Prevent horizontal scrollbar */
  overflow-y: auto;
}

#gameContainer {
  text-align: center;
  margin-top: 3%;
  position: relative; /* So we can use absolute positioning within */
}

#mainImage {
  width: 25%;
  max-width: 250px;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

#options {
  margin-top: 2%;
}
#intro {
  background-color: #e0ffff;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  margin-bottom: 20px;
  padding: 2% 1%;
}

#intro h1 {
  font-size: 2.5rem;
  color: #4682b4;
  margin-bottom: 10px;
}

#intro p {
  font-size: 1.3rem;
  color: #5f9ea0;
}

#options button {
  margin: 5px;
  padding: 10px 20px;
  font-size: 1.5rem;
  border: none;
  border-radius: 15px;
  background-color: #510df1;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

#options button:hover {
  background-color: #50e211;
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);

  /* Flexbox properties to center content */

  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
  flex-direction: column;
  /* This text-align may be redundant now unless you have inline or inline-block children you want centered. */
  text-align: center;
}

#overlay h2 {
  color: white;
  font-size: 1.8rem;
  padding: 10px 20px;
}

#overlay button {
  margin: 5px;
  padding: 10px 20px;
  font-size: 1.5rem;
  border: none;
  border-radius: 15px;
  background-color: #00ced1;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

#overlay button:hover {
  background-color: #20b2aa;
}

@media (max-width: 768px) {
  #mainImage {
    width: 60%;
  }

  #intro h1 {
    font-size: 1.5rem;
  }

  #intro p {
    font-size: 1rem;
  }

  #options button {
    font-size: 1.5rem;
    padding: 8px 15px;
  }

  #overlay h2 {
    font-size: 1.8rem;
  }

  #overlay button {
    font-size: 1.3rem;
  }
}
