/* General Styles */

html,
body,
main {
  margin: 0;
  padding: 0;
  font-family: "Patua One", serif;
}

h1,
h2 {
  font-optical-sizing: auto;
  font-style: normal;
  transition: 0.3s all ease;
  text-wrap: wrap;
  word-break: break-word;
  hyphens: auto;
}

h1 {
  font-size: 26pt;
  line-height: 34pt;
  margin: 0;
}

h2 {
  color: #3e519c;
  margin: 30px 0 0;
}

h2,
table.h1 {
  font-size: 20pt;
  line-height: 28pt;
}

table.h1 {
  margin: 0;
}

@media (min-width: 780px) {
  h2 {
    font-size: 26pt;
    line-height: 36pt;
  }

  .timeline td.date {
    font-size: 30pt;
    line-height: 60pt;
  }
}

@media (min-width: 900px) {
  h1,
  table.h1 {
    font-size: 48pt;
    line-height: 53pt;
  }
}

p,
label {
  font-size: 11pt;
}

p {
  text-align: justify;
  max-width: 30em;
  margin: 3px 6px;
}

a,
a:visited {
  color: inherit;
}

/* RSVP */

div#meal-selection {
  margin: 0;
}

div#meal-selection > div {
  margin: 0;
}

.rsvp textarea {
  display: block;
  width: 100%;
}

/* Address */

.form-container {
  width: 100%;
}

form.address {
  width: 100%;
}

form.address div {
  display: flex;
  flex-direction: column;
  margin: 16px;
}

form.address div.hidden {
  display: none;
}

form.address p.error {
  color: #682424;
}

form.address input,
form.address textarea {
  border: 1px solid #3e519c;
  border-radius: 4px;
  font-size: 12pt;
  line-height: 16pt;
}

form.address textarea {
  resize: none;
}

label span.subtle {
  font-style: italic;
  font-size: 8pt;
}

input#submit {
  height: 40px;
}

@media (min-width: 780px) {
  form.address {
    width: 400px;
  }
}
/* navigation */

nav {
  box-sizing: border-box;
  position: sticky;
  top: 8px;
  left: 8px;
  margin-top: 8px;
  transition: all 0.05s ease-in-out;
  height: 24px;
  width: 24px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 2px 2px 4px #0004;
}

nav label {
  font-size: 24px;
  line-height: 20px;
}

nav #hamburger {
  display: inline;
}

nav #close {
  display: none;
  position: relative;
  top: 8px;
  left: 8px;
}

nav li {
  font-size: 16px;
  line-height: 20px;
}

nav:has(input[type="checkbox"]:checked) {
  display: block;
  top: 0;
  width: 100%;
  height: 150px;
  border-radius: 0;
}

nav:has(input[type="checkbox"]:checked) #hamburger {
  display: none;
}

nav:has(input[type="checkbox"]:checked) #close {
  display: inline;
}

nav:has(input[type="checkbox"]:checked) ul {
}

nav input {
  appearance: none;
}

nav ul {
  list-style-type: none;
}

@media (min-width: 780px) {
  nav {
    top: -1px;
    padding: 8px;
    z-index: 1;
    width: 100%;
    height: 40px;
    border-radius: 0;
    margin: 0;
    box-shadow: 0 8px 8px #0004;
  }

  nav label,
  nav input {
    display: none;
  }

  nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 0;
    list-style-type: none;
  }

  nav li {
    margin: 0 8px;
  }
}

nav a {
  text-decoration: none;
}

nav a:visited {
  color: inherit;
}

nav a:hover {
  text-decoration: underline;
}

/* Sections */

section {
  box-sizing: border-box;
  background: url(/static/flowers.svg) repeat;
  background-size: calc(75vh / 2);
  background-color: #fffdf6;
  color: #242468;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: end;
  height: 100vh;
  margin: 0;
  padding: 20px;
  overflow: clip;
}

nav,
section.landing {
  background: #566938;
  color: #cde5be;
}

section.landing h1 {
  font-family: "Cardo", serif;
}

section.smaller {
  border-bottom: 6px double #566938;
  align-items: center;
  height: 100%;
  flex-direction: column-reverse;
}

section.smaller img,
section.smaller picture {
  max-width: 100%;
}

section.tall {
  height: 100%;
}

@media (min-width: 780px) {
  section.smaller {
    min-height: 100vh;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: end;
    padding: 0;
  }

  section.smaller table,
  section.smaller div {
    margin: 20px 80px;
  }

  section.smaller.reverse {
    flex-direction: row;
  }

  section.smaller img,
  section.smaller picture {
    width: 50vw;
    max-width: 50vw;
    align-self: center;
  }
}

section.full-bleed {
  align-items: center;
  justify-content: start;
  height: initial;
  max-height: 100vh;
  padding: 0;
  position: relative;
  z-index: -1;
  overflow: hidden;
}

section.full-bleed.top {
  justify-content: start;
}

section.full-bleed.bottom {
  justify-content: end;
}

section.full-bleed.center {
  justify-content: center;
}

section.full-bleed.tall {
  max-height: unset;
}

section.full-bleed img {
  height: 100%;
  max-width: 100%;
  width: 100vw;
}

section.full-bleed .overlay {
  position: absolute;
  bottom: 40%;
  margin: 20px;
  align-self: start;
  color: #566938;
}

section.full-bleed .overlay.low {
  bottom: 15%;
}

table.timeline td {
  color: #242468;
}

table.timeline td:nth-child(1) {
  color: #3e519c;
  text-align: right;
}

.timeline td.date:nth-child(1) {
  font-size: 16pt;
  line-height: 50pt;
  border-bottom: 1px solid #566938;
  color: #242468;
}

/* admin */

form.login {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 200px;
}

form.login input {
  flex: 1 1 auto;
  height: 24px;
  margin: 8px;
}

form.invite div {
  display: flex;
  align-items: space-between;
}

form.invite div label {
  flex: 0 0 25%;
}

form.invite div input {
  flex: 1 1 auto;
}

div.guests-scroll {
  overflow-x: auto;
}

table.guests {
  width: 100%;
  padding: 16px;
  overflow-x: auto;
}

table.guests th {
  position: sticky;
}

table.guests tr:first-child {
  position: sticky;
}

td.center {
  text-align: center;
}

tr.even {
  background-color: #00000010;
}

tr.odd {
}

section.top {
  justify-content: start;
}

a.photo-link {
  display: flex;
  width: 100%;
  line-height: 30px;
  font-size: 24px;
  padding: 8px;
  text-decoration: none;
  margin: 8px;
  box-sizing: border-box;
  justify-content: center;
  border: 1.5px dashed #242468;
  border-radius: 30px;
}

a.photo-link img {
  margin-right: 8px;
}

@media (min-width: 500px) {
  a.photo-link {
    width: 280px;
  }
}
