@import url("https://use.typekit.net/kqe6snx.css");

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  align-self: center;
}

* {
  box-sizing: border-box;
}
p {
  letter-spacing: 0.1em;
  line-height: 165%;
}

body {
  background-color: #ffffff;
  font-family: "duper", sans-serif;

  margin: 0;
  padding: 0;
}

.header {
  padding: 40px 30px;
  text-align: center;
}

.header__logo {
  max-height: 50vh;
}

.date {
  font-style: normal;
  font-weight: normal;
  font-size: 24px;
  line-height: 100%;
  /* or 24px */
  letter-spacing: 0.2em;
  margin-top: 15px;
}

.button {
  color: inherit;
  border: 1px solid #000000;
  width: 200px;
  padding: 16px 0;
  text-align: center;
  display: inline-block;
  font-family: "duper", sans-serif;
  background-color: transparent;
  cursor: pointer;
  border-radius: 0;
}

nav {
  display: flex;
  justify-content: center;
  letter-spacing: 0.2em;
  padding: 0;
  padding-bottom: 0;
}

nav a {
  text-decoration: none;
  color: black;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 35px;
  align-items: center;
}

#itinerary {
  display: flex;
  max-width: 749px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.itinerary_text {
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 517px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "duper", sans-serif;
  font-weight: 700;
  font-style: normal;
}
h2 {
  margin: 0;
  letter-spacing: 0.1em;
}

section {
  /* margin-bottom: 113px; */
  padding: 85px 148px;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
}

#directions,
#rsvp {
  background-color: #f9f9f9;
  padding: 85px 148px;
  max-width: 1181px;
}

#directions h2 {
  text-align: center;
}
.direction {
  display: grid;
  grid-template-columns: auto 1fr;
  margin-top: 58px;
}
.direction_info {
  max-width: 271px;
  margin-right: 104px;
}
#placestostay {
  text-align: center;
  max-width: 885px;
}
#placestostay a {
  color: black;
}
#placestostay ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  margin-top: 28px;
}

#placestostay ul li {
  margin-bottom: 6px;
}

#rsvp h2,
#rsvp p {
  text-align: center;
}

#rsvp form {
  margin-top: 68px;
  max-width: 484px;
  margin: 0 auto;
}

input[type="text"],
textarea {
  border: 1px solid #a1a8ae;
  background-color: transparent;
  width: 100%;
  border-radius: 0;
  font-size: 24px;
}

textarea {
  height: 116px;
}

input[type="text"] {
  height: 50px;
  padding: 0 10px;
}

input[type="submit"] {
  margin: 0 auto;
  display: block;
}

.input_group,
input[type="text"],
textarea {
  margin-top: 11px;
}
.input_group,
input[type="text"],
textarea {
  margin-bottom: 44px;
}

.input_group label {
  margin-right: 48px;
  cursor: pointer;
}

form.notgoing .formhide {
  display: none;
}

#rsvp.complete form,
#rsvp.complete .submitMessage {
  display: none;
}

#rsvp .completeMessage {
  display: none;
}

#rsvp.complete .completeMessage {
  display: block;
}
footer {
  margin-top: 85px;
  text-align: center;
  border-top: 1px solid #a1a8ae;
  padding: 58px 0;
}
footer a {
  color: black;
}
/* @media only screen and (min-width: 320px) and (max-width: 576px) */
@media only screen and (max-width: 920px) {
  .direction_info {
    margin-right: 24px;
  }
  #directions,
  #rsvp,
  section {
    padding: 85px 95px;
  }
}
@media only screen and (max-width: 720px) {
  nav ul {
    flex-direction: column;
  }
  #itinerary {
    flex-direction: column;
    align-items: center;
  }
  #itinerary svg {
    /* display: none; */
    max-width: 50vw;
    align-self: center;
    margin-bottom: 55px;
  }
  .itinerary_text {
    padding: 0;
    text-align: center;
  }
  #directions,
  #rsvp,
  section {
    padding: 55px 20px;
  }
  .direction_info {
    margin-right: 24px;
  }
}

@media only screen and (max-width: 550px) {
  .map {
    display: none;
  }
  .direction {
    grid-template-columns: auto;
    text-align: center;
    justify-content: center;
    margin-top: 24px;
  }
  .direction_info {
    margin-right: 0;
  }
  .date {
    font-size: 20px;
  }
}
