body {
  background: #eee;
}

.container {
  position: relative;
  margin-top: 100px;/*190px;*/
}

.envelope-main {
  position: absolute;
  display: inline-block;
  height: 150px;
  width: 200px;
  background: #ffb300;
  margin: 0 auto;
  left: 0;
  right: 0;
  z-index: 0;
}

.envelope-left {
  position: absolute;
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 75px solid transparent;
  border-bottom: 75px solid transparent;
  border-left: 100px solid #ffc107;
  margin: 0 auto;
  left: -100px;
  right: 0;
  z-index: 2;
}

.envelope-right {
  position: absolute;
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 75px solid transparent;
  border-bottom: 75px solid transparent;
  border-right: 100px solid #ffc107;
  margin: 0 auto;
  left: 100px;
  right: 0;
  z-index: 2;
}

.envelope-bottom {
  position: absolute;
  display: inline-block;
  height: 75px;
  width: 200px;
  background: #ffb300;
  margin: 0 auto;
  left: 0;
  right: 0;
  z-index: 2;
  top: 75px;
}

.envelope-top {
  position: absolute;
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-top: 90px solid #f2a600;
  margin: 0 auto;
  left: 0px;
  right: 0px;
  z-index: 3;

  transform-origin: top center;
}

.transform {
  -webkit-transition: all 0.5s linear;
  -moz-transition: all 0.5s linear;
  -o-transition: all 0.5s linear;
  -ms-transition: all 0.5s linear;
  transition: all 0.5s linear;
}

.paper {
  height: 50px;
  width: 40px;
  background: white;
}

#doc {
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  position: absolute;
  display: inline-block;
  margin: 0 auto;
  left: 0;
  right: 0;
  z-index: 1;
  top: 75px;
}

.foldy {
  animation-name: foldUp;
  animation-duration: 3.5s;
  animation-iteration-count: 1;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

@keyframes foldUp {
  0% {
    transform: rotateX(0deg);
  }
  30% {
    transform: rotateX(180deg);
    z-index: 0;
  }
  70% {
    transform: rotateX(180deg);
  }
}

.gone {
  animation-name: goneLeft;
  animation-duration: 2s;
  animation-iteration-count: 1;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  animation-delay: 1s;
}

@keyframes goneLeft {
  0% {
    top: 75px;
  }
  20% {
    top: -170px;
  }
  30% {
    top: -170px;
    left: 0px;
  }
  50% {
    top: -170px;
    left: -200px;
  }
  60% {
    top: -170px;
  }
  100% {
    top: -170px;
    left: 200%;
  }
}

button {
  position: relative;
  display: block;
  padding: 14px 20px;/*16px 32px;*/
  text-decoration: none;
  font-size: 16px;
  transition-duration: 0.4s;
  cursor: pointer;
  background-color: #eee;
  color: black;
  border: 2px solid #ffc107;
  margin: 0 auto;
  left: 0px;
  right: 0px;
  top: 200px;
  transform: scale(1);
}

button:hover {
  background-color: #ffc107;
  color: white;
}

button:focus {
  outline: 0;
}

button:active {
  outline: 0;
  transform: scale(0.85);
}
