/* Fullscreen background image */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Playfair Display', serif;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  background: url('../images/marble-bg.jpg') no-repeat center center fixed;
  background-size: cover;
}

h1 {
  color: black;
  text-align: center;
}

body {
  height: 100vh;
  width: 100vw;
  padding: 0;
  position: relative;
}

/* ----------------------------------------------------------------------- Navbar styling */
.navbar {
  background: #000;
  transition: all 0.3s ease;
  z-index: 9999;
  padding: 0.7rem 1rem;
}

/* Shrink Navbar on Scroll */
.navbar.shrink {
  background: black !important;
  padding: 0.5rem 1rem;
}

/* Mobile View: Always Black Background */
@media (max-width: 992px) {
  .navbar {
    background: black !important;
  }
}

/* Navbar Brand */
.navbar-brand {
  font-size: 3rem;
  font-family: 'Bonheur Royale', cursive;
  color: #fff;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 2.5rem;
  }
}

.navbar-brand:hover {
  color: #FFD700 !important;
  transition: color 0.3s ease-in-out;
}

/* Navbar Links */
.navbar-nav .nav-item .nav-link {
  color: white;
  font-size: 1.1rem;
  margin-right: 15px;
  font-family: 'Raleway', sans-serif;
  font-weight: bold;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.9);
}

.navbar-nav .nav-item .nav-link:hover {
  transition: all 0.3s ease-in-out;
  color: #FFD700;
}

/* General Navbar Toggler */
.navbar-toggler {
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
}

/* Heart Shape */
.heart-icon {
  width: 30px;
  height: 30px;
  background-color: #fff;
  position: relative;
  transform: rotate(-45deg);
  transition: all 0.3s ease-in-out;
}

/* Create the two rounded parts of the heart */
.heart-icon::before,
.heart-icon::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: #fff;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
}

.heart-icon::before {
  top: -15px;
  left: 0;
}

.heart-icon::after {
  left: 15px;
  top: 0;
}

/* Morph into X when Navbar is Expanded */
.navbar-toggler[aria-expanded="true"] .heart-icon {
  background: transparent;
  transform: rotate(0deg);
}

/* Convert the heart into two diagonal lines forming an X */
.navbar-toggler[aria-expanded="true"] .heart-icon::before,
.navbar-toggler[aria-expanded="true"] .heart-icon::after {
  width: 35px;
  height: 5px;
  background: #fff;
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .heart-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Fix Dropdown Background */
.navbar-collapse {
  background-color: black;
  text-align: center;
  padding: 10px;
}

@media (min-width: 992px) {
  .navbar-collapse {
    background: transparent;
  }
}

/* Title section */
.content {
  min-height: calc(100vh - 70px);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding-top: 90px;
}

/* Modern RSVP form */
.rsvp-form-container {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  margin-top: 30px;
  margin-bottom: 30px;
  text-align: left;
}

/* Form labels */
form label {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  color: #b03a2e;
  margin-bottom: 0.5rem;
  display: block;
}

/* Input fields */
form .form-control {
  border: 2px solid #f5c6cb;
  border-radius: 10px;
  padding: 10px;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

form .form-control:focus {
  border-color: #b03a2e;
  box-shadow: 0 0 5px rgba(176, 58, 46, 0.5);
  outline: none;
}

/* Submit Button */
.btn-custom {
  font-family: 'Dancing Script', cursive;
  background-color: #b03a2e;
  color: #fff;
  border: none;
  border-radius: 15px;
  padding: 10px 20px;
  font-size: 1.5rem;
  width: 100%;
}

.btn-custom:hover {
  background-color: #922b21;
  color: #ffe6e6;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background-color: #343a40;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 30px;
  width: 100%;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .rsvp-form-container {
    padding: 2rem;
  }
  form label {
    font-size: 1.2rem;
  }
  .btn-custom {
    font-size: 1.2rem;
    padding: 12px;
  }
}

/* Multi-Name Input */
.tag-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 2px solid #f5c6cb;
  border-radius: 10px;
  min-height: 45px;
  background: white;
}

.tag-container input {
  border: none;
  outline: none;
  flex-grow: 1;
  font-size: 1rem;
  padding: 7px 10px;
  background: transparent;
  min-width: 120px;
  height: 35px;
  align-self: center;
}

.tag-container input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.name-tag {
  background-color: #007bff;
  color: white;
  padding: 7px 12px;
  border-radius: 15px;
  font-size: 14px;
  display: flex;
  align-items: center;
  height: 35px;
  line-height: 1;
  white-space: nowrap;
}

.remove-tag {
  margin-left: 8px;
  cursor: pointer;
  font-weight: bold;
}
