
:root {
  --our-purple: #7e2d46;
  --our-background: #f5efe0;
  --our-baby-blue: #a8cfe0;
}

html {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-style: normal;
  color: var(--our-purple);
  background-color: var(--our-background);
  font-size: larger;
  text-align: center;
}

body {
  width: 100vw;
  min-height: 120vh;
  display: flex;
  flex-direction: column;
  margin: 0px;
  padding: 0px;
  background-color: var(--our-background);
}

main {
  max-width: 860px;
  padding: 0 1rem;
  padding-bottom: 25vh;
  display: flex;
  flex: 1; /* fill up remaining space in body */
  flex-direction: column;
  align-items: center;

  width: calc(100% - 18px); /* 9px breathing room each side */
  margin: 0px auto;

  box-shadow:
    0 0 0 1px var(--our-purple),
    0 0 0 5px var(--our-background),
    0 0 0 6px var(--our-purple);

  outline: 5px solid var(--our-background);
  outline-offset: 6px;
  clip-path: inset(0 -20px); /* only clips top/bottom, lets sides breathe */
}

nav ul {
  list-style-type: none;
  padding: 0px;
}

table#itinerary {
  text-align: left;
  table-layout: fixed;
  width: 100%;
  margin: 2em;
}
#itinerary tr > :first-child {
  text-align: right;
}
#itinerary td {
  padding: 0 1em;
}


header {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--our-baby-blue);
  box-shadow: 0 10px 16px rgba(100,160,200,0.15);
  background-image: repeating-linear-gradient(
    to right,
    var(--our-baby-blue),
    var(--our-baby-blue) 20px,
    white 20px,
    white 40px
  );
  background-size: 100% 100%; /* 40px width for the pattern, full height */
}
footer {
  background-color: var(--our-purple);
  width: 100%;
  box-shadow: 0 -10px 16px rgba(100,160,200,0.15);
  display: flex;
  flex-direction: column;
}
footer > div {
  width: auto;
  display: flex;
  padding: 0 1em;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
footer > div > :first-child {
  text-align: start;
  display: flex;
  flex-direction: column;
  max-width: 400px;
}
footer * {
  color: var(--our-background);
}
footer nav ul {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}
footer nav li a {
  /* Add padding to separate the line from the text */
  padding: 0 2em;
  text-decoration: none; /* Removes underlines from links */
}
footer nav li a:hover {
  color: color-mix(in srgb, var(--our-background) 70%, transparent);
}
footer nav li a.active {
  color: color-mix(in srgb, var(--our-background) 70%, transparent);
  text-decoration: underline;
}
footer nav li:not(:first-child) a {
  border-left: 1px solid var(--our-background); /* Adjust color and thickness as needed */
}
#side-effects, #copyright {
  font-size: 0.5em;
}

#initials {
  font-family: "Pinyon Script", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 3rem;
  padding-right: 0.37em;
}

#initials span {
  letter-spacing: -0.2em;
}

#title {
  background-color: var(--our-background);
  border-radius: 50%;
  word-spacing: -0.5em;
  padding: 1em;
  margin: 0.5em;
  box-shadow: 0 10px 16px rgba(100,160,200,0.15);
}

.cap-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-style: italic;
}

hr {
  width: 100%;
  height: 1px;
  margin: auto;
  border: none;
  background-color: var(--our-purple);
}
hr.hr-half {
  width: 50%;
}

h1, #date {
  font-family: "Pinyon Script", cursive;
  font-weight: 400;
  font-style: normal;
}

h1 {
  margin: 0px;
  margin-top: 0.5em;
  font-size: xxx-large;
}

h2 {
  font-family: "Pinyon Script", cursive;
  font-weight: 600;
  text-decoration: underline;
  font-size: xx-large;
}

#date {
  margin: 0px;
  font-size: x-large;
}

#bridesmaid-sample {
  width: 300px;
  height: 100px;
  margin: 1em;
  background-color: var(--our-purple);
}

#menu button {
  display: none;
  color: var(--our-purple);
  border: none;
  background: none;
  margin: 0;
}

#menu {
  margin: 0.5em;
}

#menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
}

nav li {
  margin: 0;
  padding: 0;
}

#menu a {
  display: block;
  padding: 0.5em 0.5em;
  text-decoration: none;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--our-background) 70%, transparent);
  background-color: var(--our-purple);
  box-shadow: 0 10px 16px rgba(100,160,200,0.15);
  border-radius: 3px;
}

#menu a:visited {
  color: color-mix(in srgb, var(--our-background) 70%, transparent);
  text-decoration: none;
}

#menu a:link {
  color: color-mix(in srgb, var(--our-background) 70%, transparent);
  text-decoration: none;
}

