@font-face {
  font-family: "rubik";
  src: url("/wp-includes/fonts/Rubik-VariableFont_wght.ttf");
}

body {
  font-family: "rubik", arial;
}

body {
  margin: 0;
  overflow: hidden;
}

.selected-chart-container {
  grid-column: 1 / -1;
}

.chart-container {
  /* max-width: 300px; */
  /* width:25%;
  max-height:200px;
  text-align: center; */

  max-height: 200px;
  text-align: center;
  max-width: 350px;
  position: relative;
}

.national-accounting-container,
.prices-container,
.salary-container,
.finance-container,
.balance-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 320px));
  grid-gap: 50px;
  direction: rtl;
}

.tabs-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  margin-top: 10px;
  position: relative;
}

.tab-btn {
  cursor: pointer;
  position: relative;
  border: none;
  background: none;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: color;
  font-size: 18.5px;
  font-family: "rubik", arial;
  color: #006bb7;
}

.tab-btn.active:after,
.tab-btn:focus:after,
.tab-btn:hover:after {
  width: 100%;
  left: 0%;
}

.tab-btn.active {
  color: #00367c;
  font-weight: bold;
}

.category-buttons-list:after,
#tabs-statistics-graphs:after {
  content: "";
  position: absolute;
  background-color: #00367c21;
  bottom: -2px;
  right: 0;
  width: 100%;
  height: 2px;
}

.tab-btn:after {
  content: "";
  pointer-events: none;
  bottom: -2px;
  left: 50%;
  position: absolute;
  width: 0%;
  height: 2px;
  /* background-color: #0D1040; */
  background-color: #ffa527;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: width, left;
  z-index: 10;
}

/* .selectedTab,.tab-btn:hover{
  color:#00367C !important;
} */

.none {
  display: none;
}

.chart-container h2 {
  display: flex;
  direction: rtl;
  gap: 15px;
  justify-content: center;
  font-weight: 100;
  font-size: 16px;
}

.chart-container span {
  direction: ltr;
  font-weight: bold;
}

#tabs-statistics-graphs {
  margin-bottom: 17.43px;
}

.mobile-display {
  display: none;
}

@media (min-width: 600px) and (max-width: 900px) {
  .national-accounting-container,
  .prices-container,
  .salary-container,
  .finance-container,
  .balance-container {
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
    direction: rtl;
  }

  .chart-container {
    max-height: 150px;
    max-width: 230px;
  }
}

.chart-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  cursor: pointer;
}

@media screen and (max-width: 600px) {
  #finance-container,
  #prices-container,
  #national-accounting-container,
  #salary-container,
  #balance-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    /* justify-items: center; */
    width: 100%;
  }

  .tabs-container {
    gap: 0;
    width: unset;
    overflow: unset;
  }

  .selected-chart-container {
    border: 1px solid #006bb861;
    box-shadow: 0 2px 4px 0 #00000040;
    border-radius: 10px;
    height: 250px;
  }

  .chart-container {
    position: relative;
    /* overflow: hidden; */
    /* height: 100px; */
    height: 115px;
    width: 90px;
    justify-self: center;
    border: 1px solid #006bb726;
    box-shadow: 0 2px 4px 0 #00000040;
    border-radius: 15px;

    &.active {
      /* border: 2px solid #006bb7; */
      background-color: #006bb733;
    }

    canvas {
      scale: 0.2;
      transform-origin: top right;
      width: 490% !important;
      height: 300% !important;
      position: absolute;
      top: 50px;
      right: 5px;
    }

    span {
      display: block;
      margin-top: 10px;
      font-weight: 500;
      font-family: "rubik", sans-serif;
    }
  }
  canvas#israeli-trade-balance {
    top: 30px !important;
  }

  .overflow-hidden {
    overflow: hidden;
    /* height: 100px; */
    height: 60px;
  }

  .chart-container h2 {
    font-size: 11px;
    height: 25px;
  }

  .mobile-display {
    display: block;
  }

  #mobile-graph-container {
    width: 99%;
    height: 300px;
    border: 2px solid #d9d9d9;
    border-radius: 10px;
  }

  .focused-chart {
    height: 100%;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    position: relative;
  }

  .focused-chart canvas {
    width: 100% !important;
    height: 85% !important;
    scale: 1;
  }

  .focused-chart > h2 {
    font-size: medium;
    font-weight: lighter;
    direction: rtl;
    display: flex;
    justify-content: space-around;
  }

  .focused-chart > h2 > span {
    font-weight: bold;
  }

  .mobile-chart-logo {
    position: absolute;
    width: 45%;
    bottom: 3%;
    left: 54%;
    z-index: 10;
  }
  #finance-container,
  #prices-container,
  #national-accounting-container,
  #salary-container {
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    /* height: 100px; */
  }
  #finance-container::-webkit-scrollbar,
  #prices-container::-webkit-scrollbar,
  #national-accounting-container::-webkit-scrollbar,
  #salary-container::-webkit-scrollbar {
    display: none;
  }
  .charts-slider {
    width: max-content;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
  }
  .charts-slider > div {
    width: 105px;
  }
  #finance-container.none {
    display: none;
  }
  .finance-bar-logo,
  .accounting-logo,
  .salary-logo {
    bottom: 2% !important;
  }
  .finance-logo {
    width: 36% !important;
    left: 62% !important;
    top: 88% !important;
    height: unset !important;
  }
}

.intrest-logo-image {
  opacity: 1;
  position: absolute;
  width: 47%;
  /* height: 15%; */
  left: 50%;
  bottom: -12%;
  z-index: 100;
}

.growth-logo-image,
.inflation-logo-image,
.prices-logo-image,
.accounting-logo-image,
.salary-logo-image,
.balance-logo-image {
  opacity: 1;
  position: absolute;
  width: 45%;
  /* height: 15%; */
  left: 52%;
  bottom: -22%;
  z-index: 100;
}

.finance-bar-logo,
.accounting-logo,
.salary-logo {
  opacity: 1;
  position: absolute;
  width: 35%;
  /* height: 11%; */
  left: 64%;
  bottom: -15%;
  z-index: 100;
}

.finance-logo {
  opacity: 1;
  position: absolute;
  width: 26%;
  height: 11%;
  left: 72%;
  top: 97%;
  z-index: 100;
}
