* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

body {
  background-color: rgb(33, 65, 100);
  width: 100vw;
  display: flex;
  flex-direction: column;
}

nav {
  display: flex;
  align-items: center;
  position: fixed;
  height: 72px;
  width: 100vw;
  background-color: rgb(33, 65, 100);
  align-items: center;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.457);
}

nav, .section-header, .footer {
  opacity: 0;
  animation: fadeIn .5s ease-in-out .5s forwards;
}

li {
  list-style: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  font-style: inherit;
  -webkit-tap-highlight-color: transparent;
}

.nav-logo {
  font-family: "Elsie", serif;
  font-weight: 400;
  font-size: 64px;
  font-style: normal;
  color: rgb(202, 202, 202);
  text-decoration: none;
  padding-left: 24px;
  padding-right: 24px;
  display: flex;
  align-items: center;
}

#nav-section {
  display: flex;
  width: 100%;
  text-align: center;
  font-family: "Elsie", serif;
  font-size: 28px;
  font-weight: 400;
  font-style: normal;
  color: rgb(202, 202, 202);
  padding-left: 12px;
  position: relative;
  z-index: 99;
}

.nav-links {
  display: flex;
  align-items: center;
  color: rgb(202, 202, 202);
  font-size: 22px;
  text-decoration: none;
  list-style: none;
  float: right;
  width: auto;
}

.nav-links a {
  display: flex;
  align-items: center;
}
.nav-links li {
  padding-left: 32px;
  padding-right: 32px;
}

.nav-links .icon {
  display: none;
}

.hero-container {
  height: 100vh;
  background-position-y: 55%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: solid 5px rgb(33, 65, 100);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.hero-text {
  background: hsla(320, 9%, 13%, 0.85);
  border-radius: 15px;
  color: rgb(202, 202, 202);
  text-align: center;
  font-family: "Elsie", serif;
  margin-top: auto;
  padding: 3px;
  opacity: 0;
  animation: fadeIn 1.5s ease-in-out 1.5s forwards;
}

.hero-text-header {
  padding: 8px;
  font-size: 48px;
}

.hero-text-date {
  padding: 6px;
  font-size: 32px;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.hero-text-location {
  padding-bottom: 12px;
  font-size: 28px;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.save-the-date {
  background: hsla(320, 9%, 13%, 0.85);
  border-radius: 15px;
  color: rgb(202, 202, 202);
  padding: 12px;
  font-family: "Elsie", serif;
  font-size: 56px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-align: center;
  margin-top: 5px;
  margin-bottom: 9vh;
  opacity: 0;
  animation: fadeIn 2s ease-in-out 2s forwards;
  cursor: pointer;
}

.save-the-date:hover {
  color: rgb(230, 230, 230);
}

#story {
  height: 100vh;
}

.section-header {
  display: flex;
  height: 72px;
  width: 100vw;
  background-color: rgb(33, 65, 100);
  font-family: "Elsie", serif;
  font-size: 40px;
  font-weight: 400;
  font-style: normal;
  color: rgb(202, 202, 202);
  align-items: center;
  justify-content: center;
}

.story-container {
  height: calc(100vh - 72px);
  background-image: url(../images/ryangosling.jpeg);
  background-size: cover;
  background-position: center;
  background-position-y: 32%;
  background-repeat: no-repeat;
  border: solid 5px rgb(33, 65, 100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
}

.story-text-2017, .story-text-now {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: hsla(320, 9%, 13%, 0.7);
  border-radius: 15px;
  color: rgb(202, 202, 202);
  font-size: 18px;
  text-align: center;
  font-family: serif;
  width: 30%;
  max-height: 90%;
  overflow-y: scroll;
  padding: 8px;
}

.story-text-2017 {
  margin-left: 18px;
}

.story-text-now {
  margin-right: 24px;
}

.story-container h3 {
  padding-top: 6px;
  width: 100%;
}

#party {
  height: 100vh;
}

.party-container {
  display: flex;
  font-family: Georgia, 'Times New Roman', Times, serif;
  flex-direction: column;
  text-align: center;
  height: calc(100vh - 72px);
  width: 100vw;
  background-color: rgb(33, 65, 100);
  border: solid 5px rgb(33, 65, 100);
  opacity: 0;
}

.party-container p {
  align-self: center;
  font-size: 32px;
  font-weight: 400;
  color: rgb(202, 202, 202);
  padding-bottom: 12px;

}

.party-grid {
  display: flex;
  justify-content: space-evenly;
  height: 100%;
  overflow-y: scroll;
}

.party-grid li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: hsla(320, 9%, 13%, 0.7);
  border-radius: 15px;
  color: rgb(202, 202, 202);
  font-family: serif;
  padding: 6px;
}

.party-grid h3 {
  font-size: 24px;
}

.party-grid h4 {
  font-size: 18px;
}

.party-grooms-left, .party-brides-right {
  background-color: rgb(221, 160, 233);
  background-image: url(../images/blossombranch.png);
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 12px;
  width: 20%;
}

.party-brides-right {
  background-image: -webkit-transform scaleX(-1);
  transform: scaleX(-1);
}

.brides-names {
  background-image: -webkit-transform scaleX(-1);
  transform: scaleX(-1);
}

.grooms-names, .brides-names {
  height: 100%;
  display: flex;
  flex-direction: column;
  list-style: none;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
}

.grooms-names {
  padding: 5px 5px 5px 5px;

}

.brides-names {
  padding: 5px 5px 5px 5px;

}

footer {
  height: auto;
  width: 100vw;
  background-color: rgb(33, 65, 100);
  text-decoration: none;
  color: rgb(202, 202, 202);
  display: flex;
  flex-direction: column;
  padding-left: 6px;
  padding-right: 6px;
  box-shadow: 0 0 2px black;
}

.email {
  margin-bottom: auto;
  text-align: center;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 22px;
}

.site-credits {
  display: flex;
  justify-content: space-around;
  padding-bottom: 18px;
  font-size: 18px;
}

footer a {
  text-decoration: underline;
}

footer a:hover {
  color: rgb(255, 255, 255);
}

@media (max-width: 1000px) {
  .nav-links li {
    padding-left: 18px;
    padding-right: 18px;
  }
  #story {
    height: 125vh;
  }

  .story-container {
    height: calc(125vh - 72px);
    background-size: 125%;
    background-position-x: 47%;
    justify-content: space-between;
  }
  .story-container {
    flex-direction: column;
    background-position: center;
    background-position-y: 20%;
  }

  .story-text-2017, .story-text-now {
    margin: 6px;
    width: auto;
  }

  .party-grooms-left, .party-brides-right {
    width: 35%;
  }
}

