@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;
}

/*----------------- titel-section video ---------------*/
.titel-section {
  background-color: #f4f4f4; /* Fallback color in case the video doesn't load */
  margin: 0px 0 30px 0;
  height: 770px;
  opacity: 0.9;
}
.titel-section .container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  max-width: 100%;
}
.background-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.title-container {
  display: block;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  z-index: 1;
}

/* ------------------- titel -------------- */
.title {
  display: block;
  max-width: 1140px;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: 190px;
  text-align: center;
  z-index: 1;
}

/*  ------------- get-started button --------------*/
.get-tarted {
  align-items: center;
}
.get-tarted a {
  background: #4864ff;
  color: #fff;
  padding: 15px 70px;
  border-radius: 30px;
  cursor: pointer;
  display: inline-block;
  margin-top: 40px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out;
}
.get-tarted a:hover {
  transform: scale(1.05);
}

/* ------------------------ section-0 -------------------------------------------- */
.section-0-container {
  position: relative;
}

#ZoomBubbleChart svg {
  width: 100%;
  margin: 0 auto;
  max-width: 100%; /* Ensures the SVG doesn't exceed container width */
}

.chart1 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.explore-title {
  position: absolute;
  font-size: 2.3em;
  margin-left: 20px;
  bottom: 250px;
}
.explore-title a {
  color: var(--text-color);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.explore-title a:hover {
  color: #007bff;
}
.explore-title[dir="rtl"] {
  margin-right: 20px;
}

.local-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 150px;
  text-align: center;
  text-decoration: none; /* Remove underline from the link */
}

.local-link h2 {
  color: #ffffff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.local-link h2:hover {
  color: #007bff;
}

/* ------------------------ section-1 ---------------------------------------------------- */
.section_1 {
  width: 100%;
  height: auto;
  background-color: var(--background-color7);
  color: var(--text-color);
}
.section-1 {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  display: block;
  width: 1120px;
  padding: 90px 0px 120px 0px;
}
.section-1 .section_divider {
  margin-bottom: 40px;
}
.section-1_containers {
  display: flex;
  gap: 30px;
}

.section-1_container {
  width: 100%;
  padding: 15px 10px 40px 10px;
  background-color: var(--background-color2);
  text-align: center;
}

.section-1_picture {
  width: 333px;
  height: 222px;
  border-radius: 2px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

figcaption {
  margin-top: 15px;
}
figcaption p {
  padding: 0 20px 20px 20px;
  color: var(--text-color);
}

/* ------------------------ section-2 -------------------------------------------- */

.section-2 {
  width: 1120px;
  margin-left: auto;
  margin-right: auto;
  margin-top: -1px;
  padding: 0px 0px 40px 0px;
}

/* Position the image container (needed to position the left and right arrows) */
.section-2-container {
  position: relative;
  background: var(--background-color2);
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Add a pointer when hovering over the thumbnail images */
.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 36%;
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}
/* Position the "prev button" to the left */
.prev {
  left: 0;
  border-radius: 3px 0 0 3px;
}
/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Number text (1/6 etc) */
.numbertext {
  color: var(--text-color);
  font-size: 16px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Container for image text */
.caption-container {
  cursor: pointer;
  text-align: center;
  background: var(--background-color5);
  padding: 10px 16px;
  color: var(--text-color3);
  font-size: 35px;
  word-spacing: 2px;
  letter-spacing: 2px;
  transition: transform 0.3s ease-in-out, color 0.3s ease-in-out; /* Smooth transition for both color and transform */
}

.caption-container:hover {
  text-decoration: underline;
  transform: scale(1.05);
  color: #ffdd02;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.caption-container[dir="rtl"] {
  font-size: 25px;
  word-spacing: 0;
  letter-spacing: 0;
  padding: 7px 16px;
}
.caption-container p {
  text-align: center;
}
.row:after {
  content: "";
  display: table;
  clear: both;
}
.row {
  background: white;
  color: #000000;
}

/* Six columns side by side */
.column {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10%;
  position: relative;
  float: left;
  width: 16.66%;
  height: 100px;
  border: 1px solid;
  color: black;
}
.column i {
  font-size: 35px;
}
.slide-Information {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.slide-Information-value {
  font-size: 25px;
  margin-bottom: 5px;
}
.slide-Information-unit {
  font-size: 17px;
  text-align: center;
  display: block;
}

/* Add a transparency effect for thumnbail images */
.demo {
  border: 2px solid var(--border-color);
  opacity: 0.6;
  transition: opacity 0.3s, border-color 0.3s;
}

.active,
.demo:hover {
  opacity: 1;
  border-color: rgba(0, 0, 0, 0.8);
}

/* ---------------------- 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;
  width: 1240px;
  padding: 10px 0px 10px 0px;
}

.section-3 p {
  text-align: center;
  font-size: 18px;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  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;
}

#dateDropdown {
  padding: 6px 8px;
  font-size: 16px;
  border-radius: 8px;
  margin-bottom: 10px;
}
#dateDropdown {
  font-family: "Amiri", "play", "Roboto", "Galada", sans-serif;
}
.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  background-image: radial-gradient(circle, #2f5597 0%, #252e3b 100%);
}
/* ----------------------section-4----------------------------------------------- */
.section-4 {
  margin-left: auto;
  margin-right: auto;
  width: 1120px;
  padding: 25px 0px 10px 0px;
}
.mapContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--background-color8);
  padding-bottom: 20px;
  margin-bottom: 40px;
}
#OmanMap {
  margin: auto auto 20px auto;
  display: block;
}

