:root {
  --bg-color: #fcfbf8;
  --text-color: #4a4a4a;
  --accent-color: #c5a059;
  /* Goldish */
  --secondary-bg: #fff;
  --font-main: 'Bauhaus', system-ui, sans-serif;
  --spacing-unit: 1rem;
}

@font-face {
  font-family: 'Bauhaus';
  src: url('assets/fonts/BAUshpizin-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  font-weight: 300;
  background-color: var(--bg-color);
  color: var(--text-color);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: 0.04em;

}

#root {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

p {
  margin: 0;
  letter-spacing: 0.04em;
}




/* Invitation Container */
.invitation {
  width: 100%;
  background-color: var(--secondary-bg);
  padding: 2rem 1.5rem 8rem 1.5rem;
  /* Bottom padding for fixed buttons */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  animation: fadeIn 1.5s ease-out;
  gap: 2rem;
  justify-content: center;
  z-index: 10;
  margin-top: -4rem;
  border-radius: 30px 30px 0 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Quote */
.invitation-quote {
  font-size: 1.2rem;
  color: #666;
}

/* Names */
.invitation-names {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  justify-content: center;
}

.name {
  font-size: 3.5rem;
  color: var(--accent-color);
  line-height: 1.1;
}

.separator {
  font-size: 1.2rem;
  opacity: 0.6;
}

/* Details */
.invitation-details {
  font-size: 1.2rem;
}

/* Times */
.invitation-times {
  display: flex;
  justify-content: center;
  gap: 3rem;
  width: 100%;
}

.time-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.icon {
  width: 40px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Using mask or simple img tag in React, here standard CSS class assumption */


.time-text p:first-child {
  font-weight: 300;
  font-size: 1.2rem;
  margin: 0;
  color: var(--accent-color);
  margin-bottom: -0.3rem;
}

.time-text p:last-child {
  font-size: 1.5rem;
  margin: 0;
}

/* Parents */
.invitation-parents {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.parents-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 3rem;
}

.invitation-parents>p:first-child {
  font-size: 1.2rem;
}

.parents {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.2rem;
}

.parents p:first-child {
  font-weight: 300;
  margin-bottom: -0.2rem;
}

.parents p:last-child {
  font-size: 1.2rem;
}

/* Action Bar */
.action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  gap: 1rem;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.action-btn {
  border: none;
  background: var(--accent-color);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  width: 100%;
  justify-content: center;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}

.action-btn.secondary {
  background: white;
  color: var(--text-color);
  border: 1px solid #ddd;
}

/* Intro Video Section */
#intro-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
}

#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 1;
  width: calc(100% + 30px);
  object-fit: cover;
  filter: blur(5px);
  margin: -15px;
  position: relative;
  overflow: hidden;
  padding-bottom: 38px;
}

.logo-overlay {
  text-align: center;
  width: 9rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.logo-overlay img {
  width: 100%;
  height: auto;
  /* Force gold color if transparent PNG/SVG using filter */
  /* Using filter to match var(--accent-color) #c5a059 roughly */
  /* calculated filter for #c5a059 from black */
  filter: invert(66%) sepia(26%) saturate(693%) hue-rotate(357deg) brightness(92%) contrast(88%);
}

@keyframes fadeInLogo {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* Default State */
.action-bar {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  max-height: 80px;
  /* Approximate height of buttons area */
}

/* Expanded State for Gift Form */
.action-bar.expanded {
  height: calc(90vh - 10px);
  background: rgba(255, 255, 255, 0.98);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  display: flex;
  padding-top: 20px;
  padding-bottom: 20px;
}

.default-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  transition: opacity 0.3s ease;
}

.action-bar.expanded .default-buttons {
  display: none;
  opacity: 0;
  pointer-events: none;
}

/* Gift Form Stylings */
.gift-form-container {
  display: none;
  width: 100%;
  max-width: 400px;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  padding: 0 1.5rem;
  font-family: 'Heebo', sans-serif;
}

.action-bar.expanded .gift-form-container {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.close-gift-btn {
  position: absolute;
  top: -2rem;
  right: 0;
  background: #efefef;
  font-size: 2rem;
  color: #707070;
  cursor: pointer;
  line-height: 1;
  z-index: 101;
  border: 1px;
  border-color: #383838;
  border-radius: 50px;
  padding-bottom: 2px;
  padding-top: 3px;
  padding-left: 10px;
  padding-right: 10px;
}

.gift-form-container h3 {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  font-family: var(--font-main);
  margin: 0;
}

.gift-subtitle {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

#giftForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: right;
}

.form-group label {
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 500;
}

.form-group input {
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 1.1rem;
  font-family: inherit;
  transition: all 0.2s;
  background: #f9f9f9;
  text-align: right;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  background: #fff;
}

/* Amount Input with Icon */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-icon {
  position: absolute;
  left: 1rem;
  color: var(--accent-color);
  font-size: 1.2rem;
  font-weight: bold;
  pointer-events: none;
}

.amount-group input {
  padding-left: 2.5rem;
  /* Space for icon */
  width: 100%;
}

/* PayPal Container Spacing */
#paypal-button-container {
  margin-top: 1rem;
  width: 100%;
}

/* Disable scroll when modal is open */
.no-scroll {
  overflow: hidden;
}