@font-face {
  font-family: iransans-light;
  font-style: normal;
  font-weight: normal;
  src: url("../fonts/1-IranSansWeb/IRANSansWeb_Light.eot");
  src: url("../fonts/1-IranSansWeb/IRANSansWeb_Light.eot?#iefix")
      format("embedded-opentype"),
    url("../fonts/1-IranSansWeb/IRANSansWeb_Light.woff2") format("woff2"),
    url("../fonts/1-IranSansWeb/IRANSansWeb_Light.woff") format("woff"),
    url("../fonts/1-IranSansWeb/IRANSansWeb_Light.ttf") format("truetype");
}

@font-face {
  font-family: iransans-medium;
  font-style: normal;
  font-weight: normal;
  src: url("../fonts/1-IranSansWeb/IRANSansWeb_Medium.eot");
  src: url("../fonts/1-IranSansWeb/IRANSansWeb_Medium.eot?#iefix")
      format("embedded-opentype"),
    url("../fonts/1-IranSansWeb/IRANSansWeb_Medium.woff2") format("woff2"),
    url("../fonts/1-IranSansWeb/IRANSansWeb_Medium.woff") format("woff"),
    url("../fonts/1-IranSansWeb/IRANSansWeb_Medium.ttf") format("truetype");
}

@font-face {
  font-family: iransans-bold;
  font-style: normal;
  font-weight: normal;
  src: url("../fonts/1-IranSansWeb/IRANSansWeb_Bold.eot");
  src: url("../fonts/1-IranSansWeb/IRANSansWeb_Bold.eot?#iefix")
      format("embedded-opentype"),
    url("../fonts/1-IranSansWeb/IRANSansWeb_Bold.woff2") format("woff2"),
    url("../fonts/1-IranSansWeb/IRANSansWeb_Bold.woff") format("woff"),
    url("../fonts/1-IranSansWeb/IRANSansWeb_Bold.ttf") format("truetype");
}

:root {
  --dark_blue: #023668;
  --light_blue: #335d85;
  --orange: #ec994b;
  --light_gray: #e5e5e5;
}

select option{
  font-family: iransans-light !important;
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  width: 65% ;
  height: 100%;
  /* max-width: 500px; */
  text-align: right;
  font-size: 12px;
  z-index: 99999;

}
.modal-content-group{
  width: 100% !important;
}

.modal-header{
  background-color: #023668;
  border: 0;
}
.modal-footer{
  display: flex;
  justify-content: flex-start;
  padding: .5rem;
  border: 0px;
}
.modal-footer-group{
  display: flex;
  justify-content: space-between;
  padding: .5rem;
  border: 0px;
}
.modal-footer-group > button{
  margin: 5px 10px;
}
.modal-footer button{
  margin: 5px 10px;
}
.modal-title{
  color: #fff;
  text-align: center;
}
.close {
  color: #fff;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #ec994b;
  text-decoration: none;
  cursor: pointer;
}

.modal-body{
  height: fit-content;
}
.btn-search{
  z-index: 600;
  position: absolute;
  left: 0px;
  bottom: 35px;
}
.modal-dialog{
  min-width: 70% !important;
}


.inner-box-title{
  background-color: #023668;
  color: #fff;
  text-align: center;


}
.inner-box-title>p   {
  font-size: 12px !important;
  font-weight: normal !important;
}

.inner-box-content{
  background-color: #ec994b;
  color: #fff;
  text-align: center;
  font-size: 12px !important;
  font-weight: normal !important;
  margin: 0px;
}
.inner-box-border{
  border: 1px solid #000;
}
.inner-box-desc{
  padding: 4px;
  text-align: center;
}
.inner-box-desc>p{
  font-size: 12px !important;
  font-weight: normal !important;
}
.group-table {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
}
.group-table > span {
  background-color: #023668;
  width: 25%;
  padding: 5px 10px;
  color: #fff;
  margin: 0px 5px;
  font-size: 12px;
  text-align: center;
}

.group-table-value {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
}
.group-table-value > span {
  background-color: transparent;
  width: 25%;
  padding: 10px 10px;
  color: #000;
  margin: 0px 5px;
  font-size: 12px;
  text-align: center;
  font-weight: bold;
}
.side-panel {
  height: 100vh;
  width: 0px;
  position: fixed;
  top: 0;
  right: 0;
  overflow-x: hidden;
  overflow-y: auto;
  transition: 0.5s;
  z-index: 99999;
  transition: 0.5s;
  background-color: rgba(0, 0, 0, 0.4);
}



.side-panel::-webkit-scrollbar {
  width: 10px;
}


.side-panel::-webkit-scrollbar-track {
  background: #e5e5e5;
  border-radius: 10px;
}

.side-panel::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
  height: 50px !important;
}

.side-panel::-webkit-scrollbar-thumb:hover {
  background: #888;
}