@media (max-width: 850px) {
  .nav-links {
    font-size: 20px;
  }

  #story {
    height: 115vh;
  }

  .story-container {
    height: calc(115vh - 72px);
    background-size: 125%;
    background-position-x: 47%;
    justify-content: space-between;
  }

  .story-text-2017 {
    margin-bottom: 2%;
  }
  .party-grooms-left, .party-brides-right {
    width: 45%;
  }
}

@media (max-width: 750px) {
  .nav-links a {
    display: none;
  }

  .nav-links li {
    padding: 0;
  }
  
  .nav-links a.icon {
    float: right;
    display: block;
    padding: 24px;
  }

  .nav-links.responsive {
    display: flex;
    flex-direction: column;
    color: rgb(202, 202, 202);
    font-size: 22px;
    text-decoration: none;
    list-style: none;
    float: right;
    margin-top: 72px;
    align-self: flex-start;
    background-color: rgb(33, 65, 100);
    position: absolute;
    right: 0;
    top: 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.457);
  }

  .nav-links.responsive li {
    padding: 24px;
  }

  .nav-links.responsive a.icon {
    position: fixed;
    top: 0;
    right: 0;
  }

  .nav-links.responsive a {
    display: block;
    text-align: center;
  }

  #nav-section {
    text-align: left;
    white-space: nowrap;
  }
}

