/* General Styles */
body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Header Section */
.header-section {
  position: relative;
  overflow: hidden;
  height: 100vh;
}

.header-background {
  position: relative;
  width: 100%;
  height: 100%;
  background-image: url('/1000001646.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.header-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.header-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
}

.header-info {
  margin-bottom: 2rem;
}

.header-info h1 {
  font-size: 3rem;
  margin: 0;
  font-weight: bold;
}

.header-info h3 {
  max-width: 560px;
  line-height: 1.2;
  font-size: 25px;
  font-weight: 400;
  margin: 10px auto;
  font-family: Lora;
  font-style: italic;
}

.header-rsvp-btn {
  display: inline-block;
  background: #007BFF;
  color: white;
  padding: 1rem 1rem;
  text-decoration: none;
  border-radius: 5px;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
}

.header-rsvp-btn:hover {
  background: #0056b3;
}

.header-rsvp-btn-wrapper {
  text-align: center;
  padding-top: 30px;
}

.header-details {
  font-size: 1.2rem;
  margin: 1rem 0;
}

.header-scroll {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  min-height: 40px;
  z-index: 10;
  transition: opacity 0.5s ease;
}

.header-scroll.hidden {
  opacity: 0;
  pointer-events: none;
}

.header-scroll-icon {
  position: absolute;
  bottom: 2%;
  left: 50%;
  box-shadow: 2px 2px #fff inset;
  width: 18px;
  height: 18px;
  z-index: 30;
  border: 10px solid transparent;
  cursor: pointer;
  transition: all .3s;
  transform: translate(-50%) rotate(-135deg);
  animation: header-scroll-icon-bounce 2s infinite ease-in-out;
}

@keyframes header-scroll-icon-bounce {

  0%,
  60% {
    transform: translateY(0) translate(-50%) rotate(-135deg);
  }

  70% {
    transform: translateY(-13px) translate(-50%) rotate(-135deg);
  }

  80% {
    transform: translateY(2px) translate(-50%) rotate(-135deg);
  }

  90% {
    transform: translateY(-6px) translate(-50%) rotate(-135deg);
  }
}

/* Main Content */
main {
  font-size: 20px;
  line-height: 2rem;
}

.event-details {
  max-width: 600px;
  padding: 100px 20px;
  margin: 0 auto;
  color: #262626;
}

.event-details-fade-in {
  transition: all .5s ease-out .1s;
  opacity: 0;
  transform: translateY(20px);
}

.event-details-fade-in.fade-in {
  opacity: 1;
  transform: translateY(0);
}



.additional-info-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.additional-info-fade-in {
  transition: all .5s ease-out .1s;
  opacity: 0;
  transform: translateY(20px);
}

.additional-info-fade-in.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.additional-info {
  width: 100%;
  padding: 100px 0;
  background-color: #2224B3;
  color: white;
}

.additional-info-row {
  display: flex;
  flex-direction: row;
  gap: 30px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.info-container {
  max-width: 600px;
}

.info-table-desktop {
  width: 100%;
  border-collapse: collapse;
}

.info-table-title {
  text-align: right;
  vertical-align: top;
  min-width: 110px;
  font-size: 18px;
  line-height: 1.5;
  padding-bottom: 10px;
  padding-right: 20px;
}

.info-table-item {
  font-size: 18px;
  line-height: 1.5;
  padding-bottom: 10px;
}

.info-mobile {
  display: none;
  flex-direction: column;
  gap: 15px;
}

.info-row {
  font-size: 18px;
  line-height: 1.5;
}

.closing-message {
  text-align: center;
  margin: 50px 0;
  font-size: 18px;
}

.closing-message p {
  margin: 10px 0;
}

.location-map-image {
  position: relative;
  width: 100%;
  object-fit: cover;
}

/* Container for centering content */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

/* Admin Data Container */
#dataContainer {
  margin-top: 20px;
  display: none;
}

#dataContainer h2 {
  color: #2224B3;
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
}

.counters {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.counters p {
  background: #6c757d;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-width: 120px;
}

.counters p:first-child {
  background: #28a745; /* Green for attending */
}

.counters p:nth-child(2) {
  background: #dc3545; /* Red for not attending */
}

.counters p:nth-child(3) {
  background: #6c757d; /* Gray for not responded */
}

#dataList {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.user-card {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.user-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.user-card h3 {
  color: #007BFF;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.user-card p {
  margin: 8px 0;
  line-height: 1.5;
}

.user-card .attending-yes {
  color: #28a745;
  font-weight: bold;
}

.user-card .attending-no {
  color: #dc3545;
  font-weight: bold;
}

.user-card .not-responded {
  color: #6c757d;
  font-style: italic;
  margin: 10px 0;
}

.user-card strong {
  color: #495057;
}

/* Form Styles */
form {
  display: flex;
  flex-direction: column;
}

#guests-list td {
  text-align: center;
}

#guests-list td:first-child {
  text-align: left;
}

#guests-list input[type="checkbox"] {
  display: block;
  margin: 0 auto;
}

label {
  margin: 0.5rem 0 0.2rem;
}

input,
select,
textarea,
button {
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

button {
  background-color: #007BFF;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

.submit-btn {
  align-self: flex-end;
}

.submit-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Dialog */
dialog {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 90%;
  padding: 20px;
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.4);
}

.guest-name {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
}

.not-invited-message {
  display: none;
}

.form-texts {
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  width: 100%;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 10px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

.loading {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  color: #666;
}

.success {
  text-align: center;
  padding: 2rem;
}

.success h2 {
  color: #28a745;
  margin-bottom: 1rem;
}

.success p {
  margin-bottom: 2rem;
  line-height: 1.5;
}

.success-close-btn {
  background-color: #28a745;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.success-close-btn:hover {
  background-color: #218838;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #f4f4f4;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  body {
    font-size: 0.9rem;
  }

  .header-content {
    left: 30%;
    transform: translate(-20%, -50%);
  }

  .header-info h1 {
    font-size: 1.5rem;
  }

  .header-info h3 {
    font-size: 18px;
  }

  .header-details {
    font-size: 13px;
  }

  .info-container {
    max-width: auto;
    padding: 0 20px;
  }

  .info-table-desktop {
    display: none;
  }

  .info-mobile {
    display: flex;
  }

  main {
    font-size: 18px;
    line-height: 1.5rem;
  }
}
