@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Noto+Naskh+Arabic:wght@400..700&family=Tangerine:wght@400;700&display=swap");
@font-face {
  font-family: Angela_white;
  src: url(./font/angela_white.ttf);
}

:root {
  --arabic-font: "Noto Naskh Arabic", serif;
  --heading-font: "Tangerine", cursive;
  --secondary-heading-font: Angela_white;
  --main-font: "Josefin Sans", sans-serif;
  --main-color: #283865;
  --box-shadow:
    rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
    rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}

* {
  padding: 0;
  margin: 0;
  text-decoration: none;
  border: none;
  box-sizing: border-box;
  color: var(--main-color);
  font-size: 1.1rem;
  font-family: var(--main-font);
}

button {
  cursor: pointer;
  padding: 0.5rem 1rem;
  box-shadow: var(--box-shadow);
  background-color: var(--main-color);
  color: white;
  border-radius: 5rem;
}
.audio-control {
  z-index: 100;
  position: fixed;
  bottom: 5vh;
  right: calc(100vh * 0.5625);
  margin-right: 25vh;
  & button {
    background-color: rgba(255, 255, 255, 1);
    font-size: 1.3rem;
    border-radius: 100%;
    width: 2rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: spin 5s linear infinite;
  }
}
.container {
  height: 100vh;
  width: calc(100vh * 0.5625);
  margin: 0 auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overflow-y: scroll;
  overflow-x: hidden;
}

.container > div {
  width: inherit;
  height: inherit;
  scroll-snap-align: start;
  background-size: contain;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5vh 3vh;
}

.cover {
  background: url("./img/4.png") no-repeat center;
  & > * {
    margin-top: 4vh;
  }
  & div:nth-child(1) {
    font-family: var(--heading-font);
    font-size: 4rem;
    font-weight: 900;
  }
  & img {
    width: 10rem;
  }
  & div:nth-child(3) {
    font-family: var(--secondary-heading-font);
    font-size: 4rem;
  }
  & div:nth-child(4) {
    border: 1px solid var(--main-color);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
  }
  & div:nth-child(5) {
    margin-top: 1vh;
    font-size: 3rem;
    animation: bounce 0.7s ease-in-out infinite;
  }
}
.quotes {
  background: url("./img/2.png") no-repeat center;
  & p {
    font-family: var(--arabic-font);
    font-size: 2rem;
    padding: 0 20% 0 2rem;
    align-self: flex-start;
  }
  & :nth-child(2) {
    font-size: 1.5rem;
    padding-top: 1rem;
  }
}

.main-content {
  background: url("./img/4.png") no-repeat center;
  text-align: center;
  line-height: 1.5rem;
  & div {
    margin-top: 3vh;
  }
  & div:nth-of-type(1) {
    font-family: var(--arabic-font);
    font-size: 1.7rem;
    margin-top: 10vh;
  }
  & .name {
    font-size: 3.5rem;
    font-family: Angela_white;
    font-weight: bold;
    margin-top: 3rem;
  }
  & :nth-child(5) {
    width: 4rem;
    margin-top: 3vh;
  }
  & :nth-child(8) {
    width: 7rem;
    margin-top: 5vh;
  }
}

.tnp {
  background: url("./img/4.png") no-repeat center;
  & .main-title {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 5vh;
  }
  & div {
    line-height: 1.5rem;
  }
  & .wrapper {
    text-align: left;
    margin: 3vh 0 3vh 0;
  }
  & .title {
    font-weight: bolder;
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
  }
  & button {
    margin-top: 2vh;
  }
  & img {
    width: 80%;
  }
}

