@import url(https://fonts.googleapis.com/css?family=Open+Sans:700,300);
.frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  margin-top: -200px;
  margin-left: -200px;
  border-radius: 2px;
  box-shadow: 4px 8px 16px 0 rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: #9D50BB;
  /* fallback for old browsers */
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #6E48AA, #9D50BB);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: #333;
  font-family: 'Open Sans', Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.center {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

.modal {
  background: #4A148C;
  color: #fff;
  padding: 20px 15px;
  border-radius: 10px;
  width: 250px;
  height: 210px;
  box-shadow: 8px 12px 8px 2px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
}
.modal.show {
  -webkit-animation: show-modal 1s 1s both;
  animation: show-modal 1s 1s both;
  opacity: 1;
}
.modal.hide {
  -webkit-animation: hide-modal 1s ease-in-out both;
  animation: hide-modal 1s ease-in-out both;
}
.modal .caution {
  position: absolute;
  top: 5px;
  left: 40px;
  width: 48px;
  height: 48px;
  fill: orangered;
}
.modal .err-title {
  display: block;
  font-size: 18px;
  line-height: 24px;
  font-weight: bold;
  margin: 15px 0;
}
.modal p {
  line-height: 1.25rem;
  margin: 0;
  padding: 0px 25px 0px 25px;
}
.modal #button {
  font-family: inherit;
  font-size: 100%;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 2.5;
  margin: 0;
  display: inline-block;
  position: relative;
  width: 280px;
  top: 20px;
  border: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  text-decoration: none;
  background: #7E57C2;
  color: #fff;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  transition: background 250ms ease-in-out,  -webkit-transform 150ms ease;
  transition: background 250ms ease-in-out,  transform 150ms ease;
  transition: background 250ms ease-in-out,  transform 150ms ease,  -webkit-transform 150ms ease;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.modal #button:hover {
  background: #512DA8;
}
.modal #button:focus {
  outline: none;
  outline-offset: -2px;
}
.modal #button:active {
  -webkit-transform: scale(0.99);
          transform: scale(0.99);
}

@-webkit-keyframes show-modal {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
    opacity: 0;
  }
  70% {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    opacity: 1;
  }
  90% {
    -webkit-transform: scale(0.95);
    transform: scale(0.95);
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes show-modal {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
    opacity: 0;
  }
  70% {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    opacity: 1;
  }
  90% {
    -webkit-transform: scale(0.95);
    transform: scale(0.95);
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }
}
@-webkit-keyframes hide-modal {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  20% {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
}
@keyframes hide-modal {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  20% {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
}