@font-face {
  font-family: 'NotCourier';
  src: url(../fonts/NotCourierSans.woff);
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'SelectMono';
  src: url(../fonts/SelectMono-Italic.woff);
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Biro';
  src: url(../fonts/BiroScript-extended.woff);
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 100%;

  scrollbar-color: #aca394 #E5DAC6;
}

body {
  margin: 0;
  padding: 0;
  background: #E5DAC6;
  color: #000000;
  box-sizing: border-box;
  font-family: 'NotCourier';
  font-style: normal;
  overflow-x: hidden;
  z-index: -1;

  scrollbar-width: none;
}

a {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-content: center;
  align-content: center;

  padding: 1%;
  background: #E5DAC6;
  border: 8px outset #e9dfce;
}

a:active {
  background: #aca394;
  border: 8px inset #E5DAC6;
  mix-blend-mode: darken;
}

h1 {
  font-family: 'SelectMono';
  font-size: calc(1rem + 0.6vw);
  /* ~16px */
  font-weight: normal;
  padding: 0;
  margin-top: 0.5vh;
  margin-bottom: 1vh;
}

#h1-1{
  display: inherit;
}

#h1-2{
  display: none;
}

p {
  text-align: center;
  font-family: 'NotCourier';
  font-size: calc(1rem + 0.1vw);
  /* ~16px */
  padding-right: 5%;
  padding-left: 5%;
}

p.question {
  font-weight: bold;
  text-transform: uppercase;
}

ul {
  font-family: 'NotCourier';
  font-size: calc(1rem + 0.1vw);
  /* ~16px */
  text-align: left;
  padding-right: 5%;
  padding-left: 5%;
}

li {
  margin-left: 10px;
}

/* --------- DESKTOP --------- */
nav.mobile.large,
nav.mobile.small {
  display: none;
}

nav.desktop {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  position: fixed;
  height: 100vh;
  z-index: 99;
}

#loading {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  /* box-pack: center; */
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  justify-content: center;

  /* box-align: center; */
  -webkit-align-content: center;
  -moz-align-content: center;
  -ms-align-content: center;
  align-content: center;

  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #E5DAC6;
  z-index: 100;
}

#loading p {
  /* box-pack: center; */
  -webkit-justify-self: center;
  -moz-justify-self: center;
  -ms-justify-self: center;
  justify-self: center;

  /* box-align: center; */
  -webkit-align-content: center;
  -moz-align-content: center;
  -ms-align-content: center;
  align-content: center;
}

.row {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;

  position: relative;
  top: 0;
  width: 175px;
}

.crashing.row {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;

  position: relative;
  top: 0;
  width: 175px;
}

.row>* {
  -webkit-flex: 1 100%;
	-moz-flex: 1 100%;
	-ms-flex: 1 100%;
  flex: 1 100%;
}

#lang {
  position: fixed;
  right: 0;
  height: calc(100%/8);
  z-index: 99;
}

.row a {
  cursor: pointer;
}

a img {
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  justify-content: center;

  -webkit-align-self: center;
  -moz-align-self: center;
  -ms-align-self: center;
  align-self: center;
  height: calc(40px + 2vh);
}

a img[alt*="RSVP"],
a img[alt*="language"] {
  height: calc(20px + 2vh);
}

.icon {
  position: relative;
  width: calc(100px + 5vw);
  padding: 5px;
  margin-top: 2vh;
}

.link.img .icon {
  height: auto;
  margin-top: 4vh;
}

.content-fixed {
  position: relative;
  margin-left: 175px;
  z-index: 97;
}

.popup {
  display: block;
  position: absolute;
  top: 4vh;
  left: 200px;
  width: calc(200px + 2vh);
  z-index: 99;
}

.popup p {
  position: relative;
  top: 95px;
  left: 12px;
}

.popup a {
  position: relative;
  top: 110px;
  left: calc(180px + 2vh);
  width: 10px;
  padding-top: 1%;

  background: none;
  border: none;
  cursor: pointer;
}

.sign {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -30%);
  width: 50vw;
  padding: 0 0 calc(15px + 1vw) 0;
  z-index: 98;

  background: #ffffff;
  border: 1px #000000 solid;
}

