@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 */

  /* background-image: url(../image/technology.jpg); */
  /* background-position: bottom center; */
  /* background-repeat: no-repeat;
  background-size: cover; */
  margin: 0px 0 30px 0;
  height: 580px;
  opacity: 0.7;
}

.section-1 .container {
  position: relative;
  display: flex;
  justify-content: center;
  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;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-2 .section_divider {
  margin-bottom: 40px;
}

.FocusChart-container {
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  width: 100%; /* Ensure it takes the full width of the parent */
  height: auto; /* Adjust based on content */
  flex-direction: column; /* Stack SVGs vertically */
  margin-bottom: 100px;
}

#RaceBarChart {
  margin-bottom: 40px;
}

#LineChart {
  background: var(--background-color);
}

.tooltip {
  font-size: 14px;
  position: absolute;
  color: #000;
  background-color: white;
  border: 1px solid #ccc;
  padding: 5px;
  border-radius: 5px;
  pointer-events: pointer;
}

.card-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.card-item {
  background-image: radial-gradient(
    circle,
    rgb(229, 233, 236) 0%,
    rgb(178, 190, 196) 100%
  );
  display: flex;
  justify-content: end;
  align-items: end;
  padding-right: 5px;
}

.fa-icon {
  font-size: 1.2em;
}

.middle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

#BarChart {
  margin-top: 40px;
}

/* ------------------------- end -------------------------- */
@media only screen and (max-width: 767px) {
  /* ------------------------ section-1 ---------------------------------------------------- */
  .section-1 {
    margin: 0px 0 60px 0;
    height: 500px;
  }
  .title-container h1 {
    font-size: 70px;
    font-weight: 800;
    letter-spacing: 2px;
    word-spacing: 3px;
    margin-top: 80px;
    margin-bottom: 40px;
    overflow: hidden;
  }
  /* ------------------------ section-2 ------------------------------------ */
  .section-2 {
    text-align: center;
  }

  #LineChart {
    width: calc(100% - 30px);
  }

  .tooltip {
    font-size: 12px;
  }
  .card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
  }

  .card-item {
    font-size: small;
    display: inline;
    padding-right: 0px;
  }

  .middle-container {
    display: block;
    margin: 0 15px;
  }

  #BarChart {
    width: calc(100% - 30px);
    margin-top: 0;
  }
}
