
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Libre+Baskerville&display=swap');

:root {
  --color-copper: #B87333;
  --color-burgundy: #4B0D18;
  --color-emerald: #014421;
  --color-amethyst: #4B0082;
  --color-navy: #000F4D;
  --color-ivory: #F5F5DC;
  --color-black: #000000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.small-font{
  font-size: 0.65rem;
}

#tsparticles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.925);
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
  left: 0;
}

.nav-logo {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: var(--color-copper);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-ivory);
  font-family: 'Libre Baskerville', serif;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-copper);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.925);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

header.flex-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;   
  min-height: 70vh; 
  padding: 2rem;
  text-align: center;
  overflow: hidden;
  background: transparent; 
}

body {
  font-family: 'Libre Baskerville', serif;
  background-color: var(--color-black);
  color: var(--color-ivory);
  margin: 0;
  padding: 2rem;
  text-align: center;
  user-select: none;
  cursor: auto;
}

h1, h2, h3, h4, h5 {
  font-size: 4rem;
  font-family: 'Great Vibes', cursive;
  color: var(--color-copper);
  user-select: none;
  cursor: default;
}

form[name="rsvp"],
form[name="rsvp"] input,
form[name="rsvp"] textarea,
form[name="rsvp"] button,
form[name="rsvp"] label {
  user-select: text;
  cursor: auto;
}

@media (max-width: 481px) and (max-width: 768px) {
  header h1, header h2 {
    font-size: 3.25rem;
  }
}
@media (max-width: 480px) {
  header h1, header h2 {
    font-size: 2.5rem;
  }
  .btn-rsvp {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
}

h4 {
  font-size: 1.5rem;
  font-family: 'Libre Baskerville', serif;
  color: var(--color-ivory);
  font-weight: 400;
  text-transform: uppercase;
}

h5 {
  font-size: 1.1rem;
  font-family: 'Libre Baskerville', serif;
  color: var(--color-copper);
  font-weight: 400;
}

.accommodation {
  word-wrap: break-word;
  background-image: url("/images/copper_stem_burgundy_rose_v3.png"); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 2rem;
  border-top: 1px solid var(--color-copper);
  border-bottom: 1px solid var(--color-copper);
  position: relative;
  z-index: 1;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.content-column {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  
  padding: 0 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .accommodation-column {
    flex: 1 1 100%;
  }
}

.content-card {
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  border: 1px solid var(--color-copper);
  border-radius: 0.75rem;
  color: var(--color-ivory);
  
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  
  text-wrap: break-word;
  overflow-wrap: break-word;     /* Breaks long words/URLs */
  word-wrap: break-word;         /* Legacy support */
  hyphens: auto;                 /* Allows hyphenation if supported */
}

.flex-section {
  margin: 2rem 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-copper);
}

.section-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.section-content .text-content {
  max-width: 45%;
  text-align: left;
}

@media (max-width: 768px) {
  .section-content,
  .section-content.reverse {
    flex-direction: column !important;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .accommodation-grid {
    grid-template-columns: repeat(2, 1fr);
	}
}
.image {
  display: block;
  width: 100%;
  max-width: 70vw; 
  min-width: clamp(250px, 25vw, 25%);     
  height: auto;
  object-fit: contain;
  margin: 1rem auto;
}

.img-small {
  max-width: 30% !important;
}

.img-medium {
  max-width: 60% !important;
}

.img-large {
  max-width: 100% !important;
}

.btn-rsvp {
  border: 2px solid var(--color-copper);
  padding: 0.5rem 1rem;
  background: none;
  color: var(--color-copper);
  font-family: 'Libre Baskerville', serif;
  text-transform: uppercase;
  cursor: pointer;
  user-select: text;
}

.rsvp textarea,
.rsvp input {
  resize: none;
  width: 90%;
  max-width: 600px;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--color-copper);
  background: transparent;
  color: var(--color-ivory);
  font-family: 'Libre Baskerville', serif;
}

/* Tablets */
@media (min-width: 600px) {
  .rsvp textarea,
  .rsvp input {
    width: 100%;
    font-size: 1.1rem;
  }
}

/* Desktops */
@media (min-width: 992px) {
  .rsvp textarea,
  .rsvp input {
    width: 50%;
    font-size: 1.2rem;
  }
}

a:link {
  color: var(--color-copper) !important;
  background-color: transparent !important;
  text-decoration: none !important;
}

a:hover {
  color: var(--color-ivory) !important;
  background-color: transparent !important;
  text-decoration: underline !important;
}

a:visited {
  color: var(--color-copper) !important;
  background-color: transparent !important;
  text-decoration: none !important;
}

.rsvp-attendance {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem auto;
  max-width: 600px;
  text-align: left;
}

.rsvp-attendance label {
  font-family: 'Libre Baskerville', serif;
  color: var(--color-copper);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rsvp-attendance input[type="radio"] {
  accent-color: var(--color-copper);
  width: 1.2rem;
  height: 1.2rem;
  cursor: pointer;
}

.faq-Q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: left; /* prevent text being centered individually */
  gap: 0.75rem;
  font-size: 1.1rem;
  font-family: 'Libre Baskerville', serif;
  color: var(--color-copper);
  cursor: pointer;
  padding: 0.5rem;
  max-width: 90%;
  margin: 0 auto;
}

.faq-Q .icon {
  justify-self: center;
  font-size: 1.2rem;
  transition: transform 0.5s ease;
}

.faq-Q.active .icon {
  transform: rotate(-180deg);
}

.faq-Q.active::after {
  transform: rotate(-180deg);
}

.faq-A {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.faq-A.open {
  max-height: 500px; 
}

.faq-answer p {
  margin: 0.25rem 0;
}

.faq-item {
  margin-bottom: 1rem;
}
