@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: 7px;
  word-spacing: 5px;

  margin-bottom: 40px;
  overflow: hidden;
}
/* ------------------------ section-2 -------------------------------------- */
.section-2 {
  text-align: center;
  margin: 0px 0 30px 0;
}

#selectLineChartBase2018 {
  background: var(--background-color);
  padding: 55px 20px 0px 43px;
}
#legend-containerBase2018 {
  margin: 0 280px 20px 510px;
}
.selectedDateBase2018 {
  text-align: start;
  margin-left: 700px;
  margin-bottom: 100px;
}

#DonutChart0,
#DonutChart1,
#DonutChart2 {
  background: var(--background-color8);
  padding: 20px 0px 20px 0px;
}

#selectLineChartBase2012 {
  background: var(--background-color);
  padding: 55px 20px 0px 43px;
}
#legend-containerBase2018,
#legend-containerBase2012,
#legend-containerBase2000 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 280px 20px 510px;
}

.legend {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

/* .legend input[type="checkbox"] { */
/* Styles for checkboxes */
/* } */

.legend div {
  width: 15px;
  height: 15px;
  margin-left: 5px;
  margin-right: 5px;
  /* Other styles for the colored squares */
}

.selectedDateBase2012 {
  text-align: start;
  margin-left: 700px;
  margin-bottom: 100px;
}

#selectLineChartBase2000 {
  background: var(--background-color);
  padding: 55px 20px 0px 43px;
}
#legend-containerBase2000 {
  margin: 0 300px 20px 550px;
}
.selectedDateBase2000 {
  text-align: start;
  margin-left: 700px;
  margin-bottom: 100px;
}

/* ------------------------- end -------------------------- */
@media only screen and (max-width: 767px) {
  /* ------------------------ section-1 ---------------------------------------------------- */
  .section-1 {
    margin: 0px 0 60px 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 {
    text-align: center;
    margin: 0px 0 30px 0;
  }

  h3 {
    font-size: 20px;
  }

  #legend-containerBase2018,
  #legend-containerBase2012,
  #legend-containerBase2000 {
    font-size: 8px;
    margin: 0 5px 0px 5px;
    gap: 0;
  }

  .selectedDateBase2018,
  .selectedDateBase2012,
  .selectedDateBase2000 {
    text-align: center;
    margin-left: 0px;
    margin-bottom: 0px;
  }

  #selected-dateBase2018,
  #selected-dateBase2012,
  #selected-dateBase2000 {
    font-size: 10px;
  }
}
