:root {
  --main-color: #5b007c;
  --reverse-main-color: #71d553;
  --text-highlight-color: #f4f4f4;
  --reverse-text-highlight-color: #0a0a0a;
}

body,
html {
  font-family: "Nunito", sans-serif;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

@media screen and (max-width: 400px) {

  body,
  html {
    font-size: 14px;
  }
}

.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}

.arrow-down-container {
  position: fixed;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
}

@media screen and (max-height: 750px) {
  .arrow-down-container {
    display: none !important;
  }
}

.arrow-down {
  color: var(--reverse-main-color);
  font-size: 3rem;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-15px);
  }

  50% {
    transform: translateY(0);
  }

  70% {
    transform: translateY(-8px);
  }
}

.container {
  width: 100vw;
  height: 100lvh;
  background-image: url('./assets/background.jpg');
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  position: relative;
  overflow: auto;
}

.header {
  text-align: center;
  margin: 0 auto;
  padding: 4rem 2rem 0;
  min-height: 100vh;
  max-width: 768px;
}

.title {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-shadow: var(--text-highlight-color) 1px 1px 2px;
}

.name {
  font-size: 4rem;
  color: var(--main-color);
  font-family: "Allura", cursive;
  margin: 0;
}

.heading-text {
  font-size: 1.5rem;
  color: var(--main-color);
  margin: 0;
  text-shadow: var(--text-highlight-color) 1px 1px 2px;
}

.date-container {
  font-size: 3rem;
  color: var(--main-color);
  margin: 0;
  text-shadow: var(--text-highlight-color) 1px 1px 2px;
  font-family: "Allura", cursive;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-direction: column;
  margin-top: 2rem;
  font-weight: bold;
}

.details-container {
  padding: 2rem;
  backdrop-filter: blur(4px);
  background-color: rgb(255 255 255 / 30%);
  border-top: 1px solid #cacaca;
  box-shadow: 0px -4px 6px 2px rgba(0, 0, 0, 0.1);
}

.church-location,
.reception-location {
  font-size: 1.25rem;
  color: var(--main-color);
  text-shadow: var(--text-highlight-color) 1px 1px 8px;
  text-align: center;
}

.reception-location {
  margin-top: 3rem;
}

.location-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.location-time {
  font-size: 1.25rem;
  font-weight: bold;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.location-icon {
  font-size: 3rem;
  color: var(--main-color);
}

#scroll-sentinel {
  position: absolute;
  top: 8rem;
  height: 1px;
  width: 1px;
  pointer-events: none;
}

#rsvp-form {
  max-width: 500px;
  margin: 8rem auto 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  color: #333;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#rsvp-form .welcome-text {
  text-align: center;
  color: var(--main-color);
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 1rem;
  margin-top: 0;
}

#rsvp-form p {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

#rsvp-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

#rsvp-form legend {
  font-weight: bold;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  width: 100%;
}

#rsvp-form .radio-group {
  display: inline-flex;
  align-items: baseline;
  margin-right: 1.5rem;
}

#rsvp-form input[type="radio"] {
  margin-right: 0.5rem;
  transform: scale(1.2);
}

#rsvp-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 1.1rem;
}

#rsvp-form input[type="number"],
#rsvp-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  margin-bottom: 1.5rem;
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
}

#rsvp-form textarea {
  resize: vertical;
  min-height: 100px;
}

#rsvp-form button {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 25px;
  background: linear-gradient(to right, #8a2be2, #ff1493);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#rsvp-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

#rsvp-form input[type="radio"] {
  accent-color: #8a2be2;
}

#form-message {
  margin-top: 1rem;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
}

#form-message.success {
  color: #28a745;
}

#form-message.error {
  color: #dc3545;
}

input:focus,
textarea:focus {
  outline: var(--main-color) auto 1px;
}

.footer-container {
  text-align: center;
  margin-top: 2rem;
  font-size: 1rem;
  font-weight: bold;
  color: var(--main-color);
  text-shadow: 0px 0px 8px rgb(255 255 255);
}

.location-iframe {
  border: 2px solid var(--main-color);
  border-radius: 16px;
  box-shadow: 2px 2px 4px 0px rgb(0 0 0 / 60%);
}