body {
  margin: 0;
  background-image: linear-gradient(to bottom right, rgb(0, 255, 200) 25%, #BC70A4 65%, #BFD641 75%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

.wrap {
  height: 300px;
  width: 500px;
  margin-top: 100px;
  margin-left: 550px;
  position: relative;
}

.cube {
  width: 200px;
  height: 200px;
  position: absolute;
  transform-style: preserve-3d;
  transform: rotateX(-45deg) rotateY(0deg) rotateZ(-45deg);
  animation: cube 8s linear infinite;
  cursor: pointer;
}

.cube .side {
  position: absolute;
  width: 200px;
  height: 200px;
  box-sizing: border-box;
  padding: 100px;
  border: 1px solid rgb(156, 10, 5);
  background-color: rgba(233, 226, 204, 0.5);
}

.cube .cube-front{
  transform: rotateY(0deg) translateZ(100px);
  color: #9C0A05;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube .cube-back{
  transform: rotateY(180deg) translateZ(100px);
  color: #9C0A05;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube .cube-left{
  transform: rotateY(-90deg) translateZ(100px);
  color: #9C0A05;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube .cube-right{
  transform: rotateY(90deg) translateZ(100px);
  color: #9C0A05;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube .cube-top{
  transform: rotateX(90deg) translateZ(100px);
  color: #9C0A05;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube .cube-bottom{
  transform: rotateX(-90deg) translateZ(100px);
  color: #9C0A05;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes cube {
  0% {
    transform: rotateX(-45deg) rotateY(0deg) rotateZ(-45deg);
  }
  100% {
    transform: rotateX(-45deg) rotateY(360deg) rotateZ(-45deg);
  }
}

.cube:hover {
  animation-play-state: paused;
}

h1 {
  color: #2f3542;
  font-size: 25px;
  margin: 20px;
}




ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #9C0A05;
  position: sticky;
  top: 0;
}

li {
  float: left;
  border-right: 1px solid #bbb;
}

.right:hover {
  opacity: 0.7;
  background-color:rgb(0, 255, 200);
}

.right:active {
  background-color: pink;
}

li a {
  display: block;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  text-align: center;
  padding: 14px 16px;
}

a:hover {
  background-color: white;
  color: #9C0A05;
  transition-duration: 0.5s;
  opacity: 0.7;
}

a:active {
  background-color: rgb(0, 255, 200);
  color: #9C0A05;
}

.active {
  background-color: rgb(0, 255, 200);
  color: #9C0A05;
}

@keyframes n1
{
  0% {font-size: 25px;}
  30% {font-size: 35px;color: rgb(221, 243, 19);}
  100% {font-size: 45px;color: #2f3542;text-shadow: 2px 2px 3px #fff;}
}

@keyframes n2
{
  0% {font-size: 25px;}
  40% {font-size: 35px;color: rgb(110, 243, 19);}
  100% {font-size: 45px;color: #2f3542;text-shadow: 2px 2px 3px #fff;}
}

@keyframes n3
{
  0% {font-size: 25px;}
  50% {font-size: 35px;color: rgb(62, 243, 19);}
  100% {font-size: 45px;color: #2f3542;text-shadow: 2px 2px 3px #fff;}
}

@keyframes n4
{
  0% {font-size: 25px;}
  60% {font-size: 35px;color: rgb(19, 243, 179);}
  100% {font-size: 45px;color: #2f3542;text-shadow: 2px 2px 3px #fff;}
}

@keyframes n5
{
  0% {font-size: 25px;}
  70% {font-size: 35px;color: rgb(19, 182, 232);}
  100% {font-size: 45px;color: #2f3542;text-shadow: 2px 2px 3px #fff;}
}

@keyframes n6
{
  0% {font-size: 25px;}
  80% {font-size: 35px;color: rgb(0, 154, 243);}
  100% {font-size: 45px;color: #2f3542;text-shadow: 2px 2px 3px #fff;}
}

#intro1 {
  animation-name: n1;
  animation-duration: 3s;
  animation-fill-mode: forwards;
  margin-left: 10px;
}

#intro2 {
  animation-name: n2;
  animation-duration: 3s;
  animation-fill-mode: forwards;
}

#intro3 {
  animation-name: n3;
  animation-duration: 3s;
  animation-fill-mode: forwards;
}

#intro4 {
  animation-name: n4;
  animation-duration: 3s;
  animation-fill-mode: forwards;
}

#intro5 {
  animation-name: n5;
  animation-duration: 3s;
  animation-fill-mode: forwards;
}

#intro6 {
  animation-name: n6;
  animation-duration: 3s;
  animation-fill-mode: forwards;
}

.flex-container {
  display: flex;
  flex-wrap: nowrap;
}

.wrap_1 {
  width: 400px;
  height: 300px;
  position: relative;
  margin: 50px;
}

.front_1, .back_1 {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  transition: .8s;
  box-shadow: 0 0 10px;
  cursor: pointer;
}

.front_1 {
  background-color: #2f3542;
  transform: perspective(800px) rotateY(0deg);
  display: flex;
  justify-content: center;
  align-items: center;
  color: aqua;
  font-size: 55px;
}

.back_1 {
  background-color: #c7ecee;
  transform: perspective(800px) rotateY(180deg);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}

.wrap_1:hover .front_1 {
  transform: perspective(800px) rotateY(-180deg);
}

.wrap_1:hover .back_1 {
  transform: perspective(800px) rotateY(0deg);
}

.smile {
  width: 100%;
  height: 350px;
  margin-top: 0;
  background: url(smile.jpg) no-repeat center;
  background-size: cover;
  position: relative;
}

.smile::before, .smile::after {
  content: "";
  border: 2px solid #e0cadf;
  position:absolute;
  top:0;
  right:0;
  left: 0;
  bottom: 0;
  margin: 15px;
  animation: borderClip 8s linear infinite;
  
}

.smile::after {
  animation-delay: -4s;
}

.smile:hover::before, .smile:hover:after {
  animation-play-state: paused;
}

.text {
  text-align: center;
  background: rgb(221, 217, 217);
  width: 550px;
  height: 400px;
  margin-left: 20px;
  margin-right: auto;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  cursor: pointer;
  margin-left: 400px;
}

@keyframes borderClip {
  0%, 100% {
    clip-path: inset(0 0 98% 0);
  }
  25% {
    clip-path: inset(0 98% 0 0);
  }
  50% {
    clip-path: inset(98% 0 0 0);
  }
  75% {
    clip-path: inset(0 0 0 98%);
  }
}

.junior {
  display: block;
  margin-left: 40px;
  margin-right: auto;
  border-radius: 0px 20px 0px 20px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.senior {
  display: block;
  margin-left: auto;
  margin-right: 40px;
  border-radius: 50%;
}

.shadow {
  content: "";
  width: 530px;
  height: 20px;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  z-index: -1;
  display: block;
  margin-left: auto;
  margin-right: 175px;
}

.w {
  display: block;
}

.dream {
  width: 300px;
  height: 120px;
  border-radius: 10px;
  margin-left: 100px;
  background: #e9eaeb;
  position: relative;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dream:hover .content1{
  clip-path: inset(0% 0% 0% 0%);
}

.content1 {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #29fcfc;
  clip-path: inset(0% 0% 0% 100%);
  transition: all .5s ease-in-out;
  cursor: pointer;
  position: absolute;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.email {
  text-decoration: none;
  color: #9C0A05;
  background-color:#29fcfc;
}

.insta {
  text-decoration: none;
  color:#9C0A05;
  background-color: pink;
}

.email:hover {
  color:#29fcfc;
  background-color: #9C0A05;
}

.insta:hover {
  background-color: palegreen;
}

.instagram {
  color:indigo;
}