* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  text-transform: capitalize;
}
body {
  background-color: rgb(16, 32, 20);
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  font-family: "Monotype Corsiva";
  perspective: 1000px;
}

ul {
  list-style: none;
}
p {
  font-size: 18px;
}

/* page fisrt */
body > main:nth-of-type(1) {
  width: 550px;
  height: 100%;
  background-color: rgb(238, 225, 172);
  position: absolute;
  left: 100px;
  border: 20px solid rgb(47, 143, 253);
  outline: 3px solid gray;
  padding: 10px;
}
body > main:nth-of-type(1) > header {
  display: grid;
  place-items: center;
  text-transform: capitalize;
  position: relative;
}
body > main:nth-of-type(1) > header > div {
  width: max-content;
  height: max-content;
  margin: 30px auto;
}
body > main:nth-of-type(1) > header > div > img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-color: gray;
  border: 4px solid aqua;
}
body > main:nth-of-type(1) > header > h3 {
  color: rgb(26, 60, 170);
  font-size: 20px;
  margin: 10px 0px;
}
body > main:nth-of-type(1) > header > ul {
  width: 100%;
  height: 50px;
  text-align: center;
  margin: 0px 0px 10px 0px;
}
body > main:nth-of-type(1) > header > ul > li {
  display: inline-block;
  width: max-content;
}
body > main:nth-of-type(1) > header > ul > li > img {
  width: 50px;
  border-radius: 50%;
  transition: all 0.4s;
}
body > main:nth-of-type(1) > header > ul > li > img:hover {
  transform: scale(1.2);
  box-shadow: 2px 1px 4px 2px black;
}
body > main:nth-of-type(1) > header > p {
  font-family: "Monotype Corsiva";
}
body > main:nth-of-type(1) > header > p::first-letter {
  font-size: 50px;
  color: rgb(26, 60, 170);
}
body > main:nth-of-type(1) > header > section {
  width: 100px;
  position: absolute;
  top: 90px;
  right: 30px;
}
body > main:nth-of-type(1) > header > section > button {
  width: max-content;
  height: max-content;
  border: 2px solid rgb(26, 60, 170);
  margin: 10px 0px;
  border-radius: 5px;
  background-color: inherit;
}
body > main:nth-of-type(1) > header > section > button > a {
  width: 120px;
  height: 40px;
  display: block;
  text-decoration: none;
  font-size: 18px;
  text-transform: capitalize;
  line-height: 40px;
  box-sizing: content-box;
  padding: 5px;
  transition: all 0.4s;
}
body > main:nth-of-type(1) > header > section > button > a:hover {
  background-color: rgb(26, 60, 170);
  color: aliceblue;
}

/* page secound */
body > main:nth-of-type(2) {
  width: 550px;
  height: 100%;
  background-color: rgb(238, 225, 172);
  border: 20px solid rgb(47, 143, 253);
  outline: 3px solid gray;
  padding: 10px;
  position: absolute;
  right: 100px;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform 2s;
  z-index: 3;
}
body > main:nth-of-type(2) > .m1front > h2 {
  width: 100%;
  text-align: center;
}
body > main:nth-of-type(2) > article {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  top: 0px;
  left: 0px;
}
.m1front {
  background-color: rgb(238, 225, 172);
}

.main2nextp {
  transform: rotateY(-180deg);
}

/* front */
body > main:nth-of-type(2) article:nth-of-type(1) > h2 {
  position: absolute;
  top: 30px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 25px;
}
body > main:nth-of-type(2) article:nth-of-type(1) > ul:nth-of-type(1) {
  width: 30px;
  height: 520px;
  position: absolute;
  bottom: 0px;
  left: 0px;
  display: grid;
  place-items: center;
}
body > main:nth-of-type(2) article:nth-of-type(1) > ul:nth-of-type(1) li {
  position: absolute;
}
body
  > main:nth-of-type(2)
  article:nth-of-type(1)
  > ul:nth-of-type(1)
  li:nth-of-type(1) {
  width: 20px;
  height: 20px;
  background-color: rgb(26, 60, 170);
  top: 30px;
  border-radius: 50%;
}
body
  > main:nth-of-type(2)
  article:nth-of-type(1)
  > ul:nth-of-type(1)
  li:nth-of-type(2) {
  width: 6px;
  height: 170px;
  background-color: rgb(26, 60, 170);
  top: 30px;
}
body
  > main:nth-of-type(2)
  article:nth-of-type(1)
  > ul:nth-of-type(1)
  li:nth-of-type(3) {
  width: 20px;
  height: 20px;
  background-color: rgb(26, 60, 170);
  top: 190px;
  border-radius: 50%;
}
body
  > main:nth-of-type(2)
  article:nth-of-type(1)
  > ul:nth-of-type(1)
  li:nth-of-type(4) {
  width: 6px;
  height: 170px;
  background-color: rgb(26, 60, 170);
  top: 190px;
}
body
  > main:nth-of-type(2)
  article:nth-of-type(1)
  > ul:nth-of-type(1)
  li:nth-of-type(5) {
  width: 20px;
  height: 20px;
  background-color: rgb(26, 60, 170);
  top: 340px;
  border-radius: 50%;
}
body
  > main:nth-of-type(2)
  article:nth-of-type(1)
  > ul:nth-of-type(1)
  li:nth-of-type(6) {
  width: 6px;
  height: 180px;
  background-color: rgb(26, 60, 170);
  top: 340px;
}
body > main:nth-of-type(2) article:nth-of-type(1) > ul:nth-of-type(2) {
  width: calc(100% - 30px);
  height: 520px;
  position: absolute;
  bottom: 0px;
  right: 0px;
}
body > main:nth-of-type(2) article:nth-of-type(1) > ul:nth-of-type(2) > li {
  margin: 30px 0px;
}
body
  > main:nth-of-type(2)
  article:nth-of-type(1)
  > ul:nth-of-type(2)
  > li
  > h3 {
  color: rgb(26, 60, 170);
}
body > main:nth-of-type(2) article:nth-of-type(1) > div {
  /* background-color: red; */
  position: absolute;
  bottom: 0px;
  right: 0px;
  cursor: pointer;
}
body > main:nth-of-type(2) article:nth-of-type(1) > div > img {
  width: 50px;
  height: 50px;
}

