/**
 * Material Modal CSS
 */


.modal {
  will-change: visibility, opacity;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: initial !important;
  overflow-x: hidden;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  -webkit-transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  -webkit-transition-delay: 0.5;
  transition-delay: 0.5;
}

.modal h1 {
  margin-bottom: 12px;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  padding: 6px 50px 6px 10px;
}

#modal h1 {
  color: white;
  background-color: #ED1B23;
}

#modal2 h1 {
  color: white;
  background-color: #F15A28;
}

#modal3 h1 {
  color: white;
  background-color: #D7DF22;
}

#modal4 h1 {
  color: white;
  background-color: #EC008C;
}

#modal5 h1 {
  color: white;
  background-color: #662C91;
}

#modal6 h1 {
  color: white;
  background-color: #59c7c4;
}

#modal7 h1 {
  color: white;
  background-color: #38B549;
}

#modal8 h1 {
  color: white;
  background-color: #00AEEF;
}

.modal--active {
  visibility: visible;
  opacity: 1;
}

.modal--align-top {
  -webkit-box-align: start;
  align-items: flex-start;
}

.modal__dialog {
  max-width: 600px;
  padding: 1.2rem;
}

.modal__content {
  will-change: transform, opacity;
  position: relative;
  padding: 1.5rem;
  background-clip: padding-box;
  background-color: #fff;
  overflow-y: auto;
  box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.25);
  opacity: 0;
  -webkit-transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal__content p {
  padding: 0 1em;
}

.modal__content p b {
  letter-spacing: normal;
  line-height: 20px;
  font-weight: normal;
  font-size: 16px;
  font-family: WhitneyHTF-Bold;
}

.modal__content h1 {
  max-width: 300px;
  letter-spacing: -1px;
  text-align: center;
}

modal__content p {
  padding: 0 1em;
}

.modal__content--active {
  opacity: 1;
}

.modal__close {
  z-index: 1100;
  cursor: pointer;
}

.modal__trigger {
  color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal__trigger--active {
  z-index: 99;
}

#modal__temp {
  will-change: transform, opacity;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  -webkit-transform: none;
  transform: none;
  opacity: 1;
  -webkit-transition: opacity 0.1s ease-out, -webkit-transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transition: opacity 0.1s ease-out, -webkit-transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transition: opacity 0.1s ease-out, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transition: opacity 0.1s ease-out, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.demo-btns header {
  padding: 7vh 10vw;
  background: #ffebee;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
}

.demo-btns header h1 {
  margin: 0;
  color: rgba(0, 0, 0, 0.54);
  font-weight: 300;
}

.demo-btns .info {
  padding: 3vh 10vw;
  height: 70vh;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  flex-flow: column wrap;
}

.demo-btns p {
  text-align: center;
  color: #fff;
}

.demo-btns .link {
  font-size: 20px;
}

.demo-btns .modal__trigger {
  margin-right: 3px;
}

@media (max-width: 640px) {
  .modal h1 {
    font-size: 24px;
  }

  .demo-btns .modal__trigger {
    margin-bottom: 0.8rem;
  }

  .modal__content {
    padding: 1.2rem;
  }
}

.demo-close {
  position: absolute;
  top: 0;
  right: 0;
  margin: 1.2rem;
  padding: 0.6rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  -webkit-transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  line-height: initial;
}

.demo-close svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  pointer-events: none;
  vertical-align: top;
}

.demo-close:hover {
  background: rgba(0, 0, 0, 0.6);
}