@import "./assets/font/font-peyda.css";

html,
body {
  font-family: Peyda;
  height: 100%;
  width: 100%;
  padding: 0.5rem;
  margin: 0;
  background-color: #fffae5;
  text-align: right;
  direction: rtl;
  overflow: auto;
}

img {
  max-height: 150px;
  max-width: 64px;
  width: 100%;
}

.header {
  font-size: 1rem;
  padding: 0.75rem;
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  border: 1px solid #181f3047;

  div {
    background: #ffc1073b;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    color: #181f30;
    font-weight: bold;
  }
}

.call-box {
  background-color: #181f30;
  color: #fff;
  width: 100%;
  height: 400px;
  border-radius: 2rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.call-box-title {
  font-size: 2rem;
  margin: 1.5rem;
  font-weight: bolder;
  text-align: center;
}

.call-box-badge {
  font-size: 1rem;
  font-weight: 400;
  background: #2f3952;
  padding: 0.25rem 1rem;
  border-radius: 0.5rem;
  width: 7rem;
  margin-left: 1rem;
  margin-right: auto;
  margin-top: 1rem;
  color: #e7c358;
}

.call-box-phone {
  direction: ltr;
  font-size: 2rem;
  margin: 0 auto;
  color: #ffedb1 !important;
  text-decoration: none !important;
}

.call-box-button {
  width: 100%;
  margin: 0 1rem;
  border-radius: 1.25rem;
  min-height: 70px;
  font-size: 1.25rem;
  font-weight: bold;
}

.boxes {
  width: 100%;
  height: 150px;
  position: relative;
}

.first-box {
  display: flex;
  width: 100%;
  height: 100%;
  max-height: 150px;
  position: relative;
  transition: 20s linear;
  -webkit-transition: 20s linear;
  animation: firstBox 20s linear;
  -webkit-animation: firstBox 20s linear;
  animation-iteration-count: 120;
  animation-direction: normal;
  animation-direction: reverse;
  -webkit-animation-direction: reverse;
  animation-iteration-count: infinite;
  -webkit-animation-iteration-count: infinite;
  transform: translate(0);
  -webkit-transform: translateX(0);
  position: absolute;
}

.second-box {
  display: flex;
  width: 100%;
  height: 100%;
  max-height: 150px;
  position: relative;
  transition: 20s linear;
  -webkit-transition: 20s linear;
  animation: secondBox 20s linear;
  -webkit-animation: secondBox 20s linear;
  animation-iteration-count: 120;
  animation-direction: normal;
  animation-direction: reverse;
  -webkit-animation-direction: reverse;
  animation-iteration-count: infinite;
  -webkit-animation-iteration-count: infinite;
  transform: translate(400%);
  -webkit-transform: translateX(400%);
  position: absolute;
}

.box-white {
  border-radius: 2rem;
  background: var(--bs-light);
  padding: 1rem;
  line-height: 2.5;
}

.box-white-title {
  background-color: #181f30;
  border-radius: 1rem;
  color: #fff;
  padding: 0.5rem;
  text-align: center;
}

.box-yellow {
  padding: 1.5rem;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border: 1px solid #fbc108;
}

.bg-body-tertiary {
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  border: 1px solid #181f3047;
  background: transparent !important;
}

.nav-item {
  margin: 0 1rem;
}

.nav-link {
  width: fit-content;
}

.active {
  font-weight: bold;
  border-bottom: 2px solid #ffc107;
}

.footer {
  padding: 1.5rem;
  line-height: 3;
  background: #181f30;
  border-radius: 2rem;
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 0;

  li {
    list-style: none;
  }

  a {
    text-decoration: none;
    color: #ffedb1;
  }
}

@keyframes firstBox {
  0% {
    transform: translate(0);
    opacity: 1;
  }
  50% {
    transform: translate(-400%);
    opacity: 1;
  }
  50.1% {
    transform: translate(-400%);
    opacity: 0;
  }
  50.2% {
    transform: translate(400%);
    opacity: 0;
  }
  50.3% {
    transform: translate(400%);
    opacity: 1;
  }
  to {
    transform: translate(0);
    opacity: 1;
  }
}
@keyframes secondBox {
  0% {
    transform: translate(400%);
    opacity: 1;
  }
  50% {
    transform: translate(0);
    opacity: 1;
  }
  99.7% {
    transform: translate(-400%);
    opacity: 1;
  }
  99.8% {
    transform: translate(-400%);
    opacity: 0;
  }
  99.9% {
    transform: translate(400%);
    opacity: 0;
  }
  to {
    transform: translate(400%);
    opacity: 1;
  }
}
