html,
body {
    overscroll-behavior-y: contain;
}

html {
  font-size: 1.74vh;
}

body {
  margin: 0 auto;
  color: #505050;
  text-align: center;
  font-family: 'Advent Pro', serif;
  line-height: 2.2rem;
}

.main-table-aligner {
  display: flex;
  flex-direction: column;
  justify-content: center;  
}

@media screen {
  #ascensorBuilding {
    background: url(/app/images/invitation2/white_roses2/bg.jpg) center/cover no-repeat;
  }
}

@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;
  }
}

#cover-holder {
  background: #f5f5f5 url(/app/images/invitation2/white_roses2/floral.png)
}

.main-table-border {
  margin: auto;
  width: 45rem;
  max-width: 100vw; 
    
  display: flex;
  flex-direction: row;
  align-items: center;

  background: #fafafa url(/app/images/invitation_original/white_roses/roses.jpg) -10px -10px repeat-y;
  background-size: 13rem 44.4rem;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.17rem;
}

#cover-holder .main-table-border {
  margin-right: auto;
  width: 100%;
  height: 100%;
  box-shadow: none;
  border: none;
  padding: 0rem;
}
@media screen and (min-aspect-ratio: 3/2) {
  #cover-holder .main-table-border {
    margin-right: 0;
    width: 50%;
  }
}

.main-table {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* iPhone scroll stuck fix */
  flex:1;
  /*problem with max-height: on resize height recalc does not work*/
  height: 50rem;
  background: #fafafa;
  border: 1px solid #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.09);
}
#cover-holder .main-table {
  background: none;  border: none;
  height: 100vh;
}

.ascensorBuilding-save-the-date .page-floor .main-table {
  height: auto;
}
.ascensorBuilding-save-the-date nav {
  display: none;
}

.main-table-inner {
  height: 100%;
  display: flex;
  flex-direction: row;  
}

.content-border {
  width: 100%;
  height: 100%;  
  background: rgba(255, 255, 255, 0.1);
}

.cover {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: url(/app/images/invitation2/white_roses2/bg.jpg) top right no-repeat;
  background-size: 110rem;    
}

.cover-inner {
  min-height: min-content; /* For Samsung Internet Browser to not collapse the long page content */ 
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0rem;
}

.cover-inner-border {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;  
}



.cover-main {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.cover-intro { 
  font-size: 2rem;  
  color: #fff;
}

.cover-intro-left {
  align-self: flex-start;
}  
.cover-intro-right {
  align-self: flex-end;
}  

.cover-intro h1 {
  font-size: 3.8rem;
  font-family: 'Arizonia', cursive;
  margin: 0rem;
}
@media screen and (min-width: 900px) {
  .cover-intro h1 {
      font-size: 7rem;
  }
}
@media screen and (min-width: 1600px) {
  .cover-intro h1 {
    font-size: 9rem;
  }
}
.cover-intro h2 {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.23rem;
  font-weight: 700;
  margin: 0rem;
}

.cover-names {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  flex-direction: row !important;
}
/*
@media screen {
  #cover-holder .main-table-border {
    width: 100%;
  }
}
*/

table.program td {
  vertical-align: top;
  padding: 0.25rem;  
}

.separator-row {
  width: 100%;
  border-bottom: 4px double rgba(0, 0, 0, 0.05);
  height: 2.1rem;
  overflow: visible;
  margin-bottom: 2.1rem;
}

.separator-row-icon {
  width: 9.6rem;
  height: 4.2rem;
  background: #fafafa url(/app/images/invitation_original/rings.png)
    center no-repeat;
  background-size: 6rem auto;
  margin: auto auto 1rem;
}

.cover-intro-head, .countdown-header {
  font-size: 1.07rem;
  letter-spacing: 0.32rem;
}

.nav-link {
  font-size: 0.94rem;
  line-height: 1.6rem;
  letter-spacing: 0.32rem;
  margin: auto;  
  text-transform: uppercase;
}

.main-text {
  width: 100%; /* IE11 */
  font-size: 1.3rem;  
}

.small-text {
  font-size: 1rem;   
}

.placeholder {
  min-height: 0.5rem;
  flex:1;
}
.placeholder-double {
  flex:2;
}
.placeholder-triple {
  flex:3;
}


.intro_greeting {
  text-transform: uppercase;
  font-size: 1.3rem;
  letter-spacing: 0.12rem;
}

.names {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    
    font-family: 'Arizonia', cursive;
    text-align: center;
    font-size: 2.45rem;
    margin: 0.7rem 0px;
    line-height: 2.5rem;
    color: rgb(33, 37, 41); 
}

.name_1, .name_2 {
  padding: 0.95rem 0;
}
.name_1 {
  border-top: 4px double rgba(0, 0, 0, 0.08);
} 
.name_2 {
  border-bottom: 4px double rgba(0, 0, 0, 0.08);
}

@media screen and (min-width: 40rem) {
  .name_1, .name_2 {
    border-top: 4px double rgba(0, 0, 0, 0.08);
    border-bottom: 4px double rgba(0, 0, 0, 0.08);
  }
  .names {  
    flex-direction: row !important;
  }
}

.name-and {
    font-size: 4rem;
}

.button-row {
  min-height: min-content; /* For Samsung Internet Browser to not collapse */
  flex:1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.button-row-pt {
  padding-top: 2rem;
}
.button-row-pb {
  padding-bottom: 1rem;
}

.nav-column {
  z-index: 20;
  position: absolute;
}

.nav-column a {
  display: block;
  width: 4.2rem;
  height: 8rem;  
  background-repeat: no-repeat;
  background-size: 1.63rem;
}

@media screen {
  .nav-column-left {
    left: -5rem;
  }
  .nav-column-right {
    right: -5rem;
  }
}

/** Chrome uses half width??? */ 
@media screen and (max-width: 65em) {
  .nav-column-left {
    left: 0;
  }
  
  .nav-column-right {
    right: 0;
  }
}  

.main-table-border {
  position: relative;
}

.nav-column a.prev:before {  
   content:'\2190';
}
.nav-column a.next:before {   
   content:'\2192';
}
  
a:link, a:visited, a:hover, a:active, #submit {
  color: rgb(14,16,51);  
}

.nav-icon {
  height: 2.3rem;
}

.nav-item {
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}

nav {
  border-top: 4px double rgba(0, 0, 0, 0.08);
  min-width: 50%;
  padding: 1.35rem 0 0 0;
}

.nav-icons img {
  width: 1.5rem;
  height: 1.5rem;
  
  -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
}

.countdown-header {
  padding-bottom: 1.25rem;
}

.title-text {
  padding-bottom: 0px;
  letter-spacing: 0.13rem;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.content {
  height: 100%;
  display: flex;
  flex-direction: column;   
}

.content-inner {
  min-height: min-content; /* For Samsung Internet Browser to not collapse the long page content */ 
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0.67rem;
}

.content-inner-border {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 4px double rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
}

.content-main {
  flex: 1;    
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nav_row {
  display: flex;
  justify-content: center;
}

a.nice-button, #submit {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;  
  line-height: 2.42rem;
  padding: 0 1.5rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1rem;
  font-weight: 700;
}
#submit {
  background: #F5EEE3;
}

.cover-button-shadow { 
  border-radius: 50%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
a.cover-button { 
  display: block;
  width: 4.7rem;
  line-height: 4.7rem;
  border-radius: 50%;
  margin: 0.34rem;
  color: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.nice-button-wrap {
  float: left;
  padding: 0.27rem;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

#submit {  
  border: 0px;
  cursor: pointer;
}

textarea, input, select {
  width: 100%;    
  background: #f0f0f0;
  border: 1px solid #fff;
  padding: 1rem;
}

textarea:focus, input:focus, select:focus {
  outline: none !important;  outline: none;
  border: 2px solid #fa9f82;
}
  
label {
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  line-height: 1.6rem;
}

a, #submit {
  transition: 100ms ease-in;
}

a:hover, a:focus, #submit:hover, #submit:focus  {
  text-decoration: none;
}

.selected {
  opacity: 0.5;
}
.nav-link:hover {
  opacity: 0.5;
}

.icon {
  width: 100%;
  text-align: center;
}

.my-py-2 {
  padding-bottom: 0.5rem !important;
  padding-top: 0.5rem !important;
}

#rsvp_thanks, .survey {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/*--------------------------
-- COUNTER
----------------------------*/

#countdown-wrap {
  width: 100%;  
  border-top: 4px double rgba(0, 0, 0, 0.08);
  padding: 1.35rem 0 1.35rem 0;
}

