/* ==========================================================================
   Remodal's default mobile first theme
   ========================================================================== */

/* Default theme styles for the background */

.remodal-bg.remodal-is-opening,
.remodal-bg.remodal-is-opened {
  filter: blur(6px);
}

/* Default theme styles of the overlay */

.remodal-overlay {
  background: rgba(0,0,0,.3);
}

.remodal-overlay.remodal-is-opening,
.remodal-overlay.remodal-is-closing {
  animation-duration: 0.3s;
  animation-fill-mode: forwards;
}

.remodal-overlay.remodal-is-opening {
  animation-name: remodal-olay-opening-keyframes;
}

.remodal-overlay.remodal-is-closing {
  animation-name: remodal-olay-closing-keyframes;
}

/* Default theme styles of the wrapper */


/* Default theme styles of the modal dialog */

.remodal {
  box-sizing: border-box;
  width: 100%;
  transform: translate3d(0, 0, 0);
  color: rgba(30,25,29,1);
  text-align: center;
}
.remodal > div.container { background: rgba(255,255,255,1); box-shadow: 0 0 1rem rgba(0,0,0,.18); border-radius: 1rem; float: left; padding: 2rem; }

.remodal.remodal-is-opening,
.remodal.remodal-is-closing {
  animation-duration: 0.4s;
  animation-fill-mode: forwards;
}

.remodal.remodal-is-opening {
  animation-name: remodal-opening-keyframes;
}

.remodal.remodal-is-closing {
  animation-name: remodal-closing-keyframes;
}

/* Vertical align of the modal dialog */

.remodal,
.remodal-wrapper:after {
  vertical-align: middle;
}

/* Close button */

.close {
  position: fixed;
  top: 1rem;
  right: 1rem;

  display: block;
  overflow: visible;

  width: 2.4rem;
  height: 2.4rem;
  margin: 0;
  padding: 0;
  font-size: 2.4rem;

  cursor: pointer;
  transition: .2s;
  text-decoration: none;

  color: rgba(30,25,29,1);
  border: 0;
  outline: 0;
  background: transparent;
}
.close > i {
  vertical-align: top;
}
.remodal > div.container {
  max-height: 90vh;
  margin-bottom: 5rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.remodal > div.container > i {
  font-size: 5rem;
  padding-bottom: 2rem;
  color: rgba(200,200,200,1);
}

.remodal > div.container > div.content a {
  text-decoration: underline;
}
/* Dialog buttons */
.remodal > div.container > div.content > .button {
  font-family: house-script, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 3.8rem;
  transition: .2s;
  display: block;
}

.remodal > div.container > div.content > .restore-item {
  font-family: house-script, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 3.8rem;
  transition: .2s;
  display: block;
}

.remodal > div.container > div.content > .button:hover {
  color: rgba(200,200,200,1); transition: .2s;
}

.remodal > div.container > div.actions {
  margin: 2rem 0;
}
.remodal > div.container > div.actions > button.button {
  font-family: house-script, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.8rem;
  clear: both;
  display: inline-block;
  overflow: visible;
  min-width: 110px;
  margin: 0;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  border: 0;
  outline: 0;
  background: rgba(240,240,240,1);
  transition: .2s;
}

/* Remove inner padding and border in Firefox 4+ for the button tag. */

.remodal > div.container > div.actions > button.button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

.remodal > div.container > div.content img { display: block; margin-bottom: 20px; }
.remodal > div.container > div.content p { font-weight: 600; font-family: 'Avenir'; text-transform: uppercase; font-size: 16px; color: #210784; }



/* Keyframes
   ========================================================================== */

@keyframes remodal-opening-keyframes {
  from {transform: scale(.3); opacity: 0; }
  to {transform: scale(1); opacity: 1; }
}

@keyframes remodal-closing-keyframes {
  from {transform: translate3d(0, 0, 0); opacity: 1; }
  to {transform: translate3d(0, 30rem, 0); opacity: 0; }
}

@keyframes remodal-olay-opening-keyframes {
  from {opacity: 0; }
  to {opacity: 1;
  }
}

@keyframes remodal-olay-closing-keyframes {
  from {opacity: 1; }
  to {opacity: 0; }
}

/* Media queries
   ========================================================================== */

@media only screen and (min-width: 641px) {
  .remodal {
    width: auto; 
    max-width: 60rem;
    min-width: 45rem;
  }
}


@media only screen and (max-width: 768px) {

  @keyframes remodal-opening-keyframes {
    from {transform: scale(1.05) translateY(100vh); opacity: 0; }
    to {transform: none; opacity: 1; }
  }
}

/* IE8
   ========================================================================== */

.lt-ie9 .remodal-overlay {
  background: #2b2e38;
}

.lt-ie9 .remodal {
  width: 700px;
}
