body {
  background-color: #003d68;
}

#header {
  width: 100%;
  height: 350px;
  position: absolute;
  background-image: url(stars.svg);
  background-size: 99% auto;
  background-repeat: no-repeat;
  background-position: center 1%;
}

#intro {
  position: absolute;
  width: 100%;
  top: 58px;
  left: 0px;
  right: 0px;
  font-family: 'Caveat', cursive;
  font-size: 24px;
  color: #f3f3f3;
  text-shadow:0px 0px 40px #0c0c0c;
}

#header img {
  width: 100% \9;
}

#names {
  position: absolute;
  z: 99;
  top: 65px;
  left: 0px;
  right: 0px;
  width: 786px;
}

.wave {
  background-repeat: repeat-x;
}

#wave1 {
  height: 14px;
  margin-top: 210px;
  margin-bottom: 10px;
  background-image: url(wave1.svg);
}

#wave2 {
  height: 16px
  margin-bottom: 12px;
  background-image: url(wave2.svg);
}

#wave3 {
  height: 22px;
  margin-bottom: 15px;
  background-image: url(wave3.svg);
}

#wave4 {
  height: 35px;
  background-image: url(wave4.svg);
}

#frame {
  position: absolute;
  left: 10px;
  right: 3px;
  top: 260px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
}

#topleft {
  position: absolute;
  top: 0px;
  left: 1px;
}

#topcenter {
  position: absolute;
  left: 26px;
  right: 32px;
  top: 0px;
  margin-left: auto;
  margin-right: auto;
  background-image: url(top.svg);
  background-repeat: repeat-x;
  background-size: auto 437px;
  background-position: 0 -1px;
  height: 437px;
}

#topright {
  position: absolute;
  top: 0px;
  right: 1px;
}

#bottomrow {
  position: absolute;
  width: 100%;
  bottom: 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#bottomleft {
    flex:0 0 auto;
    margin-left: 13px;
}

#bottomcenter {
    flex:1 1 auto;
    background-image: url(bottom.svg);
    background-repeat: repeat-x;
    background-position: center bottom;
    height: 433px;
}

#bottomright {
    flex:0 0 auto;
    margin-right: 18px;
}

#fill {
  position: absolute;
  left: 26px;
  right: 32px;
  top: 433px;
  bottom: 36px;
  margin-left: auto;
  margin-right: auto;
  background-color: #f6f6f5;
}

#lang_button {
  z: 99;
  position: absolute;
  top: 46px;
  right: 35px;
  width: 35px;
  height: 35px;
  text-align: right;
  vertical-align: top;
}

#lang_button button {
  width: 35px;
  height: 35px
  margin: 0px;
  padding: 0px;
  background-color: transparent;
  border: none;
  box-shadow: none;
  outline: none;
  text-align: right;
  vertical-align: top;
}

#lang_button button img {
  width: 35px;
  height: 35px;
  margin: 0px;
  padding: 0px;
}

#lang_dialog {
  font-family: 'Quicksand', sans-serif;
  font-size: 22px;
  line-height: 1.3em;
}

#lang_dialog .modal-header {
  border-bottom: none;
  padding-top: 0em;
  padding-bottom: 0em;
  vertical-align: middle;
}

#lang_dialog .modal-header button {
  padding-top: 1em;
  border: none;</b>
  box-shadow: none;
  outline: none;
}

#lang_dialog .modal-title {
  margin-top: 0.3em;
  margin-bottom: 0.2em;
  font-family: 'Caveat', cursive;
  font-size: 46px;
  line-height: 0.9em;
  color: #003d68;
}

#lang_dialog li {
  margin-top: 0.4em;
}

#lang_dialog li:first-of-type {
  margin-top: 0em;
}

#content {
  position: relative;
  margin-left: 50px;
  margin-right: 50px;
  padding-top: 55px;
  padding-bottom: 30px;
  font-family: 'Quicksand', sans-serif;
  font-size: 19px;
  line-height: 1.4em;
  min-height: 800px;
}

#content h1 {
  clear: both;
  font-family: 'Caveat', cursive;
  font-size: 46px;
  color: #003d68;
  margin-top: 0.7em;
  margin-bottom: 0.2em;
  width: 80%;
}

#content h1:first-of-type {
  margin-top: 0em;
}

#content p {
  padding-left: 0.5em;
  padding-right: 0.5em;
}

#content ul {
  padding-left: 2em;
}

#content li>ul {
  padding-left: 1em;
  margin-top: 0.4em;
  margin-bottom: 0.8em;
}

