@import url("https://fonts.googleapis.com/css?family=Questrial");

body {
  font-family: "Questrial", sans-serif;
}

.outer {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 400px;
  width: 400px;
  margin-top: -200px;
  margin-left: -200px;
  color: #263238;
  background: #546E7A;
  background: -webkit-linear-gradient(bottom left, #546E7A 0%, #CFD8DC 100%);
  background: -moz-linear-gradient(bottom left, #546E7A 0%, #CFD8DC 100%);
  background: -o-linear-gradient(bottom left, #546E7A 0%, #CFD8DC 100%);
  background: linear-gradient(to top right, #546E7A 0%, #CFD8DC 100%);
  border-radius: 2px;
  box-shadow: 1px 2px 10px 0px rgba(0, 0, 0, 0.3);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

.counter {
  position: absolute;
  height: 40px;
  width: 130px;
  top: 180px;
  left: 135px;
  background: #FFFFFF;
  border-radius: 25px;
  box-shadow: 4px 8px 12px 0 rgba(0, 0, 0, 0.1);
}
.counter .minus {
  position: absolute;
  z-index: 10;
  width: 32px;
  height: 32px;
  top: 4px;
  left: 5px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
}
.counter .minus .line {
  position: absolute;
  height: 2px;
  width: 18px;
  left: 7px;
  top: 15px;
  background: #FF0000;
  transition: all 0.3s ease-in-out;
}
.counter .minus:hover {
  background-color: #FF0000;
}
.counter .minus:hover .line {
  background-color: #FFFFFF;
}
.counter .plus {
  position: absolute;
  z-index: 10;
  width: 32px;
  height: 32px;
  top: 4px;
  right: 5px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
}
.counter .plus .line-h, .counter .plus .line-v {
  position: absolute;
  background: #00FF00;
  transition: all 0.3s ease-in-out;
}
.counter .plus .line-h {
  height: 2px;
  width: 18px;
  left: 7px;
  top: 15px;
}
.counter .plus .line-v {
  width: 2px;
  height: 18px;
  top: 7px;
  left: 15px;
}
.counter .plus:hover {
  background-color: #00FF00;
}
.counter .plus:hover .line-h, .counter .plus:hover .line-v {
  background-color: #FFFFFF;
}
.counter .number {
  position: relative;
  width: 130px;
  height: 40px;
  font-weight: 600;
  font-size: 20px;
  line-height: 40px;
  text-align: center;
}
.counter .number span {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transform-origin: 50% 50%;
}
.counter .number span.fadeInUp {
  animation: fadeIn 0.3s ease-out 0.15s backwards;
  transform: scale(1);
  opacity: 1;
}
.counter .number span.fadeOutUp {
  animation: fadeOut 0.3s ease-in;
  transform: scale(1.4);
  opacity: 0;
}
.counter .number span.fadeInDown {
  animation: fadeOut 0.3s ease-out 0.15s reverse backwards;
  transform: scale(1);
  opacity: 1;
}
.counter .number span.fadeOutDown {
  animation: fadeIn 0.3s ease-in reverse;
  transform: scale(0.6);
  opacity: 0;
}

@keyframes fadeIn {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(1.4);
    opacity: 0;
  }
}
