@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 {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1120px;
  padding: 25px 0px 10px 0px;
}
svg {
  width: 100%;
  margin: 0 auto;
}

.chart1 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 50px 0 150px 0;
}

#selectLineChart {
  background: var(--background-color);
  padding: 55px 20px 0px 20px;
}

.selectedDate {
  padding: 10px;
  margin: 0 0 30px 100px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

#date-slider {
  flex: 1;
  max-width: 700px;
  margin-left: 10px;
  margin-right: 10px;
  -webkit-appearance: none;
  appearance: none;
  height: 10px;
  border-radius: 5px;
  background: #c9c8c8;
  outline: none;
  opacity: 0.7;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
}

#date-slider:hover {
  opacity: 1;
}

#date-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; /* Adjust the width of the thumb */
  height: 20px; /* Adjust the height of the thumb */
  border-radius: 50%;
  background: #04e28f; /* Color of the slider thumb */
  cursor: pointer;
}

#date-slider::-moz-range-thumb {
  width: 20px; /* Adjust the width of the thumb for Firefox */
  height: 20px; /* Adjust the height of the thumb for Firefox */
  border-radius: 50%;
  background: #04e28f; /* Color of the slider thumb for Firefox */
  cursor: pointer;
}

#legend-container {
  display: flex;
  justify-content: space-evenly;
  margin: 30px 0;
}

/* Styling for buttons */
.download-buttonsChart1,
.download-buttonsChart2,
.download-buttonsChart3 {
  display: flex;
  justify-content: center;
}

.buttonChart1,
.buttonChart2,
.buttonChart3 {
  padding: 10px 20px;
  margin-right: 10px;
  font-size: 16px;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.buttonChart1:hover,
.buttonChart2:hover,
.buttonChart3:hover {
  background-color: #0056b3;
}

#LineChartWithDualAxes {
  background: var(--background-color);
  margin-top: 80px;
  padding: 55px 20px 0px 43px;
}

#StackedBarChart {
  background: var(--background-color);
  margin-top: 80px;
  padding: 20px 20px 0px 43px;
}

/* ------------------------- end -------------------------- */
@media only screen and (max-width: 767px) {
  /* ------------------------ section-1 ---------------------------------------------------- */
  .section-1 {
    margin: 0;
    height: 500px;
  }
  .title-container h1 {
    font-size: 50px;
    font-weight: 800;
    letter-spacing: 2px;
    word-spacing: 3px;
    margin-top: 80px;
    margin-bottom: 40px;
    overflow: hidden;
  }
  /* ------------------------ section-2 ------------------------------------ */
  .section-2 {
    height: auto;
    width: 100%;
    padding: 10px 0px 10px 0px;
  }

  #selectLineChart {
    padding: 5px 20px 0px 15px;
  }

  #legend-container {
    margin: 0 0 20px 40px;
    font-size: 10px;
  }
  .selectedDate {
    text-align: start;
    margin-left: 10px;
    font-size: 12px;
  }

  #date-slider {
    width: 100%;
    height: 8px;
  }

  .buttonChart1,
  .buttonChart2,
  .buttonChart3 {
    font-size: 10px;
    padding: 8px 14px;
  }

  #LineChartWithDualAxes {
    margin-top: 20px;
    padding: 20px 25px 0px 29px;
  }

  #StackedBarChart {
    padding: 10px 15px 0px 10px;
  }
}
