/* Reset default margin and padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.side-x-side-container {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: stretch;
  background-color: aqua;
}

.side-container {
  margin: 10px;
  padding: 10px;
  border: 3px solid blue;
  border-radius: 30px;
}

.left-container {
  flex: 1;
  display: flex;
  height: auto;
  flex-direction: column;
  justify-content: space-around;
  align-items: stretch;
  background-color: rgb(208, 149, 23);
}

#showObit {
  flex: 2;
}
#top {
  flex: 1;
}
#middle {
  flex: 1;
}
#bottom {
  flex: 1;
}

.right-container {
  flex: 2; /* Take up 2/3 of the window width */
  display: flex;
  flex-direction: column; /* Change flex-direction to column */

  align-items: center;
  position: relative; /* Add this to make sure child elements are positioned relative to this container */
}

#grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  grid-template-rows: repeat(6, 1fr); /* 6 rows */
  gap: 10px;
  grid-column-gap: 2%;
  padding-top: 75px; /* Moves grid down to center it on the granite background */
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 50px;
  width: 100%; /*Occupy the entire right-container */
  border-radius: 30px;
  background-image: url("/assets/our-fallen-blocks/blank-master-names-panel-2.jpg");
  background-size: cover;
  background-repeat: no-repeat;
}

.right-container image {
  width: 100%;
  height: 100%;
  border-radius: 30px;
}

/* Styling for individual grid items (rectangles) */
/* .grid-item {
  background-image: url("/assets/our-fallen-blocks/Name-Plaque-1024x314.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
  height: 1vh;
  padding: 20%; 
  margin-top: 10;
}

.text-block {
  width: 150%;
  margin-top: -35px;
  margin-left: -40px;
  text-align: center;
 
  line-height: 1.1;
  font-size:1vw;
  font-weight: bold;
  color: blue;
} */
.grid-item {
  background-image: url("/assets/our-fallen-blocks/Name-Plaque-1024x314.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
  height: 6vw; /* Set a fixed height for the grid item */
  padding: 20px; /* Adjust padding as needed */
  margin-top: 10px; /* Add units to margin */
  position: relative; /* Ensure relative positioning for absolute children */
}

.text-block {
  text-align: center; /* Center text inside the block */
  position: absolute; /* Position text block relative to grid item */
  font-size: 1vw;
  font-weight: bold;
  color:blue;
}


/* Media query for small screen devices */
@media only screen and (max-width: 715px) {
  .text-block {
    text-align: center;
    /* Default font size for text-block */
    font-size: 1vw;
    font-weight: bold;
    color: blue;
  }
}

/* Media query for extra small screen devices */
@media only screen and (max-width: 599px) {
  .text-block {
    font-size: 1vw;
    font-weight: bold;
    color: blue;
  }
}

/* Styling for the small image */
 .small-image {
  width: 20px; /* Adjust the width of the small image as needed */
  height: 20px; /* Adjust the height of the small image as needed */
  float: inline-end; /* Float the small image to the left */
  margin-right: 105%; /* Adjust the distance from the right edge of the plaque to the small-image */
  margin-top: 0px;
}

.bottom-controls {
  display: flex;
  flex-flow: row;
  width: 100%;
  border: 2px solid black;
  justify-content: space-around;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

#name-count h3 {
  color: blue;
}

#showObit h1 {
  text-align: center;
  color: #ffd700;
}

button {
  width: 150px;
  height: 50px;
  font-size: 18px;
  font-weight: bold;
  border: 2px solid blue;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffd700;
}

Button:hover {
  background-color: #2980b9;
}

Button:active {
  background-color: #7fffd4;
}

#startButton {
  background-image: url("/assets/icons/Start.png");
}

#prevButton {
  background-image: url("/assets/icons/Previous.png");
}

#nextButton {
  background-image: url("/assets/icons/Next.png");
}

#endButton {
  background-image: url("/assets/icons/End.png");
}

.fade-out {
  opacity: 0;
  transition: opacity 2s ease-out;
}

.fade-in {
  opacity: 1;
  transition: opacity 2s ease-in;
}
