@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Corinthia:wght@400;700&family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Dancing+Script:wght@400..700&family=Gwendolyn:wght@400;700&family=Mea+Culpa&family=MonteCarlo&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

html,
body {
  background:
    radial-gradient(ellipse at top, #5A86AD, transparent),
    radial-gradient(ellipse at bottom, #B2AC88, transparent);
  width: 100%;
  margin: 0;
  font-family: "Cormorant Garamond", sans-serif;
  scroll-behavior: smooth;
}

h1 {
  font-size: 48px;
  line-height: 58px;
  margin: 12px;
  font-family: "Gwendolyn";
  /* font-family: "Alex Brush"; */
  /* font-family: "Corinthia"; */
  /* font-family: "Dancing Script"; */
  /* font-family: "Mea Culpa"; */
  /* font-family: "MonteCarlo"; */
}

p,
div,
span {
  font-size: 18px;
  line-height: 24px;
}

/* General (links) */
a {
  color: #3c4043;
  cursor: pointer;
  padding: 4px 8px;
}

a:hover {
  background-color: lightgray;
}

a:visited {
  color: #3c4043;
}

main {
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
  position: relative;
}

button {
  background-color: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
}

header,
footer {
  backdrop-filter: blur(20px);
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

header {
  border-radius: 0 0 12px 12px;
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0 auto;
  height: auto;
  width: auto;
  transition: all 500ms ease-in-out;
}

header nav {
  text-align: center;
}

header button,
footer button {
  color: #3c4043;
  font-weight: 700;
  font-size: 18px;
  margin: 11px 8px;
  padding: 4px 12px;
  line-height: 26px;
  font-family: "Cormorant Garamond", sans-serif;
  position: relative;
  justify-content: center;
  display: inline-flex;
}

header button:hover {
  background-color: rgba(60, 64, 67, .1);
  border-radius: 8px;
}

#menu {
  display: none;
  cursor: pointer;
  padding: 9px 0;
  line-height: 30px;
}

.marker {
  font-size: 12px;
  line-height: 6px;
  position: absolute;
  bottom: -6px;
  letter-spacing: -1px;
}

.carousel {
  width: 100%;
  margin-top: -52px;
  position: sticky;
  top: 0;
  overflow: hidden;
}

.carousel-internal {
  display: flex;
  width: max-content;
  animation: scrolling 45s linear infinite;
  animation-delay: 3s;
}

@keyframes scrolling {
  0% {
    transform: translateX(0);
  }

  100% {
    /* Moves the content its full width (half of the duplicated container) */
    transform: translateX(-50%);
  }
}

.carousel:hover .carousel-internal {
  animation-play-state: paused;
}

main,
.carousel-internal img {
  width: 85vw;
  max-width: 1000px;
}

.main-content {
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 28px;
  backdrop-filter: blur(2px);
  margin: 0 0 24px;
  scroll-margin-top: 52px;
  scroll-behavior: smooth;
}

.content {
  background-color: rgba(255, 255, 240, 0.65);
  border-radius: 8px;
  padding: 16px 22px 28px;
  text-align: center;
  overflow: hidden;
  visibility: visible;
  transition: all 500ms ease-in-out;
  /* experimental */
  transition-behavior: allow-discrete;
}

footer {
  border-radius: 12px 12px 0 0;
}

footer nav {
  text-align: right;
}

.hide {
  display: none;
  visibility: hidden;
  color: transparent;
  /* transition: all 500ms ease-in-out; */
  /* experimental */
  /* transition-behavior: allow-discrete; */
}

#countdown {
  font-size: 72px;
  margin: 24px 0;
  line-height: 86px;
  font-family: "Corinthia";
}

.welcome-details,
.welcome-note {
  display: flex;
}

.welcome-note {
  font-style: italic;
}

.welcome-thankyou .venue-details {
  font-style: italic;
}

.sbs-50-50 {
  width: 50%;
  max-width: 50%;
  display: inline-block;
  box-sizing: border-box;
}

.sbs-details {
  padding: 18px 12px;
}

.venue-details {
  padding: 0 24px;
  margin: 16px 0;
}

.venue-img {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}

.placeholder-img {
  background-color: #3c4043;
  vertical-align: top;
  border-radius: 4px;
  min-height: 50px;
  object-fit: cover;
}

.tmp-img {
  width: 150px;
  height: 150px;
}

.inline-img {
  display: inline;
  margin: 6px 10px 0;
}

.footnote-list {
  padding: 6px;
}

.inline-img .footnote,
.inline-img .footnote span {
  font-size: 16px;
  font-style: italic;
  margin: 0;
  text-align: center;
  line-height: 20px;
}

.inline-tab-link {
  display: inline;
}

.inline-tab-link button {
  border: none;
  text-decoration: underline;
  background: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}

.inline-tab-link button:hover {
  background-color: lightgray;
}

.footnote {
  font-style: italic;
  font-size: small;
}

.tagline {
  margin: 16px 0;
}

.ceremony-details {
  display: flex;
}

.ceremony-details table {
  margin: auto;
}

.ceremony-details th {
  border-bottom: 1px solid gray;
}

.ceremony-date,
.ceremony-details tfoot td {
  padding-top: 18px;
}



.event-details p {
  margin: 4px auto;
}

.granular-timeline .d-hide {
  display: none;
}

.granular-timeline td {
  text-align: left;
  vertical-align: top;
  padding: 6px 12px;
}

.granular-timeline td p {
  margin: 0;
}

.granular-timeline td p:nth-child(2) {
  font-weight: bold;
}

.granular-timeline .time {
  white-space: nowrap;
}

.granular-timeline td:first-child {
  text-align: right;
}

.granular-timeline td:nth-child(3) {
  white-space: revert;
}

.story-block {
  padding: 24px;
  text-align: justify;
  font-size: 18px;
  line-height: 26px;
}

.story-block .inline-img {
  background-color: azure;
  border: 2px solid gray;
}

.story-block img {
  border-radius: 0;
}


.person-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Travel Tab */
.content [data-name="travel"] p {
  margin: 0;
}

.travel-details a.inline-link {
  padding: 0;
}

.venue-map {
  border-radius: 8px;
  border: 1px solid lightgray;
  height: 100%;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  margin-top: 16px;
}

.hotels-list {
  display: flex;
  justify-content: center;
  margin: 12px;
  overflow: hidden;
}

.hotels-list-v {
  display: flex;
  gap: 36px;
  justify-content: center;
  margin: 12px;
  overflow: hidden;
}

.hotel-v {
  width: 50%;
}

.hotels-list>div {
  width: 50%;
}

.hotel-block-img {
  aspect-ratio: 55 /29;
  background-image: url("../assets/embassy_suites.avif");
  background-size: cover;
  background-position: center;
  border-radius: 12px;
}

.hotel-img {
  aspect-ratio: 800/533;
  background-image: url("../assets/temecula_creek_inn.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 12px;
}

.hotels-list .hotel-details,
.hotels-list-v .hotel-details {
  padding: 24px 0;
}

.hotels-list .hotel-info {
  margin: 0 auto;
}

.airport-list {
  grid-template-columns: auto;
}

.link-list.airport-list a {
  white-space: wrap;
}

.airport-distance {
  display: inline-block;
}

/* Things to Do Tab */
.attraction-subheading {
  white-space: nowrap;
  font-size: 0.8em;
  line-height: unset;
  font-weight: normal;
  margin-top: 6px;
}

.attraction-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px 16px;
  align-items: start;
}

.attraction {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  gap: 0;
}

.attraction a {
  width: max-content;
  margin: auto;
}

.attraction h3 {
  margin: 0;
}

/* Hot Air Balloons */
:root {
  --sky-top: #87CEEB;
  --sky-bottom: #E0F7FA;
  --basket: #8B4513;
}

.balloon-sky {
  background: linear-gradient(to bottom, var(--sky-top), var(--sky-bottom));
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  margin-top: 12px;
  border-radius: 12px;
}

.balloon-link {
  transition: transform 4s ease;
  padding: 0;
  position: absolute;
  bottom: 40px;
  left: 10px;
  margin: 0 auto 0 0;
  display: block;
}

.balloon-link.red {
  animation: wind-travel-red 15s ease-in-out infinite alternate;
}

.balloon-link.blue {
  animation: wind-travel-blue 15s ease-in-out infinite alternate;
}

.balloon-link.gold {
  animation: wind-travel-gold 15s ease-in-out infinite alternate;
}

.balloon-wrapper {
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
  padding: 0 15px;
  width: 150px;

  animation: buoyancy 3s ease-in-out infinite alternate;
  transform-origin: center bottom;
}

.balloon-svg {
  width: 120px;
  height: auto;
  margin-bottom: 15px;
}

@keyframes wind-travel-red {
  0% {
    transform: translateX(0);
  }

  /* A strong gust */
  30% {
    transform: translateX(40vw);
  }

  /* Resistance */
  50% {
    transform: translateX(30vw);
  }

  /* Reaches the far side */
  100% {
    transform: translateX(55vw);
  }

}

@keyframes wind-travel-blue {
  0% {
    transform: translateX(0);
  }

  /* A small gust */
  30% {
    transform: translateX(10vw);
  }

  /* A moderate gust */
  50% {
    transform: translateX(30vw);
  }

  /* Resistance */
  100% {
    transform: translateX(20vw);
  }

}

@keyframes wind-travel-gold {
  0% {
    transform: translateX(0);
  }

  /* A moderate gust */
  30% {
    transform: translateX(10vw);
  }

  /* Resistance */
  50% {
    transform: translateX(-5vw);
  }

  /* A small gust */
  100% {
    transform: translateX(5vw);
  }

}

@keyframes buoyancy {
  0% {
    transform: translateY(0) rotate(-2deg);
  }

  100% {
    transform: translateY(-20px) rotate(4deg);
  }
}

/* Offset timing so they don't move like robots */
.balloon-link.blue {
  animation-delay: 2s;
  animation-duration: 17s;
}

.balloon-link.gold {
  animation-delay: 6s;
  animation-duration: 21s;
}

.balloon-link.blue .balloon-wrapper {
  animation-delay: 0.5s;
  animation-duration: 3.5s;
}

.balloon-link.gold .balloon-wrapper {
  animation-delay: 1.2s;
  animation-duration: 4.2s;
}

/* Color variants using CSS variables */
.red {
  --main-color: #e74c3c;
  --alt-color: #c0392b;
}

.blue {
  --main-color: #3498db;
  --alt-color: #2980b9;
}

.gold {
  --main-color: #f1c40f;
  --alt-color: #f39c12;
}

.balloon-link:hover {
  background-color: transparent;
}

.balloon-link:hover .balloon-wrapper {
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.7));
}

