@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  --yellow: #ffdb57;
  --blue: #00509d;
  --blue-button: #37a5ff;
  --white: #fff;
  --light-white: #aaa;
  --black: black;
  --light-bg: rgb(24, 23, 23);
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
* {
  font-family: "Vazirmatn", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  transition: 0.2s linear;
  text-transform: capitalize;
}

*::selection {
  background-color: var(--white);
  color: var(--black);
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
}

::-webkit-scrollbar {
  height: 0.5rem;
  width: 1rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--blue-button);
  border-radius: 5rem;
}

body {
  background-color: var(--black);
}

section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--light-bg);
}

.header .flex {
  position: relatives;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .flex .logo img {
  width: 7rem;
  color: var(--white);
}

.header .flex .navbar a {
  margin-left: 3rem;
  color: var(--light-white);
  font-size: 2rem;
}

.header .flex .navbar a:hover {
  color: var(--blue-button);
  text-shadow: 0 0 1.5rem white, 0 0 3.5rem white, 0 0 5rem white,
    0 0 7rem var(--yellow), 0 0 8rem var(--yellow), 0 0 10rem var(--yellow),
    0 0 12rem var(--yellow), 0 0 15rem var(--yellow);
}

#menu-btn {
  cursor: pointer;
  color: var(--white);
  font-size: 2.5rem;
  display: none;
}

.home {
  margin-top: 6rem;
}

#countdown1,
#countdown2 {
  color: #fff;
  text-align: center;
  font-size: 4rem;
  margin-bottom: 1rem;
}

#countdown-comment1,
#countdown-comment2 {
  text-align: center;
  color: #fff;
  font-size: 2rem;
  margin-bottom: 5rem;
}

/* cards */
.card {
  overflow: visible;
  width: 250px;
  height: 400px;
  margin-bottom: 1rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

.content {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 300ms;
  box-shadow: 0px 0px 10px 1px #000000ee;
  border-radius: 5px;
}

.front,
.back {
  background-color: #151515;
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 5px;
  overflow: hidden;
}

.back {
  width: 100%;
  height: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.back::before {
  position: absolute;
  content: " ";
  display: block;
  width: 160px;
  height: 160%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--blue),
    var(--yellow),
    var(--blue),
    var(--yellow),
    transparent
  );
  animation: rotation_481 5000ms infinite linear;
}

.back-content {
  position: absolute;
  width: 99%;
  height: 99%;
  background-color: #151515;
  border-radius: 5px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.back-content img {
  width: 50%;
  height: 25%;
}

.card:hover .content {
  transform: rotateY(180deg);
}

@keyframes rotation_481 {
  0% {
    transform: rotateZ(0deg);
  }

  0% {
    transform: rotateZ(360deg);
  }
}

.front {
  transform: rotateY(180deg);
  color: white;
}

.front .front-content {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.front-content .badge {
  background-color: #00000055;
  padding: 2px 10px;
  border-radius: 10px;
  backdrop-filter: blur(2px);
  font-size: 1.4rem;
  width: fit-content;
}

.description {
  box-shadow: 0px 0px 10px 5px #00000088;
  width: 100%;
  height: 30%;
  padding: 10px;
  background-color: #00000099;
  backdrop-filter: blur(5px);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.title {
  font-size: 11px;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
}

.title p {
  width: 50%;
}

.card-footer {
  color: #ffffff88;
  margin-top: 5px;
  font-size: 8px;
}

.front .img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: var(--yellow);
  position: relative;
  filter: blur(15px);
  animation: floating 2600ms infinite linear;
}

#bottom1,
#bottom2,
#bottom3,
#bottom4 {
  background-color: var(--blue-button);
  left: 50px;
  top: 0px;
  width: 150px;
  height: 150px;
  animation-delay: -800ms;
}

#right1,
#right2,
#right3,
#right4 {
  background-color: green;
  left: 160px;
  top: -80px;
  width: 30px;
  height: 30px;
  animation-delay: -1800ms;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.front-content a {
  color: var(--blue-button);
  font-size: 1.5rem;
}
.front-content a img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.front-content a:hover {
  color: var(--yellow);
}

.firstround,
.secondround {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.thirdround {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.classround {
  text-align: center;
  font-size: 4rem;
  margin-top: 2rem;
  margin-bottom: 5rem;
  width: 100%;
  background: linear-gradient(to right, var(--blue), var(--yellow), pink);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}

.firstround {
  border-bottom: solid var(--light-bg) 0.1rem;
  padding-bottom: 2rem;
}

.secondround,
.thirdround {
  margin-top: 2rem;
}

.suggestion-details {
  text-align: center;
  padding-top: 10rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.suggestion {
  background: linear-gradient(
    to right,
    rgb(5, 5, 63),
    rgb(71, 8, 71),
    rgb(63, 14, 35)
  );
  color: white;
  padding: 10px;
  border-radius: 10px;
  margin-top: 10px;
}

.suggestion p {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.enroll-box {
  padding-bottom: 10px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
button {
  background-color: var(--blue-button);
  color: black;
  padding: 15px 30px;
  border: none;
  cursor: pointer;
  font-size: 2em;
  border-radius: 10px;
  margin: 1rem;
  width: 20rem;
  height: auto;
}

button:hover {
  background-color: #2572b1;
}

.footer {
  background-color: var(--light-bg);
  text-align: center;
  margin-top: 2rem;
}

.footer .follow a {
  margin: 0 0.3rem;
  height: 4.5rem;
  width: 4.5rem;
  line-height: 4.5rem;
  border-radius: 50%;
  font-size: 2rem;
  color: var(--white);
  background-color: var(--black);
}

.footer .follow a:hover {
  background-color: linear-gradient(to right, var(--blue), var(--yellow));
}

.footer .credit {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  padding: 2rem;
  border-top: 0.1rem solid var(--light-white);
  font-size: 2rem;
  color: var(--light-white);
}

.comment {
  color: var(--white);
  font-size: 1.5rem;
}

.logos {
  margin-bottom: 5rem;
  margin-top: 5rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.logos .logo {
  width: 10rem;
  height: 10rem;
}

/* media queries */
@media screen and (max-width: 991px) {
  html {
    font-size: 55%;
  }

  .firstround,
  .secondround {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
}

@media screen and (max-width: 768px) {
  #menu-btn {
    display: inline-block;
  }

  #menu-btn.fa-times {
    transform: rotate(180deg);
  }

  .header .flex .navbar {
    position: absolute;
    top: 99%;
    left: 0;
    right: 0;
    border-top: 0.1rem solid var(--light-white);
    border-bottom: 0.1rem solid var(--light-white);
    background-color: var(--light-bg);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  }

  .header .flex .navbar.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .header .flex .navbar a {
    display: block;
    margin: 2rem;
  }
}

@media screen and (max-width: 576px) {
  html {
    font-size: 50%;
  }
  .firstround,
  .secondround {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
}

/* about part */

.about {
  background: linear-gradient(
    to right,
    rgb(220, 223, 68),
    rgb(31, 47, 80),
    rgb(31, 47, 136)
  );

  border-radius: 20px;
  display: flex;
  flex-direction: column;
  /*justify-content: center;*/
  align-items: center;
  padding: 10rem;
}

.about img {
  width: 25rem;
  border-radius: 50%;
}

.about h1 {
  color: white;
  margin: 3rem;
  font-size: 5rem;
  text-align: center;
}

.about p {
  color: white;
  text-align: justify;
  font-size: 1.9rem;
  line-height: 2.5rem;
}