#controlsMap {
  padding: 10px;
  display: grid;
  grid-template-columns: 80px 150px 1fr;
  align-items: center;
  justify-items: center;
}

#playButtonMap {
  font-size: 16px;
  background-color: #04e28f;
  color: rgb(0, 0, 0);
  border: none;
  margin-right: 5px;
  border-radius: 4px;
  padding: 12px 20px;
  cursor: pointer;
  transition-duration: 0.3s;
}

#playButtonMap[dir="rtl"] {
  font-family: "Amiri", "play", "Roboto", "Galada", sans-serif;
  margin-right: 0;
  padding: 10px 14px;
}

#dateSlider {
  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:hover {
  opacity: 1;
}

#dateSlider::-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::-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;
}

/* To change the font of the text content within the tooltip HTML in D3.js */
.tooltip-text {
  font-family: "Amiri", "play", "Roboto", "Galada", sans-serif;
}

/* ----- */

#LineChart {
  background: var(--background-color);
  padding: 55px 20px 20px 43px;
  margin-bottom: 50px;
}
/* ----- */
#columnWidthBar-control {
  background: var(--background-color8);
  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;
}

#columnWidthBar {
  background: var(--background-color8);
  padding: 5px 10px 5px 5px;
}
#columnWidthBardateSlider {
  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;
}

#columnWidthBardateSlider:hover {
  opacity: 1;
}

#columnWidthBardateSlider::-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;
}

#columnWidthBardateSlider::-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;
}

#Hierarchical_bar_chart {
  background: var(--background-color7);
  margin-top: 20px;
}

/* ------------------------ section-5 ---------------------------------------------------- */
.section-5 {
  position: relative;
  height: 500px;
  width: 100%;
  background-color: #f4f4f4; /* Fallback color in case the video doesn't load */
  background-image: url(../image/R.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  margin: 20px 0 10px 0;
  animation: backgroundAnimation 1s linear infinite;
}

@keyframes backgroundAnimation {
  100% {
    filter: hue-rotate(360deg);
  }
}

/* تأثير ضبابي، زيادة السطوع، زيادة التشبع */
.container-behind {
  position: absolute;
  height: 100%;
  width: 100%;
  backdrop-filter: blur(15px) brightness(1.2) saturate(1.5);
}
.section-5 .container-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 70px;
  color: #fff;
  z-index: 1;
}

.quote-line {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  margin-right: auto;
  margin-left: auto;
  width: 700px;
  margin-bottom: 20px;
}

.line {
  flex: 1;
  height: 3px;
  background-color: rgb(255, 255, 255);
}

