@font-face {
  font-family: moramab;
  src: url(../font/MorabbaBold[editby].ttf);
}
@font-face {
  font-family: morabam;
  src: url(../font/MorabbaMedium[editby].ttf);
}
@font-face {
  font-family: morabal;
  src: url(../font/MorabbaLight[editby].ttf);
}
@font-face {
  font-family: vazirl;
  src: url(../font/Vazir-Light.ttf);
}
@font-face {
  font-family: vazirm;
  src: url(../font/Vazir-Medium.ttf);
}

/* html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
} */

.menu {
  top: 0;
  left: 0;
  width: 100%;
  height: 66px;
  background-color: #263f55;
  text-align: center;
  box-shadow: 0 2px 11px rgba(0, 0, 0, 0.295);
  /* position: fixed; */
  z-index: 1000;
  padding: 1% 10%;
}

.logoo {
  background-color: #fff;
  border-radius: 5px;
  padding: 0.5%;
  margin-left: 1%;
}

.phone-icon {
  width: 100px;
  height: auto;
  transition: width 0.5s ease-in;
  border: 2px solid #ffc711;
  border-radius: 10px;
  opacity: 100%;
  font-family: morabam;
  line-height: 39px;
  display: block;
  margin-top: 3%;
  margin-left: 25%;
  padding: 2px 2px;
  text-decoration: none;
  color: rgb(255, 255, 255);
  font-size: 15px;
  transition: 0.2s ease-in-out;
}

.phone-icon:hover {
  background-color: #ffc711;
  color: #263f55;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  height: 100%;
}

.menu ul li {
  display: inline-block;
  position: relative;
}

.menu ul li:not(.image-btn, .contact-btn, .res-menu, .usbtn)::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: transparent;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}

.menu ul li:not(.image-btn, .contact-btn, .res-menu, .usbtn):hover::before {
  transform: scaleX(1);
  background-color: #ffffff;
}

.active {
  opacity: 100%;
}

.menu ul li.res-menu {
  display: none;
  right: 10%;
  top: 6%;
}
.menu ul li.contact-btn {
  position: absolute;
  left: 0;
}

.menu ul li.image-btn {
  position: absolute;
  right: 0;
}

.active {
  opacity: 100%;
  font-family: morabam;
  line-height: 39px;
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #ffc711;
  font-size: 15px;
  transition: 0.3s ease-in-out;
}

.menu ul li a:not(.active, .phone-icon) {
  opacity: 60%;
  font-family: morabam;
  line-height: 39px;
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: rgb(255, 255, 255);
  font-size: 15px;
  transition: 0.3s ease-in-out;
}

.menu ul li a:hover {
  opacity: 100%;
}

.menu ul li a img {
  width: 30px;
  height: 30px;
}

@media (min-width: 769px) {
  #myDivmenu {
    display: none;
  }
}

@media screen and (max-width: 867px) {
  .menu ul li:not(.home, .image-btn, .res-menu) {
    display: none;
  }

  .logoo {
    background-color: #ffffff00;
    border-radius: 5px;
    padding: 2%;
    margin-left: 37%;
  }
  .menu ul li.res-menu {
    display: block;
    right: 23%;
    top: 10%;
  }

  #myDivmenu {
    display: none;
  }
  .menu .responsive {
    position: relative;
  }
  .menu .responsive .icon {
    position: absolute;
    left: 0;
    top: 0;
  }
  .menu .responsive {
    float: none;
    text-align: center;
    display: block;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#myDivmenu {
  width: 50%;
  height: auto;
  top: 65px;
  position: fixed;
  z-index: 1000;
  background-color: #263f55;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: vazirbold;
  border-bottom-right-radius: 20px;
  text-decoration: none;
  text-align: center;
}

#myDivmenu li {
  list-style: none;
  text-decoration: none;
  margin: 20px;
}
#myDivmenu li a {
  font-size: 90%;
  color: #ffffff94;
  font-family: morabam;
  transition: 0.3s ease-in-out;
  text-decoration: none;
  padding-right: 10px;
  transition: 0.2s ease-in-out;
}

#myDivmenu li:hover a {
  color: #ffffff;
  text-decoration: none;
  padding-right: 4px;
}
