body {
    background: url('images/tausta.png') repeat;
    background-color: #f9f6f1;
    font-family: 'Nunito', sans-serif;
    color: #4e4b47;
    margin: 0;
    padding: 0;
  }
  
  header {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(#d7c8bb, #f9f6f1);
  }
  
  h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    margin-bottom: 0;
    color: #7a6650;
  }
  
  .subtitle {
    font-size: 1.2rem;
    color: #a18f7e;
    margin-top: 0;
  }
  
  nav a {
    color: #6b5d4b;
    margin: 0 1rem;
    text-decoration: none;
    font-weight: bold;
  }
  
  nav a:hover {
    color: #b89d82;
  }
  
  .hero {
    text-align: center;
    padding: 3rem 1rem;
  }
  
  blockquote {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: #a18f7e;
    margin: 1rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: quoteFadeIn 2s ease forwards;
  }
  
  .button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.9rem 1.5rem;
    background-color: #d1bfa7;
    color: #3f342c;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
  }
  
  .button:hover {
    background-color: #e7dacc;
  }
  
  footer {
    text-align: center;
    padding: 1rem;
    background-color: #d7c8bb;
    font-size: 0.9rem;
  }
  
  .poem {
    background-color: rgba(255, 255, 255, 0.8);
    color: #3f342c;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 700px;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    font-size: 1.1rem;
    line-height: 1.6;
    backdrop-filter: blur(3px);
    animation: fadeIn 1s ease;
  }
  
  .poem h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #7a6650;
  }
  
  .poem small {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #a18f7e;
  }
  
  .poem img {
    max-width: 100%;
    margin-top: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
  }
  
  .kategoria {
    display: inline-block;
    margin-top: 1rem;
    padding: 5px 12px;
    background-color: #d1bfa7;
    color: #3f342c;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
  }
  
  .poem:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  /* --- MOBIILITYYLIT --- */
  @media (max-width: 768px) {
    body {
      font-size: 16px;
      padding: 1rem;
    }
  
    h1 {
      font-size: 2.2rem;
    }
  
    .subtitle {
      font-size: 1rem;
    }
  
    nav {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      padding: 1rem 0;
    }
  
    nav a {
      display: block;
      margin: 0.3rem 0;
      text-align: center;
    }
  
    .hero {
      padding: 2rem 1rem;
    }
  
    .poem {
      padding: 1rem;
      margin: 1rem auto;
    }
  
    .poem img {
      max-width: 100%;
    }
  
    .button {
      display: block;
      width: 100%;
      text-align: center;
      margin-top: 1rem;
    }
  
    textarea,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    select {
      width: 100%;
      box-sizing: border-box;
      margin-bottom: 1rem;
      font-size: 1rem;
    }
  
    form {
      padding: 1rem;
    }
  }
  /*Animaation määrittely */
  @keyframes quoteFadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  blockquote {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: #a18f7e;
    margin: 1rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: quoteFadeIn 2s ease forwards;
  }
  
  .contact-section {
    background-color: rgba(250, 245, 240, 0.7);
    padding: 3rem 1rem;
    text-align: center;
    color: #7a6650;
  }
  
  .contact-toggle {
    font-size: 2rem;
    cursor: pointer;
    color: #a18f7e;
    transition: color 0.3s ease;
  }
  
  .contact-toggle:hover {
    color: #c9b4a4;
  }
  
  .contact-form-wrapper {
    margin-top: 2rem;
  }
  
  .contact-form {
    background-color: rgba(255, 255, 255, 0.85); /* selkeä valkoinen laatikko */
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(120, 100, 85, 0.1);
    max-width: 500px;
    margin: 2rem auto;
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #d8cfc5;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    background-color: #fffdfc;
    color: #4e4b47;
    font-family: 'Nunito', sans-serif;
  }
  
  .contact-form button {
    background-color: #c9b4a4;
    color: #3f342c;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .contact-form button:hover {
    background-color: #e2d3c5;
  }
  .gallery-swiper {
    background-color: rgba(249, 246, 241, 0.85); 
    padding: 3rem 1rem;
    text-align: center;
  }
  
  .gallery-swiper h2 {
    color: #7a6650;
    margin-bottom: 2rem;
    font-size: 2rem;
  }
  
  .swiper {
    width: 90%;
    max-width: 800px;
    padding-bottom: 3rem;
  }
  .swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
  }
  
  .swiper-slide img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
  }
  
  .swiper-slide img:hover {
    transform: scale(1.03);
  }
  .gallery-grid-section {
    background-color: rgba(249, 246, 241, 0.85);
    padding: 3rem 1rem;
    text-align: center;
  }
  
  .gallery-grid-section h2 {
    color: #7a6650;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-family: 'Great Vibes', cursive;
  }
  
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
  }
  .gallery-grid img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
  }
  
  .gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
  }
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-button-next::after,
  .swiper-button-prev::after {
    color: #c2a44c !important;
  }
  
  .swiper-button-next:hover::after,
  .swiper-button-prev:hover::after {
    color: #f8d5dd !important;
  }
  .swiper-pagination-bullet {
    background-color: #c2a44c !important; /* Teeman väri */
    opacity: 0.5;
  }
  
  .swiper-pagination-bullet-active {
    background-color: #f8d5dd !important; /* Aktiivisen kuvan väri */
    opacity: 1;
  }
  .featured-poems {
    max-width: 800px;
    margin: 4rem auto;
    text-align: center;
  }
  
  .poem-box {
    background: rgba(255, 255, 255, 0.75); /* vaalea ja läpinäkyvä */
    color: #3f342c;
    border-left: 5px solid #bfa288; /* hillitty beige-ruskea */
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    animation: fadeIn 1s ease forwards;
    opacity: 0;
    transform: translateY(20px);
  }
  
  .poem-box h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #7a6650;
  }
  
  .poem-box small {
    display: block;
    margin-top: 1.5rem;
    color: #c2a44c;
    font-size: 0.9rem;
  }
  
  /* Fade-animaatio */
  @keyframes fadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .featured-author {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    border-radius: 16px;
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
  }
  
  .author-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .author-image {
    width: 200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  
  .author-text {
    flex: 1;
    color: #3f342c;
  }
  
  .author-text h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: #7a6650;
    margin-top: 0;
  }
  .quote-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 2rem;
  }
  
  .styled-quote {
    background-color: rgba(255, 255, 255, 0.9);
    border-left: 6px solid #b89d82;
    padding: 2rem;
    font-style: italic;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    position: relative;
    color: #4e4b47;
    line-height: 1.7;
    animation: fadeIn 1s ease;
  }
  
  .styled-quote p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .styled-quote footer {
    font-weight: bold;
    color: #7a6650;
  }
  
  .styled-quote .author {
    font-style: normal;
  }
  
  .styled-quote img {
    max-width: 100%;
    margin-top: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
  }
  .featured-quote {
    background-color: rgba(250, 248, 245, 0.85);
    border-left: 6px solid #a18f7e;
    border-right: 6px solid #a18f7e;
    margin: 3rem auto;
    padding: 2rem;
    max-width: 700px;
    border-radius: 18px;
    color: #4e4b47;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    animation: fadeIn 1s ease;
  }
  
  .featured-quote h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: #7a6650;
    margin-bottom: 1rem;
  }
  .timestamp {
    font-size: 0.75rem;
    color: #888;
    text-align: right;
    margin-top: 4px;
  }
