html {
  margin: 0;
  padding: 0;
  display: block;
  width: 100%;
  min-width: 100%;
}

body {
  margin: 0;
  padding: 0;
  display: block;
  width: 100%;
  min-width: 100%;
}

.container {
  max-width: 1000px;
  width: 100%;
  padding: 0 1.5rem;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

h1 {
  color: #333;
  margin-bottom: 2rem;
  text-align: center;
}

h2 {
  color: #555;
  margin: 1.5rem 0 1rem;
}

.upload-form {
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 0 auto;
  width: 300px;
}

.consent-area {
  width: 600px;
  max-width: 100%;
  margin: 0 auto;
  margin-top: 2rem;
  display: none;
}

.upload-button {
  background-color: #af90e6;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 4px;
  width: 250px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  color: black;
  border: none;
  cursor: pointer;
  margin: 0 auto;
}
.upload-button svg {
  width: 30px;
  fill: black;
}
.upload-button:hover {
  background-color: #9f7fd5;
}
.upload-button:active {
  background-color: #8e64e0;
}

.consent-notice {
  font-size: 0.8rem;
  color: var(--secondary-color);
  opacity: .8;
  width: 100%;
}



.success {
  color: #4caf50;
}

.error {
  color: #f44336;
}

.files-list {
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-radius: 8px;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

li:last-child {
  border-bottom: none;
}

a {
  color: #4a86e8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* PDF Viewer Styles */
.pdf-viewer {
  background-color: #f5f5f5;
  border-radius: 8px;
  margin-top: 2rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

#editSection {
    width: 700px;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#editSection.hidden {
    display: none;
}
#editArea {
    width: 100%;
    height: 100%;
}
#applyEditButton {
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 4px;
    width: 150px;
    height: 40px;
    color: black;
    border: none;
    cursor: pointer;
    text-align: center;
}

.pdf-container {
  background-color: #fff;
  border: 1px solid #8e64e0;
  border-radius: 8px;
  margin-top: 1rem;
  overflow: auto;
  max-width: 700px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}
.pdf-container.hidden {
    display: none;
}

.pdf-canvas {
  display: block;
  max-height: 100vh;
  max-width: 100%;
  pointer-events: none;
}

.feedback {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.feedback p {
  font-size: 1.2rem;
  color: #555;
  margin: 0;
  padding: 0;
  height:  50px;
  line-height: 50px;
}
.emoji-radio-group {
  display: flex;
  justify-content: center;
  gap: 5px;
}
.emoji-radio-group input[type="radio"] {
  display: none;
}
.emoji-radio-group label {
  width: 50px;
  height: 50px;
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.1s ease;
  border-radius: 10px;
  text-align: center;
  line-height: 50px;
}
.emoji-radio-group input[type="radio"]:checked + label {
  font-size: 2rem;
  background-color: rgba(0, 0, 0, 0.05);
}
.feedback-text {
  width: 400px;
  display: none;
  gap: 5px;
}
.feedback-text textarea {
  width: 100%;
  border: 1px solid #ccc;
}
.feedback-text button {
  padding: 0.2rem 0.5rem;
}

.pdf-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.pdf-controls button {
  width: auto;
  padding: 0.5rem 1rem;
  border: 0;
  cursor: pointer;
}

#prevButton, #nextButton {
  display: none;
}
.page-info {
  margin: 0 .2rem;
  font-size: 0.9rem;
  color: #555;
  display: none;
}

.pdf-controls .download-button {
  background-color: #af90e6;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 4px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  color: black;
}
.download-button svg {
  width: 30px;
  fill: black;
}
.download-button:hover {
  background-color: #9f7fd5;
}
.download-button:active {
  background-color: #8e64e0;
}













.upload {
  position: relative;
  width: 100%;
  margin: 0 auto;
}
.upload input {
  box-sizing: border-box;
  width: 100%;
  padding-left: 100px;
  padding-top: 70px;
  padding-bottom: 50px;
  border: 4px dashed #8e64e0;
  border-radius: 20px;
  font-size: 1rem;
}
.icon, .title, .size-limit {
  position: absolute;
  pointer-events: none;
}
.icon {
  width: 50px;
  top: 45px;
  left: 30px;
  color: #ccc;
}
.title {
  font-size: 1.1rem;
  top: 40px;
  left: 100px;
}
.size-limit {
  top: 120px;
  color: #666;
  font-size: .8rem;
  right: 20px;
}
.upload label {
  padding-right: 50px;
  text-align: start;
}
@media (max-width: 470px) {
  .upload input {
    padding-top: 100px;
    padding-left: 80px;
  }
  .upload label {
    left: 80px;
  }
  .upload .icon {
    width: 40px;
  }
}
















:root {
  /* Color variables */
  --primary-bg: #fdf7f0;           /* Beige background */
  --primary-color: #ff7f50;        /* Accent (orange/peach) */
  --secondary-color: #424242;      /* Dark text */
  --heading-color: #1f1f1f;        /* Headline text */
  --white: #ffffff;
  --card-bg: #ffffff;
  --card-border: #f0e8de;

  /* Spacing variables */
  --section-padding: 3rem;
  --card-padding: 1.5rem;
  --max-width: 1200px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary-bg);
  color: var(--secondary-color);
  line-height: 1.6;
}

