body {
  margin: 0 auto;
  line-height: 1;
}

.main-table-aligner {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media screen and (min-width:0\0) {
  /* 
  IE9 and IE10 rule sets go here
  in IE 10 justify-content: center; moves content to bottom
   */
  .main-table-aligner {
    justify-content: inherit;
  }
}

.main-table-border {
  margin: auto;
  padding: 20px;
  max-width: 770px;
}

.main-table {
  max-height: 87vh;
  /* ToDo: calc(100vh - 40px); nice on device emu, but not on phone */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* iPhone scroll stuck fix */
    
}

.cover-holder {
  z-index: 99;
  height: 100% !important;
  width: 100%;
}

.cover-intro span {
  display: table;
  margin: 0 auto;
  height: 80px;
  width: 80px;
  border-radius: 50%;
  background: rgba(241, 128, 84, 0.5);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.cover-intro a {
  float: left;
  display: block;
  height: 70px;
  width: 70px;
  line-height: 70px;
  border-radius: 50%;
  margin: 5px;
  background: #fa9f82;
  background: -webkit-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  background: -moz-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  background: -o-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  background: -ms-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  background: -khtml-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  text-align: center;
  color: #fff;
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  -moz-transition: 500ms ease-in;
  -o-transition: 500ms ease-in;
  -webkit-transition: 500ms ease-in;
  -ms-transition: 500ms ease-in;
  transition: 500ms ease-in;
}

.names {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.name-and {
  font-size: 6rem;
}

.names {
  text-align: center;
}

p {
  text-align: center;
}

.text {
  text-transform: none;
  font-size: 1.2rem;
  color: #505050;
  padding-bottom: 20px;
  line-height: 24px;
  /* ToDo: review margin and padding usage, maybe add wrapper div to p */
  margin: 0px;
}

.intro_heading {
  display: none;
}

.inv_footer {
  padding-bottom: 40px;
}

a {
  text-decoration: none;
  -moz-transition: 500ms ease-in;
  -o-transition: 500ms ease-in;
  -webkit-transition: 500ms ease-in;
  -ms-transition: 500ms ease-in;
  transition: 500ms ease-in;
  color: #b2b2b2;
}

a:hover, a:focus {
  color: #505050;
  text-decoration: none;
}

.nav-link {
  font-size: 1.1rem;
  line-height: normal;
}

.selected {
  opacity: 0.5;
}

.main-table {
  background: #fafafa;
}

.icon {
  width: 100%;
  text-align: center;
}

#rsvp_thanks {
  min-height: 33vh;
}

/*--------------------------
-- COUNTER
----------------------------*/
#countdown-wrap {
  float: left;
  width: 100%;
  margin: 0 0 20px 0;
  padding: 20px 0 0 0;
  border-top: 4px double rgba(0, 0, 0, 0.05);
}

#countdown {
  margin: 0 auto;
  display: table;
  list-style: none;
  padding: 0px;
}

.timeblockouter {
  float: left;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fafafa;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-right: 1em;
}

.timeblockouter:last-child {
  margin-right: 0;
}

.timeblock {
  float: left;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 10px;
  text-align: center;
  background: #fa9f82;
  background: -webkit-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  background: -moz-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  background: -o-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  background: -ms-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  background: -khtml-linear-gradient(top, #fa9f82 0%, #f18054 100%);
}

.number {
  display: block;
  line-height: 26px;
  margin: 20px 0 0 0;
  font-size: 1.4em;
  color: #fff;
}

.title {
  display: block;
  line-height: 14px;
  font-size: 0.9em;
  color: #fff;
  font-weight: 300;
}


@media screen and (max-width:625px) {
  .timeblockouter {
    width: 75px;
    height: 75px;
    margin: 0px;
  }
  .timeblock {
    width: 60px;
    height: 60px;
    margin: 7px;
  }    
  .number {
    line-height: 18px;
    font-size: 1.05em;
    margin: 15px 0 0 0; 
  }
  .title {
    line-height: 10px;
    font-size: 0.56rem;
  }
}

@media screen and (max-width:425px) {
  .timeblockouter {
    width: 50px;
    height: 50px;
    margin: 0px;
  }
  .timeblock {
    width: 40px;
    height: 40px;
    margin: 5px;
  }    
  .number {
    line-height: 13px;
    font-size: 0.7em;
    margin: 10px 0 0 0; 
  }
  .title {
    line-height: 7px;
    font-size: 0.37rem;
  }
}

/* ------------------------------------------------------------------------------------
--  ARROWS 
------------------------------------------------------------------------------------ */
#rightButton, #leftButton {
  position: absolute;
  width: 50px;
  height: 100%;
  z-index: 10;
}

#rightButton span, #leftButton span {
  position: absolute;
  top: 50%;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  background: rgba(241, 128, 84, 0.5);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

