@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);
  margin: 0px 0 20px 0;
  min-height: 30vh;
  opacity: 0.9;
  height: 400px;
  background-image: url(../image/fish2.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.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;
}

/* ------------------------ section-2 -------------------------------------- */
.section-2 {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1120px;
  padding: 25px 0px 10px 0px;
}
.points {
  margin: 0 0 50px 10px;
}
.points h3 {
  text-align: start;
}
.points ul {
  padding: 0 0 0 100px;
}
.points ul li {
  font-size: 19px;
  margin-bottom: 15px;
}

/* ---------------------- section-3 ----------------------------------------------- */
.section_3 {
  width: 100%;
  height: auto;
  background: linear-gradient(
    to top,
    white 29%,
    white 30%,
    #efc66e 25%,
    #efc66e 100%
  );
}
.section-3 {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  display: block;
  max-width: 1240px;
  padding: 10px 0px 10px 0px;
}

.section-3 p {
  text-align: center;
  font-size: 18px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
  margin-bottom: 80px;
}

label {
  font-weight: bold;
}
label[dir="rtl"] {
  font-family: "Amiri", "play", "Roboto", "Galada", sans-serif;
}

#controls-card {
  width: 50%;
  padding: 10px;
  margin: 0 0 30px 0px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

#DateSlider-card {
  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;
}

#DateSlider-card:hover {
  opacity: 1;
}

/* Adjust the thumb for Chrome, Safari */
#DateSlider-card::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #04e28f;
  cursor: pointer;
}

/* Adjust the thumb for Firefox */
#DateSlider-card::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #04e28f;
  cursor: pointer;
}

#card-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  border: 1px solid #ddd;
  border-radius: 20px;
  background-image: radial-gradient(circle, #2f5597 0%, #252e3b 100%);
  width: 300px;
}

/* ---------- section-4 ---------------- */
.section-4 {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1120px;
  padding: 25px 0px 10px 0px;
}
.divid-to-tow-column {
  display: flex;
  gap: 20px;
  /* flex-direction: row-reverse; */
}

.divid-to-tow-column .right {
  flex: 0 0 20%; /* Fixes the right column to 20% width */
  background-color: var(--background-color);
  padding: 10px;
  position: sticky;
  align-self: flex-start; /* Ensures the sticky effect works within the section */
  top: 60px;
}

.divid-to-tow-column .right h3 {
  text-align: start;
}

.divid-to-tow-column .right ul {
  list-style: none;
}

.divid-to-tow-column .right ul li {
  margin-bottom: 15px;
}
/* ---------- Outline ---------- */
.Outline {
  padding-left: 10px;
}

html {
  scroll-behavior: smooth;
}

/* Default link style */
.Outline li a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s ease-out, background-color 0.3s ease-out;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 5px;
}

.Outline li a:hover {
  background-color: var(--background-color9);
  color: var(--hover-text-color);
  opacity: 0.2s;
}

.Outline li a.active {
  color: var(--text-color);
  font-weight: bold;
  background-color: var(--background-color9);
  padding: 5px;
  border-radius: 5px;
}

.divid-to-tow-column .left {
  flex: 1; /* Allows the left column to take up remaining 80% */
  padding: 10px;
}
/* -------------------------------------- */
svg {
  width: 100%;
  margin: 0 auto;
}
.Chart1,
.Chart2,
.Chart3,
.Chart4,
.Chart5,
.Chart6 {
  border: 0.3px solid black;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 0 0 30px 0;
  padding: 20px;
}
.selectedDate-chart2,
.selectedDate-chart5,
.selectedDate-chart6 {
  display: flex;
  align-items: center;
  padding: 10px;
  margin: 0 0 30px 60px;
}

#date-slider-chart2,
#date-slider-chart5,
#date-slider-chart6 {
  flex: 0 0 70%;
  flex: 1;
  max-width: 700px;
  margin-left: 10px;
  margin-right: 10px;
  appearance: none;
  height: 10px;
  border-radius: 5px;
  background: #c9c8c8;
  outline: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

#date-slider-chart2:hover,
#date-slider-chart5:hover,
#date-slider-chart6:hover {
  opacity: 1;
}