#countdown {
  margin: 0 auto;
  list-style: none;
  padding: 0px;
  display: flex;
  justify-content: space-around;
  max-width: 80%;
} 

.timeblockouter {
  width: 6.04rem;
  height: 6.04rem;
  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);  
}

.timeblock {  
  float: left;
  width: 4.9rem;
  height: 4.9rem;
  border-radius: 50%;
  margin: 0.55rem;
  text-align: center;
  color: #fff; 
}

.number {
  line-height: 1.6rem;
  margin: 1.22rem 0 0 0;
  font-size: 1.35rem;
}

.title {  
  line-height: 0.9rem;
  font-size: 0.9rem;
  font-weight: 300;
}

/* ------------------------------------------------------------------------------------
--  ARROWS 
------------------------------------------------------------------------------------ */

.nav-column {
  border-radius: 50%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.nav-column a {
  float: left;
  margin: 0.34rem;
  display: block;
  height: 2.7rem;
  width: 2.7rem;
  border-radius: 50%;
  text-align: center;
  line-height: 2.7rem;
  color: #fff;
  font-size: 1.08rem;
}


/* ------------------------------------------------------------------------------------ 
-- Colors
------------------------------------------------------------------------------------*/
.cover-intro {
  text-shadow: none;
}
.nav-column, .nice-button-wrap, .cover-button-shadow {
  background: rgba(241, 128, 84, 0.5);
}
.cover a, #submit, .nice-button, .timeblock, .nav-column a  {
  background: #4893C7;
  background-image: linear-gradient(#fa9f82 0%, #f18054 100%);
}


/* IPhone X type very high screens */
@media screen and (max-aspect-ratio: 1/2) {
  html {
    font-size: 1.24vh;
  }
}

/*
  Make the size bigger on very small / landscape screens and when the keyboard is active on mobile
*/
@media (max-height:500px) {
  html {
    font-size: 2.48vmax;
  }
  .main-table {
    height: 100vh !important;    
  }
  .nav-column-left {
    left: 0;
  }
  
  .nav-column-right {
    right: 0;
  }
}

/* ------------------------------------------------------------------------------------ 
-- 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;
  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;
  }
  #cover-holder {
    page-break-before: always;
    break-before: page;
    background: none;
  }
  .main-table-aligner {
    width: 100vw;
    height: 100vh;
    page-break-after: always;
    break-after: page;
  }
  .main-table-border {
    margin: 0px;
    height: 100%;
    width: 100%; 
    background: none;
  }  
  .main-table-border {
    padding: 0px;
  }
  .main-table {
    height: 100%;
    background: #ffffff;
  }
  .button-row, .nav_row, .print-hide, .vertical-separator {
    display: none;
  }
  .nav-column {
    visibility: hidden;
  }
  html {
    font-size: 32px;
  }
  
  /* Turn off background */
  #ascensorBuilding {
    background: none;
  }
}
