body {
  margin:0;
  padding-bottom: 36px;
}

header {
  text-align: center;
  position: absolute;
  top: 0;
  width: 100%;
  z-index:1;
}

header #title {
  margin-top: 18px;
}

header a {
  text-decoration: none;
  color: #ffffff;
  font-family: 'Josefin Sans', 'Arial', 'Helvetica', sans-serif;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-top: 24px;
  letter-spacing: 1px;
}

nav {
  display: flex;
  justify-content: center;
}

.mobile-nav {
  position: absolute;
  display: none;
  top: 8px;
  left: 8px;
  width: 38px;
  height: 38px;
  box-sizing: border-box;
  padding: 10px;
  z-index: 1000;
}

.mobile-nav div {
  width: 22px;
  height: 2px;
  background-color: #fff;
  position: absolute;
  left: 8px;
}

.top-bar {
  top: 10px;
}

.middle-bar {
  top: 17px;
}

.bottom-bar {
  top: 24px;
}

nav a {
  font-family: 'Google Sans', 'Arial', 'Helvetica', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  margin: 8px;
  letter-spacing: 1.6px;
}

nav a:hover {
  color: rgba(255,255,255,1);
  text-decoration: underline;
}

#aspect-ratio-box {
  display:block;
  position:relative;
  left:0;
  top:0;
  width: 100%;
  padding-top: 35%;
  overflow: hidden;
}

#photos {
  display:block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.photo {
  -webkit-transition: opacity 1s ease-in-out;
  transition: opacity 1s ease-in-out;
  opacity: 0;
  position:absolute;
  left: 0;
  width: 100%;
  margin-top:-17.5%
}

#shade {
  position:absolute;
  display:block;
  left: 0;
  top: 0;
  width:100%;
  height:100%;
  background: rgba(28,28,28,0.35);
  z-index:0;
  mix-blend-mode: darken;
}

#text {
  position:absolute;
  text-decoration: none;
  color: #eee;
  font-family: 'Josefin Sans', 'Arial', 'Helvetica', sans-serif;
  -webkit-font-smoothing: antialiased;
  top: 40%;
  width: 100%;
  text-align: center;
  font-weight: 600;
}

#date {
  font-size: 60px;
}

#place {
  font-size: 24px;
  margin-top: 12px;
}

#nav-circles {
  display: flex;
  position: absolute;
  bottom: 0;
  left: 0;
  width:100%;
  margin-bottom: 24px;
  box-sizing: content-box;
  text-align: center;
  justify-content: center;
}

.circle {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  transition: color 0.25s ease-in-out;
  border-width: 2px;
  border-style: solid;
  border-radius: 50%;
  width: 5px;
  height: 5px;
  z-index: 0;
  margin: 6px;
}

.circle.active {
  color: rgba(255,255,255, 0.7);
  background: rgba(255,255,255, 1);
}

.section {
  text-align: center;
  color: #1c1c1c;
  margin-bottom: 36px;
}

.section p {
  line-height: 1.4em;
  font-family: 'Google Sans', 'Arial', 'Helvetica', sans-serif;
  font-size: 14px;
  max-width: 350px;
  width: 60%;
  margin: auto;
  margin-bottom: 12px;
}

.section img {
  margin-top: 36px;
  width: 60vw;
  height: 60vw;
  max-width: 300px;
  max-height: 300px;
}

.section a {
  color: #845f6f;
}

.section a:hover {
  color: #a5788c;
}


h1 {
  text-decoration: none;
  font-family: 'Josefin Sans', 'Arial', 'Helvetica', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
  line-height: 1.2em;
  letter-spacing: 0px;
  font-size: 36px;
  margin-top: 32px;
  margin-bottom: 8px;
  text-rendering: optimizeLegibility;
}

h3 {
  text-decoration: none;
  font-family: 'Google Sans', 'Arial', 'Helvetica', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-weight: 500;
  letter-spacing: 0px;
  font-size: 18px;
  margin-top: 8px;
  margin-bottom: 8px;
  text-rendering: optimizeLegibility;
}

#overlay-nav {
  display: none;
  flex-flow: column;
  justify-content: center;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(203, 146, 134, .97);
}

#rsvpContainer {
  position: relative;
}

.rsvpDone {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
}

.rsvpDone h3 {
  margin: auto;
  max-width: 250px;
}

form {
  max-width: 250px;
  width: 60%;
  margin: auto;
}