#rightButton span:hover, #leftButton span:hover {
  background: rgba(241, 128, 84, 0.8);
}

#rightButton a, #leftButton a {
  float: left;
  margin: 5px;
  display: block;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background: #fa9f82;
  background: -webkit-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  background: -moz-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  background: -o-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  background: -ms-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  background: -khtml-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  text-align: center;
  line-height: 40px;
  color: #fff;
  font-size: 16px;
  -moz-transition: 500ms ease-in;
  -o-transition: 500ms ease-in;
  -webkit-transition: 500ms ease-in;
  -ms-transition: 500ms ease-in;
  transition: 500ms ease-in;
}

#rightButton {
  right: 60px;
}

#rightButton a {
  right: 0;
}

#leftButton {
  left: 60px;
}

#leftButton a {
  left: 0;
}

@media screen and (max-width:975px) {
  #rightButton {
    right: 0px;
  }
  #leftButton {
    left: 0px;
  }
}

/* ------------------------------------------------------------------------------------
--  BUTTONS 
------------------------------------------------------------------------------------ */
#submit-wrap {
  display: table;
  margin: 0 auto;
  padding: 2px;
  background: rgba(241, 128, 84, 0.5);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

#submit {
  padding: 0.7em 1.5em;
  border-radius: 0;
  cursor: pointer;
  -webkit-appearance: none;
  background: #fa9f82;
  background: -webkit-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  background: -moz-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  background: -o-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  background: -ms-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  background: -khtml-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-family: 'Quattrocento', serif;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.75em;
  letter-spacing: 0.1em;
  -moz-transition: 500ms ease-in;
  -o-transition: 500ms ease-in;
  -webkit-transition: 500ms ease-in;
  -ms-transition: 500ms ease-in;
  transition: 500ms ease-in;
}

.maplink {
  display: table;
  margin: 0px auto 0 auto;
  position: relative;
  z-index: 1;
}

.maplink-wrap {
  float: left;
  padding: 4px;
  background: rgba(241, 128, 84, 0.5);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.maplink a {
  float: left;
  height: 36px;
  line-height: 36px;
  padding: 0 1.7em;
  display: inline-block;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.75em;
  letter-spacing: 0.1em;
  font-weight: 700;
  background: #fa9f82;
  background: -webkit-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  background: -moz-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  background: -o-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  background: -ms-linear-gradient(top, #fa9f82 0%, #f18054 100%);
  background: -khtml-linear-gradient(top, #fa9f82 0%, #f18054 100%);
}

/* ------------------------------------------------------------------------------------ 
-- Demo
------------------------------------------------------------------------------------*/
.demo_header {
  text-align: center;
  padding: 10px;
  color: #ffffff;
  background-color: #000000;
  z-index: 100;
  position: absolute;
  width: 100%;
  opacity: 0.7;
  top: 0px;
}

.demo_header a {
  text-decoration: underline;
  -moz-transition: 500ms ease-in;
  -o-transition: 500ms ease-in;
  -webkit-transition: 500ms ease-in;
  -ms-transition: 500ms ease-in;
  transition: 500ms ease-in;
  color: rgb(248, 227, 240);
  margin: 0px 7px 5px 7px;
  white-space: nowrap;
  display: inline-block;
}

.demo_header a:hover {
  color: rgb(238, 72, 127);
}

@media print {
  @page {
    margin: 0px;
  }
  @page :left {
    margin-left: 10px;
  }
  @page :right {
    margin-right: 10px;
  }
  .cover-holder {
    width: 100vw;
    height: 100vh !important;
    page-break-after: always;
    break-after: page;
    page-break-before: always;
    break-before: page;
  }
  .main-table-aligner {
    width: 100vw;
    height: 100vh;
    page-break-after: always;
    break-after: page;
  }
  .main-table-border {
    margin: 0px;
    max-width: initial;
    height: 100%;
  }
  .main-table {
    height: 100%;
    max-height: initial;
  }
  .main-table-inner {
    height: 100%;
  }
  .content-border {
    height: 100%;
  }
  .content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .demo_header, #open-button, .navButton, .maplink, .nav_row {
    display: none;
  }
  .nav_row {
    display: none !important;
  }
  html {
    font-size: 32px;
  }
  .text {
    padding-bottom: 60px;
    line-height: 72px;
    margin: 0px;
  }
  .names {
    flex-direction: column !important;
    margin-bottom: 60px;
  }
  .intro_middle {
    padding-top: 36px;
  }
  .print-hide {
    display: none;
  }
}

/* ------------------------------------------------------------------------------------ 
-- Save the date
------------------------------------------------------------------------------------*/
.ascensorBuilding-save-the-date {  
    position: absolute;
    overflow: hidden;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}
.floor-save-the-date {  
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}