#priceHistoryChart {
  width: 100%; /* Full width of the chart container */
  height: 100%; /* Full height of the chart container */
}

.chart-container {
  width: 100%; /* Full width of the modal content area */
  max-height: 80vh; /* Maximum height for the chart */
  overflow: hidden; /* Hide any overflow */
  min-height: 350px; /* Default min-height */
}

.omni-modal-window {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.25);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  &:target {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  & > div {
    width: 80%;
    max-height: 80vh; /* Adjust based on your needs */
    overflow: hidden; /* Hide overflow */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background: white;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the content */
  }
  header {
    font-weight: bold;
  }
  h1 {
    font-size: 24px !important;
  }
}

.omni-modal-close {
  color: #aaa;
  line-height: 50px;
  font-size: 80%;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  width: 70px;
  text-decoration: none;
  padding-top: 15px;
  &:hover {
    color: black;
  }
}

.omni-container {
  display: grid;
  justify-content: start;
  align-items: start;
}

.omni-modal-window {
  background: rgba(77, 77, 77, 0.7);
  transition: all 0.4s;
  & > div {
    border-radius: 1rem;
  }
}

.omni-modal-window div:not(:last-of-type) {
  margin-bottom: 15px;
  margin-right: 20px;
}

.omni-lowest-price {
  font-size: 1.8rem;
  font-weight: bold;
}

.omni-btn {
  background-color: transparent;
  color: #000;
  padding: 1em 1.5em;
  padding-left: 0;
  text-decoration: none;
  i {
    padding-right: 0.3em;
  }
}
.omni-btn:hover {
  text-decoration: underline;
}

.omni-modal-window > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Small devices (e.g., iPhone SE), both portrait and landscape */
@media only screen and (max-width: 667px) {
  .chart-container {
    min-height: 250px;
  }
  .omni-modal-window {
    & > div {
      width: 90%;
    }
  }
}

/* Medium devices (e.g., iPhone 12 Pro), portrait */
@media only screen and (min-width: 668px) and (max-width: 1170px) {
  .chart-container {
    min-height: 350px;
  }
  .omni-modal-window {
    & > div {
      width: 90%;
    }
  }
}

/* Medium devices (e.g., iPhone 12 Pro), landscape */
@media only screen and (min-height: 668px) and (max-height: 1170px) {
  .chart-container {
    min-height: 350px;
  }
  .omni-modal-window {
    & > div {
      width: 90%;
    }
  }
}