/* 1. HEADER / HERO SECTION */
header {
  padding: var(--section-padding) 0 2rem;
  padding-top: 0;
  text-align: center;
  background-color: #fff1dc;
  background-image: url('/public/bg-min.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  margin-top: var(--section-padding);
}
.logo:hover {
  text-decoration: none;
}

.logo img {
  height: 100px;
  margin-right: 1.25rem;
}

.logo span {
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--heading-color);
}

nav {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.4);
}
nav .logo {
  margin: 0;
}
nav .logo span {
  font-size: 1.3rem;
}
nav span, nav .spacer {
  min-width: 130px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
nav ul li {
  border: 0;
}
nav ul li a {
  text-decoration: none;
  color: var(--secondary-color);
  font-size: 1.1rem;
  font-weight: 600;
}


h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1rem;
  line-height: 1.1;
}
@media (max-width: 768px) {
  .logo img {
    width: 80px;
    height: 75px;
  }
  .logo span {
    font-size: 2.3rem;
  }
  h1 {
    font-size: 2.5rem;
  }
  nav .spacer {
    display: none;
  }
}

.subheadline {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-note {
  font-size: 1.2rem;
  color: var(--secondary-color);
  opacity: 0.8;
  margin-top: 50px;
  margin-bottom: 20px;
}
.deletion-note {
  font-size: .7rem;
  color: var(--secondary-color);
  opacity: 0.7;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cta-buttons button,
.cta-buttons a {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-buttons button:hover,
.cta-buttons a:hover {
  background-color: #ff9269;
}

/* 2. MAIN CONTENT SECTIONS */
main {
  padding: var(--section-padding) 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--heading-color);
  text-align: center;
  margin-bottom: 2rem;
}

.demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.demo img {
  max-width: 100%;
  width: 1200px;
  height: auto;
  border-radius: 8px;
  margin-top: -50px;
}

/* Cards layout */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: card-counter;
}

.card-grid.how-it-works .card::before {
  content: counter(card-counter);
  counter-increment: card-counter;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #fff6e7;
  fill: #d1924d;
  margin-right: 10px;
  position: absolute;
  top: -20px;
  left: calc(50% - 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: 100%;
  border: 1px solid var(--card-border);
  font-weight: bold;
}

.card {
  position: relative;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.row {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 1rem;
}

.card-icon {
  width: 50px;
  height: 50px;
  padding: 5px;
  background: #fff6e7;
  fill: #d1924d;
  border-radius: 8px;
}

.card-title {
  font-weight: 600;
  margin-left: 20px;
  font-size: 1.4rem;
}

.card-desc {
  font-size: 0.95rem;
  line-height: 1.4;
}




#formTitle {
  margin-bottom: 1.5rem;
}
.sign-in-message {
  font-size: 1.2rem;
  color: #555;
  text-align: center;
}
.switch-mode {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
}
#toggleButton {
  background: none;
  border: none;
  color: #4a90e2;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0;
}
#authForm {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 400px;
    margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#authForm label {
  font-weight: 600;
  color: #444;
}