/* Adjust the thumb for Chrome, Safari */
#date-slider-chart2::-webkit-slider-thumb,
#date-slider-chart5::-webkit-slider-thumb,
#date-slider-chart6::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #04e28f;
  cursor: pointer;
}

/* Adjust the thumb for Mozilla (Firefox) */
#date-slider-chart2::-moz-range-thumb,
#date-slider-chart5::-moz-range-thumb,
#date-slider-chart6::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #04e28f;
  cursor: pointer;
}

#selected-date-chart2,
#selected-date-chart5,
#selected-date-chart6 {
  flex: 0 0 30%;
  text-align: left;
  padding-left: 10px;
}

#controls-chart4 {
  padding: 10px;
  display: grid;
  grid-template-columns: 80px 1fr 150px;
  align-items: center;
  justify-items: center;
}

#DateSlider-chart4 {
  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-chart4:hover {
  opacity: 1;
}

/* Adjust the thumb for Chrome, Safari */
#DateSlider-chart4::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #04e28f;
  cursor: pointer;
}

/* Adjust the thumb for Firefox */
#DateSlider-chart4::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #04e28f;
  cursor: pointer;
}

#playButton-chart4 {
  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;
}
#playButton[dir="rtl"] {
  font-family: "Amiri", "play", "Roboto", "Galada", sans-serif;
  margin-right: 0;
  padding: 10px 7px;
}

#legend-container-chart2 {
  display: flex;
  justify-content: space-evenly;
  margin: 30px 0;
}
#legend-container-chart5,
#legend-container-chart6 {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 30px 0 30px 100px;
}

/* Styling for buttons */
.download-buttonsChart1,
.download-buttonsChart2,
.download-buttonsChart3,
.download-buttonsChart4,
.download-buttonsChart5,
.download-buttonsChart6 {
  display: flex;
  justify-content: center;
}

.buttonChart1,
.buttonChart2,
.buttonChart3,
.buttonChart4,
.buttonChart5,
.buttonChart6 {
  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[dir="rtl"],
.buttonChart2[dir="rtl"],
.buttonChart3[dir="rtl"],
.buttonChart4[dir="rtl"],
.buttonChart5[dir="rtl"],
.buttonChart6[dir="rtl"] {
  font-family: "Almarai", "Arial", sans-serif;
}

.buttonChart1:hover,
.buttonChart2:hover,
.buttonChart3:hover,
.buttonChart4:hover,
.buttonChart5:hover,
.buttonChart6:hover {
  background-color: #0056b3;
}
.points span {
  font-weight: 600;
}
h4 {
  text-align: start;
  margin: 50px 0 10px 0;
  padding: 0 70px;
}
.paragraph1,
.paragraph2,
.paragraph3,
.paragraph4,
.paragraph5,
.paragraph6 {
  margin: 0 0 40px 0;
  padding: 0 70px;
}
.paragraph1 span,
.paragraph2 span,
.paragraph3 span,
.paragraph4 span,
.paragraph5 span,
.paragraph6 span {
  font-weight: 600;
}

#selectLineChart2,
#LineChartWithDualAxes,
#StackedBarChart,
#chart-container-chart4,
#selectLineChart5,
#selectLineChart6 {
  background: var(--background-color);
  margin-top: 80px;
}

/* <!-- information --> */
.two-column-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 50px 5px;
  border-radius: 15px;
  position: relative;
  width: 100%;
  padding: 10px;
}
.image-container {
  position: relative;
}
.picture-container1 {
  width: 100%;
  height: 450px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  opacity: 1;
}
.text-container-overlay {
  position: absolute;
  top: 80px;
}

