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

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

.outer {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 400px;
  width: 400px;
  margin-top: -200px;
  margin-left: -200px;
  background: #CFD8DC;
  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;
}

.card {
  position: absolute;
  z-index: 0;
  width: 240px;
  height: 150px;
  top: 125px;
  left: 80px;
  background: #FFFFFF;
  box-shadow: 4px 8px 12px 0px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.5);
}
.card.active {
  pointer-events: all;
  z-index: 1;
  animation: fadeIn 0.6s ease-in-out both 0.5s;
}
.card.inactive {
  z-index: 2;
  animation: fadeOut 0.5s ease-in-out both;
}
.card .number-bg {
  position: absolute;
  width: 60px;
  height: 60px;
  top: -31px;
  right: -31px;
  background: #B2EBF2;
  transform: rotate(45deg);
}
.card .number {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 14px;
  line-height: 14px;
  font-weight: 600;
  color: #29434E;
}
.card .text {
  text-align: center;
  padding: 20px 10px;
}
.card .text .headline {
  display: block;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: #29434E;
  margin-bottom: 8px;
}
.card .text p {
  font-size: 12px;
  line-height: 17px;
  color: #455A64;
  margin: 0;
}
.card .button {
  position: absolute;
  width: 100%;
  height: 40px;
  bottom: 0;
  left: 0;
  right: 0;
  background: #B2EBF2;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  line-height: 40px;
  font-size: 24px;
  transition: all 0.3s ease-in-out;
}
.card .button:hover {
  background: #26C6DA;
}

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