@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&family=Inter:wght@400;700&display=swap');

html {
  font-family: 'Inter', sans-serif;
  padding: 0;
  margin: 0;
}

body {
  padding: 0;
  margin: 0;
  background: #fafafa;
  margin-bottom: 2em;
}

.info-grid {
  flex-wrap: wrap;
  display: flex;
  gap: 1em;
  justify-content: center;
}

.main-body h2 {
  text-align: center;
}

.save {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Dancing Script', cursive;
  box-shadow: rgba(149,157,165,0.2) 0px 8px 24px;
  width: max-content;
  height: 15em;
  width: 15em;
  margin-top: -7.5em;
  background: #fff;
  border-radius: 16px;
  margin-left: 2em;
}

.save span:nth-child(even) {
  font-size: 32px;
}

.save span:nth-child(odd) {
  font-size: 24px;
}

nav {
  background: #D9D9D9;
  margin: 0;
  display: flex;
  align-items: center;
  padding-bottom: 7.5em;
}

nav h1 {
  margin: 0;
  padding: 1em;
}

nav ul {
  list-style-type: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 1em;
}

nav ul li a {
  color: inherit;
  text-decoration: inherit;
}
.login {
  box-shadow: rgba(149,157,165,0.2) 0px 8px 24px;
  display: flex;
flex-direction: column;
  padding: 2em;
  border-radius: 16px;
  background: #fff;
  width: 500px;
  max-width: calc(100% - 8em);
  align-items: center;
}

.back-link {
  display: flex;
  width: 100%;
  align-items: left;
}

.login p {
  width: 100%;
}

.info {
  box-shadow: rgba(149,157,165,0.2) 0px 8px 24px;
  display: flex;
  padding: 1em;
  border-radius: 16px;
  background: #fff;
  width: 256px;
  align-items: center;
}
.info svg {
  width: 24px;
  height: 24px;
  margin: 0 1em;
}

.info p {
  margin: 0 0 0 1em;
}

.info-date {
  align-items: center;
}

.rsvp {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  max-width: calc(100% - 2em);
  margin: 0 auto;
  justify-content: center;
}
.rsvp  svg {
  width: 24px;
  height: 24px;
}

.rsvp input[type="radio"] {
  display: none;
}

.rsvp input + label {
  transition: .25s;
  border-radius: 8px;
  width: max-content;
  padding: .5em 1em;
  align-items: center;
  color: #aaa;
  display: flex;
  border: 1px solid #fff;
  cursor: pointer;
  margin: .25em 0;
}
.rsvp input + label svg {
  width: 24px;
  height: 24px;
}

.rsvp input:checked + label {
  color: #000;
  border: 1px solid #555;
  box-shadow: rgba(149,157,165,0.2) 0px 8px 24px;
}
.person-icon {
  margin: 0 1em;
}
.person {
  box-shadow: rgba(149,157,165,0.2) 0px 8px 24px;
  background: #ffff;
  border-radius: 16px;
  padding: 2em 1em;
}
.person svg {
  width: 24px;
  height: 24px;
}
.rsvp input + label span {
  margin: 0 1em;
}

.rsvp .person {
  display: flex;
  max-width: calc(100% - 1em);
}

.person .name {
  font-size: 1.25em;
  margin-bottom: .5em;
}
.rsvp .person .details {
  display: flex;
  margin-right: 1em;
  flex-direction: column;
  align-items: left;
}

.details textarea {
  width: 300px;
  max-width: 100%;
  transition: .25s;
  height: 150px;
  resize: vertical;
  border: none;
  padding: .5em;
  border-radius: 8px;
  background: #fafafa;
  outline: none;
  resize: none;
  overflow: auto;
  font-size: 16px;
  border: 1px solid #fff;
}

.details textarea:focus{
  box-shadow: rgba(149,157,165,0.2) 0px 8px 24px;
  border: 1px solid #333;
}

@media only screen and (max-device-width: 400px) {
  .person-icon {
    display: none;

  }
}

.buttons {
  display: flex;
  gap: 1em;
}
button {
  transition: .25s;
  border-radius: 8px;
  width: max-content;
  padding: .5em 1em;
  align-items: center;
  /*color: #aaa;*/
  /*border: 1px solid #fff;*/
  background: #fff;
  cursor: pointer;
  margin: .25em 0;
  color: #000;
  border: 1px solid #555;
  box-shadow: rgba(149,157,165,0.2) 0px 8px 24px;
}

input[type=text], input[type=email] {
  width: 300px;
  max-width: 100%;
  transition: .25s;
  padding: .5em;
  border-radius: 8px;
  background: #fafafa;
  outline: none;
  resize: none;
  border: 1px solid #333;
  margin: 1em 0;
}
input[type=text]:focus, input[type=email]:focus {
  box-shadow: rgba(149,157,165,0.2) 0px 8px 24px;
}

.flash {
  position: fixed;
  right: 1em;
  box-shadow: rgba(149,157,165,0.2) 0px 8px 24px;
  bottom: 1em;
  padding: 1em;
  border-radius: 16px;
  background: #fff;
}

@media only screen and (max-device-width: 400px) {
.flash {
  top: 1em;
  bottom: auto;
  right: 1em;
  left: 1em;
  }
}


.peopletable {
  padding: 1em;
  display: grid;
  grid-template-columns: auto auto auto auto auto auto auto;
  gap: 1em;
}

.peopletable .heading {
  font-weight: bold;
}

.peopletable .row .key {
  display: none;
}

.peopletable hr {
  display: none;
}

@media only screen and (max-device-width: 1000px) {
  .peopletable .heading {
    display: None;
  }
  .peopletable {
    grid-template-columns: 1fr;
  }
  .peopletable .row .key {
    display: block;
    font-weight: bold;
  }

.peopletable hr {
  display: block;
}

}
