* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --matcha: rgb(153, 186, 165);
  --matcha-dark: #6b8560;
  --matcha-light: #d4e2d0;
  --cream: #faf8f3;
  --text-dark: #2d3a2e;
  --blue: #4a7c9e;
  --blue-light: #6b9dc4;
}

body {
  font-family: 'Georgia', serif;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.8;
}

.language-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 15px;
  border-radius: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.language-selector button {
  background: none;
  border: none;
  color: var(--matcha-dark);
  font-size: 14px;
  cursor: pointer;
  padding: 5px 10px;
  transition: all 0.3s;
  font-weight: 500;
}

.language-selector button:hover,
.language-selector button.active {
  color: var(--matcha);
  transform: scale(1.1);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(136, 164, 124, 0.3), rgba(136, 164, 124, 0.3)),
    url('./greece.jpg') center/cover;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  padding-top: 20vh;
}

.hero-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 60px 40px;
  border-radius: 20px;
  color: var(--text-dark);
  max-width: 600px;
  margin: 0 20px;
}

h1 {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--matcha), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Palatino', serif;
}

.date {
  font-size: 1.5rem;
  color: var(--blue);
  margin-top: 20px;
  font-weight: 500;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-style: italic;
}

.image-story {
  background-image: url('./japan.jpg');
}

.image-details {
  background-image: url('./us.jpg');
}

.rsvp-deadline {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  background: rgba(107, 157, 196, 0.15);
  border-left: 4px solid var(--blue);
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.footer-date {
  margin-top: 10px;
  opacity: 0.8;
}

section {
  padding: 40px 20px 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--matcha);
  margin-bottom: 40px;
  font-weight: 300;
}

.content-block {
  background: white;
  padding: 60px 40px;
  margin: 40px 0;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.image-block {
  width: 100%;
  height: 500px;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  margin: 40px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.story {
  background-color: var(--matcha-light);
  border-radius: 15px;
  margin-top: 30px;
}

/* Portraits Section */
.portraits {
  padding: 60px 0;
  background-color: rgba(212, 226, 208, 0.5);
  border-radius: 15px;
  margin: 40px 0;
}

.portraits-container {
  display: flex;
  justify-content: center;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}

.portrait {
  text-align: center;
}

.portrait-img {
  width: 250px;
  height: 300px;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.portrait-img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.portrait-name {
  margin-top: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  background-color: white;
  border-radius: 15px;
  padding: 20px;
  animation: slideUp 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text-dark);
  cursor: pointer;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: var(--matcha);
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-caption {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}

/* Code Editor Styles */
.code-editor {
  background: #ffffff; /* Light theme background */
  border-radius: 12px;
  overflow: hidden;
  margin: 40px 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.3s ease;
}

.code-editor:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.18);
}

.code-header {
  background: #f9fafb; /* Light header */
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
}

.code-tabs {
  display: flex;
  gap: 0;
}

.code-tab {
  padding: 8px 16px;
  color: #6b7280;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  font-family: 'Segoe UI', 'Monaco', monospace;
}

.code-tab.active {
  color: #1f2937;
  border-bottom-color: var(--matcha);
  background: #ffffff;
}

.code-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.code-badge {
  background: linear-gradient(135deg, var(--matcha), var(--blue));
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.code-content {
  padding: 0;
  overflow-x: auto;
  background: #ffffff; /* Light theme background */
}

.code-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1f2937; /* Dark text for light background */
  margin: 0;
}

.code-table tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
}

.code-table tr:hover {
  background-color: #f9fafb;
}

.code-table tr:last-child {
  border-bottom: none;
}

.code-line-number {
  background-color: #f9fafb;
  color: #9ca3af;
  padding: 0 16px;
  text-align: right;
  user-select: none;
  width: 50px;
  min-width: 50px;
  border-right: 1px solid #e5e7eb;
}

.code-line-content {
  padding: 0 16px;
  color: #1f2937; /* Dark text */
  word-break: break-word;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Courier New', monospace;
}

/* Syntax highlighting - Enhanced Light Theme */
.code-keyword {
  color: #af00db; /* Purple for light theme */
  font-weight: 600;
  transition: all 0.2s ease;
}

.code-keyword:hover {
  text-shadow: 0 0 8px rgba(175, 0, 219, 0.2);
}