.balloon-link:hover .balloon-wrapper::before {
  background-color: white;
  position: absolute;
  bottom: -24px;
  left: 0;
  right: 0;
  border: 1px solid darkgray;
  z-index: 2;
  margin: 0 auto;
  width: 150px;
  height: 48px;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 24px;
}

.balloon-link.red:hover .balloon-wrapper::before {
  content: "California Dreamin' Balloon Adventures";
}

.balloon-link.blue:hover .balloon-wrapper::before {
  content: "Grape Escape Balloon Adventures";
}

.balloon-link.gold:hover .balloon-wrapper::before {
  content: "Temecula Air Tours";
  height: 24px;
  bottom: 0;
}

/* Registry Tab */
.registry-item {
  position: relative;
  width: max-content;
  border: 1px solid lightgray;
  padding: 12px;
  border-radius: 12px;
  background-color: white;
  overflow: hidden;
  display: inline-block;
  line-height: 0;
}

.registry-item:hover {
  background-color: #f8f9fa;
  opacity: 0.7;
}

.registry-item a {
  line-height: 0;
  font-size: 0;
  padding: 0;
}

.registry-item a:hover {
  background-color: initial;
}

.registry-item a::before {
  content: "Registry";
  left: 0px;
  bottom: 0px;
  position: absolute;
  font-size: 12px;
  background-color: lightgoldenrodyellow;
  width: 64px;
  height: 24px;
  line-height: 24px;
}

