html,
body {
    overscroll-behavior-y: contain;
}

html {
  font-size: 1.74vh;
}

body {
  margin: 0 auto;
  line-height: 1;
  color: white;
  text-align: center;
  font-family: 'Roboto', sans-serif;
}

.main-table-aligner {
  display: flex;
  flex-direction: column;
  justify-content: center;  
}

#ascensorBuilding {
  background:
    url(/app/images/invitation2/zita1/bg6.svg)
    repeat;
  background-size: 10rem;
}

@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; 
  display: flex;
  flex-direction: row;
  align-items: center;
}

.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-top: 2.3rem;
  background: url(/app/images/invitation2/zita1/bg_791.jpg);
  background-size: cover;
}


.ascensorBuilding-save-the-date .cover-inner {
  justify-content: space-around;
  padding-bottom: 2.3rem;
}

.cover-intro-head, .countdown-header {
  font-family: 'Sacramento', cursive;
  font-size: 3.45rem;
}

.vertical-separator {
  width: 100%;
  min-height: 1.25rem; /* For Samsung Internet Browser on phone */ 
  height: 1.25rem;
  background: url(/app/images/invitation2/zita1/vertical_separator.svg)
    center no-repeat;
  margin-top: 1.15rem;  
}

@media (min-aspect-ratio:1/2) {
  .cover-inner {
    padding-top: 4.6rem;
  }
  .cover-intro-head {
    font-size: 4.6rem;
  }
  .vertical-separator {  
    margin-top: 2.3rem;
  }
  .ascensorBuilding-save-the-date .cover-inner {
    padding-bottom: 4.6rem;
  }
}

@media (min-aspect-ratio:2/3) {  
  .countdown-header {
    font-size: 4.6rem;
  }
}



.main-text, .nav-link, a.open-button {
  font-size: 1rem;
  line-height: 1.6rem;
  letter-spacing: 0.32rem;
  text-transform: uppercase;
}
.main-text {  
  width: 100%; /* IE11 */
}
.main-text-bi {
  font-weight: 900;
  font-style: italic;
}
.text-section {
  padding-top: 2.3rem;
}

.names {
  font-family: 'Sacramento', cursive;
  font-size: 4.6rem;
  padding-top: 2.3rem;
}

.name-and {
  margin-top: -1rem;
  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;
  padding-top: 0.2rem;
}

.button-row-pt {
  padding-top: 1.15rem;
}

.nav-column {
  z-index: 20;
  position: absolute;
}
.nav-column-left {
  left: 0;
}
.nav-column-right {
  right: 0;
}
.main-table-border {
  position: relative;
}
.nav-column a.next, .nav-column a.prev {
  display: block;
  width: 3.125rem;
  height: 8rem;  
  background-repeat: no-repeat;
  background-position: center center;  
}

a.open-button {
  display: block;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 3.125rem;
  line-height: 7.68rem;
}
  
.nav-column a.next, a.open-button {
  background-image: url('/app/images/invitation2/zita1/button_right.svg');
}
.nav-column a.prev {
  background-image: url('/app/images/invitation2/zita1/button_left.svg');
}
  
.nav-column a.next:hover, a.open-button:hover {
  background-image: url('/app/images/invitation2/zita1/button_right_hover.svg');
}
.nav-column a.prev:hover {
  background-image: url('/app/images/invitation2/zita1/button_left_hover.svg');
}

a:link, a:visited, a:hover, a:active {
  color: white;
}

.nav-icon {
  height: 2.5rem;
}
.nav-item {
  padding-left: 0.94rem;
  padding-right: 0.94rem;
}

.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: url(/app/images/invitation2/zita1/bg_791.jpg);
  background-size: cover;
  padding-bottom: 2.5rem;
}

.content-inner-border {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-main {
  flex: 1;
  background-image: url('/app/images/invitation2/zita1/vertical_separator.svg'), 
                    url('/app/images/invitation2/zita1/horizontal_separator_right.svg'), 
                    url('/app/images/invitation2/zita1/vertical_separator.svg'), 
                    url('/app/images/invitation2/zita1/horizontal_separator_left.svg');
  background-repeat: no-repeat;
  background-attachment: local;
  background-position: center top 3rem, 3.125rem 11.25rem, center bottom 1.85rem, right 3.125rem top 22.5rem;
  background-size: auto 1.25rem, 1.68rem, auto 1.25rem, 1.68rem;
  
  padding: 4.9rem 5.305rem 3.75rem;
  
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;  
}

.nav_row {
  padding-bottom: 10px;
}

a.nice-button {
  display: block;
  width: 6.125rem;
  height: 2.75rem;
  background-repeat: no-repeat;
  background-image: url('/app/images/invitation2/zita1/button_text.svg');
  line-height: 2.75rem;
  letter-spacing: 0.16rem;
  font-weight: 900;
  font-style: italic;
}
 
a.nice-button:hover {
  background-image: url('/app/images/invitation2/zita1/button_text_hover.svg');
}

#submit {  
  background: url('/app/images/invitation2/zita1/button_text_dyn.svg') no-repeat scroll 0 0 transparent;
  cursor: pointer;
  border: 0px;
  
  display: block;
  width: 7.81rem;
  height: 2.75rem;

  line-height: 2.75rem;
  letter-spacing: 0.16rem;
  font-weight: 900;
  font-style: italic;  
  text-transform: uppercase;
  color: white;
}
#submit:hover {
  background-image: url('/app/images/invitation2/zita1/button_text_hover_dyn.svg');
}

textarea, input, select {
  width: 100%;
}
textarea, input, select {
  border: 2px solid #E39587;
  border-radius: 4px;
}
textarea:focus, input:focus, select:focus {
  outline: none;
  border: 2px solid #D76D75;
  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: 0rem 0.56rem;
}
#countdown {
  width: 100%;
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding-inline-start: 0px;
  margin-bottom: 0px;
}

.timeblock {
  background:url('/app/images/invitation2/zita1/countdown_holder.svg') center top no-repeat;
  padding-top: 0.75rem;
  margin: 0.25rem;
  width: 4.375rem;
}


.number {
  display: block;
  line-height: 2.5rem;
  font-size: 1.875rem;
  font-weight: 900;
  font-style: italic;
}

.title {
  display: block;  
  font-family: 'Sacramento', cursive;
  font-size: 3.45rem;
  color: #fff;
}
.title-sec {
  font-size: 2.3rem;
}

/* rotate info: https://stackoverflow.com/questions/28741562/rotate-text-and-shrink-its-container-to-the-new-width */

.container {
    position: relative;
    display: inline-block;
    height: 6.25rem;
    min-width: 30px;
}

.rotate {
    text-align: right;
    height: 30px;
    line-height: 30px;
    width: 6.25rem;
    position: absolute;
    bottom: -2rem;
    transform: rotate(-65deg) translate(-20px,-20px);
    transform-origin: top left;
}


/* 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);
}
 
@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 {
    display: none;
  }  
  .nav-column {
    visibility: hidden;
  }
  html {
    font-size: 32px;
  }
  
  /* Turn off background */
  
  #ascensorBuilding {
    background: none;    
  }
  .cover-inner, .content-inner {
    background: none;    
  }    
  
}