@import url("https://fonts.googleapis.com/css2?family=Russo+One&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Inter&display=swap");
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
section {
  display: flex;
  width: 45%;
  padding: 20px;
  color: green;
  /* min-height: 70vh; */
}
body {
  /* background-color: #ffffff; */
  background-color: #ffffff;
  font-family: "Inter", sans-serif;
}
img {
  width: 100%;
  justify-content: center;
  border-radius: 10px;
}
.flash {
  position: relative;
  width: 15%;
  float: left;
  transition: 700ms;
}
.text {
  position: relative;
  display: flex;
  font-size: 1.25rem;
  float: left;
  margin-top: 30px;
  color: green;
  padding-bottom: 10px;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  border: solid 3px black;
  border-radius: 10px;
}
.nameP {
  font-family: "Russo One", sans-serif;
  font-size: 1.5rem;
}
.aram {
  display: grid;
  float: left;
  /* width: 100%;
  justify-content: center;
  align-items: center; */
}
.aram-photo {
  width: 60%;
  object-position: center;
  position: relative;
  height: 400px;
}
.dachev {
  display: grid;
  float: right;
}
.dachev-photo {
  width: 60%;
  object-position: center;
  position: relative;
  height: 400px;
}
.infromaciqAR {
  position: relative;
  width: 50%;
  float: left;
}
.informaciqDA {
  position: relative;
  width: 70%;
  float: right;
}
.restAR {
  position: relative;
  font-family: "Inter", sans-serif;
  margin-top: 5px;
  font-size: 2rem;
}
.restDA {
  position: relative;
  font-family: "Inter", sans-serif;
  margin-top: 5px;
  font-size: 1.75rem;
}
.school {
  opacity: 0%;
  position: relative;
  transition: 200ms;
}
.profession {
  opacity: 0%;
  position: relative;
  font-size: 1.75rem;
  transition: 300ms;
}
.class {
  opacity: 0%;
  position: relative;
  font-size: 2.5rem;
  transition: 300ms;
}
/* DACHEV UCHILISHTE */
.schoolDA:nth-child(1) {
  position: absolute;
  transform: translate(100%, 100%);
  transition: 700ms;
}
.schoolDA:nth-child(2) {
  position: absolute;
  transition: 700ms;
}
.classDA:nth-child(1) {
  position: absolute;
  transform: translate(300%, 0%);
  transition: 700ms;
}
/* DACHEV PROFESIQ */
.proDA:nth-child(1) {
  position: absolute;
  transform: translate(0%, 0%);
  transition: 700ms;
}
.proDA:nth-child(2) {
  position: absolute;
  transform: translate(0%, 0%);
  transition: 700ms;
}
/* HOVER */
.dachev:hover .flash {
  rotate: 20deg;
  transition: 500ms ease;
}
.dachev:hover .school {
  opacity: 100%;
  transition: 700ms;
}
.dachev:hover .profession {
  opacity: 100%;
  transition: 1s;
}
.dachev:hover .class {
  opacity: 100%;
  transition: 1s;
}
/* DACHEV UCHILISHTE */
.dachev:hover .schoolDA:nth-child(1) {
  transform: translate(0%, 0%);
  transition: 500ms;
}
.dachev:hover .schoolDA:nth-child(2) {
  transform: translate(33%, 0%);
  transition: 500ms;
}
/* DACHEV PROFESIQ */
.dachev:hover .proDA:nth-child(1) {
  transform: translate(175%, 0%);
  transition: 700ms;
}
.dachev:hover .proDA:nth-child(2) {
  transform: translate(200%, 0%);
  transition: 700ms;
}
/* DACHEV KLAS */
.dachev:hover .classDA:nth-child(1) {
  transform: translate(630%, -240%);
  transition: 700ms;
}

/* ARAM UCHILISHTE */
.schoolAR:nth-child(1) {
  position: absolute;
  transform: translate(100%, 100%);
  transition: 700ms;
}
.schoolAR:nth-child(2) {
  position: absolute;
  transition: 700ms;
}
.classAR:nth-child(1) {
  position: absolute;
  transform: translate(300%, 0%);
  transition: 700ms;
}
/* ARAM PROFESIQ */
.proAR:nth-child(1) {
  position: absolute;
  transform: translate(0%, 0%);
  transition: 700ms;
}
.proAR:nth-child(2) {
  position: absolute;
  transform: translate(0%, 0%);
  transition: 700ms;
}
/* HOVER */
.aram:hover .flash {
  rotate: 20deg;
  transition: 500ms ease;
}
.aram:hover .school {
  opacity: 100%;
  transition: 700ms;
}
.aram:hover .profession {
  opacity: 100%;
  transition: 1s;
}
.aram:hover .class {
  opacity: 100%;
  transition: 1s;
}
/* ARAM UCHILISHTE */
.aram:hover .schoolAR:nth-child(1) {
  transform: translate(0%, 0%);
  transition: 500ms;
}
.aram:hover .schoolAR:nth-child(2) {
  transform: translate(33%, 0%);
  transition: 500ms;
}
/* DACHEV PROFESIQ */
.aram:hover .proAR:nth-child(1) {
  transform: translate(175%, 0%);
  transition: 700ms;
}
.aram:hover .proAR:nth-child(2) {
  transform: translate(200%, 0%);
  transition: 700ms;
}
/* ARAM KLAS */
.aram:hover .classAR:nth-child(1) {
  transform: translate(630%, -250%);
  transition: 700ms;
}

@media all and (max-width: 1020px) {
  * {
    font-size: 1rem;
  }
  body {
    font-size: 1rem;
    width: 100%;
    align-items: center;
    justify-content: center;
    background-size: cover;
  }
  html {
    display: block;
  }
  section {
    width: 100%;
  }
  .aram:hover .classAR:nth-child(1) {
    transform: translate(990%, -500%);
    transition: 700ms;
  }
  .dachev:hover .classDA:nth-child(1) {
    transform: translate(990%, -500%);
    transition: 700ms;
  }
  .aram-photo {
    width: 70%;
    object-position: center;
    position: relative;
    height: 300px;
  }
  .dachev-photo {
    width: 70%;
    object-position: center;
    position: relative;
    height: 300px;
  }
}