.sign.medium {
  padding: 0 0 calc(25px + 2.5vw) 0;
}

.sign.small {
  padding: 0 0 15px 0;
}

.sign.smaller {
  width: 40vw;
}

.sign-legs {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  justify-content: center;

  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%);
  width: 50vw;
}

.span-sign {
  display: block;
  position: absolute;
  left: 90%;
  bottom: 0;
  transform: translate(-90%);
  width: 250px;
  margin: 0;
  z-index: 99;
}

#schedule-sign {
  border-radius: 150px 150px 0 0;
}

#outreach-sign {
  border-radius: 100px 100px 0 0;
}

#location-sign,
#faq-sign {
  border-radius: 10px 10px 0 0;
}

#rsvp-sign {
  border-radius: 10px 10px 10px 10px;
}

.leg {
  width: 50px;
  height: 25vh;
  background: white;
  border: 1px solid black;
  z-index: 95;
}

.leg.small {
  height: 50vh;
}

.leg.smaller {
  height: 60vh;
}

.leg.single {
  width: 40px;
  height: 15vh;
  margin-left: 125px;
  margin-top: -10px;
  z-index: 98;
}

.center {
  width: 50vw;
}

#mobile-h1 {
  display: none;
}

.link.simple {
  display: block;
}

#cabins .link.sign-en {
  position: absolute;
  font-size: 18px;
  margin-top: 30px;
  margin-left: 70px;
}

#form .link.sign-en {
  position: absolute;
  font-size: 18px;
  margin-top: 30px;
  margin-left: 90px;
}

#cabins .link.sign-fr {
  position: absolute;
  font-size: 18px;
  margin-top: 20px;
  margin-left: 50px;
}

#form .link.sign-fr {
  position: absolute;
  font-size: 18px;
  margin-top: 20px;
  margin-left: 85px;
}

.mobile-link {
  display: none;
}

section {
  display: none;
  position: absolute;
  width: calc(100vw - 175px);
  height: 100vh;
  top: 0;
  right: 0;
  overflow-x: hidden;

  text-align: center;
  align-items: center;
}

.section-desktop {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
}

.section-content {
  width: 93%;
  height: 55vh;
  padding-bottom: calc(10px + 3%);
  margin-right: auto;
  margin-left: auto;

  background: #ffffff;
  border: none;
}

.section-content.medium {
  height: 45vh;
  padding-bottom: 1%;
  overflow: visible;
}

.section-content.small,
.section-content.smaller {
  height: auto;
  padding-bottom: 1%;
  overflow: visible;
}

h2 {
  padding-left: 5%;
  padding-top: 2vh;
  font-family: 'NotCourier';
  font-size: calc(1rem + 0.1vw);
  /* ~16px */
  font-weight: bold;
  text-align: left;
  text-transform: uppercase;
}

.para {
  position: relative;
  height: inherit;
  border: #000000 1px solid;
  overflow-y: scroll;

  -webkit-overflow-style: none;
  -moz-overflow-style: none;
  -ms-overflow-style: none;
  overflow: -moz-scrollbars-none;
  scrollbar-width: none;
  scrollbar-color: #ffffff #ffffff;
}

.para img {
  margin-top: 2.5vh;
}

.section-content img {
  width: 80%;
  border: 1px #000000 solid;
}

#location .section-content img {
  width: 50%;
}

.img-large {
  display: none;
  position: relative;
  top: 1%;
  height: 98%;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  border: 1px #000000 solid;
  z-index: 100;
}

.spacer.desktop {
  display: inline;
  position: fixed;
  right: 0;
  bottom: 0;
  width: 100vmax;
  z-index: 98;
}

.spacer.mobile-small,
.spacer.mobile-smaller {
  display: none;
}

section#intro {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  -webkit-align-content: center;
  -moz-align-content: center;
  -ms-align-content: center;
  align-content: center;

  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  justify-content: center;

  position: relative;
}

section#location p {
  text-align: left;
}

section#location p:first-child {
  text-align: center;
}

.full-letter {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  -webkit-align-content: center;
  -moz-align-content: center;
  -ms-align-content: center;
  align-content: center;
  
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  justify-content: center;

  position: relative;
  transform: rotate(-1deg);
}

