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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Work Sans', sans-serif;
  color: white;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  /* Linear gradient background - light at top, dark at bottom */
  background: linear-gradient(to bottom, #334F97 0%, #171B3C 100%);
  background-attachment: fixed;
  background-size: 100% 100%;
}

/* Parallax images */
.parallax-image {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

.parallax-left {
  left: 0;
  top: 80px;
  bottom: 150px;
  width: 450px;
  opacity: 0.5;
}

.parallax-right {
  right: 0;
  bottom: 20px;
  width: 450px;
  opacity: 0.5;
}

.parallax-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Main content */
.main-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

/* Title section */
.title-section {
  text-align: center;
  margin-bottom: 80px;
}

.title-image {
  max-width: 70%;
  height: auto;
  margin-bottom: 10px;
}

.disclaimer {
  font-style: italic;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: -20px;
  margin-bottom: 40px;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: center;
  gap: 300px;
  margin: 0 0 20px 0;
  pointer-events: auto;
}

.nav-link {
  color: white;
  text-decoration: underline;
  font-family: 'Work Sans', sans-serif;
  font-size: 20px;
  font-weight: bold;
  font-style: italic;
  transition: opacity 0.3s;
}

.nav-link:hover {
  opacity: 0.7;
}

/* Input section */
.input-section {
  margin-bottom: 60px;
  display: flex;
  justify-content: flex-start;
}

.input-wrapper {
  width: 100%;
  max-width: 100%;
}

.input-label {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: left;
}

.text-input {
  width: 100%;
  padding: 15px 20px;
  font-size: 16px;
  font-family: 'Work Sans', sans-serif;
  border: 2px solid white;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  outline: none;
  transition: background 0.3s, border-color 0.3s;
}

.text-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.text-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Output section */
.output-section {
  margin-bottom: 60px;
  display: flex;
  justify-content: flex-start;
  min-height: 200px;
}

#output {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  row-gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
  box-sizing: border-box;
  line-height: 0;
  min-width: 0;
  align-content: flex-start;
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  contain: layout style;
  transform: translateZ(0);
  isolation: isolate;
  will-change: contents;
}

.letter {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  vertical-align: top;
  line-height: 0;
  height: auto;
  width: auto;
}

#output img {
  margin: 0;
  padding: 0;
  border: 0;
  display: block;
  vertical-align: top;
  line-height: 0;
  width: auto;
  height: auto;
  max-height: 100px;
  flex-shrink: 0;
}

#output div[data-is-space="true"],
.word-space {
  display: block;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.word-container {
  display: inline-flex;
  flex-wrap: nowrap;
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
}

.word-container img {
  flex-shrink: 0;
}

/* Actions section */
.actions-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 80px;
}

.action-button {
  padding: 15px 30px;
  font-size: 16px;
  font-family: 'Work Sans', sans-serif;
  background: white;
  color: #334F97;
  border: 2px solid #334F97;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  min-width: 250px;
}

.action-button:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.action-button.secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.action-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Share section */
.share-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 80px;
}

/* Scroll reveal animation for individual elements */
.scroll-reveal {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.share-label {
  font-size: 30px;
  font-weight: bold;
  text-align: center;
}

/* FAQ section */
.faq-section {
  margin-bottom: 60px;
  padding-top: 40px;
  text-align: center;
}

.section-title-image {
  height: auto;
  max-height: 12vh;
  width: auto;
  margin: 0 auto 30px auto;
  display: block;
}

.faq-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.faq-question {
  font-size: 20px;
  font-weight: bold;
  font-style: italic;
  color: white;
  margin-bottom: 20px;
  line-height: 1.6;
}

.faq-answer {
  font-size: 16px;
  color: white;
  line-height: 1.6;
}

/* Section divider */
.section-divider {
  width: 200px;
  height: 1px;
  background: white;
  margin: 100px auto;
  opacity: 0.3;
}

/* Contact section */
.contact-section {
  margin-bottom: 300px;
  padding-top: 10px;
  text-align: center;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-text {
  font-size: 16px;
  color: white;
  margin-bottom: 70px;
  line-height: 1.6;
}

.contact-text-emphasis {
  font-size: 20px;
  font-weight: bold;
  font-style: italic;
  color: white;
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Responsive design */
@media (max-width: 768px) {
  .main-content {
    padding: 20px 20px 200px;
  }

  .parallax-left,
  .parallax-right {
    width: 200px;
    opacity: 0.3;
  }

  .parallax-left {
    top: 0;
    bottom: auto;
  }

  .parallax-right {
    bottom: 0;
    top: auto;
  }

  .title-image {
    max-width: 90%;
  }

  .disclaimer {
    font-size: 12px;
    margin-bottom: 30px;
  }

  .nav {
    gap: 40px;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 18px;
  }

  .input-label {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .input-wrapper {
    max-width: 100%;
  }

  .text-input {
    font-size: 16px;
    padding: 12px 15px;
  }

  .input-section {
    margin-bottom: 10px;
  }

  .output-section {
    margin-bottom: 40px;
    min-height: 150px;
    margin-top: 0;
  }

  #output {
    max-width: 100%;
  }

  #output img {
    max-height: 50px;
  }

  .word-space {
    width: 60px !important;
    height: 50px !important;
  }

  .actions-section {
    margin-bottom: 60px;
    gap: 15px;
  }

  .action-button {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    padding: 12px 20px;
    font-size: 14px;
  }

  .share-section {
    margin-bottom: 60px;
    gap: 15px;
  }

  .share-label {
    font-size: 20px;
    padding: 0 10px;
  }

  .section-placeholder {
    padding: 40px 20px;
    min-height: 50vh;
  }

  .faq-section,
  .contact-section {
    margin-bottom: 40px;
    padding-top: 30px;
  }

  .section-title-image {
    max-width: 90%;
    margin-bottom: 20px;
  }

  .faq-question {
    font-size: 16px;
  }

  .faq-answer,
  .contact-text,
  .contact-text-emphasis {
    font-size: 14px;
  }

  .section-divider {
    margin: 40px auto;
    display: block;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 15px 15px 40px;
  }

  .parallax-left,
  .parallax-right {
    width: 200px;
    opacity: 0.3;
  }

  .input-label {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .nav-link {
    font-size: 16px;
  }

  .nav {
    gap: 30px;
  }

  .share-label {
    font-size: 18px;
  }

  #output img {
    max-height: 40px;
  }

  .word-space {
    width: 50px !important;
    height: 40px !important;
  }
}
