/* MAIN & FONTS */

@font-face {
  font-family: Creattion;
  src: url("_fonts/creattion.otf") format("opentype");
}

html, body {
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  padding: 0;
  margin: 0;
  width: 100vw;
  min-height: 100vh;
  font-family: 'Nunito Sans', sans-serif !important;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.75);
}

/* NAVIGATION */

.navbar {
  width: 100vw;
  background: none;
  z-index: 1;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;

}

.nav-item a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8) !important;
  font-weight: 600;
  text-shadow: 0px 0px 5px rgba(0,0,0,0.8);
  display: inline-block;
}

.nav-item a:hover, .nav-item a.active {
  color: rgba(255,255,255,1) !important;
}

.nav-item a::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: rgba(255,255,255,1);
  transition: width 0.2s ease-in;
}

.nav-item a:hover::after, .nav-item a.active::after {
  width: 100%;
}

.rsvp-button {
  font-family: 'Nunito Sans', sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
}

.navbar-nav .rsvp-button {
  margin: 0 1.5rem;
}

.date-info {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8) !important;
  font-weight: 600;
  text-shadow: 0px 0px 5px rgba(0,0,0,0.8);
  display: inline-block;
}

/* NAVIGATION SCROLLED */
.nav-scrolled {
  background: rgba(255,255,255,0.95);
}

.nav-scrolled .nav-item a {
  color: rgba(0,0,0,1) !important;
  text-shadow: none;
}

.nav-scrolled .nav-item a::after, .nav-scrolled .nav-item a.active::after {
  height: 2px;
  background: rgba(0,0,0,1) !important;
}

.nav-scrolled .date-info {
  color: rgba(0,0,0,1) !important;
  text-shadow: none;
}


/* MOBILE NAV */

button.navbar-toggler {
  border: none;
}

.navbar.active-color {
  background: #ffffff !important;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.navbar-toggler .line {
  width: 40px;
  height: 2px;
  background: #ffffff;
  display: block;
  margin: 8px auto;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.nav-scrolled .navbar-toggler .line {
  background: #000000;
}

.navbar-toggler:hover {
  cursor: pointer;
}

.navbar-toggler.is-active .line:nth-child(2) {
  opacity: 0;
}

.navbar-toggler.is-active .line:nth-child(1) {
  background: #000000;
  -webkit-transform: translateY(10px) rotate(45deg);
  -ms-transform: translateY(10px) rotate(45deg);
  -o-transform: translateY(10px) rotate(45deg);
  transform: translateY(10px) rotate(45deg);
}

.navbar-toggler.is-active .line:nth-child(3) {
  background: #000000;
  -webkit-transform: translateY(-10px) rotate(-45deg);
  -ms-transform: translateY(-10px) rotate(-45deg);
  -o-transform: translateY(-10px) rotate(-45deg);
  transform: translateY(-10px) rotate(-45deg);
}

@media screen and (max-width: 992px) {
  .nav-item a {
    color: rgba(0,0,0,0.8) !important;
    text-shadow: none;
  }

  .nav-item a:hover, .nav-item a.active {
    color: rgba(0,0,0,1) !important;
    text-shadow: none;
  }

  .nav-item a::after {
    background: rgba(0,0,0,1);
  }

  .navbar-nav {
    margin-left: 20px;
  }

  .rsvp-button {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 10px !important;
  }

  .date-info {
    display: none;
  }
}


/* PAGE */

#page-content {
  padding-top: 80px;
}

.content-container {
  position: relative;
}

.bg {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
}

.bg.home, .bg.our-story, .bg.save-the-date, .bg.info {
  background: url('_images/grass2.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.bg.registry {
  background: url('_images/registry.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.mask {
  width: 100vw;
  min-height: 100vh;
  position: fixed !important;
}

.content .header-image {
  padding-bottom: 20px;
  max-width: 100%;
  max-height: 375px;
  filter: invert(1);
}


/* TYPOGRAPHY */

h1.wedding {
  font-family: Creattion;
  font-size: 8rem;
  line-height: 7.5rem;
}

h1 {
  font-weight: 600;
}

h1 strong {
  font-weight: 300;
  letter-spacing: 0.3rem;
  margin-left: -0.3rem;
  display: block;
}

h4 {
  line-height: 1.7rem !important;
}

h5 {
  font-weight: 600;
}

h5 strong {
  font-weight: 800;
}

h1 sup {
  font-size: 60% !important;
  letter-spacing: 0;
  margin-left: -2px;
}

h2 sup {
  font-size: 60% !important;
  letter-spacing: 0;
  margin-left: -2px;
}

h4 sup {
  font-size: 60% !important;
  letter-spacing: 0;
}

p {
  font-size: 1rem;
  line-height: 1.9rem;
  font-weight: 400;
  text-justify: inter-word;
}

p.story {
  text-align: justify;
}

p.story::first-letter {
  font-family: Creattion;
  font-size: 5rem;
  line-height: 0.65;
  float: left;
  margin: 0.1em 0.25em 0.1em 0;
}

img.payment {
  height: 72px;
}

.hero h1 {
  text-shadow: 2px 2px 2px rgba(0,0,0,0.6);
}


/* RSVP */

#main-container {
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}

.bg-image {
  overflow: auto;
}

.row-main {
  margin: auto !important;
  padding: 100px 0 40px 0;
}

#intro {
  position: relative;
}

#login, #info, #success {
  z-index: 1;
  animation: fadeInAnimation ease 0.5s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
     }
}

input#name, input#code {
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 10px;
  height: 100px;
  padding-top: 2rem;
}

textarea#comment {
  height: 120px;
}

.form-floating>label {
  white-space: normal !important;
}

#login-form label {
  width: 100%;
  text-align: center;
  transform: none !important;
}

#guest {
  opacity: 1;
  height: 33px;
  transition: 500ms ease;
}

.expand-guest {
  height: 99px !important;
}

#guest-name-container {
  opacity: 1;
  height: 58px;
  transition: 500ms ease;
}

#extra-info-container {
  opacity: 1;
  height: 268px;
  transition: 500ms ease;
}

.hidden {
  opacity: 0 !important;
  height: 0px !important;
  overflow: hidden;
  transition: 500ms ease !important;
}



/* TABLET */

@media only screen and (min-width: 800px) and (max-width: 992px) and (orientation: landscape) {
  .navbar-toggler {
    display: block;
  }
  h1.wedding {
    font-family: Creattion;
    font-size: 5.5rem;
    line-height: 5rem;
  }
  h1 {
    letter-spacing: 0.1rem;
    margin-left: -0.1rem;
  }
}


/* MOBILE */

@media only screen and (min-width: 1px) and (max-width: 799px) {
  h1.wedding {
    font-family: Creattion;
    font-size: 4.5rem;
    line-height: 4rem;
  }
  h1 {
    letter-spacing: 0.1rem;
    margin-left: -0.1rem;
  }
  input#name, input#code {
    font-size: 24px;
    letter-spacing: 4px;
    height: 90px;
  }
}
