@import url("https://fonts.googleapis.com/css?family=Roboto:300&display=swap");
body {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #333;
  flex-wrap: wrap;
}

.modal {
  width: 275px;
  height: 0;
  background: #fff;
  border-radius: 5px;
  position: relative;
  padding: 15px;
  overflow: hidden;
  transition: 0.1s;
  opacity: 0;
}
.modal--open {
  overflow: visible;
  height: 280px;
  opacity: 1;
}
.modal__icon {
  position: absolute;
  background: #15bc74;
  border-radius: 50%;
  color: #fff;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px #fff solid;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  opacity: 0;
  transition: 0.5s;
}
.modal__icon--visible {
  top: -32px;
  opacity: 1;
}
.modal__icon--error {
  background: #e44043;
}
.modal__title {
  font-weight: 300;
  color: #333;
  text-align: center;
  margin-top: 70px;
  font-family: "Roboto";
  font-size: 22px;
  opacity: 0;
  -webkit-animation: fadeUp 0.1s linear alternate;
          animation: fadeUp 0.1s linear alternate;
  -webkit-animation-delay: 0.1s;
          animation-delay: 0.1s;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
}
.modal__text {
  font-weight: 300;
  color: black;//#696969;
  text-align: center;
  margin-top: 40px;
  font-family: "Roboto";
  font-size: 18px;
  line-height: 1.5;
  display: block;
  -webkit-animation: fadeUp 0.1s linear alternate;
          animation: fadeUp 0.1s linear alternate;
  opacity: 0;
  -webkit-animation-delay: 0.1s;
          animation-delay: 0.1s;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
}

.button {
  outline: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: none;
  width: 100%;
  margin-top: 40px;
  background: #15bc74;
  padding: 10px 25px;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  opacity: 0;
  -webkit-animation: fadeUp 0.1s linear alternate;
          animation: fadeUp 0.1s linear alternate;
  -webkit-animation-delay: 0.1s;
          animation-delay: 0.1s;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
}
.button:hover {
  background: #108e58;
}
.button--error {
  background: #e44043;
}
.button--error:hover {
  background: #d31e21;
}
.button__label {
  color: #fff;
  font-family: "Roboto";
  font-weight: 300;
  font-size: 18px;
}

@-webkit-keyframes fadeUp {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeUp {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}