#menu a.active {
  text-decoration: underline;
  color: var(--our-background);
}

/* Change color of dropdown links on hover */
#menu a:hover {
  color: var(--our-background);
}

/* Show the dropdown menu on hover */
#menu nav.open {
  display: flex;
}

.attire-imgs {
  display: flex;
  width: 100%;
  margin-bottom: 1em;
}

.attire-imgs img {
  flex: 1;
  aspect-ratio: 2 / 3;
  min-width: 0;
  object-fit: cover;
}

#our-story-imgs {
  display: flex;
  width: 70%;
  flex-flow: column nowrap;
  gap: 1em;
}

#our-story-imgs > img {
  flex: none;
  width: 100%;
}
#our-story-imgs-portrait {
  display: flex;
  width: 100%;
  flex-flow: row nowrap;
  gap: 1em;
}
#our-story-imgs-portrait > img {
  min-width: 0;
}

.party-box {
  background-color: color-mix(in srgb, var(--our-baby-blue) 50%, white);
  border-radius: 1em;
  padding: 1em;
  margin: 0.5em 10%;
}

#home {
  display: flex;
  flex-direction: column;
  text-align: start;
  align-items: start;
  margin: 0;
  padding: 2em;
  box-sizing: border-box;
  align-items: center;

  background-image: url("/static/images/home.png");
  background-size: cover;
  background-position: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1365/883;
  color: white;
  text-shadow: 1px 2px var(--our-purple);
}

#home h2 {
  font-size: 6rem;
  margin-top: 0;
  text-decoration: none;
}

#home div {
  width: 80%;
  font-size: x-large;
}

main:has(#home) {
  width: 100%;
  max-width: inherit;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  box-shadow: none;
}

.party-box img {
  max-width: 400px;
  object-fit: cover;
}

.c-suite {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 2em;
  gap: 13.5%;
}
.c-suite p {
  text-align: justify;
  margin: 0;
  flex: 1;
}
.c-suite img {
  flex: 1;
  min-width: 0;
  max-width: 400px;
  min-height: 0;
  aspect-ratio: 1;
}

#job-description * {
  text-align: start;
}

ul.todo-list {
  list-style-type: none;
  padding: 0;
}

form {
  margin: 1em;
}

#rsvp-search input[type="text"] {
  background-color: white;
  border-style: solid;
  border-color: var(--our-purple);
  border-width: 1px;
  border-radius: 3px;
  font-family: inherit;
  font-weight: inherit;
  font-size: large;
  color: inherit;
}

input[type="submit"], #rsvp-edit {
  background-color: inherit;
  border-style: solid;
  border-color: var(--our-purple);
  border-width: 1px;
  border-radius: 3px;
  font-family: inherit;
  font-weight: inherit;
  font-size: large;
  color: inherit;
}

#rsvp-search input[type="submit"] {
  margin-left: 1em;
}

#rsvp-submit input[type="submit"] {
  margin-top: 1em;
}

#rsvp-submit fieldset {
  border-color: var(--our-purple);
  border-width: 1px;
  border-radius: 3px;
}

input[type="submit"]:hover, #rsvp-edit:hover {
  /* background-color: var(--our-baby-blue); */
  background-color: color-mix(in srgb, var(--our-baby-blue) 50%, white);
}

#rsvp-edit {
  padding: 1px 4px;
  text-decoration: none;
}
#rsvp-edit:link {
  text-decoration: none;
}
#rsvp-edit:visited {
  text-decoration: none;
}

#rsvp-search-results > ul {
  list-style-type: none;
  padding: 0px;
}

.rsvp-search-result {
  padding: 1em;
  margin: 0.5em;
  display: block;
  text-decoration: none;
  background-color: inherit;
  border-radius: 3px;
  text-align: start;
  border-style: solid;
  border-width: 1px;
  border-color: var(--our-purple);
}
.rsvp-search-result:visited {
  color: var(--our-purple);
  text-decoration: none;
}
.rsvp-search-result:link {
  color: var(--our-purple);
  text-decoration: none;
}
.rsvp-search-result:hover {
  background-color: color-mix(in srgb, var(--our-baby-blue) 50%, white);
}

.rsvp-search-result > ul {
  list-style-type: none;
  padding: 0px 1em;
}

textarea {
  resize: none;
  width: 90%;
  font-family: inherit;
  font-weight: inherit;
  font-size: large;
  color: inherit;
}

input[type="email"] {
  font-family: inherit;
  font-weight: inherit;
  font-size: large;
  color: inherit;
}
input[type="number"] {
  color: inherit;
}

iframe, details {
  width: 80%;
  aspect-ratio: 4/3;
}

#gallery {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 1em;
  align-items: start;
}

#gallery img {
  max-width: 300px;
  height: auto;
}