@media (max-width: 705px) {
  .nav-logo {
    font-size: 52px;
    padding-left: 18px;
  }
  .story-container {
    background-size: 150%;
  }

  .party-grooms-left, .party-brides-right {
    width: 48%;
  }

  .party-grid h3 {
    font-size: 20px;
  }

  .party-grid h4 {
    font-size: 16px;
  }

  .grooms-names, .brides-names {
    padding: 0;
  }

  .site-credits {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 660px) {
  #nav-section {
    font-size: 24px;
  }
  #story {
    height: 150vh;
  }

  .story-container {
    height: calc(150vh - 72px);
    background-size: 170%;
  }
}

@media (max-width: 450px) {
  .hero-text-header, .save-the-date {
    font-size: 38px;
  }

  .hero-text-date, .hero-text-location{
    font-size: 28px;
  }

  .save-the-date {
    margin-bottom: 15vh;
  }

  #story {
    height: 115vh;
  }

  .story-container {
    height: calc(115vh - 72px);
    background-size: 290%;
    background-position-x: 46%;
    background-position-y: 4%;
    justify-content: space-between;
  }
  .story-container h2, .story-container h3 {
    font-size: 20px;
  }

  .story-container p {
    font-size: 16px;
  }

  .party-grid h3 {
    font-size: 17px;
  }
}

@media (max-width: 410px) {
  .hero-text-header, .save-the-date {
    font-size: 32px;
  }

  .hero-text-date, .hero-text-location {
    font-size: 22px;
  }

  #story {
    height: 135vh;
  }

  .story-container {
    height: calc(135vh - 72px);
    background-size: 350%;
    background-position-x: 46%;
    background-position-y: 15%;
  }
}

@media (max-width: 390px) {
  .grooms-names, .brides-names {
    padding: 0;
  }

  .party-grid h3{
    font-size: 16px;
  }
}

@media (max-width: 365px) {
  #nav-section {
    visibility: hidden;
    overflow: auto;
  }
}

@media (max-height: 550px) {
  nav {
    background-color: transparent;
    border-bottom: none;
    box-shadow: none;
  }

  .nav-logo {
    background-color: rgb(33, 65, 100);
    border-bottom-right-radius: 24px;
    border-top-right-radius: 5px;
    padding-left: 18px;
    padding-right: 18px;
    font-size: 52px;
    height: 72px;
  }

  #nav-section {
    visibility: hidden;
  }

  .nav-links a {
    display: none;
  }

  .nav-links a.icon {
    float: right;
    display: block;
    padding: 24px;
    background-color: rgb(33, 65, 100);
    border-bottom-left-radius: 24px;
    border-top-left-radius: 5px;
    height: 72px;
    width: 66px;
  }

  .nav-links.responsive {
    display: flex;
    flex-direction: row;
    color: rgb(202, 202, 202);
    font-size: 22px;
    text-decoration: none;
    list-style: none;
    height: 72px;
    margin-top: 0px;
    margin-right: 66px;
    background-color: rgb(33, 65, 100);
    border-bottom-left-radius: 20px;
    border-top-left-radius: 5px;
    border-bottom-right-radius: 0px;
    border: none;
  }

  .nav-links.responsive li {
    padding: 24px;
    font-size: 16px;

  }

  .nav-links.responsive a.icon {
    position: fixed;
    top: 0;
    right: 0;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
  }

  .nav-links.responsive a {
    display: block;
    text-align: center;
  }
  
  .hero-container {
    background-size: 130%;
    background-position-y: 25%;
    flex-direction: row;
    justify-content: space-evenly;
  }
  
  .hero-text, .save-the-date {
    margin: 15% 0 0 0;
  }

  .hero-text-header, .save-the-date {
    font-size: 40px;
  }

  .hero-text-date, .hero-text-location {
    font-size: 30px;
  }

  #story {
    height: 125vh;
  }

  .story-container {
    height: calc(125vh - 72px);
    background-size: 100%;
    background-position-y: 30%;
  }

  #party, .party-container {
    height: auto;
  }

  .party-container p {
    font-size: 28px;
  }

  .party-grid {
    height: 125vh;
  }

  .email {
    font-size: 16px;
  }

  .site-credits {
    font-size: 14px;
  }
}

@media (max-height: 395px) {
  .hero-text-header, .save-the-date {
    font-size: 27px;
  }

  .hero-text-date, .hero-text-location {
    font-size: 22px;
  }
}