::-webkit-scrollbar {
  display: none;
}
@font-face {
  src: url('../fonts/vazir/Vazir.ttf');
  font-family: 'Vazir';
}
:root {
  --black: #181818;
  --white: #ffffff;
  --blue: #1d3546;
}
* {
  box-sizing: border-box;
  scrollbar-width: none;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  font-family: 'Vazir';
}
body {
  font-size: 100%;
  direction: rtl;
  color: var(--blue);
  overscroll-behavior: none;
  width: 100vw;
  min-height: 100dvh;
}

header {
  width: 100vw;
  height: 60px;
  border-bottom: 2px solid var(--blue);
  display: flex;
  justify-content: space-around;
  align-items: center;
}
header img {
  height: 40px;
  border-radius: 5px;
}
nav {
  height: 60px;
  gap: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  z-index: 99;
}
nav a {
  text-align: center;
  border-radius: 5px;
  border-radius: 5px;
  border: 2px solid var(--blue);
  cursor: pointer;
  padding: 5px 10px;
  transition: all 0.3s;
  height: 40px;
}
nav a:hover {
  background-color: var(--blue);
  color: var(--white);
}
.hamburger {
  display: none;
}
.leftSide {
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
svg {
  transition: all 0.3s;
  cursor: pointer;
}
svg {
  fill: var(--blue);
  width: 40px;
  aspect-ratio: 1;
  padding: 4px;
  background-color: var(--white);
  border-radius: 5px;
  border: 2px solid var(--blue);
}
svg:hover {
  background-color: var(--blue);
  fill: var(--white);
}

main {
  display: flex;
  width: 100vw;

  flex-direction: column;
  align-items: center;

  height: calc(100dvh - 120px);
  background-image: url('../images/bottom.jpg');
  background-position: bottom center;
  background-size: 40%;
  background-repeat: no-repeat;
  justify-content: flex-start;
  padding-top: 5rem;
}
.tabHolder {
  width: 70vw;
  height: auto;
}
.tabNames {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  flex-wrap: wrap;
  background-color: #ffffff;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 2px solid var(--blue);
  border-radius: 15px 15px 0 0;
}
.halfFlex {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 50%;
}
.tabHead {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: column;
  height: 80px;
  width: 80px;
  cursor: pointer;
  transition: all 0.5s;
  padding: 5px;
  border-radius: 5px;
}
.tabHead:hover {
  background: var(--blue);
}
.tabHead img {
  height: 45px;
  width: 45px;
  object-fit: contain;
  transition: all 0.5s;
}
.tabHead.active {
  background-color: var(--blue);
}

.tabHead:hover img {
  filter: invert(1);
}
.tabHead.active img {
  filter: invert(1);
}

.tabContent {
  position: relative;
  width: 70vw;
  height: calc(40vh - 120px);

  border: 2px solid var(--blue);
  border-radius: 0 0 15px 15px;
}
.tabContentText {
  width: calc(70vw - 4px);
  height: calc(40vh - 124px);
  padding: 1.5rem;
  overflow: scroll;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  display: none;
}
.showTab {
  display: flex;
}
.tabContentText a {
  border: 2px solid var(--blue);
  cursor: pointer;
  transition: all 0.5s;
  padding: 5px 10px;
  border-radius: 5px;
  position: absolute;
  bottom: -20px;
  background: var(--white);
}
.tabContentText a:hover {
  background-color: var(--blue);
  color: var(--white);
}
footer {
  width: 100vw;
  height: 60px;
  gap: 10px;
  border-top: 2px solid var(--blue);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.toggleMenu {
  right: 0;
}
@media (width <= 1000px) {
  main {
    background-size: 100%;
    padding-top: 2rem;
  }
  nav {
    position: fixed;
    right: -100%;
    width: 100vw;
    top: 0;
    height: 100vh;
    background-color: var(--white);
    transition: all 1s;
    border: 5px solid var(--black);
    display: flex;
    flex-direction: column;
  }
  nav a {
    width: 120px;
    margin-top: 10px;
    text-align: center;
  }
  .hamburger {
    width: 40px;
    height: 40px;
    border: 2px solid var(--blue);
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
  }
  .hamburger:hover {
    color: var(--white);
    background: var(--blue);
  }
  .tabNames {
    flex-direction: column;
    gap: 1rem;
  }
  .halfFlex {
    width: 100%;
  }
  .tabHolder {
    width: 90%;
    height: 60vh;
  }
  .tabContent {
    width: 90vw;
    height: calc(60vh - 200px);
  }
  .tabContentText {
    width: calc(90vw - 4px);
    height: calc(60vh - 204px);
  }
}