/* back */
.m1back {
  transform: rotateY(180deg);
}
body > main:nth-of-type(2) > .m1back > h2 {
  width: 100%;
  text-align: center;
}

body > main:nth-of-type(2) article:nth-of-type(2) > h2 {
  position: absolute;
  top: 30px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 25px;
}
body > main:nth-of-type(2) article:nth-of-type(2) > ul:nth-of-type(1) {
  width: 30px;
  height: 520px;
  position: absolute;
  bottom: 0px;
  left: 0px;
  display: grid;
  place-items: center;
}
body > main:nth-of-type(2) article:nth-of-type(2) > ul:nth-of-type(1) li {
  position: absolute;
}
body
  > main:nth-of-type(2)
  article:nth-of-type(2)
  > ul:nth-of-type(1)
  li:nth-of-type(1) {
  width: 20px;
  height: 20px;
  background-color: rgb(26, 60, 170);
  top: 30px;
  border-radius: 50%;
}
body
  > main:nth-of-type(2)
  article:nth-of-type(2)
  > ul:nth-of-type(1)
  li:nth-of-type(2) {
  width: 6px;
  height: 170px;
  background-color: rgb(26, 60, 170);
  top: 30px;
}
body
  > main:nth-of-type(2)
  article:nth-of-type(2)
  > ul:nth-of-type(1)
  li:nth-of-type(3) {
  width: 20px;
  height: 20px;
  background-color: rgb(26, 60, 170);
  top: 190px;
  border-radius: 50%;
}
body
  > main:nth-of-type(2)
  article:nth-of-type(2)
  > ul:nth-of-type(1)
  li:nth-of-type(4) {
  width: 6px;
  height: 170px;
  background-color: rgb(26, 60, 170);
  top: 190px;
}
body
  > main:nth-of-type(2)
  article:nth-of-type(2)
  > ul:nth-of-type(1)
  li:nth-of-type(5) {
  width: 20px;
  height: 20px;
  background-color: rgb(26, 60, 170);
  top: 340px;
  border-radius: 50%;
}
body
  > main:nth-of-type(2)
  article:nth-of-type(2)
  > ul:nth-of-type(1)
  li:nth-of-type(6) {
  width: 6px;
  height: 180px;
  background-color: rgb(26, 60, 170);
  top: 340px;
}
body > main:nth-of-type(2) article:nth-of-type(2) > ul:nth-of-type(2) {
  width: calc(100% - 30px);
  height: 520px;
  position: absolute;
  bottom: 0px;
  right: 0px;
}
body > main:nth-of-type(2) article:nth-of-type(2) > ul:nth-of-type(2) > li {
  margin: 30px 0px;
}
body
  > main:nth-of-type(2)
  article:nth-of-type(2)
  > ul:nth-of-type(2)
  > li
  > h3 {
  color: rgb(26, 60, 170);
}
body > main:nth-of-type(2) article:nth-of-type(2) > div {
  /* background-color: red; */
  position: absolute;
  bottom: 0px;
  left: 10px;
  cursor: pointer;
}
body > main:nth-of-type(2) article:nth-of-type(2) > div > img {
  width: 50px;
  height: 50px;
}

