body {
  margin-top: 50px;
  height: 100vh;
  background-color: #5FA3CF;
  /*display: flex;*/
}

#reload {
    position: fixed;
    right: 30px;
    top: 70px;
}


.landing {
  padding-top: 50px;
  background-color: white;
  height: 70vh;
  margin-top: 50px;
  padding-bottom: 50px;
  margin-bottom: 300px;
  border: 4px solid black;
}

#title {
  float: right;
  margin-right: 50px;
  margin-top: 100px;
}


#small {
	margin-top: 270px;
	margin-left: 0px;
	position: absolute;
}

#big {
	position: absolute;
  margin-left: 20px;
	margin-top: 247.8px;
  cursor: pointer;
}

#cry{
  margin-top: 40px;
  margin-left: 50px;
}

.scene {
  height: 1000px;
}

.container {
  position: relative;
  border: 4px solid black;
  background-color: white;
  height: 700px;
  overflow: hidden;

}

  @keyframes alternate {
  0% {opacity:1;}
  45% {opacity:1;}
  55% {opacity:0;}
  100% {opacity:0;}
  }

 @keyframes bounce{
        0%   { transform: translateY(0); }
        50%  { transform: translateY(-30px); }
        100% { transform: translateY(0); }
    }

 @keyframes bounce_opposite{
        0%   { transform: translateY(-30px); }
        50%  { transform: translateY(0); }
        100% { transform: translateY(-30px); }
    }

#lost {
  margin-bottom: 90px;
  margin-top: 80px;
}

#sad {
  margin-left: 70px;
  margin-top: 80px;
  position: absolute;
  animation-name: alternate;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-duration: 0.3s;
    animation-direction: alternate;
}

#shock {

  margin-left: 70px;
  margin-top: 80px;
}   

#adult , #three {

  position: absolute;
  margin-top: 100px;
  margin-left: 50px;

}

#where {
  margin-top: 200px;
  margin-left: 400px;
}

#cry_first {
  position: absolute;
  margin-top: 80px;
  margin-left: 70px;
}
#cry_second {
  margin-top: 80px;
  position: absolute;
  margin-left: 70px;
    animation-name: alternate;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-duration: 0.3s;
    animation-direction: alternate;
}

#secondary {
  margin-top: 80px;
  margin-left: 70px;
}

#hurt {
margin-left: 200px;
}

#no {
  margin-left: 280px;
  margin-bottom: 100px;
}

#adult {

    animation-name: alternate;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-duration: 0.3s;
    animation-direction: alternate;
}

#main {
  margin-top: 50px;
	position: absolute;
}

#side {
	position: absolute;
	margin-top: 170px;
  margin-left: 200px;
}

#where {
  margin-right: 50px;
}

#f1 
{
  margin-bottom: 40px;
  animation-name: bounce;
  animation-timing-function: linear;
  animation-duration: 0.6s;
  animation-iteration-count: infinite;
}
#f2 
{
  animation-name: bounce_opposite;
  margin-bottom: 140px;
  animation-timing-function: linear;
  animation-duration: 0.6s;
  animation-iteration-count: infinite;
}
#f2_2
{
  animation-name: bounce_opposite;
  animation-timing-function: linear;
  animation-duration: 0.6s;
  animation-iteration-count: infinite;
  margin-left: 1000px;
}
#f3 {
  animation-name: bounce;
  animation-timing-function: linear;
  animation-duration: 0.6s;
  animation-iteration-count: infinite;
}
#f4 {
  margin-bottom: 130px;
  animation-name: bounce;
  animation-timing-function: linear;
  animation-duration: 0.6s;
  animation-iteration-count: infinite;
}
#f6 {
  margin-bottom: 140px;
  animation-name: bounce_opposite;
  animation-timing-function: linear;
  animation-duration: 0.6s;
  animation-iteration-count: infinite;
}
#f5 {
  animation-name: bounce_opposite;
  animation-timing-function: linear;
  animation-duration: 0.6s;
  animation-iteration-count: infinite;
}

