/* ==========================================================================
   Wedding Site Custom Styles (Cleaned - Only Used Rules)
   ========================================================================== */

/* Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: #000;
}

h1 {
  font-size: 4.5rem;
  color: #fff;
  margin: .5rem;
  letter-spacing: 5px;
}

h1, h2 {
  font-family: brandon-grotesque, sans-serif;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: 1.75rem;
}

h3 {
  font-family: RainierNorth300, Georgia;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 400;
  margin: .5rem;
}

h3, h4 {
  text-transform: uppercase;
}

h4 {
  font-family: brandon-grotesque, sans-serif;
  font-size: 1.125rem;
  margin: 0;
}

h6 {
  font-family: brandon-grotesque, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

p {
  color: #8c8c8c;
  font-family: proxima-nova, sans-serif;
}

strong {
  color: #333;
  font-weight: 400;
}

/* Custom Font
   ========================================================================== */

@font-face {
  font-family: RainierNorth300;
  src: url(../fonts/RainierNorth300.eot);
  src: url(../fonts/RainierNorth300.eot#iefix) format("embedded-opentype"),
       url(../fonts/RainierNorth300.woff) format("woff"),
       url(../fonts/RainierNorth300.ttf) format("truetype"),
       url(../fonts/RainierNorth300.svg#RainierNorth300) format("svg");
  font-style: normal;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

/* Pace Loading Bar
   ========================================================================== */

.pace {
  text-align: center;
  font-size: 0;
  white-space: nowrap;
  -webkit-pointer-events: none;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.pace:before {
  height: 100%;
  content: "";
}

.pace:before,
.pace > * {
  display: inline-block;
  vertical-align: middle;
}

.pace > * {
  font-size: 1rem;
  white-space: normal;
}

.pace .pace-activity {
  display: inline-block;
  position: relative;
  width: 8.4375rem;
  height: .6875rem;
  overflow: hidden;
  transition: -webkit-transform .3s cubic-bezier(.4, 0, .2, 1);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), -webkit-transform .3s cubic-bezier(.4, 0, .2, 1);
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
  -webkit-transform-origin: center right;
  transform-origin: center right;
  z-index: 2;
}

.pace .pace-activity:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #fff;
  border-radius: 2px;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transform-origin: center left;
  transform-origin: center left;
  -webkit-animation: pace-animation 1.2s cubic-bezier(.4, 0, .2, 1) infinite forwards;
  animation: pace-animation 1.2s cubic-bezier(.4, 0, .2, 1) infinite forwards;
}

@-webkit-keyframes pace-animation {
  0% {
    -webkit-transform: translate(0) scaleX(0);
    transform: translate(0) scaleX(0);
  }
  30% {
    -webkit-transform: translate(0) scaleX(1);
    transform: translate(0) scaleX(1);
  }
  80% {
    -webkit-transform: translate(100%) scaleX(0);
    transform: translate(100%) scaleX(0);
  }
  to {
    -webkit-transform: translate(100%) scaleX(0);
    transform: translate(100%) scaleX(0);
  }
}

@keyframes pace-animation {
  0% {
    -webkit-transform: translate(0) scaleX(0);
    transform: translate(0) scaleX(0);
  }
  30% {
    -webkit-transform: translate(0) scaleX(1);
    transform: translate(0) scaleX(1);
  }
  80% {
    -webkit-transform: translate(100%) scaleX(0);
    transform: translate(100%) scaleX(0);
  }
  to {
    -webkit-transform: translate(100%) scaleX(0);
    transform: translate(100%) scaleX(0);
  }
}

.pace {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  transition: visibility 0s;
}

.pace-done .pace .pace-activity:after {
  -webkit-transform: scaleY(0);
  transform: scaleY(0);
  -webkit-transform-origin: center top;
  transform-origin: center top;
}

.pace-done .pace .pace-activity {
  visibility: hidden;
  transition-delay: .6s;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
}

.pace-done body > :not(.pace),
body:after,
body:before {
  transition: opacity .4s ease-in-out;
}

body:not(.pace-done):after,
body:not(.pace-done):before,
body:not(.pace-done) > :not(.pace) {
  opacity: 0;
}

.pace-inactive .pace-progress {
  right: 0;
}

/* Base Layout
   ========================================================================== */

body, html {
  background-color: #333;
  width: 100%;
  height: 100%;
}

.row {
  position: relative;
}

.main-container {
  max-width: 1680px;
  background-color: #fff;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 100%;
  height: 100%;
}

/* Hero Section
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  height: 300px;
  height: 100vh;
}

@media screen and (min-width: 64em) {
  .hero {
    height: 600px;
    height: 100vh;
  }
}

.names {
  text-align: center;
  text-shadow: 0 0 40px rgba(0, 0, 0, .25);
  margin: 0;
}

@media screen and (max-width: 39.9375em) {
  .names {
    font-size: 2.5rem;
  }
}

.message {
  text-align: center;
  text-shadow: 0 0 40px rgba(0, 0, 0, .25);
  margin: -1rem;
}

@media screen and (max-width: 39.9375em) {
  .message {
    font-size: 1.75rem;
  }
}

.container {
  z-index: 20;
  position: relative;
  text-align: center;
}

/* Wedding Details Section
   ========================================================================== */

@media screen and (min-width: 64em) {
  .wedding {
    margin-top: 12rem;
  }
}

.wedding .columns,
.wedding h2,
.wedding h3,
.wedding h4 {
  position: relative;
  z-index: 2;
}

@media screen and (min-width: 64em) {
  .wedding h3 {
    margin-bottom: 3rem;
  }
}

@media screen and (min-width: 64em) {
  .wedding h3,
  .wedding h4 {
    color: #3d3428;
  }
}

@media screen and (min-width: 64em) {
  .wedding p {
    padding-right: 1.75rem;
  }
}

.background {
  position: relative;
}

.background .parent {
  position: absolute;
  width: 100%;
  height: 100%;
}

.background .child {
  background-color: #f8f3ed;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
}

.background .medium-5 {
  margin-bottom: 4rem;
}

@media screen and (min-width: 64em) {
  .background .medium-5 {
    margin-bottom: 14rem;
  }
}

.background h2 {
  margin: 5rem 0 2rem;
}

@media screen and (min-width: 64em) {
  .background h3 {
    margin: 5rem 0 0;
  }
}

/* Timeline Section
   ========================================================================== */

.timeline {
  padding: 3rem 0;
}

@media screen and (min-width: 64em) {
  .timeline {
    position: relative;
    padding: 0;
  }
}

@media screen and (min-width: 64em) {
  .timeline .row {
    position: relative;
    z-index: 100;
  }
}

@media screen and (min-width: 64em) {
  .timeline p {
    margin: 0;
  }
}

.timeline-background {
  background-color: #fff;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

@media screen and (max-width: 39.9375em) {
  .timeline-background {
    margin-top: 0;
  }
}

@media screen and (min-width: 64em) {
  .timeline-background {
    margin-top: -6rem;
  }
}

.timeline-background:before {
  content: '';
  background-color: #fff;
  width: 0;
  height: 100%;
  position: absolute;
  left: -3rem;
  top: 0;
  bottom: 0;
  border: 2rem solid #fff;
}

.time {
  margin-bottom: 3rem;
  text-align: center;
}

@media screen and (min-width: 64em) {
  .time {
    margin-top: -2.5rem;
  }
}

.time p {
  margin: 0;
}

@media screen and (min-width: 64em) {
  .time img {
    margin-bottom: 1.25rem;
  }
}

/* Links
   ========================================================================== */

a {
  color: #333;
}

a,
a.link {
  text-decoration: none;
}

a.link {
  position: relative;
  display: inline-block;
  color: #666;
  padding: 0 1px;
  transition: color .3s ease;
  font-weight: 700;
  font-family: proxima-nova, sans-serif;
  color: #333;
}

a.link:after,
a.link:before {
  content: '';
  position: absolute;
  background-color: #acbcb4;
  z-index: -1;
  height: 2px;
}

a.link:before {
  width: 0;
  left: 0;
  bottom: 0;
  transition: width .4s ease;
}

a.link:after {
  width: 100%;
  left: 0;
  bottom: 0;
  transition: all .6s ease;
}

a.link:hover:before {
  width: 100%;
}

a.link:hover:after {
  left: 100%;
  width: 0;
  transition: all .2s ease;
}

/* Registry Section
   ========================================================================== */

.registry {
  padding: 3rem 0;
}

@media screen and (min-width: 64em) {
  .registry {
    padding: 3rem 0;
  }
}

.registry p {
  margin: .25rem 0 2rem;
}

@media screen and (min-width: 64em) {
  .registry p {
    margin: 0 0 3rem;
  }
}

/* RSVP Button Section
   ========================================================================== */

.rsvp-button-section {
  padding: 3rem 0;
  text-align: center;
}

.rsvp-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: brandon-grotesque, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background-color: #3d3428;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.rsvp-button:hover {
  background-color: #544736;
  transform: translateY(-2px);
  color: #fff;
}

.text-center {
  text-align: center;
}

/* Maps Section
   ========================================================================== */

.maps {
  padding: 3rem 0;
}

.maps .row,
.maps .columns {
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: none;
}

.maps .map-container {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
}

.maps iframe {
  display: block;
  width: 100%;
}

/* Scroll Indicator
   ========================================================================== */

.icon-scroll,
.icon-scroll:before {
  position: absolute;
  left: 50%;
}

.icon-scroll {
  width: 25px;
  height: 40px;
  margin-left: -20px;
  margin-top: -35px;
  box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, .75);
  border-radius: 25px;
  z-index: 20;
  bottom: 2.5rem;
}

@media screen and (max-width: 39.9375em) {
  .icon-scroll {
    display: none;
  }
}

.icon-scroll:before {
  content: '';
  width: 4px;
  height: 4px;
  background: #fff;
  margin-left: -2px;
  top: 8px;
  border-radius: 4px;
  -webkit-animation-duration: 1.5s;
  animation-duration: 1.5s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-name: scroll;
  animation-name: scroll;
}

@-webkit-keyframes scroll {
  0% {
    opacity: 1;
  }
  to {
    opacity: 0;
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
  }
}

@keyframes scroll {
  0% {
    opacity: 1;
  }
  to {
    opacity: 0;
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
  }
}

/* Footer
   ========================================================================== */

footer {
  text-align: center;
}

footer p {
  padding: 4rem 0;
}

footer img,
footer p {
  display: inline-block;
}