/* Toggle-nappi */
.dark-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    background-color: #d1bfa7;
    color: #3f342c;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
  }
  
  body.dark-mode {
    background-color: #1e1e1e;
    color: #e0e0e0;
  }
  
  /* Yleisiä lohkoja */
  body.dark-mode header,
  body.dark-mode footer,
  body.dark-mode .poem,
  body.dark-mode .poem-box,
  body.dark-mode .register-container,
  body.dark-mode .login-container,
  body.dark-mode .chat-box,
  body.dark-mode .gallery-swiper,
  body.dark-mode .gallery-grid-section,
  body.dark-mode .featured-author,
  body.dark-mode .contact-section {
    background-color: #2b2b2b;
    color: #e0e0e0;
  }
  
  /* Lomakekentät */
  body.dark-mode input,
  body.dark-mode textarea,
  body.dark-mode select {
    background-color: #333;
    color: #f0f0f0;
    border: 1px solid #555;
  }
  
  /* Napit */
  body.dark-mode button,
  body.dark-mode .button,
  body.dark-mode .chat-form button {
    background-color: #444;
    color: #fff;
    border: none;
  }
  
  body.dark-mode button:hover,
  body.dark-mode .button:hover,
  body.dark-mode .chat-form button:hover {
    background-color: #666;
  }
  
  /* Navigointi */
  body.dark-mode nav a {
    color: #ddd;
  }
  
  body.dark-mode nav a:hover {
    color: #f8d5dd;
  }
  body.dark-mode header {
    background: linear-gradient(#2e2e2e, #1e1e1e);
  }
  /* Swiper- ja pisteet */
  body.dark-mode .swiper-slide {
    background-color: #1e1e1e;
  }
  
  body.dark-mode .swiper-pagination-bullet {
    background-color: #aaa !important;
  }
  
  body.dark-mode .swiper-pagination-bullet-active {
    background-color: #f8d5dd !important;
  }
  body.dark-mode {
    background: url('images/dark-tausta.png') repeat;
    background-color: #1e1e1e; /* varaväri */
    color: #e0e0e0;
  }