@import "colors.css";
@import url("https://fonts.googleapis.com/css?family=Play&display=swap");
@import url("https://fonts.googleapis.com/css?family=Almarai&display=swap");
@import url("https://fonts.googleapis.com/css?family=Roboto&display=swap");
@import url("https://fonts.googleapis.com/css?family=Galada&display=swap");

* {
  margin: 0;
  padding: 0;
  font-family: "play";
  box-sizing: border-box;
}

body {
  background: var(--background-color);
  color: var(--text-color);
  transition: background 0.8s, color 0.8s;
  font-family: "Amiri", "play", "Roboto", "Galada", sans-serif;
}

/* ------------------------ section-1 ---------------------------------------------------- */
.section-1 {
  position: relative;
  background-color: var(
    --background-color9
  ); /* Fallback color in case the video doesn't load */
  margin: 0px 0 30px 0;
  height: 580px;
  opacity: 0.7;
}

.section-1 .container {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 100%;
}

.title-container {
  display: block;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.title-container h1 {
  font-size: 100px;
  font-weight: 800;
  letter-spacing: 5px;
  word-spacing: 5px;

  margin-bottom: 40px;
  overflow: hidden;
}
/* ------------------------ section-2 -------------------------------------- */
.section-2 {
  text-align: center;
  margin: 0px 0 30px 0;
}

#LineChartContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 50px 0 150px 0;
}

.selectLineChart-container,
.selectLineChartConstant-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 50px 0 150px 0;
}
#selectLineChart,
#selectLineChartConstant {
  background: var(--background-color);
}
#legend-container,
#legend-containerConstant {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 25px;
}
.selectedDate,
.selectedDateConstant {
  display: flex;
  justify-content: center;
}

#date-slider,
#date-sliderConstant {
  width: 100%; /* Use relative width */
  max-width: 400px; /* Set a maximum width */
}

.StackedAreaChart-container,
.StackedAreaChartConstant-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 50px 0 150px 0;
}

.multiLineChar-title {
  color: var(--text-color);
  font-size: 25px;
}
.multiLineChart-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  padding: 10px;
}
.chart {
  margin: 10px;
}

/* ------------------------- end -------------------------- */
@media only screen and (max-width: 767px) {
  /* ------------------------ section-1 ---------------------------------------------------- */
  .section-1 {
    margin: 0px 0 60px 0;
    height: 500px;
  }
  .title-container h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 2px;
    word-spacing: 3px;
    margin-top: 80px;
    margin-bottom: 30px;
    overflow: hidden;
  }
  /* ------------------------ section-2 ------------------------------------ */
  .section-2 {
    text-align: center;
    margin: 0px 0 30px 0;
  }
  .section-2 .container {
    display: block;
  }

  .Section_tittel {
    font-size: 28px;
    letter-spacing: 0px;
  }

  #LineChartContainer {
    padding: 0 20px;
    margin: 5px 0 20px 0;
  }

  .selectLineChart-container,
  .selectLineChartConstant-container {
    padding: 0 20px;
    margin: 5px 0 20px 0;
  }

  #legend-container,
  #legend-containerConstant {
    margin-bottom: 5px;
    gap: 5px;
    font-size: 10px;
  }
  .selectedDate,
  .selectedDateConstant {
    font-size: 10px;
  }

  #date-slider,
  #date-sliderConstant {
    max-width: 90px;
  }

  .StackedAreaChart-container,
  .StackedAreaChartConstant-container {
    margin: 40px 0 50px 0;
    padding: 0 20px;
  }

  .multiLineChar-title {
    font-size: 10px;
  }

  .multiLineChar-container {
    max-width: 80%; /* Maximum width for larger screens */
    margin: 0 auto; /* Center the container */
  }
  .chart {
    margin: 0px;
  }
}
