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: center;
  font-family: 'Roboto', sans-serif;
}

.main-table-aligner {
  display: flex;
  flex-direction: column;
  justify-content: center;  
}

#ascensorBuilding {
  background: #D9658A;
}

@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;
  background: #D9EBE6;  
  
  box-shadow: 10px 10px 10px rgba(0, 0, 0, .4);
}


.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;
  align-items: center;
  
  background: #FEF4E8 no-repeat;
  overflow-x: hidden;
}

.cover-couple-holder {
  background: white;
  height: 42.5rem;
  padding: 2.6rem;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, .4);
  transform: rotate(-10.75deg);
  text-align: left;
}

.cover-couple {
  width: 28.5rem;
  height: 29.45rem;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;  
}

.ascensorBuilding-save-the-date .cover {
  padding-bottom: 5.3rem;
}

.countdown-header {
  font-size: 1.07rem;
  letter-spacing: 0.32rem;
}

.main-text, .nav-link {
  font-size: 0.94rem;
  line-height: 1.6rem;
  letter-spacing: 0.32rem;
  margin: auto;  
  text-transform: uppercase;
}

.main-text {
  width: 100%; /* IE11 */
}

.cover-text-2 {
  font-size: 0.75rem;  
}

.main-text-bi {
  font-weight: 900;
  font-style: italic;
}

.placeholder {
  min-height: 0.5rem;
  flex:1;
}

.placeholder-double {
  flex:2;
}

.names {
  font-size: 1.316rem;
  padding: 1.3rem 0 1rem;
  letter-spacing: 0.5rem;
  color: #D9658A;
}

.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;
}


.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;
}

.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/zita13/arrow_right.svg');
  background-position: center right 1.8rem;
}
.nav-column a.prev {
  background-image: url('/app/images/invitation2/zita13/arrow_left.svg');
  background-position: center left 1.8rem;
}

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;
}

.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: #FEF4E8 no-repeat;
}
#content-1 .content-inner, #content-2 .content-inner {
  background-image: 
    url('/app/images/invitation2/zita13/bg_bl.svg'), 
    url('/app/images/invitation2/zita13/bg_br.svg'), 
    url('/app/images/invitation2/zita13/bg_tl.svg');
  background-position: bottom left, bottom right, top left;
  background-size: 15rem auto, 10rem auto, 13rem auto;
}
.cover-inner, #content-3 .content-inner, #content-4 .content-inner {
  background-image: 
    url('/app/images/invitation2/zita13/bg_bl.svg'), 
    url('/app/images/invitation2/zita13/bg_br.svg'), 
    url('/app/images/invitation2/zita13/bg_tr.svg');
  background-position: bottom left, bottom right, top right -0.4rem;
  background-size: 15rem auto, 10rem auto, 10rem auto;
}

.content-inner-border {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-main {
  flex: 1;
  padding: 8rem 5rem 8rem;
    
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#content-main-4 {
  padding: 8rem 5rem 12rem;
}

.nav_row {
  padding-bottom: 4.1rem;
}

a.nice-button, #submit {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FEF4E8;
  letter-spacing: 0.32rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  padding: 0rem 0rem 0rem 1.1rem;
}
.button-arrow {
  width: 1.63rem;
}  
#submit {  
  border: 0px;
  cursor: pointer;
}

textarea, input, select {
  width: 100%;
}
textarea, input, select {
  border: 2px solid #FBB03A;
  border-radius: 4px;
}
textarea:focus, input:focus, select:focus {
  outline: none;
  border: 2px solid #D9658A;
  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;
}



.curveTextSVG {
  position: absolute;
  top: 0; 
  width: 12rem;
  letter-spacing: 2.2px;  
  overflow-x: hidden;
}
/* negative position caused problem in print, so we add the dx to the SVG */
.curveTextSVGLeft {
  left: 0rem;
}
.curveTextSVGRight {
  right: 0rem;
}
.curveTextHolder {
  fill: transparent;
}

.curveText {
  fill: #D9658A;
  font-size: 18px;
  text-transform: uppercase;
}



/*--------------------------
-- COUNTER
----------------------------*/

#countdown-wrap {
  width: 100%;
  padding: 2rem 0.56rem 1rem;
}
.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;    
  }
}

/*----------
-- Timeline
---------*/
#content-3 .content-inner {
    background-position: bottom -3rem left -2rem, bottom right, top right -0.4rem;
}
.timeline {
  margin-left: 1rem;
  font-size: 0.87rem;
}
.tl_icon
{
  background-position: left top;  
  background-size: 3.63rem;
  padding-top: 3.1rem;
  padding-left: 3.8rem;
  padding-right: 1rem;
  vertical-align: top;
  height: 5.5rem;
}
.tl_point, .tl_point_end {
  background: none;
}
.tl_desc {
  padding-top: 3.1rem;
  padding-left: 1rem;
  border-left: 1px solid #5b5b5b;
}
.tl_desc_start, .tl_desc_end {
  padding-top: 2rem;
}
.tl_second .tl_icon {
  padding-left: 3.8rem;
  background-position: left 0.8rem top;;  
}
.tl_second .tl_desc {
  padding-left: 3.8rem;
}

.tl_icon_one_line_champagne, .tl_icon_one_line_dinner, .tl_icon_one_line_wine {
  background-size: auto 4.8rem;
  background-position: left 1rem top;  
}
.tl_icon_one_line_location {
  background-size: auto 3.8rem;
  background-position: left 0.8rem top;  
}
.tl_icon_one_line_cake, .tl_icon_one_line_dance, .tl_icon_one_line_cheers, .tl_icon_one_line_dinner2 {  
  background-size: 3.2rem;
}



/* ------------------------------------------------------------------------------------ 
-- 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 */ 
@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, .print-hide, .vertical-separator {
    display: none;
  }  
  .nav-column {
    visibility: hidden;
  }
  html {
    font-size: 32px;
  }
  
  /* Turn off background */
  #ascensorBuilding {
    background: none;
  }

  #content-1 .content-inner {
    background-image: 
      url('/app/images/invitation2/zita13/bg_bl.svg'), 
      url('/app/images/invitation2/zita13/bg_tl.svg');
    background-position: bottom left, top left;
    background-size: 15rem auto, 13rem auto;
  }

  #content-2 .content-inner {
    background-image:  
      url('/app/images/invitation2/zita13/bg_br.svg');
    background-position: bottom right;
    background-size: 10rem auto;
  }
  
}
