/* Ribbon Animation */
.ribbon {
  width: 30rem;
  height: auto;
  margin: 50px auto 100px;
  margin-bottom: 10px;
  position: relative;
  color: #fff;
  font: 1.8em/2em sans-serif;
  text-align: center;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  background: #30AE91;
  -webkit-animation: main 250ms;
  -moz-animation: main 250ms;
  -ms-animation: main 250ms;
  animation: main 250ms;
}

.ribbon i {
  position: absolute;
}

.ribbon i:first-child,
.ribbon i:nth-child(2) {
  position: absolute;
  left: -20px;
  bottom: -15px;
  z-index: -1;
  border: 20px solid transparent;
  border-right-color: #29f8c1;
  border-bottom-color: #249376;
  -webkit-animation: edge 500ms;
  -moz-animation: edge 500ms;
  -ms-animation: edge 500ms;
  animation: edge 500ms;
}

.ribbon i:nth-child(2) {
  left: auto;
  right: -20px;
  border-right-color: transparent;
  border-left-color: #29f8c1;
}

.ribbon i:nth-child(3),
.ribbon i:last-child {
  width: 20px;
  bottom: -15px;
  left: -60px;
  z-index: -2;
  border: 30px solid #249376;
  border-left-color: transparent;

  -webkit-animation: back 600ms;
  -moz-animation: back 600ms;
  -ms-animation: back 600ms;
  animation: back 600ms;

  -webkit-transform-origin: 100% 0;
  -moz-transform-origin: 100% 0;
  -ms-transform-origin: 100% 0;
  transform-origin: 100% 0;
}

.ribbon i:last-child {
  left: auto;
  right: -60px;
  border: 30px solid #249376;
  border-right-color: transparent;

  -webkit-transform-origin: 0 0;
  -moz-transform-origin: 0 0;
  -ms-transform-origin: 0 0;
  transform-origin: 0 0;
}

@media (min-width : 350px)
{
  .ribbon
  {
    height: 60%;
    width: 75%;
    font-size: 21px;
    padding-bottom: 4%;
  }
  .ribbon i:nth-child(3),
  .ribbon i:last-child
  {
    bottom: -20px;
  }
  .ribbon i:first-child,
  .ribbon i:nth-child(2)
  {
    bottom: -20px;
  }
}
@media (min-width : 426px)
{
  .ribbon
  {
    height: 60%;
    width: 75%;
    font-size: 23px;
  }
  .ribbon i:nth-child(3),
  .ribbon i:last-child
  {
    bottom: -20px;
  }
  .ribbon i:first-child,
  .ribbon i:nth-child(2)
  {
    bottom: -20px;
  }
}
@media (min-width : 470px)
{
  .ribbon
  {
    width: 75%;
    font-size: 27px;
  }
  .ribbon i:nth-child(3),
  .ribbon i:last-child
  {
    width: 10px;
  }
}
@media (min-width : 576px)
{
  .ribbon
  {
    width: 75%;
    font-size: 28px;
    padding-bottom: 1%;
  }
  .ribbon i:nth-child(3),
  .ribbon i:last-child
  {
    width: 10px;
  }
}
@media (min-width : 776px)
{
  .ribbon
  {
    width: 75%;
    font-size: 28px;
    padding-bottom: 1%;
  }
  .ribbon i:nth-child(3),
  .ribbon i:last-child
  {
    width: 10px;
  }
}
@media (min-width : 992px)
{
  .ribbon
  {
    width: 50%;
    font-size: 32px;
    padding-bottom: 0;
  }
  .ribbon i:nth-child(3),
  .ribbon i:last-child
  {
    width: 10px;
  }
}

/* animations */

@-webkit-keyframes main {
  0% {
    -webkit-transform: scaleX(0);
  }
  100% {
    -webkit-transform: scaleX(1);
  }
}

@-webkit-keyframes edge {
  0%,
  50% {
    -webkit-transform: scaleY(0);
  }
  100% {
    -webkit-transform: scaleY(1);
  }
}

@-webkit-keyframes back {
  0%,
  75% {
    -webkit-transform: scaleX(0);
  }
  100% {
    -webkit-transform: scaleX(1);
  }
}

@-moz-keyframes main {
  0% {
    -moz-transform: scaleX(0);
  }
  100% {
    -moz-transform: scaleX(1);
  }
}

@-moz-keyframes edge {
  0%,
  50% {
    -moz-transform: scaleY(0);
  }
  100% {
    -moz-transform: scaleY(1);
  }
}

@-moz-keyframes back {
  0%,
  75% {
    -moz-transform: scaleX(0);
  }
  100% {
    -moz-transform: scaleX(1);
  }
}

@keyframes main {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

@keyframes edge {
  0%,
  50% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(1);
  }
}

@keyframes back {
  0%,
  75% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}