.icon {
  margin: 0 10px;
}
.container-content p {
  width: 600px;
  text-align: center;
  margin-right: auto;
  margin-left: auto;
  font-size: x-large;
}
.container-content p[dir="rtl"] {
  font-size: 30px;
  padding: 30px 0;
}
.widget-container {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 20px;
  margin: 20px auto;
  color: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.widget-container p[dir="rtl"] {
  padding: 0;
}
/* ------------------------ section-6 ----------------------------------------------- */

.section-6 {
  height: 500px;
  text-align: center;
  background-color: var(--background-color5);
}
.section-6 p {
  font-size: 58px;
  color: var(--text-color3);
  text-align: center;
  padding: 90px 0px 0px 0;
}
.section-6 span {
  display: block;
  font-size: 17px;
  width: 560px;
  line-height: 30px;
  margin-right: auto;
  margin-left: auto;
  padding: 20px 0px 0px 0px;
}
.section-6 a {
  background: #4864ff;
  color: #fff;
  padding: 15px 70px;
  border-radius: 30px;
  cursor: pointer;
  display: inline-block;
  margin-top: 70px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.section-6 a:hover {
  transition: transform 0.3s ease-in-out;
  transform: scale(1.05);
}

/* ------------------------- end -------------------------- */
@media only screen and (max-width: 767px) {
  /* titel-section video */
  .titel-section {
    margin: 0px 0 20px 0;
    height: 600px;
    opacity: 0.9;
  }

  .title-container h2 {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 4px;
    word-spacing: 5px;
    margin-top: 80px;
    margin-bottom: 40px;
    overflow: hidden;
  }
  .title {
    max-width: 670px;
    margin-top: 20px;
  }
  .title h1 {
    font-size: 70px;
    font-weight: 600;
    letter-spacing: 4px;
    word-spacing: 3px;
    text-shadow: 12px 0px 7px rgba(0, 0, 0, 0.3);
    margin-top: 50px;
    margin-bottom: 40px;
  }
  .title p {
    font-size: 17px;
    margin-top: 12px;
    text-align: center;
  }
  .get-tarted a {
    padding: 12px 50px;
    border-radius: 30px;
    margin-top: 30px;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
  }

  /* ------------------------ section-0 -------------------------------------------- */
  .Chart1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center; /* Ensures text inside is centered */
    min-height: 100vh; /* Optional: Ensures the content takes full screen height */
  }
  svg {
    height: 280px;
  }
  #ZoomBubbleChart {
    height: 610px;
  }

  .explore-title {
    font-size: 1.6em;
    letter-spacing: 1px;
  }

  .local-link {
    bottom: 110px;
  }

  .local-link h2 {
    font-size: 1.5em;
    color: var(--text-color);
    letter-spacing: 1px;
  }

  /* --------- section-1 ----------- */
  .section-1 {
    display: inline;
    padding: 25px 10px;
  }
  .section-1_containers {
    display: inline;
  }
  .section-1_fisrt_container,
  .section-1_second_container,
  .section-1_third_container {
    padding: 5px 15px 80px 15px;
    width: 100%;
  }
  .section-1_fisrt_picture_container,
  .section-1_second_picture_container,
  .section-1_third_picture_container {
    height: 500px;
  }
  .section-1_fisrt_picture,
  .section-1_second_picture,
  .section-1_third_picture {
    height: 100%;
    width: 100%;
    border-radius: 2px 2px 2px 2px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }
  figcaption p {
    padding: 0 30px 20px 30px;
  }

  /* ------ Slideshow section-2  ----- */
  .section-2 {
    width: 100%;
    padding: 0px 0px 30px 0px;
  }
  .section-2 img {
    height: 450px;
  }

  /* Container for image text */
  .caption-container {
    padding: 5px 16px;
    font-size: 25px;
    word-spacing: 1px;
    letter-spacing: 1px;
  }

  /* Six columns side by side */
  .column {
    display: inline;
    width: 16.66%;
    height: 100px;
    border: 1px solid;
  }
  .column i {
    display: flex;
    justify-content: center;
    padding: 10px;
    color: rgba(0, 0, 0, 0.8);
    font-size: 25px;
  }
  .slide-Information {
    display: flex;
    justify-content: center;
  }
  .slide-Information-value {
    font-size: 11px;
    font-weight: bold;
  }
  .slide-Information-unit {
    font-size: 11px;
  }

  /* Add a transparency effect for thumnbail images */
  .demo {
    border: 1px solid var(--border-color);
  }

  .active,
  .demo:hover {
    opacity: 1;
    border-color: rgba(0, 0, 0, 0.8);
  }
  .button-more-data {
    position: absolute;
    bottom: 200px;
    left: 50%;
    transform: translate(-50%);
  }
  .more-data {
    padding: 8px 15px;
    border: 1.5px;
    border-radius: 5px;
    width: 150px;
    font-size: 18px;
  }

  /* ------------- section-3 ----------------------- */
  .section-3 {
    flex-wrap: wrap;
    height: auto;
    width: 100%;
    padding: 10px 0px 10px 0px;
    background: linear-gradient(
      to top,
      white 14%,
      white 15%,
      #efc66e 10%,
      #efc66e 100%
    );
  }
  .section-3_container_text {
    padding: 0 30px;
  }
  .stat {
    gap: 15px;
  }
  #card-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* ------------- section-4 ----------------------- */
  .section-4 {
    height: auto;
    width: 100%;
    padding: 10px 0px 10px 0px;
  }
  #controls {
    width: 80%;
    display: flex;
    align-items: center;
  }

  #LineChart {
    padding: 20px 30px 10px 30px;
  }

  /* ------------------------ section-5 ---------------------------------------------------- */
  .section-5 {
    animation: none;
    background-image: none;
    background-color: #000000;
    height: 420px;
  }
  .quote-line {
    width: 200px;
    margin-bottom: 20px;
  }
  .container-content p {
    width: 300px;
    font-size: 20px;
  }
  .container-content p[dir="rtl"] {
    font-size: 17px;
    padding-top: 1px;
  }
  .widget-container {
    margin: 40px auto;
  }
  /* ------------------------ section-6 ----------------------------------------------- */

  .section-6 p {
    font-size: 40px;
  }
  .section-6 span {
    width: 300px;
  }
  .section-6 a {
    padding: 15px 40px;
    margin-top: 50px;
  }
}
