html,
body {
    overscroll-behavior-y: contain;
}

html {
  font-size: 1.74vh;
}

body {
  margin: 0 auto;
  line-height: 1;
  color: rgb(14,16,51);  
  text-align: left;
  font-family: 'Playfair Display SC', serif;
}

.main-table-aligner {
  display: flex;
  flex-direction: column;
  justify-content: center;  
}

#ascensorBuilding {
  background: #8d9896;
}

@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;
  width: 34.5rem;
  max-width: 100vw;  
  background-color: #f8f2e9;
    
  display: flex;
  flex-direction: row;
  align-items: center;
  box-shadow: 10px 10px 5px rgba(0, 0, 0, .3);
}

#cover-holder {
  padding-left: 7vw;
} 
#cover-holder .main-table-border {
  max-width: 93vw;
}


.main-table {
  height: 50rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* iPhone scroll stuck fix */
  flex:1;
}

.main-table-inner {
  height: 100%;
  display: flex;
  flex-direction: row;
}

.content-border {
  width: 100%;
  height: 100%;  
}

.cover {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;  
}

.cover-inner {
  min-height: min-content; /* For Samsung Internet Browser to not collapse the long page content */ 
  flex: 1;
  display: flex;
  flex-direction: column;
  
  padding: 12rem 4.85rem 11rem;
  
  background-image: url(/app/images/invitation2/zita11/bg_top.svg),
    url(/app/images/invitation2/zita11/bg_bottom.svg);
  background-repeat: no-repeat, no-repeat;
  background-attachment: local, local;
  background-position: center top -1px, left -1px bottom -1px;
  background-size: 101% auto, 46% auto;
}

.envelope_bottom {
  z-index: -10; 
  position: absolute;
  left: -9rem;
  bottom: 3.9rem;
  width: 27rem;
  height: 35.375rem;
  background: url(/app/images/invitation2/zita11/envelope_bottom.png) center/contain no-repeat; 
  max-width:81,55vw; 
}

.envelope_top {
  z-index: 80; 
  position: absolute;
  left: -9.6rem;
  bottom: 2.5rem;
  width: 16.5625rem;
  height: 37.4375rem;
  background: url(/app/images/invitation2/zita11/envelope_top_temp.png) center/contain no-repeat;  
  max-width: 50vw; 
}

.cover_img {
  width: 14.7rem;
  padding-top: 1.3rem;
}

.vertical-separator {
  min-height: 2rem;
}

.ascensorBuilding-save-the-date .cover {
  padding-bottom: 5.3rem;
}

.cover-intro-head, .countdown-header {
  font-size: 1.07rem;
  letter-spacing: 0.32rem;
}

.main-text, .nav-link {
  font-size: 0.94rem;
  line-height: 1.5rem;
  letter-spacing: 0.23rem;
  font-weight: 400;
}
.main-text-b {
  font-weight: 900;
}
.cover-text {
  font-size: 1rem;
  Xline-height: 1.92rem;
  padding-top: 0.5rem;
}
.placeholder {
  min-height: 2rem;
  flex:1;
}
.placeholder-double {
  flex:2;
}

.names {
  font-family: 'Charmonman', cursive;
  font-size: 2.8rem;
  line-height: 2.5rem;
}

.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: 1.8rem;
}
.button-row-pb {
  padding-bottom: 2.3rem;
}

.nav-column {
  z-index: 20;
}

.nav-column a {
  display: block;
  width: 4.2rem;
  height: 8rem;  
  background-repeat: no-repeat;
  background-size: 3.5rem;
}
.nav-column {
  position: absolute;
}
.nav-column-left {
  left: 0;
}
.nav-column-right {
  right: 0;
}
.main-table-border {
  position: relative;
}

.nav-column a.next {
  background-image: url('/app/images/invitation2/zita11/button_right.svg');
  background-position: center right 0.7rem;
}
.nav-column a.prev {
  background-image: url('/app/images/invitation2/zita11/button_left.svg');
  background-position: center left 0.7rem;
}
  
a:link, a:visited, a:hover, a:active, #submit {
  color: rgb(14,16,51);  
}

