.main_content {
  display: flex;
  flex-direction: column;
  height: auto;
}

.carousel .legend {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
}

.left-pane {
  margin: 1rem 0;
  width: 100%;
  max-height: 47vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Add this line to prevent overflow */
}

.left-pane-img {
  max-width: 100%;
  max-height: 80%;
  object-fit: contain;
  width: auto; /* Ensure the image scales properly */
  height: auto; /* Ensure the image scales properly */
}

.right-pane {
  display: flex;
  width: 90%;
  flex-direction: column;
  justify-content: space-around;
  padding-left: 20px;
  padding-right: 20px;
  margin: 1rem 0;
}

.box {
  padding: 1rem;
  border-radius: 5px;
  background-color: rgba(45, 45, 48);
  border: 1px solid rgb(201, 110, 26);
  box-shadow: 0px 0px 20px 1px rgba(255, 255, 255, 0.062);
}
.box button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: rgb(201, 110, 26);
  color: white;
  cursor: pointer;
  font-size: 1rem;
}
.timeline {
  padding-bottom: 0.6rem;
  border-bottom: rgb(201, 110, 26) 1px solid;
}
.carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0.5rem 0;
}

.tabs-container {
  display: flex;
  flex-direction: row; /* Keep items horizontally justified */
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping if there are too many tabs */
}

.tab {
  flex: 1 1 auto;
  border: 1px solid rgb(201, 110, 26);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  margin: 5px;
  font-size: 0.9rem;
  color: transparent; /* Make text invisible by default */
  padding: 5px;
  white-space: nowrap;
  max-width: 100%;
  display: none;
}

.tab.selected,
.tab.adjacent {
  display: flex; /* Show when selected or adjacent */
}

.tab.selected {
  color: rgb(201, 110, 26);
  font-weight: bold;
  max-width: fit-content;
}

.tab.adjacent {
  color: white;
  max-width: fit-content;
}

.carousel-button {
  border: none;
  padding: 20px;
  border-radius: 20%;
}
