@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: 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-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 50px 0 150px 0;
}
#selectLineChart {
  background: var(--background-color);
}
#legend-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 25px;
}

.charts-container {
  display: flex;
  justify-content: space-around; /* Adjust as needed */
  align-items: flex-start; /* Align items at the top */
  margin-bottom: 80px;
}

.Chart2,
.Chart3 {
  width: 100%; /* Adjust width as needed */
  margin: 10px; /* Adjust margin as needed */
}

.chart4,
.chart5,
.chart6 {
  display: flex;

  justify-content: center;
  align-items: center;
  margin: 50px 0 150px 0;
}

#controls-Donut,
#controls-pie,
#controls-PopulationPyramid,
#controls-OmaniPopulationPyramid,
#controls-RadialStackedBar {
  padding: 10px;
  display: grid;
  grid-template-columns: 80px 1fr 150px;
  align-items: center;
  justify-items: center;
}

#playButton {
  font-size: 16px;
  background-color: #04e28f;
  color: #000000;
  border: none;
  margin-right: 5px;
  border-radius: 4px;
  padding: 12px 20px;
  cursor: pointer;
  transition-duration: 0.3s;
}

#DateSlider-Donut,
#DateSlider-pie,
#DateSlider-PopulationPyramid,
#DateSlider-OmaniPopulationPyramid,
#DateSlider-RadialStackedBar {
  width: 100%;
  margin: 0 auto;
  -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;
}

#DateSlider-Donut:hover,
#DateSlider-pie:hover,
#DateSlider-PopulationPyramid:hover,
#DateSlider-OmaniPopulationPyramid:hover,
#DateSlider-RadialStackedBar:hover {
  opacity: 1;
}

#DateSlider-Donut::-webkit-slider-thumb,
#DateSlider-pie::-webkit-slider-thumb,
#DateSlider-PopulationPyramid::-webkit-slider-thumb,
#DateSlider-OmaniPopulationPyramid::-webkit-slider-thumb,
#DateSlider-RadialStackedBar::-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;
}

#DateSlider-Donut::-moz-range-thumb,
#DateSlider-pie::-moz-range-thumb,
#DateSlider-PopulationPyramid::-moz-range-thumb,
#DateSlider-OmaniPopulationPyramid::-moz-range-thumb,
#DateSlider-RadialStackedBar::-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;
}

/* ------------------------- 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;
  }

  #LineChart {
    padding: 5px 20px 0px 15px;
  }
  #legend-container {
    margin: 0 0 20px 40px;
    font-size: 10px;
  }

  .charts-container {
    display: inline-block;
    margin-bottom: 30px;
  }

  #chart2,
  #chart3 {
    padding: 0 20px;
    margin: 5px 0 20px 0;
  }

  #controls-Donut,
  #controls-pie,
  #controls-PopulationPyramid,
  #controls-OmaniPopulationPyramid,
  #controls-RadialStackedBar {
    padding: 5px;
    grid-template-columns: 80px 1fr 100px;
  }

  #playButton {
    font-size: 12px;
    margin-right: 3px;
    padding: 8px 15px;
  }

  #DateSlider-Donut,
  #DateSlider-pie,
  #DateSlider-PopulationPyramid,
  #DateSlider-OmaniPopulationPyramid #DateSlider-RadialStackedBar {
    height: 8px;
  }

  #DateSlider-Donut::-webkit-slider-thumb,
  #DateSlider-pie::-webkit-slider-thumb,
  #DateSlider-PopulationPyramid::-webkit-slider-thumb,
  #DateSlider-OmaniPopulationPyramid::-webkit-slider-thumb,
  #DateSlider-RadialStackedBar::-webkit-slider-thumb {
    width: 15px;
    height: 15px;
  }

  #DateSlider-Donut::-moz-range-thumb,
  #DateSlider-pie::-moz-range-thumb,
  #DateSlider-PopulationPyramid::-moz-range-thumb,
  #DateSlider-OmaniPopulationPyramid::-moz-range-thumb,
  #DateSlider-RadialStackedBar::-moz-range-thumb {
    width: 15px; /* Adjust the width of the thumb for Firefox */
    height: 15px; /* Adjust the height of the thumb for Firefox */
  }
  .date-label,
  #currentDate-Donut,
  #currentDate-pie,
  #currentDate-PopulationPyramid,
  #currentDate-OmaniPopulationPyramid,
  #currentDate-RadialStackedBar {
    font-size: 14px;
  }
}