#content li {
  margin-top: 0.4em;
  font-size: 18px;
  line-height: 1.1em;
}

#content li:first-of-type {
  margin-top: 0em;
}

#content a {
  color: black;
  text-decoration: none;
  border-bottom: 1px solid black;
}

#content .container-fluid {
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0em;
  padding-right: 0em;
}

#content .container-fluid p {
  padding-left: 0em;
  padding-right: 0em;
}

#content .postscript {
  margin-top: 0.4em;
  font-family: 'Caveat', cursive;
  font-size: 30px;
  text-align: center;
}

#content #map {
  margin-left:1em;
  margin-right:1em;
  border: 3px solid #e9f2f5;
  box-shadow: 2px 2px 6px -2px rgba(136,136,136,1);
}

#content #maplink {
  display: inline-block;
  width: 100%;
  height: 100%;
  background-image: url(map.png);
  background-size: auto 155%;
  background-position: center center;
  border: none;
}

#content div .photo {
  text-align: center;
  width: 100%;
  background-image:url(photobg_topleft.svg), url(photobg_topright.svg), url(photobg_bottomleft.svg), url(photobg_bottomright.svg), url(photobg_top.svg), url(photobg_left.svg), url(photobg_right.svg), url(photobg_bottom.svg);
  background-position: left top, right top, bottom left, bottom right, 35px top, center left, center right, 35px bottom;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: 35px 35px, 35px 35px, 35px 35px, 35px 35px, calc(100% - 70px) 35px, 35px calc(100% - 70px), 35px calc(100% - 70px), calc(100% - 70px) 35px;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0.6em;
}

#content div .multiphotocol {
  position: relative;
}

#content div .topphoto {
  margin-bottom: calc(75% + 0.15em);
}

#content div .bottomphoto {
  width: calc(100% - 30px);
  position: absolute;
  bottom: 0px;
}

#content div .photo img {
  width: calc(100% - 30px);
  margin-top: 14px;
  margin-bottom: 16px;
  image-rendering: optimizeQuality;
}

#content div .photo a {
  border: none;
  text-decoration: none;
}

.ekko-lightbox .modal-content {
  border: none;
  border-radius: 0px;
  background: none;
}

.ekko-lightbox .modal-body {
  border: none;
  border-radius: 0px;
  background-image:url(photobg_topleft.svg), url(photobg_topright.svg), url(photobg_bottomleft.svg), url(photobg_bottomright.svg), url(photobg_top.svg), url(photobg_left.svg), url(photobg_right.svg), url(photobg_bottom.svg), url(photobg_fill.png);
  background-position: left top, right top, bottom left, bottom right, 35px top, center left, center right, 35px bottom, center center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: 35px 35px, 35px 35px, 35px 35px, 35px 35px, calc(100% - 70px) 35px, 35px calc(100% - 70px), 35px calc(100% - 70px), calc(100% - 70px) 35px, calc(100% - 70px) calc(100% - 70px);
  padding-top: 15px;
  padding-bottom: 23px;
}

#content .bottomback {
  margin-bottom: 1.5em;
}

#rsvp_divider {
  width: 100%;
  height: 4.5em;
  background-image: url(dividerbg.svg), url(divider.svg);
  background-size: auto 4.5em, auto 4.5em;
  background-position: center center, center center;
  background-repeat: repeat-x, no-repeat;
  border: none;
  margin-top: 2.5em;
  margin-bottom: 1.2em;
}

form label {
  font-family: 'Caveat', cursive;
  font-size: 30px;
  vertical-align: center;
}

form input, textarea, input:active, textarea:active {
  background-color: #eaf1f2;
  width: 100%;
  border-image: url(input.svg) 20 stretch stretch;
  border-image-width: 13px;
  padding-left: 7px;
  padding-right: 7px;
  font-family: 'Quicksand', sans-serif;
  font-size: 22px;
  vertical-align: center;
  box-sizing: border-box;
  box-shadow: none;
  outline: none;
}

/* Fix ugly greenish-yellow background on WebKit after form autofill. */
input:-webkit-autofill {
  background-color: #eaf1f2 !important;
}

form textarea  {
  padding-top: 5px;
  padding-bottom: 5px;
}

#rsvp_submit {
  width: 266px;
  height: 66px;
  background-image: url(button.svg);
  box-shadow: none;
  border: none;
  outline: none;
  background-color: transparent;
  font-family: 'Quicksand', sans-serif;
  font-size: 26px;
  color: #b19c48;
  line-height: 1.3em;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1em;
}

form button span:hover {
  border-bottom: 0.1em dotted #b19c48;
}