#click {

  margin-top: 300px;
  margin-left: 180px;
}
#text_1 {
  margin-top: 90px;
  margin-left: 30px;
}

#text_2 {
  margin-top: 70px;
  margin-left: 30px;
}

#text_3 {
  margin-top: 150px;
  margin-left: 30px;
}

#happy {

  margin-left: 400px;
  margin-top: 200px;
}

#laugh {

  margin-left: 400px;
  margin-top: 200px;
}

#finally {
  position: absolute;
  margin-top: 300px;
  margin-left: 200px;
}

#finally_2 {
  position: absolute;
  margin-top: 300px;
  margin-left: 200px;
      animation-name: alternate;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-duration: 0.3s;
    animation-direction: alternate;
}

#end {
  float: right;
  margin-right: 100px;
  margin-top: 200px;
}

.game {
  height: 770px;
  margin-top: -50px;
  margin-bottom: 100px;
  background-color: white;
  border: 4px solid black;
}

#game_title {
  height: 7%;
  margin-left: 270px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.memory-game {
  width: 640px;
  height: 640px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  perspective: 1000px;
  margin-bottom: 200px;
}

.memory-card {
  width: calc(25% - 10px);
  height: calc(33.333% - 20px);
  margin: 5px;
  position: relative;
  transform: scale(1);
  transform-style: preserve-3d;
  transition: transform .5s;
  box-shadow: 1px 1px 1px rgba(0,0,0,.3);
}

.memory-card:active {
  transform: scale(0.97);
  transition: transform .2s;
}

.memory-card.flip {
  transform: rotateY(180deg);
}

.front-face,
.back-face {
  width: 100%;
  height: 100%;
  position: absolute;
/*  border-radius: 5px;*/
  background: #E3E0DF;
  backface-visibility: hidden;
}

.front-face {
  transform: rotateY(180deg);
}
.box {
              width: 100%;
          height: 100%;
        }
        .confetti {
          width: 15px;
          height: 15px;
          background-color: #f2d74e;
          position: absolute;
          left: 50%;
          animation: confetti 5s ease-in-out -2s infinite;
          transform-origin: left top;
        }
        .confetti:nth-child(1) {
          background-color: #f2d74e; left: 10%; animation-delay: 0;
        }
        .confetti:nth-child(2) {
          background-color: #95c3de; left: 20%; animation-delay: -5s;
        }
        .confetti:nth-child(3) {
          background-color: #ff9a91; left: 30%; animation-delay: -3s;
        }
        .confetti:nth-child(4) {
          background-color: #f2d74e; left: 40%; animation-delay: -2.5s;
        }
        .confetti:nth-child(5) {
          background-color: #95c3de; left: 50%; animation-delay: -4s;
        }
        .confetti:nth-child(6) {
          background-color: #ff9a91; left: 60%; animation-delay: -6s;
        }
        .confetti:nth-child(7) {
          background-color: #f2d74e; left: 70%; animation-delay: -1.5s;
        }
        .confetti:nth-child(8) {
          background-color: #95c3de; left: 80%; animation-delay: -2s;
        }
        .confetti:nth-child(9) {
          background-color: #ff9a91; left: 90%; animation-delay: -3.5s;
        }
        .confetti:nth-child(10) {
          background-color: #f2d74e; left: 100%; animation-delay: -2.5s;
        }

        @keyframes confetti {
          0% { transform: rotateZ(15deg) rotateY(0deg) translate(0,0); }
          25% { transform: rotateZ(5deg) rotateY(360deg) translate(-5vw,20vh); }
          50% { transform: rotateZ(15deg) rotateY(720deg) translate(5vw,60vh); }
          75% { transform: rotateZ(5deg) rotateY(1080deg) translate(-10vw,80vh); }
          100% { transform: rotateZ(15deg) rotateY(1440deg) translate(10vw,110vh); }
        }