.full-letter p {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -60%);
  height: 70%;

  font-family: 'Biro';
  font-size: calc(0.2rem + 2vh);
  /* ~16px */
  overflow-y: scroll;
  z-index: 99;

  -webkit-overflow-style: none;
  -moz-overflow-style: none;
  -ms-overflow-style: none;
  overflow: -moz-scrollbars-none;
  scrollbar-width: none;
  scrollbar-color: #F8F9FA #ffffff;
}

.full-letter img {
  height: 75vmin;
  z-index: 98;
}

.crashing .full-letter p {
  top: 50%;
  left: 50%;
  height: 80%;
  transform: translate(-50%, -50%);
}

.letter,
.script-letter {
  display: none;
}

.link {
  display: inline;
  padding: initial;
  background: initial;
  border: initial;
  font-size: calc(1rem + 0.1vw);
  /* ~16px */
}

.link:active {
  background: none;
  padding: 0;
  border: none;
  mix-blend-mode: normal;
  font-style: italic;
}

.link.external {
  color: #1100ff;
}

.link.ref {
  color: #000000;
  text-decoration: dashed underline #000000;
}

.link.simple {
  color: #000000;
  text-decoration: none;
}

#p-desktop {
  display: inline;
}

.credit,
.credit .link.ref {
  color: #8b8479;
  font-size: calc(0.8rem + 0.1vw);
  /* ~14px */
}

.credit .link.ref {
  text-decoration: dashed underline #aca394;
}

.section-table {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  justify-content: center;
}

table {
  width: 85%;
  margin-bottom: 5%;
}

table,
th {
  border: 1px #000000 solid;
  border-collapse: collapse;
}

th {
  font-weight: lighter;
  padding: 5px 10px 5px 10px;
}

thead tr {
  text-align: right;
}

thead th {
  font-weight: bolder;
}

th:nth-child(1) {
  width: 5%;
}

th:nth-child(2) {
  text-align: left;
}

.table-time {
  font-family: 'SelectMono';
  font-weight: lighter;
  font-size: calc(0.875rem + 0.1vw);
  /* ~14px */
}

#cabin-img {
  overflow: hidden;
}

#cabin-img .image {
  position: relative;
  width: 60vmin;
  border: 1px solid black;
}

#cabin-img .para {
  border: none;
  overflow: scroll;
}

#intro {
  background-image: url('../assets/bg-intro.jpg');
  background-color: #C4C4E7;
  background-size: cover;
}

.crashing #intro{
  background-image: none;
  background-color: #C4C4E7;
  background-size: cover;
}

#schedule {
  background: #C4C4E7;
}

#location {
  background: #B8E4CB;
}

#lodging {
  background: #F0C7C7;
}

#faq {
  background: #D6D6D6;
}

#gift {
  background: #EFE9A8;
}

#outreach {
  background: #CADBF9;
}

#rsvp {
  background: #F2D5EB;
}

#footer {
  display: none;
}

