
.modal {
  -webkit-transition: all 250ms ease;
  -moz-transition: all 250ms ease;
  -ms-transition: all 250ms ease;
  -o-transition: all 250ms ease;
  transition: all 250ms ease;
  box-sizing: border-box;
  padding: 18px;
  background-color: #8E44AD;
  color:#fff;
  border-radius: 3px;
  width: 50%;
  display: none;
  opacity: 0;
  margin-top: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.5);
  z-index: 9999;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

.modal.visible {
  opacity: 1;
  margin-top: -100px;
  transform: translate(-50%, -50%) scale(1);
}

.modal .close-modal {
  position: absolute;
  top: 0;
  right: 0;
  padding: 18px;
  cursor: pointer;
  color: #ccc;
}

.modal .close-modal:after {
  content: '\2716';
  display: inline-block;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 20px;
}

.modal .close-modal:focus { outline: none; }

#modal-background {
  -webkit-transition: all 250ms ease;
  -moz-transition: all 250ms ease;
  -ms-transition: all 250ms ease;
  -o-transition: all 250ms ease;
  transition: all 250ms ease;
  display: none;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  z-index: 9998;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#modal-background.visible { opacity: 1; }