.nav-icon {
  height: 2.3rem;
}

.nav-item {
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.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;
  
  background-image: url(/app/images/invitation2/zita11/bg_top2.svg),
    url(/app/images/invitation2/zita11/bg_right.svg),
    url(/app/images/invitation2/zita11/bg_bottom2.svg);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: local, local, local;
  background-position: left top -1.4rem, right -1px top 3.45rem, center bottom -1px;
  background-size: 20.86rem auto, 4.93rem auto, 25.8rem auto;
}

.content-inner-border {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-main {
  flex: 1;
  padding: 11rem 7.6rem 4rem;
    
  display: flex;
  justify-content: center;
  flex-direction: column;
}

#content-main-4 {
  padding: 11rem 5rem 5rem;
}    
  
.nav_row {
  padding-bottom: 1.8rem;
}

a.nice-button, #submit {
  display: flex;
  align-items: center;
  justify-content: center;
  background: url(/app/images/invitation2/zita11/button_text_dyn.svg) no-repeat center/100% 100% transparent;
  font-weight: 900;
  font-size: 1.4rem;
  font-family: 'Charmonman', cursive;
  padding: 0.75rem 1.15rem;
  text-transform: capitalize;
}
.button-arrow {
  width: 1.4rem;
  margin-left: 1rem;
}  
#submit {  
  border: 0px;
  cursor: pointer;
}

textarea, input, select {
  width: 100%;
}
textarea, input, select {
  border: 2px solid #b2bb88;
  border-radius: 4px;
}
textarea:focus, input:focus, select:focus {
  outline: none;
  border: 2px solid #cdb099;
  font-size: 0.9rem;
}

label {
  font-weight: 900;
  font-style: italic;  
}


a, #submit {
  
  text-decoration: none;
  -moz-transition: 100ms ease-in;
  -o-transition: 100ms ease-in;
  -webkit-transition: 100ms ease-in;
  -ms-transition: 100ms ease-in;
  transition: 100ms ease-in;
  
}

a:hover, a:focus, #submit:hover, #submit:focus  {
  text-decoration: none;
}

.nav-link {
  font-size: 0.9rem;
  line-height: normal;
  text-transform: uppercase;
}

.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%;
  padding: 2rem 0rem;
  font-family: 'Roboto', sans-serif;
  text-align: center;
}
.countdown-table {
  width: 100%;
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding-inline-start: 0px;
  margin-bottom: 0px;
  
  border-top-style: solid;
  border-top-width: thin;
}

.timeblock {
  padding-top: 0.75rem;
  margin: 0.25rem;
  display: flex;  
}


.number {
  display: block;
  font-size: 2.3rem;
  font-weight: 900;  
}
#cd-day {
  font-size: 3.83rem;
  line-height: 4rem;
}

.title {
  display: block;  
  font-size: 1.07rem;
  letter-spacing: 0.32rem;
  text-transform: uppercase;
  text-align: left;
  padding-left: 0.15rem;
  padding-top: 0.3rem;
}
.title-day {
  font-size: 1.342rem;
  line-height: 1.53rem;
  text-align: center;
  padding: 0rem;
  padding-bottom: 1rem;
}

/* 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;    
  }
}

/* ------------------------------------------------------------------------------------ 
-- 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);
}

/* ToDo: SAVE THE DATE version */ 
/* ToDo: PRINT version */ 
@media print {
  @page {
    margin: 0px;
  }
  #cover-holder {
    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;
    height: 100%;
    width: 100%; 
  }  
  .main-table {
    height: 100%;
  }  
  .button-row, .nav_row, .print-hide, .vertical-separator {
    display: none;
  }  
  .nav-column {
    visibility: hidden;
  }
  html {
    font-size: 32px;
  }
  .envelope_bottom {
    display: none;
  }
  .envelope_top {
    display: none;
  }
  #cover-holder .main-table-border {
    max-width: initial;  
  }
  #cover-holder {
    padding-left: 0;
  }   
  /* Turn off background */
  #ascensorBuilding {
    background: none;
  }
}