#authForm input {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease-in-out;
}

#authForm input:focus {
  outline: none;
  border-color: #4a90e2;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  flex: 1;
}

#authForm button#togglePassword {
  position: absolute;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

#authForm button {
  background-color: #8e64e0;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

#authForm button:hover {
  background-color: #7a52d9;
}

#authForm .error-message {
  color: #e74c3c;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
  min-height: 1.25rem;
}
#authForm .success-message {
  color: #4caf50;
  color: #15a61b;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
  min-height: 1.25rem;
}
#authForm #submitButton:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
#authForm .hidden {
  display: none;
}

.blog-list {
  margin: 2rem auto;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.blog-list a {
  text-decoration: none;
  color: #333;
  padding: 1rem;
}
.blog-list a:hover span {
  text-decoration: underline;
  text-decoration-color: #8e64e0;
}
.blog-list li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  background: #fff;
}
.blog-list time {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.blog article {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #1a1a1a;
  line-height: 1.6;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 200px;
}
.blog article h1 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #111;
  text-align: start;
}
.blog article h2 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.75rem;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #222;
  text-align: start;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.25rem;
}
.blog article p {
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  color: #333;
}
.blog article pre {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 16px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  margin: 1rem 0;
}
.blog article ul {
  list-style-type: disc;
  margin-bottom: 1.5rem;
}
.blog article li {
  border: none;
}
.blog article a {
  color: #4a86e8;
  text-decoration: underline;
}
.blog article .cta {
  margin-top: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1rem;
  background-color: #f5f5f5;
  border-radius: 8px;
  font-family: Arial, sans-serif;
}
.blog article .cta a {
  background-color: #8e64e0;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  width: 350px;
  border-radius: 8px;
  text-align: center;
  display: block;
  text-decoration: none;
  margin: 0;
  max-width: 100%;
}
.blog article .cta a:hover {
  background-color: #7a52d9;
}
.blog article .cta a:active {
  background-color: #6a42c9;
}
@media (max-width: 370px) {
  .blog article .cta a {
    width: 100%;
    padding: 0.5rem 1rem;
  }
}
.blog-dates {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-style: italic;
}
.blog article img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
@media (max-width: 600px) {
  .blog article {
    font-size: 1rem;
  }

  .blog article h1 {
    font-size: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .blog article p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .blog-dates {
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
  }
  .blog article h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }
}


.faq {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 2rem;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.faq h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--heading-color);
}

.faq details {
  position: relative;
  padding: 0.75rem 0;
  padding-right: 20px;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid #e0e0e0;
}
.faq details:last-of-type {
  border-bottom: none;
}

.faq summary {
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  outline: none;
  font-family: Arial, sans-serif;
}

.faq summary::marker {
  display: none;
}

.faq summary::after {
  content: '▸';
  position: absolute;
  right: 0;
  top: 10px;
  transition: transform 0.3s ease;
  font-size: 1.3rem;
}

.faq details[open] summary::after {
  transform: rotate(90deg);
}

.faq p {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .faq {
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    margin: 2rem 1rem;
  }

  .faq h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .faq summary {
    font-size: 1rem;
  }

  .faq p {
    font-size: 0.95rem;
  }
}


.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 2rem auto;
}
.contact-form label {
  font-weight: 600;
  font-size: 1.1rem;
}
.contact-form input, .contact-form textarea {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  border: 1px solid #ccc;
  max-width: 100%;
}
.contact-form button {
  background-color: #8e64e0;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}
.contact-form button:hover {
  background-color: #7a52d9;
}
.contact-form button:active {
  background-color: #6a42c9;
}
.contact-form button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}



/* 3. RESPONSIVE MEDIA QUERIES */
@media (min-width: 768px) {
  .cta-buttons {
    flex-direction: row;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .upload {
    width: 600px;
  }
}

@media (min-width: 992px) {
  h1 {
    font-size: 4.5rem;
  }
  .subheadline {
    font-size: 1.5rem;
  }
}