/* --------- MOBILE --------- */
/* -- small desktop window or large mobile device --*/
@media screen and (max-width: 1100px),
screen and (max-width: 1100px) and (max-height: 700px) {

  nav.desktop,
  nav.mobile.small,
  a.desktop {
    display: none;
  }

  nav.mobile {
    position: -webkit-sticky;
    position: -moz-sticky;
    position: -ms-sticky;
    position: -o-sticky;
    position: sticky;
    top: 0;
  }

  nav.mobile.large {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    -webkit-flex-flow: row wrap;
	  -moz-flex-flow: row wrap;
	  -ms-flex-flow: row wrap;
	  flex-flow: row wrap;

    top: 0;
    padding: 0;
    z-index: 100;
    overflow: hidden;
  }

  .popup {
    display: none;
  }

  .row {
    -webkit-flex-direction: row;
	  -moz-flex-direction: row;
	  -ms-flex-direction: row;
	  flex-direction: row;

    width: 100vw;
  }

  .row>* {
    flex: 1 100%;
  }

  .content-scroll {
    position: relative;
    top: 50%;
    margin: 0;
  }

  section {
    position: relative;
    width: 100vw;
    height: inherit;
    padding: 0;
    margin: 0;
    overflow-x: inherit;
  }

  .para {
    position: relative;
    height: inherit;
    padding: 0 5px 5px 5px;
    overflow: visible;
    border: none;
  }

  a img {
    position: relative;
    height: 5vw;
  }

  a img[alt*="RSVP"],
  a img[alt*="language"] {
    position: relative;
    height: 4vw;
  }
  
  .icon {
    position: relative;
    width: calc(125px + 15vw);
    padding: 5px;
    margin-top: 5%;
  }

  #rsvp .icon {
    margin-top: 7%;
  }

  .section-content {
    width: 80%;
    height: auto;
    padding-bottom: 5px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;

    background: #ffffff;
    border: #000000 1px solid;
  }

  .section-content.medium,
  .section-content.small,
  .section-content.smaller {
    height: inherit;
  }

  .full-letter,
  .script-letter {
    display: none;
  }

  .letter {
    margin-top: 2vh;
    display: inline;
  }

  .sign {
    display: none;
    all: inherit;
  }

  .sign-legs,
  .span-sign {
    display: none;
  }

  #rsvp-sign {
    all: inherit;
  }

  .sign.medium,
  .sign.small,
  .sign.smaller {
    margin: inherit;
  }

  .mobile-link {
    display: block;
  }

  #location .section-content img {
    width: 80%;
  }

  h1 {
    font-size: calc(1.25rem + 0.3vw);
    /* ~20px */
    margin-top: calc(10px + 1.5vw);
  }

  .section-content.smaller {
    border: none;
    background: none;
  }

  h2 {
    padding-top: 2vh;
    font-size: calc(1.125rem + 0.1vw);
    /* ~18px */
  }

  p {
    font-size: calc(1rem + 0.1vw);
    /* ~16px */
  }

  #p-desktop {
    display: none;
  }

  .spacer.mobile-small {
    display: block;
    position: relative;
    width: 100vw;
    margin-top: 1vh;
    z-index: 99;
  }

  .spacer.desktop,
  .spacer.mobile-smaller {
    display: none;
  }

  #schedule,
  #location,
  #lodging,
  #faq,
  #gift,
  #outreach,
  #rsvp,
  #footer {
    display: block;
    scroll-margin-top: 100px;
    scroll-behavior: smooth;
  }

  #intro {
    background-image: url('../assets/bg-intro.jpg');
    background-size: cover;
  }

  .crashing #intro{
    background-image: none;
    background-color: #C4C4E7;
    background-size: cover;
  }
}

/* -- narrow desktop window or small mobile device --*/
@media screen and (max-width: 700px) {
  html {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  nav.desktop,
  nav.mobile.large {
    display: none;
  }

  nav.mobile.small {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    -webkit-flex-flow: row wrap;
	  -moz-flex-flow: row wrap;
	  -ms-flex-flow: row wrap;
	  flex-flow: row wrap;

    position: -webkit-sticky;
    position: -moz-sticky;
    position: -ms-sticky;
    position: -o-sticky;
    position: sticky;

    top: 0;
    left: 0;

    padding: 0;
    z-index: 100;
  }

  nav img {
    filter: drop-shadow(0.5 0.5 0.5rem #1d1d1d);
  }

  #intro {
    background-image: url('../assets/letter-bg.jpg');
    background-size: cover;
    height: 100%;
  }

  .crashing #intro{
    background-image: url('../assets/paper-crash.png');
    background-size: cover;
    height: 100%;
  }

  .full-letter,
  .letter {
    display: none;
  }

  .script-letter {
    display: block;
  }

  .script-letter img {
    margin-top: 50px;
    width: 300px;
  }

  .script-letter p {
    text-align: center;
    font-family: 'Biro';
    font-size: calc(1.5rem + 0.1vw);
    /* ~24px */
  }

  #h1-1{
    display: none;
  }
  
  #h1-2{
    display: inherit;
  }

  .section-content {
    width: 90%;
  }

  .spacer.desktop,
  .spacer.mobile-small {
    display: none;
  }

  .spacer.mobile-smaller {
    display: block;
    position: relative;
    width: 100vw;
    margin-top: 1vh;
    z-index: 99;
  }

  img.spacer.mobile-smaller:first-of-type {
    background-color: #f9fafb;
  }
}