.registry-img {
  width: 150px;
}


/* FAQ Tab */
.link-target {
  scroll-margin-top: 70px;
}

.faq-section {
  display: flex;
  flex-direction: column;
}

.faq-item {
  display: inline-block;
  margin: 12px 0;
}

.question {
  font-weight: bold;
}

.answer {
  margin-top: 8px;
}

/* General */
.link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0 16px;
}

.link-list a {
  white-space: nowrap;
  margin: auto;
}

.link-target {
  scroll-margin-top: 70px;
}

@media (max-width: 800px) {
  .welcome-note {
    display: block;
  }

  .welcome-note .sbs-50-50 {
    width: 80%;
    max-width: 80%;
  }

  main,
  .carousel-internal img {
    width: 95vw;
    max-width: 800px;
  }

  main {
    padding: 0;
  }

  /* General */
  .link-target {
    scroll-margin-top: 140px;
  }
}

@media (max-width: 500px) {
  header {
    overflow: hidden;
    height: 48px;
    width: 48px;
    margin: 0 0 0 auto;
    border-radius: 12px;
    top: 8px;
    right: 8px;
    position: fixed;
  }

  header button {
    display: block;
    padding: 4px 12px;
    margin: 0;
    width: 100%;
    text-align: left;
  }

  header button.selected {
    background-color: rgba(60, 64, 67, .1);
    border-radius: 8px;
  }

  .marker {
    display: none;
  }

  header br {
    display: none;
  }

  #menu {
    display: block;
  }

  header.expanded {
    height: auto;
    /* fallback */
    height: calc-size(auto, size);
    width: fit-content;
    /* fallback */
    width: calc-size(fit-content, size);
    transition: all 500ms ease-in-out;
  }

  main::before {
    display: none;
  }

  .main-content {
    padding: 8px;
    margin-top: 32px;
  }

  .carousel-internal img {
    width: 100vw;
  }

  .content {
    padding: 0 12px 12px;
  }

  main {
    width: 100%;
    padding: 0;
  }

  /* Welcome Tab */
  .welcome-details,
  .welcome-note,
  .event-details {
    display: block;
  }

  .welcome-intro,
  .welcome-note {
    text-align: left;
  }

  #countdown {
    line-height: 48px;
    font-size: 56px;
  }

  .welcome-note .sbs-50-50,
  .sbs-50-50 {
    width: 100%;
    max-width: 100%;
  }

  /* Event Details Tab */
  .venue-details {
    padding: 0 4px;
    margin-top: 8px;
  }

  .venue-details div b {
    display: block;
    margin-top: 12px;
  }

  .venue-details div i {
    display: block;
    margin-top: 12px;
  }

  /* Story Tab */
  .story-block {
    padding: 0;
  }

  .inline-img {
    width: 85% !important;
    float: none !important;
    display: block;
    margin: 12px 0;
  }

  .inline-img .footnote,
  .inline-img .footnote span {
    font-size: 16px;
    line-height: 24px;
  }

  /* Travel Tab */
  .travel-details {
    text-align: left;
  }

  .travel-details strong {
    display: block;
    margin: 12px 0 6px;
  }

  .hotels-list {
    flex-direction: column;
  }

  .hotels-list>div {
    margin: 0 auto;
    width: 100%;
  }

  .airport-distance {
    display: block;
    padding-left: 8px;
  }

  /* Things to Do Tab*/
  .things-details,
  .attraction {
    text-align: left;
  }

  .attraction a {
    margin: 0;
  }

  /* Registry Tab*/
  .registry-details {
    text-align: left;
  }

  .registry-item {
    width: 100%;
    box-sizing: border-box;
    margin: 8px 0;
  }

  .registry-img {
    width: 100%;
  }

  /* FAQ Tab */
  .faq-item {
    text-align: left;
  }

  /* General */
  article h1,
  article h2,
  article h3 {
    text-align: left;
    margin-left: 0;
  }

  article h1 {
    font-size: 36px;
    line-height: 32px;
  }

  .link-list {
    grid-template-columns: auto;
  }

  .link-list a {
    display: block;
    width: max-content;
    margin: 0;
  }

  .link-target {
    scroll-margin-top: 20px;
  }

  .m-hide {
    display: none;
  }
}