.side-panel-content {
  padding: 0px 20px;
  color: white;
}

.open-btn {
  font-size: 14px !important;
  cursor: pointer;
  transform: rotate(90deg);
  transform-origin: left top;
  display: inline-block;
  background-color: #023668;
  color: #fff;
  padding: 10px;
  position: absolute;
  right: -140px;
  top: 60%;
  border-radius: 0px 0px 10px 10px;
  z-index: 1000;
  position: fixed;
  transition: 0.5s;

}

.close-btn {
  font-size: 36px;
  margin: 0px 10px;
  color : red
}
.container-close-btn-desktop{
  position: absolute;
  top: 0px;
  right: 500px;
  background-color: red;
  z-index: 9999;
  display: none;
  width: 30px;
  height: 30px;

}
.close-btn-desktop{
  color: #fff;
  margin: 0px 5px;
  font-size: 22px;
  padding: 5px;
}

.side-panel-title{
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: #888;
  padding: 11px 15px;
}
.box-desc{
  background-color: #fff;
  border-radius: 10px;
  color: #000;
  margin: 10px 0px;
  padding: 10px;

}
.box-desc img{
  border: 1px solid #000;
  padding: 2px;
}
.search-filter{
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: baseline;
  background-color: #e5e5e5;
}
.search-filter span{
  background-color: #888;
  color: #fff;
  padding: 5px 20px;
  margin: 5px 5px;
  border-radius: 5px;
}
@media (max-width: 768px){
  .btn-search{
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
  }
  .btn-search>button{
      margin: 5px;
  }
  .side-panel{
      width: 0px;
  }

}

.btn-search-by {
  background-color: #023668;
  border-color: #023668;
  color: #ffffff;
  -moz-user-select: none;
  border: 1px solid rgba(0, 0, 0, 0);
  border-radius: 4px;
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  padding: 8px 16px;
  text-align: center;
  transition: all 0.2s ease-in-out 0s;
  vertical-align: middle;
  white-space: nowrap;
}
.btn-search-by:active,
.btn-search-by:focus,
.btn-search-by:hover{
background-color: #ec994b;
  border-color: #ec994b;
  color: #fff;
}

@keyframes slideInFromRight {
  0% {
      transform: translateX(100%);
      opacity: 0;
  }
  100% {
      transform: translateX(0);
      opacity: 1;
  }
}

#btnCloseDesktop {
  animation: slideInFromRight 1s ease-in-out forwards;
}

.container-close-btn-desktop {
  position: fixed;
  right:500px;
  top: 0px;
  z-index: 1000;
  opacity: 0;
}

#mySidePanel.open #btnCloseDesktop {
  opacity: 1;
  animation: slideInFromRight 1s ease-in-out forwards;
}

@media (min-width: 768px){

  #close-btn-sidebar{
      display: none;
  }
}

.sidebar-box-icon{
  position: absolute;
  top: 0px;
  right: 0px;
  display: flex;
  flex-direction: column;
}

.position-ralative{
  position: relative;
}

.sidebar-box-icon img{
  border: 0px;
  width: 20px;
  height: 20px;
}

/* استایل پیش‌فرض برای دسکتاپ */
.outer-box {
  padding: 10px;
  margin: 0px 0px 30px;
  display: grid;
  grid-template-columns: auto auto auto auto auto auto auto;
  row-gap: 45px;
}

.inner-box {
  height: 150px;
  margin: 5px;
}

/* برای نمایشگرهای بزرگ‌تر از 1300 */
@media (max-width: 1300px) {
  .outer-box {
      grid-template-columns: auto auto auto auto auto auto auto;
  }
}

/* برای نمایشگرهای بزرگ‌تر از 1200px */
@media (max-width: 1200px) {
  .outer-box {
      grid-template-columns: auto auto auto auto;
  }
}

/* برای نمایشگرهای بزرگ‌تر از 992px و کوچک‌تر از 1200px */
@media (max-width: 992px) {
  .outer-box {
        grid-template-columns: auto auto ;
        grid-template-rows: auto auto auto;
        row-gap: 45px;
  }
}

/* برای نمایشگرهای بزرگ‌تر از 768px و کوچک‌تر از 992px */
@media (max-width: 768px) {
  .outer-box {
       grid-template-columns: auto auto ;
        grid-template-rows: auto auto auto;
          row-gap: 45px;
  }
}

/* برای نمایشگرهای بزرگ‌تر از 576px و کوچک‌تر از 768px */
@media (max-width: 576px) {
  .outer-box {
          grid-template-columns: auto auto;
  }
}

/* برای نمایشگرهای کوچک‌تر از 576px */
@media (max-width: 480px) {
  .outer-box {
      grid-template-columns: auto ;
  }
}

/* برای نمایشگرهای بسیار کوچک‌تر از 320px */
@media (max-width: 320px) {
  .outer-box {
      grid-template-columns: auto;
  }
}
