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

body {
  font-family: 'Sofia Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #5D866C 0%, #C2A68C 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  background: #F5F5F0;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 900px;
  width: 100%;
  padding: 20px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

#app {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header with icon, title, and language button */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid #E6D8C3;
}

.header-title-section {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.svg-container-small {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.svg-container-small svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

h2 {
  color: #5D866C;
  margin: 0;
  font-size: 32px;
  font-family: 'Georgia', 'Garamond', serif;
  font-weight: 700;
  line-height: 80px;
  flex: 1;
  word-break: break-word;
}

.wobble {
  animation: wobble 3s ease-in-out infinite;
  transform-origin: center;
}

@keyframes wobble {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-3deg);
  }
  75% {
    transform: rotate(3deg);
  }
}

.slide-content {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.text-content {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
  display: flex;
  flex-direction: column;
}

.text-content::-webkit-scrollbar {
  width: 8px;
}

.text-content::-webkit-scrollbar-track {
  background: #E6D8C3;
  border-radius: 4px;
}

.text-content::-webkit-scrollbar-thumb {
  background: #C2A68C;
  border-radius: 4px;
}

.text-content::-webkit-scrollbar-thumb:hover {
  background: #5D866C;
}

p {
  color: #5D6B63;
  line-height: 1.6;
  margin-bottom: 10px;
  font-size: 15px;
}

strong {
  color: #5D866C;
  font-weight: 600;
}

em {
  color: #C2A68C;
  font-style: italic;
}

ul {
  margin-left: 20px;
  margin-bottom: 10px;
}

li {
  color: #5D6B63;
  line-height: 1.5;
  margin-bottom: 4px;
  font-size: 14px;
}

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #E6D8C3;
  gap: 10px;
}

button {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #5D866C;
  color: #F5F5F0;
}

button:hover:not(:disabled) {
  background: #4D6E5A;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(93, 134, 108, 0.4);
}

button:disabled {
  background: #C2A68C;
  cursor: not-allowed;
  opacity: 0.6;
}

.slide-indicator {
  color: #C2A68C;
  font-weight: 600;
  font-size: 14px;
}

input, select, textarea {
  width: 100%;
  padding: 8px;
  border: 2px solid #C2A68C;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #5D866C;
  font-size: 14px;
}

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

.section-header {
  margin-top: 0.5em;
  border-top: 1px solid #E6D8C3;
  padding-top: 0.2em;
  margin-bottom: 1.5em;
}

.section-header-only-top {
  margin-top: 0.5em;
  border-top: 1px solid #E6D8C3;
  padding-top: 0.2em;
}

.section-intro {
  margin-bottom: 1.5em;
}

.warning-box {
  margin-top: 1.5em;
  padding: 1em;
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
}

#submitResult {
  margin-top: 15px;
  padding: 15px;
  background: #E6D8C3;
  border: 2px solid #C2A68C;
  border-radius: 4px;
  color: #5D866C;
  display: none;
  font-size: 14px;
}

.lang-btn {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid #5D866C;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #F5F5F0;
  color: #5D866C;
  white-space: nowrap;
}

.lang-btn:hover {
  background: #5D866C;
  color: #F5F5F0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(93, 134, 108, 0.4);
}

/* Mobile styles */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 15px;
    height: 95vh;
    max-width: 100%;
  }

  .header {
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
  }

  .header-title-section {
    width: 100%;
    gap: 10px;
  }

  .svg-container-small {
    width: 70px;
    height: 70px;
    margin-top: 0;
  }

  h2 {
    font-size: 16px;
    line-height: 50px;
  }

  .lang-btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  .slide-content {
    flex-direction: column;
  }

  p, li {
    font-size: 13px;
  }

  button {
    padding: 8px 14px;
    font-size: 12px;
  }

  .slide-indicator {
    font-size: 12px;
  }

  input, select, textarea {
    padding: 6px;
    font-size: 14px;
  }

  label {
    font-size: 13px;
  }

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