.expression {
  background: url("./img/5.png") no-repeat center;
  & .title {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 5vh;
  }
  & > div:not(.title) {
    text-align: left;
  }
  & .input-wrapper {
    width: 100%;
    display: none;
    border-radius: 1vh;
    padding: 0 1.1rem;
    flex-direction: column;
    box-shadow: var(--box-shadow);
    & div {
      margin-top: 0.5rem;
      & input,
      textarea {
        box-shadow: var(--box-shadow);
        width: 100%;
        resize: none;
        margin-top: 0.5rem;
        padding: 0.5rem;
        border-radius: 1rem;
      }
    }
    & .expression-quotes-field > textarea {
      height: 30vh;
      resize: none;
    }
    & button {
      margin: 0.7rem 0;
      width: 50%;
      align-self: center;
    }
  }
  & .output-wrapper {
    width: 100%;
    max-height: 75%;
    overflow-y: scroll;
    padding: 0.5rem;
    & .box {
      box-shadow: var(--box-shadow);
      padding: 1rem;
      margin: 0.5rem 0;
      border-radius: 1rem;
      & .name {
        font-weight: bold;
      }
      & .expression-main {
        border-top: 3px dotted rgba(40, 56, 101, 0.5);
        margin-top: 0.5rem;
        padding-top: 0.3rem;
      }
    }
  }
  & button {
    margin-top: 1rem;
  }
}
.closing {
  background: url(./img/4.png) no-repeat center;
  text-align: center;
  & .box {
    & div {
      line-height: 1.5rem;
    }
    & div:nth-child(2) {
      font-family: var(--heading-font);
      font-size: 3.5rem;
      font-weight: 900;
      margin: 2rem 0 5vh 0;
    }
    & div:nth-child(4) {
      font-family: var(--arabic-font);
      margin: 5rem 0;
      font-size: 2rem;
      margin: 2rem 0 5vh 0;
    }
    & img {
      width: 70%;
    }
  }
}

@media only screen and (max-width: 768px) {
  * {
    font-size: 1.1rem;
  }
  .audio-control {
    right: 1rem;
    margin-right: 0;
  }
  .container {
    width: auto;
    margin: 0 0;
  }
  .container > div {
    background-size: 100vw 100vh;
  }
  .cover {
    & div:nth-child(1) {
      font-size: 3rem;
    }
    & img {
      width: 7rem;
    }
    & div:nth-child(3) {
      font-size: 3rem;
    }
    & div:nth-child(5) {
      font-size: 2rem;
    }
  }
  .quotes {
    & p {
      font-size: 1.7rem;
    }
    & :nth-child(2) {
      font-size: 1.3rem;
    }
  }
  .main-content {
    & div {
      margin-top: 1rem;
    }
    & div:nth-of-type(1) {
      font-size: 1.3rem;
    }
    & .name {
      font-size: 2.3rem;
      margin-top: 2rem;
    }
    & :nth-child(5) {
      width: 3rem;
      margin-top: 3vh;
    }
    & :nth-child(8) {
      width: 5rem;
    }
  }
  .tnp {
    & .main-title {
      font-size: 3rem;
      margin-bottom: 3vh;
    }
  }
  .expression {
    & .title {
      font-size: 3rem;
      margin-bottom: 3vh;
    }
  }
  .closing {
    & .box {
      & div:nth-child(2) {
        font-size: 3rem;
        margin: 1.5rem 0;
      }
      & div:nth-child(4) {
        font-size: 1.5rem;
      }
    }
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0); /* Start and end at normal position */
  }
  50% {
    transform: translateY(
      -0.2rem
    ); /* Move upward by 20 pixels at the midpoint */
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg); /* 1turn can also be used */
  }
}

/* end media query */

/* transition */
/* slide top */
.slide-top-hidden {
  transform: translateY(100px);
  opacity: 0;
  transition: all 2s;
}
.slide-top-show {
  transform: translateY(0);
  opacity: 1;
}
/* slide right */
.slide-right-hidden {
  transform: translateX(-100px);
  transition: all 2s;
  opacity: 0;
}
.slide-right-show {
  transform: translateX(0);
  opacity: 1;
}
/* slide left */
.slide-left-hidden {
  transition: all 2s;
  transform: translateX(100px);
  opacity: 0;
}
.slide-left-show {
  transform: translateX(0);
  opacity: 1;
}
/* tracking in contract */
.tracking-in-contract-hidden {
  transition: all 3s;
  opacity: 0;
}
.tracking-in-contract-show {
  opacity: 1;
}

@keyframes pulsate-bck {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}
