/* Background container */
#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("img/Spinning-Wheel-Games-BG-V2-(Updated-QR).jpg");
  background-size: cover; /* Ensures the image covers the entire viewport */
  background-repeat: no-repeat; /* Prevents the image from repeating */
  background-position: center; /* Centers the image both horizontally and vertically */
}


/* Text styling */
text {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11px;
  pointer-events: none; /* Prevent text from being interactive */
}

/* Center the chart container and chart div */
#chart-container {
  position: absolute;
  top: 50%; /* Vertically center the container */
  left: 50%; /* Horizontally center the container */
  transform: translate(
    -50%,
    -50%
  ); /* Center the container both horizontally and vertically */
}

#chart {
  width: 500px;
  height: 500px;
  /* No need to specify 'top' and 'left' since the parent container is centered */
}

/* Styling for question section */
#question {
  position: absolute;
  width: 400px;
  height: 500px;
  top: 0;
  left: 520px;
}

#question h1 {
  font-size: 50px;
  font-weight: bold;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  position: absolute;
  padding: 0;
  margin: 0;
  top: 50%;
  transform: translate(0, -50%); /* Center vertically */
}

/* Add any additional styling if needed for responsiveness or other elements */
@media (max-width: 768px) {
  #chart-container {
    width: 100%;
    height: auto;
    transform: translate(-50%, 0);
  }

  #chart {
    width: 100%;
    height: auto;
  }

  #question {
    width: 100%;
    left: 0;
    top: auto;
    bottom: 10px;
  }

  #question h1 {
    font-size: 36px;
  }
}