.section .rsvp {
  margin: 0;
  margin-top: 4px;
  margin-bottom: 2px;
  font-size: 14px;
  text-align: left;
}

.section h3.rsvp {
  margin-top: 12px;
}

input[type=email], input[type=text], textarea {
  margin-bottom: 8px;
  font-family: 'Google Sans', 'Arial', 'Helvetica', sans-serif;
  text-align: left;
  background: rgba(0, 0, 0, 0);
  width: 100%;
  padding: 4px;
  border-style: none;
  box-shadow: 0 2px 2px 0 rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.08);
  transition: box-shadow 200ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

input[type=email]:hover, input[type=text]:hover, textarea:hover {
  box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.08);
}

input[type=email]:focus, input[type=text]:focus, textarea:focus {
  box-shadow: 0 2px 2px 0 rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.08);
}

.rsvp label {
  line-height: 1.4em;
  font-family: 'Google Sans', 'Arial', 'Helvetica', sans-serif;
  font-size: 14px;
}

.radioRow {
  display: flex;
  align-items: center;
}

#guests-options {
  display: flex;
  justify-content: space-around;
}

#guests-section {
  visibility: hidden;
  transition: opacity .28s ease, max-height .28s ease .14s;
  opacity: 0;
  max-height: 0;
}

#guests-section.active {
  visibility: visible;
  transition: opacity .28s ease .14s, max-height .28s ease;
  opacity: 1;
  max-height: 100px;
}

.radioItem {
  display: flex;
  flex-flow: column;
  align-items: center;
}

.radioItem label {
  font-size: 16px;
}

.radioOuter {
  position: relative;
  display: inline-block;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  border: solid 2px;
  border-color: rgba(0,0,0,0.54);
  margin: 4px;
  margin-right: 8px;
}

.radioInner {
  display: block;
  transition: transform ease .28s;
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  color: #845f6f;
  border: 5px solid;
  transform: translateX(-50%) translateY(-50%) scale(0);
}

.selected .radioInner {
  transform: translateX(-50%) translateY(-50%) scale(1);
}

.selected .radioOuter {
  border-color: #845f6f;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

#rsvp-button-container {
  position: relative;
  margin: auto;
  margin-top: 16px;
}

#rsvp-button {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  padding-top: 16px;
  padding-bottom: 16px;
  color: rgb(255,255,255);
  font-family: 'Josefin Sans', 'Arial', 'Helvetica', sans-serif;
  letter-spacing: 4px;
  font-size: 14px;
  text-transform: uppercase;
  background-color: #845f6f;
  box-shadow: 0 2px 2px 0 rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.08);
  transition: box-shadow 200ms cubic-bezier(0.4, 0.0, 0.2, 1), background-color 350ms ease, opacity 200ms ease;
}

#rsvp-button:hover {
  box-shadow: 0 2px 2px 0 rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.08);
  background-color: #a5788c
}

.spinner {
  opacity: 0;
  transition: opacity 200ms ease;
  positon: absolute;
  margin: auto;
  width: 70px;
  text-align: center;
}

.spinner > div {
  width: 12px;
  height: 12px;
  background-color: #845f6f;

  border-radius: 100%;
  display: inline-block;
  -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

.spinner .bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
  0%, 80%, 100% { -webkit-transform: scale(0) }
  40% { -webkit-transform: scale(1.0) }
}

@keyframes sk-bouncedelay {
  0%, 80%, 100% { 
    -webkit-transform: scale(0);
    transform: scale(0);
  } 40% { 
    -webkit-transform: scale(1.0);
    transform: scale(1.0);
  }
}


@media screen and (max-width: 650px) {
  .mobile-nav {
    display: block;
  }
  .desktop-nav {
    display: none;
  }

  #aspect-ratio-box {
    padding-top: 56.25%
  }

  .photo {
    margin-top: -10%
  }

  #date {
    font-size:36px;
  }

  #place {
    font-size:16px;
  }

  #nav-circles {
    margin-bottom: 10px;
  }

  h1 {
    font-size: 24px;
  }

  h3 {
    font-size: 16px;
  }

  .section p {
    font-size: 12px;
    width: 75%;
  }

  .section img {
    width: 80vw;
    height: 80vw;
  }

  p.rsvp {
    margin-bottom: 4px;
    font-size: 12px;
  }

  form {
    width: 75%;
  }
}
