body {
  position: relative;
  top: 50px;
  margin: 0;
  padding: 20px;
  background: black;
  font-family: "Segoe UI", Roboto, sans-serif;
  color: #e6e6e6;
  min-height: 100vh;
}

.Header {
  display: flex;
  justify-content: center; /* center the buttons */
  align-items: center;
  padding: 10px 5vw;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
}

.LogoTopRight {
  order: 2;
  margin-left: auto; /* pushes logo to the right */
  height: 80px; /* scale logo */
}

.ButtonContainer {
  flex: 1; /* take available space */
  display: flex;
  justify-content: center; /* center the links */
  order: 1;
}

.Button {
  position: relative; /* makes text position relative to this box */
  width: 100px; /* button size */
}

.ButtonText {
  display: flex;
  font-family: "Calibri", Arial, sans-serif;
  font-size: 20px;
  color: white;
  font-weight: normal;
  text-shadow: 1px 1px 3px black;
}

.ButtonText a {
  color: white;
  text-decoration: none;
  margin: 0 20px;
}
/* Tablet */
@media (max-width: 768px) {
  .ButtonText {
    font-size: 16px; /* slightly smaller */
    flex-wrap: wrap; /* allow wrapping if needed */
    justify-content: center;
  }
  .ButtonText a {
    margin: 5px 10px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .ButtonText {
    font-size: 14px; /* smaller for phones */
    flex-direction: column; /* stack vertically */
    align-items: center;
  }
  .ButtonText a {
    margin: 5px 0;
  }
}

.ButtonText a:hover {
  color: rgb(247, 0, 255);
}

.Page1Title {
  position: relative;
  font-family: "Corbel Light", "Corbel", Arial, sans-serif;
  font-size: clamp(24px, 8vw, 80px);
  color: white;
  font-weight: normal;
  margin: 0 0 10px 0;
  text-align: left;
  text-shadow: 6px 6px 6px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .Page1Title {
    font-size: 40px; /* tablets */
  }
}

@media (max-width: 480px) {
  .Page1Title {
    margin-left: 5vw;
    text-align: center;
  }
}

.Page1SubTitle {
  font-family: "Calibri", Arial, sans-serif;
  font-size: clamp(22px, 6vw, 40px);
  color: rgb(250, 40, 145);
  font-weight: normal;
  margin: 0 0 10px 0;
  text-align: left;
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 1);
}
/*Tablets*/
@media (max-width: 768px) {
  .Page1SubTitle {
    font-size: 30px; /* tablets */
  }
}

/*Mobile Phones */
@media (max-width: 480px) {
  .Page1SubTitle {
    margin-left: 5vw;
    text-align: center;
  }
}

.Page1Copy {
  position: relative;
  z-index: 2;
  margin: 0 0 10px 0; /* add 20vw left margin */
  font-family: "Corbel Light", "Corbel", Arial, sans-serif;
  font-size: 25px;
  color: white;
  font-weight: normal;
  text-align: justify;
  max-width: 100ch;
}
@media (max-width: 768px) {
  .Page1Copy {
    font-size: 20px; /* tablets */
  }
}

@media (max-width: 480px) {
  .Page1Copy {
    font-size: 15px; /* phones */
  }
}

.MainContent {
  display: flex;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.HeroSection {
  position: relative;
  height: 100vh; /* full viewport height */
  overflow: visible; /* allow content to extend below background */
}

.HeroSection .MainContent {
  position: absolute;

  left: 0;
  right: 0;
}

.HeroSection::before {
  content: "";
  position: absolute;
  inset: 0; /* cover the whole HeroSection */
  background-image: url("../images/BAckgroundExamples.png");
  background-size: cover; /* scale to fill viewport */
  background-position: center; /* center the image */
  background-repeat: no-repeat; /* no tiling */
  opacity: 0;
  animation: bgFadeIn 1.5s ease-out forwards;
  z-index: -1; /* keep behind charts/content */
}

@keyframes bgFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.dashboard-row {
  display: flex;

  gap: 20px;
  margin-bottom: 20px;
}

.chart-card {
  width: 100%;
  height: 100%;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  flex: 1;
  display: flex;
  border: 2px solid black; /* white border, 5px thick */
  background-color: rgba(0, 0, 0, 0.8);
}

/* Apply drop-shadow to all bar chart bars */
.js-plotly-plot .bars path {
  filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.9));
}

/* Apply drop-shadow to all pie chart slices across the dashboard */
.js-plotly-plot .slice path {
  filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.4));
}

/* Plotly dropdown button */
.js-plotly-plot .updatemenu .button {
  background-color: #1a1d23 !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
}

/* Hover effect for dropdown options */
.js-plotly-plot .updatemenu .button:hover {
  background-color: #333333 !important;
}
/* Make Plotly dropdown options opaque */
.js-plotly-plot .updatemenu-layer .updatemenu .button {
  background-color: #1a1d23 !important; /* solid dark background */
  color: #ffffff !important; /* readable text */
  border: 1px solid #ffffff !important; /* optional border */
}