.code-comment {
  color: #008000; /* Green comment for light theme */
  font-style: italic;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.code-comment:hover {
  opacity: 1;
}

.code-string {
  color: #a31515; /* Red/brown string for light theme */
  transition: all 0.2s ease;
}

.code-string:hover {
  text-shadow: 0 0 6px rgba(163, 21, 21, 0.15);
}

.code-number {
  color: #098658; /* Teal number for light theme */
  font-weight: 500;
}

.code-operator {
  color: #0000ff; /* Blue operator for light theme */
  font-weight: 600;
  transition: all 0.2s ease;
}

.code-operator:hover {
  text-shadow: 0 0 6px rgba(0, 0, 255, 0.2);
}

.code-function {
  color: #795e26; /* Brown function for light theme */
  font-weight: 500;
  transition: all 0.2s ease;
}

.code-function:hover {
  text-shadow: 0 0 6px rgba(121, 94, 38, 0.2);
}

.code-footer {
  background: #f9fafb; /* Light header/footer */
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e5e7eb;
  font-size: 0.85rem;
  color: #6b7280;
  font-family: 'Segoe UI', 'Monaco', monospace;
}

.code-stats {
  color: #6b7280;
}

.code-status {
  color: var(--matcha);
  font-weight: 600;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.detail-card {
  background: white;
  padding: 40px;
  border-radius: 15px;
  border-left: 5px solid var(--blue);
}

.detail-card h3 {
  color: var(--blue);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.detail-card p {
  font-size: 1.1rem;
  margin: 10px 0;
}

.rsvp-section {
  background: linear-gradient(135deg, var(--matcha-light), var(--cream));
  text-align: center;
  border-radius: 15px;
}

.rsvp-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--matcha), var(--blue));
  color: white;
  padding: 20px 50px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2rem;
  margin-top: 30px;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(74, 124, 158, 0.3);
  border: none;
  cursor: pointer;
}

.rsvp-button:hover {
  background: linear-gradient(135deg, var(--matcha-dark), var(--blue-light));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(74, 124, 158, 0.4);
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: var(--cream);
  margin: 5% auto;
  padding: 40px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  color: var(--text-dark);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: var(--matcha);
}

.modal-title {
  color: var(--matcha);
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  clear: both;
}

.success-box {
  text-align: center;
  padding: 40px 20px;
}

.success-box h2 {
  color: var(--matcha);
  font-size: 2.5rem;
  margin-bottom: 20px;
  animation: slideIn 0.5s;
}

.success-box p {
  color: var(--text-dark);
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.success-close-btn {
  background-color: var(--matcha);
  color: white;
  padding: 12px 40px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.success-close-btn:hover {
  background-color: var(--matcha-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(136, 164, 124, 0.3);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
}

.form-group input[type='text'],
.form-group input[type='number'],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--matcha-light);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
  background-color: white;
  box-sizing: border-box;
}

.form-group input[type='text']:focus,
.form-group input[type='number']:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--matcha);
  box-shadow: 0 0 8px rgba(136, 164, 124, 0.2);
}

.form-group textarea {
  resize: vertical;
}

.form-hint {
  font-size: 0.9rem;
  color: #888;
  font-style: italic;
  margin: -10px 0 15px 0;
}

.radio-group {
  display: flex;
  gap: 30px;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
  margin-bottom: 0;
}

.radio-label input[type='radio'] {
  margin-right: 10px;
  cursor: pointer;
  accent-color: var(--matcha);
}
.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
  margin-bottom: 0;
}

.checkbox-label input[type='checkbox'] {
  margin-right: 10px;
  cursor: pointer;
  accent-color: var(--matcha);
}
.submit-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--matcha), var(--blue));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.submit-button:hover {
  background: linear-gradient(135deg, var(--matcha-dark), var(--blue-light));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 124, 158, 0.3);
}

.submit-button:active {
  transform: translateY(0);
}

.hidden {
  display: none;
}

footer {
  background: var(--matcha-dark);
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-top: 30px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero-content {
    padding: 40px 25px;
  }

  .section-title {
    font-size: 2rem;
  }

  .content-block,
  .detail-card {
    padding: 30px 25px;
  }

  .image-block {
    height: 300px;
  }

  .modal-content {
    width: 95%;
    padding: 20px 15px;
    margin: 10% auto;
    max-height: 85vh;
  }

  .modal-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .radio-group {
    flex-direction: column;
    gap: 15px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-group input[type='text'],
  .form-group input[type='number'],
  .form-group select,
  .form-group textarea {
    padding: 10px;
    font-size: 16px;
  }
}

.dress-code-strip {
  height: 20px;
  width: 100%;
  margin-top: 20px;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    #d92b4b 0%,
    #d92b4b 20%,
    #d92b8b 20%,
    #d92b8b 40%,
    #663f8c 40%,
    #663f8c 60%,
    #9bbfa4 60%,
    #9bbfa4 80%,
    #9ea665 80%,
    #9ea665 100%
  );
}

.map-container {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  display: block;
  width: 100%;
  border: none;
}

.accommodation-list {
  margin-top: 1rem;
  line-height: 1.8;
  list-style-position: inside;
}

.accommodation-list a {
  color: var(--matcha-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--matcha);
  transition: color 0.3s;
}

.accommodation-list a:hover {
  color: var(--matcha);
}

.dress-text {
  white-space: pre-line;
}
