body {
  background-image: url("images/mars.jpg");
  background-size: cover;
  color: white;
  background-position: center;
  position: relative; /* Required for pseudo-element positioning */
  text-align: center;
}

/* Initially hide the elements */
#element-container {
  display: none;
}

#img-div {
  margin-top: 5px;
  margin-bottom: 20px;
}

h1 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 100px;
}

/* Pseudo-element for the blurred background */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-size: cover;
  background-position: inherit;
  filter: blur(10px); /* Adjust the blur intensity as needed */
  z-index: -1; /* Place the pseudo-element behind other content */
}

/* Center the button on the screen */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}

#images-container {
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Fit 5 images in a row */
  grid-gap: 20px;
}

.image-container {
  text-align: center; /* Center the content horizontally */
}

.mars-image {
  width: 100%; /* Ensure the image takes up the full width of its container */
  height: 200px; /* Set a fixed height to maintain uniformity */
  object-fit: cover; /* Ensure the entire image is visible within the dimensions */
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.first-row {
  grid-row: 1; /* Place images in the first row */
}

.second-row {
  grid-row: 2; /* Place images in the second row */
}

.rover-info {
  font-size: 14px;
  color: #555;
  text-align: center;
}

#sorry-message {
  text-align: center;
  width: 100%; /* Ensure the message takes up the full width of its container */
  display: block; /* Ensure it's treated as a block-level element */
  margin: 0 auto; /* Center the element horizontally */
}