/* page third */
body > main:nth-of-type(3) {
  width: 550px;
  height: 100%;
  background-color: rgb(238, 225, 172);
  border: 20px solid rgb(47, 143, 253);
  outline: 3px solid gray;
  padding: 10px;
  position: absolute;
  right: 100px;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform 2s;
  z-index: 0;
}
body > main:nth-of-type(3) > article {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  top: 0px;
  left: 0px;
}
.m2front {
  background-color: rgb(238, 225, 172);
}
.m2front > section {
  width: 100%;
  height: 100%;
  background-color: inherit;
}
.m2front > section > ul {
  width: 100%;
  height: 92%;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  place-items: center;
}
.m2front > section > ul > li {
  text-align: center;
  width: 240px;
  height: 270px;
  border: 3px solid rgb(26, 60, 170);
  border-radius: 10px;
  position: relative;
}
.m2front > section > ul > li > img {
  width: 70px;
}
.m2front > section > ul > li > h2 {
  margin-bottom: 10px;
}
.m2front > section > ul > li > button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  height: max-content;
  border: none;
  background-color: inherit;
  transition: all 0.5s;
}
.m2front > section > ul > li > button > a {
  display: block;
  width: 120px;
  height: 40px;
  font-size: 20px;
  border: 2px solid rgb(26, 60, 170);
  line-height: 40px;
  padding: 5px;
  box-sizing: content-box;
  text-decoration: none;
  color: black;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.5s;
}
.m2front > section > ul > li > button :hover {
  background-color: rgb(26, 60, 170);
  color: white;
}
.m2front > button {
  position: absolute;
  bottom: 0px;
  right: 0px;
  border: none;
  background-color: inherit;
  cursor: pointer;
}
.m2front > button > img {
  width: 50px;
}
.m2back {
  background-color: inherit;
  transform: rotateY(180deg);
}
.m2back > section {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto auto;
  padding: 20px;
}
.m2back > section > h2 {
  text-align: center;
  width: 100%;
}
.m2back > section > ul {
  height: 50%;
  display: grid;
  grid-template-columns: auto auto auto auto;
  grid-template-rows: auto auto;
  text-align: center;
  gap: 20px;
}
.m2back > section > ul > li {
  border: 2px solid rgb(26, 60, 170);
  border-radius: 5px;
  margin-top: 10px;
  transition: all 2s;
}
.m2back > section > ul > li:hover {
  transform: scale(1.2);
  box-shadow: 4px 5px 4px 2px black;
  transition: all 0.5s;
}
.m2back > section > ul > li > img {
  width: 50px;
}
.m2back > button {
  border: none;
  background-color: inherit;
  position: absolute;
  bottom: 0px;
  left: 10px;
  cursor: pointer;
}
.m2back > button > img {
  width: 50px;
}
body > main:nth-of-type(4) {
  width: 550px;
  height: 100%;
  background-color: rgb(238, 225, 172);
  border: 20px solid rgb(47, 143, 253);
  outline: 3px solid gray;
  padding: 10px;
  position: absolute;
  right: 100px;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform 2s;
  z-index: -2;
}
body > main:nth-of-type(4) > article {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  top: 0px;
  left: 0px;
}
.m3front {
  background-color: rgb(238, 225, 172);
  display: grid;
  place-items: center;
  padding: 10px;
}
.m3front > section:nth-of-type(1) {
  width: 90%;
  height: 280px;
  border: 4px solid rgb(26, 60, 170);
  border-radius: 10px;
}
.m3front > section:nth-of-type(1) > img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background-color: gray;
}
.m3front > section:nth-of-type(2) > h3 {
  margin: 20px;
  font-size: 20px;
}
.m3front > section:nth-of-type(2) > button {
  width: max-content;
  height: max-content;
  background-color: rgb(238, 225, 172);
  border: 2px solid rgb(26, 60, 170);
  margin: 10px;
  border-radius: 10px;
}
.m3front > section:nth-of-type(2) > button :hover {
  background-color: rgb(26, 60, 170);
  color: white;
}
.m3front > section:nth-of-type(2) > button > a {
  width: 130px;
  height: 40px;
  display: block;
  color: black;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 5px;
  line-height: 40px;
  box-sizing: content-box;
  transition: all 0.5s;
  font-weight: 500;
}
.m3front > button {
  position: absolute;
  bottom: 0px;
  right: 0px;
  background-color: inherit;
  border: none;
  cursor: pointer;
}
.m3front > button > img {
  width: 50px;
}
.m3back {
  transform: rotateY(180deg);
}
.m3back > form {
  width: 100%;
  height: 500px;
  background: rgb(238, 225, 172);
}
.m3back > form > input {
  width: 95%;
  height: 60px;
  margin: 10px 2.5%;
  border: solid 3px rgb(26, 60, 170);
  padding: 20px;
  font-size: 18px;
  border-radius: 10px;
  background-color: inherit;
  color: black;
}
.m3back > form > textarea {
  resize: none;
  width: 95%;
  margin: 2.5%;
  height: 300px;
  padding: 20px;
  font-size: 18px;
  border: solid rgb(26, 60, 170) 3px;
  border-radius: 10px;
  background-color: inherit;
}
.m3back > form > button {
  width: 140px;
  height: 30px;
  font-size: 20px;
  padding: 10px;
  box-sizing: content-box;
  background-color: inherit;
  border: 3px solid rgb(26, 60, 170);
  border-radius: 5px;
  margin-left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  transition: all 0.5s;
}
.m3back > form > button:hover {
  background-color: rgb(26, 60, 170);
  color: white;
}
.m3back > button {
  position: absolute;
  bottom: 0px;
  left: 10px;
  border: none;
  background-color: inherit;
  cursor: pointer;
}
.m3back > button > img {
  width: 50px;
}
