/*
 * modal.css
 */

/* javascript hook classes */
/*.js-modal {}*/
/*.js-modal-window {}*/
/*.js-modal-hide {}*/


.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  position: fixed;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

.modal.modal--active {
  display: block;
}

.modal__window {
  position: relative;
  margin: 15% auto 0;
  width: 96%;
  max-width: 560px;
  border-radius: 0;
  border: 0;
  background: #fff;
  -webkit-box-shadow: 0 2px 12px rgba(0,0,0,0.5);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
  animation-name: animatetop;
  animation-duration: 0.4s
}

@keyframes animatetop {
  from {top: -300px; opacity: 0}
  to {top: 0; opacity: 1}
}

.modal__hide {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.modal__header {
  background: #330099;
  height: 100px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  padding: 16px;
  font-size: 24px;
  border-bottom: 1px solid #fff;
}

.modal__content {
  padding: 16px;
}

.modal__content p {
  margin-top: 0;
}

.modal__content .lead {
  line-height: 1.5;
}

.modal__content button {
  height: 32px;
  line-height: 32px;
  padding: 0 16px;
  background: #fff;
  margin-right: 16px;
}

.modal__content button::hover {
  background: #ccc;
}
