/* google fonts */
@import url("https://fonts.googleapis.com/css2?family=Kufam:ital,wght@0,400..900;1,400..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Harmattan:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&display=swap");

:root {
  --main-color: #2e8b57;
  --secondary-color: #f5f5dc;
  --secondary2-color: #daa520;
  --section-padding: 50px;
}

/* Start component */
.main-heading {
  text-align: center;
}
.main-heading h2 {
  text-transform: uppercase;
  font-size: 50px;
  font-weight: bold;
  margin-bottom: 40px;
  position: relative;
  text-transform: uppercase;
  font-family: "Kufam", sans-serif;
  background-color: #fce9cc;
  padding: 15px 20px;
  width: fit-content;
  text-align: center;
  margin: 0 auto 30px;
}

@media (max-width: 768px) {
  .main-heading h2 {
    font-size: 33px;
  }
}

/* End component */

/* Start global rules */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  background-color: var(--secondary-color);
}

ul {
  list-style: none;
}

.container {
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

/* small  */
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}
/* Meduim */
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}
/* large */

@media (min-width: 1200px) {
  .container {
    width: 1270px;
  }
}
/* End global rules */

/* Start Header */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: #fff;
  text-align: center;
}
.fa-book-open {
  font-size: 50px;
  color: var(--main-color);
}
header h1 {
  font-family: "Kufam", sans-serif;
  font-size: 30px;
}

.toggle-menu {
  font-size: 40px;
  color: var(--main-color);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .links {
  position: relative;
}

header ul {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #dfdfaa;
  position: absolute;
  min-width: 400px;
  left: 0;
  top: calc(100% + 15px);
  display: none;
  z-index: 1;
}
header ul::before {
  content: "";
  border: 15px solid transparent;
  border-bottom-color: #dfdfaa;
  position: absolute;
  top: -28px;
  left: 10px;
}

header .links:hover ul {
  display: block;
}

header ul li a {
  display: block;
  padding: 30px;
  font-size: 30px;
  text-decoration: none;
  color: var(--main-color);
  transition: var(--main-duration);
  -webkit-transition: var(--main-duration);
  -moz-transition: var(--main-duration);
  -ms-transition: var(--main-duration);
  -o-transition: var(--main-duration);
}

header ul li a:hover {
  padding-right: 25px;
  font-weight: bold;
}

header ul li:not(:last-child) a {
  border-bottom: 1px solid var(--secondary-color);
}

@media (max-width: 768px) {
  .fa-book-open {
    font-size: 35px;
  }
  .toggle-menu {
    font-size: 33px;
  }

  header h1 {
    font-size: 20px;
    min-width: 200px;
  }
  header ul {
    min-width: 250px;
  }

  header ul li a {
    padding: 18px;
    font-size: 25px;
  }
}

/* End Header */

/* <!-- Start About Section --> */
.about-section {
  height: 95vh;
  background-color: #2e8b57;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-section .intro-text {
  left: 50%;
  top: 50%;
  color: white;
}
.about-section h1 {
  font-family: "IBM Plex Sans Arabic", sans-serif;
}
.about-section p {
  font-size: 30px;
  line-height: 6.5rem;
  font-weight: 700;
  text-align: center;
}
.about-section p:first-of-type {
  margin-top: 80px;
}
.about-section a {
  display: block;
  width: fit-content;
  background-color: var(--secondary2-color);
  color: #fff;
  border: none;
  padding: 15px 90px;
  font-weight: bold;
  font-size: 30px;
  text-align: center;
  margin: 100px auto 0;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  border-radius: 1rem;
  -webkit-border-radius: 1rem;
  -moz-border-radius: 1rem;
  -ms-border-radius: 1rem;
  -o-border-radius: 1rem;
  box-shadow: 0 5px 5px rgb(0 0 0 /40%);
  transition: 0.2s;
  -webkit-transition: 0.2s;
  -moz-transition: 0.2s;
  -ms-transition: 0.2s;
  -o-transition: 0.2s;
  text-decoration: none;
}

.about-section a:hover {
  padding: 15px 120px;
}

@media (max-width: 750px) {
  .about-section p {
    font-size: 21px;
    line-height: 4.5rem;

  }
  .about-section p:first-of-type {
    margin-top: 50px;
  }
  .about-section a {
    padding: 10px 70px;
    font-size: 23px;
    margin: 65px auto 0;
  }
  .about-section a:hover {
    padding: 10px 100px;
  }
}

/* <!-- End AbobutSection --> */

/* Start Questions */

.questions {
  padding-top: 30px;
  padding-bottom: var(--section-padding);
}

.questions .cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: -10px;
}

.questions .box {
  min-width: 450px;
  height: 450px;
  margin-left: 20px;
}

.container {
  scroll-margin-top: 80px;
}

.box2 {
  width: 100%;
  height: calc(100% - 20px);
  transform-style: preserve-3d;
  transform-origin: right center;
  transition: 1s;
}
.box2:hover {
  transform: translateX(-100%) rotateY(-180deg);
}
.box2 .face {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 40px;
  color: white;
  padding: 10px;
  text-align: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.box2 .front {
  background-color: var(--secondary2-color);
}
.box2 .back {
  background-color: var(--main-color);
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  -ms-transform: rotateY(180deg);
  -o-transform: rotateY(180deg);
}

.cards-container:last-of-type {
  margin-bottom: -50px;
}

@media (max-width: 750px) {
  .questions .box {
    min-width: 350px;
    height: 350px;
     margin-left: 0;
  }

  .box2 .face {
    font-size: 30px;
  }
 
}

/* End Questions */

/* <!-- Start Footer --> */

.footer {
  background-color: var(--main-color);
  color: white;
  padding: 18px;
  font-size: 20px;
  text-align: center;
  font-weight: bold;
}
.footer span {
  font-weight: bold;
}

/* <!-- End Footer --> */