.text-container-overlay h4 {
  font-size: 5rem;
  font-weight: bold;
  margin: 0;
  color: orange;
  font-size: 5rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
.text-container-overlay .small-text {
  font-size: 3rem;
  color: orange;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
.text-container-overlay p {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-top: 10px;
  color: orange;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* ------------------------- end -------------------------- */
@media only screen and (max-width: 767px) {
  /* ------------------------ section-1 ---------------------------------------------------- */
  .section-1 {
    margin: 0;
    height: 200px;
  }

  /* ------------------------ section-2 ------------------------------------ */
  .section-2 {
    height: auto;
    width: 100%;
    padding: 10px 0px 10px 0px;
  }
  .points h3 {
    padding: 0 0 0 20px;
  }
  .points h3[dir="rtl"] {
    padding: 0 20px 0 0;
    font-size: 16px;
  }
  .points ul {
    padding: 0 30px 0 50px;
  }
  .points ul[dir="rtl"] {
    padding: 0 50px 0 30px;
  }
  .points ul li {
    font-size: calc(1vw + 11px); /* Dynamically adjust font size */
    line-height: 1.5;
    word-wrap: break-word;
    text-align: justify;
  }
  /* ---------------------- section-3 ----------------------------------------------- */
  .section-3 {
    flex-wrap: wrap;
    padding: 10px 0px 10px 0px;
  }
  .section-3_container_text {
    padding: 0 30px;
  }
  .stat {
    gap: 15px;
    margin-bottom: 0;
  }
  #controls-card {
    width: 100%;
    margin: 0;
  }
  #card-container {
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  /* ---------------------- section-4 ----------------------------------------------- */
  .section-4 .section_divider {
    display: none;
  }
  .divid-to-tow-column .right ul li {
    margin-bottom: 5px;
  }
  .divid-to-tow-column {
    flex-direction: column;
    gap: 10px;
  }
  .divid-to-tow-column .right {
    flex: 1;
    position: static;
  }
  .divid-to-tow-column .left {
    flex: 1; /* Ensure the left column also takes full width */
  }
  #DateSlider-chart4 {
    max-width: 100%;
  }

  .two-column-layout {
    flex-direction: column;
    align-items: stretch;
    padding: 5px;
  }

  .picture-container1 {
    height: 300px;
  }

  .text-container-overlay {
    bottom: -20px;
    left: 0;
    max-width: 100%;
    padding: 20px;
  }

  /* -------------------------------------- */
  #selectLineChart1 {
    padding: 5px 20px 0px 15px;
  }

  #legend-container-chart2 {
    margin: 5px 0 20px 0;
    font-size: 10px;
  }

  .selectedDate-chart2 {
    text-align: start;
    font-size: 12px;
  }

  .selectedDate-chart2,
  .selectedDate-chart5,
  .selectedDate-chart6 {
    padding: 0;
    margin: 0 0 30px 0;
    font-size: 12px;
  }
  #date-slider-chart2,
  #date-slider-chart5,
  #date-slider-chart6 {
    flex: 0 0 50%;
  }

  #selected-date-chart2,
  #selected-date-chart5,
  #selected-date-chart6 {
    flex: 0 0 50%;
  }

  #date-slider-chart2 {
    width: 100%;
    height: 8px;
  }

  .buttonChart1,
  .buttonChart2,
  .buttonChart3,
  .buttonChart4,
  .buttonChart5,
  .buttonChart6 {
    font-size: 10px;
    padding: 8px 14px;
  }

  h4 {
    text-align: center;
    margin: 50px 0 10px 0;
    padding: 0;
  }

  .paragraph1,
  .paragraph2,
  .paragraph3,
  .paragraph4,
  .paragraph5,
  .paragraph6 {
    padding: 0;
  }

  #selectLineChart2,
  #LineChartWithDualAxes,
  #StackedBarChart,
  #chart-container-chart4,
  #selectLineChart5,
  #selectLineChart6 {
    margin-top: 60px;
  }

  #StackedBarChart,
  #chart-container-chart4,
  #selectLineChart5,
  #selectLineChart6 {
    padding: 10px 0 0 0;
  }
  #controls-chart4 {
    padding: 10px 0;
    grid-template-columns: 65px 1fr 80px;
    row-gap: 10px;
  }
  #legend-container-chart5,
  #legend-container-chart6 {
    font-size: 10px;
    display: inline;
    margin: 5px;
  }
  .text-container-overlay h4 {
    font-size: 2.5rem;
    margin-top: -50px;
  }
  .text-container-overlay .small-text {
    font-size: 1.4rem;
  }
  .text-container-overlay p {
    font-size: 0.9rem;
    margin-top: 0px;
  }
}
