 /* index */
 :root {
      --primary-color: #FF5722;
      --primary-hover: #e64a19;
      color: #FFF7E8;
       /*--bg: linear-gradient(to right, #FCE38A, #F38181); */


      .bg {
          --tw-gradient-from: #eff6ff var(--tw-gradient-from-position);
          --tw-gradient-to: rgb(239 246 255 / 0) var(--tw-gradient-to-position);
          --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
      }

    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html, body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: #222;
    overflow-x: hidden;
    max-width: 100%;
    background-color: #fff5e3;
    }


    .hero {
      max-width: 100%;
      margin: 0 auto;
      text-align: left;
    }

    .hero h1 {
      font-family: 'Poppins', sans-serif;
      font-size: clamp(2rem, 5vw, 3.5rem);
    }

    .hero p {
      font-size: clamp(1rem, 2.5vw, 1.25rem);
      margin: 1rem 0;
      max-width: 100%;
    }

    .cta {
      background-color: var(--primary-color);
      color: #fff;
      border: none;
      padding: 0.8rem 1.5rem;
      font-size: 1rem;
      border-radius: 5px;
      cursor: pointer;
      transition: background 0.3s;
      margin-top: 1.5rem;
      width: fit-content;
    }

    .cta:hover {
      background-color: var(--primary-hover);
    }

    .carousel-section {
      max-width: 950px;
      margin: 2rem 0;
      position: relative;
      height: 500px;
      padding: 0 2rem;
      max-width: 1200px;
      margin-left: auto;
      margin-right: auto;
    }

    .CTA-section {
      max-width: 950px;
      margin: 2rem 0;
      position: relative;
      padding: 0 2rem;
      max-width: 1200px;
      margin-left: auto;
      margin-right: auto;
    }

.max-w-sm {
    max-width: 40rem !important;
}

    .chapters {
      max-width: 1200px;
      margin: 0 auto;
      text-align: left;
      display: flex;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
      scroll-behavior: smooth;
      gap: 1rem;
      height: 100%;
      padding-bottom: 1rem;
      padding-top: 1rem;
    }

    .chapters::-webkit-scrollbar {
      display: none;
    }

    .chapter {
      flex: 0 0 auto;
      height: auto;
      border-radius: 10px;
      background-size: cover;
      background-position: center;
      position: relative;
      cursor: pointer;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      scroll-snap-align: start;
    }

    .chapter:hover {
      transform: scale(1.05);
    }

    .chapter::after {
      content: "";
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.3);
      opacity: 0;
      transition: opacity 0.3s ease;
      border-radius: 10px;
    }

    .chapter:hover::after {
      opacity: 1;
    }

    .chapter-title {
      position: absolute;
      top: 40px;
      left: 20px;
      color: #fff;
      font-family: 'Poppins', sans-serif;
      font-weight: bold;
      text-shadow: 0 0 10px rgba(0,0,0,0.6);
      z-index: 1;
    }


    .chapter-subtitle {
        position: absolute;
        bottom: 40px;
        left: 20px;
        color: #fff;
        font-size: clamp(0.9rem, 2vw, 2rem);
        font-weight: 500;
        font-family: 'Montserrat', sans-serif;
        z-index: 1;
        text-shadow: 0 0 6px rgba(0,0,0,0.5);
        }

    .nav-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 40px;
      height: 40px;
      background: rgba(0, 0, 0, 0.4);
      border: none;
      border-radius: 50%;
      color: #fff;
      font-size: 1.5rem;
      cursor: pointer;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.3s;
    }

    .nav-btn:hover {
      background: rgba(0, 0, 0, 0.6);
    }

    .prev-btn {
      left: 80px;
    }

    .next-btn {
      right: 80px;
    }

    /* Responsividade */
    @media (max-width: 599px) {
        .chapters {
            padding: 1rem 1.5rem;
        }

        .chapter {
            width: 100vw;
        }

      .nav-btn {
        display: flex;
        font-size: 1rem;
        padding: 0.4rem;
      }

      .prev-btn {
        left: 5px;
      }

      .next-btn {
        right: 5px;
      }
    }

    @media (min-width: 600px) and (max-width: 899px) {
      .chapter {
        width: 50vw;
      }
      .prev-btn {
        left: 10px;
    }
    .next-btn {
        right: 10px;
    }
    }

    @media (min-width: 900px) {
      .chapter {
        width: 20vw;
      }
      .prev-btn {
        left: 10px;
    }
    .next-btn {
        right: 10px;
    }
    }

    @media (min-width: 1000px) {
    .prev-btn {
        left: 10px;
    }
    .next-btn {
        right: 10px;
    }
    }


     @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .animate-fade-in {
            animation: fadeIn 0.8s ease-out forwards;
        }

        .animate-pulse {
            animation: pulse 2s infinite;
        }

        .delay-1 { animation-delay: 0.2s; }
        .delay-2 { animation-delay: 0.4s; }
        .delay-3 { animation-delay: 0.6s; }
        .delay-4 { animation-delay: 0.8s; }
        .delay-5 { animation-delay: 1s; }

        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0,0,0,0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .popup-overlay.active {
            opacity: 1;
            visibility: visible;
        }


        .popup-overlay.active .popup-content {
            transform: scale(1);
        }

        .close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #4b5563;
        }

        .character-card {
            transition: all 0.3s ease;
            transform-style: preserve-3d;
        }

        .character-card:hover {
            transform: translateY(-10px) rotateY(5deg);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }

        .floating {
            animation: floating 3s ease-in-out infinite;
        }

        @keyframes floating {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }
        /* index */

        /* index-deep */
        @keyframes fadeIn {
          from { opacity: 0; transform: translateY(20px); }
          to { opacity: 1; transform: translateY(0); }
      }

      @keyframes pulse {
          0% { transform: scale(1); }
          50% { transform: scale(1.05); }
          100% { transform: scale(1); }
      }

      .animate-fade-in {
          animation: fadeIn 0.8s ease-out forwards;
      }

      .animate-pulse {
          animation: pulse 2s infinite;
      }

      .delay-1 { animation-delay: 0.2s; }
      .delay-2 { animation-delay: 0.4s; }
      .delay-3 { animation-delay: 0.6s; }
      .delay-4 { animation-delay: 0.8s; }
      .delay-5 { animation-delay: 1s; }

      .popup-overlay {
          position: fixed;
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
          background-color: rgba(0,0,0,0.7);
          display: flex;
          justify-content: center;
          align-items: center;
          z-index: 1000;
          opacity: 0;
          visibility: hidden;
          transition: all 0.3s ease;
      }

      .popup-overlay.active {
          opacity: 1;
          visibility: visible;
      }

      .popup-content {
          color: #1c1c1c;
          font-size: 1.25rem;
          background: #fff;
          padding: 3rem 2rem 2rem;
          border-radius: 15px;
          max-width: 700px;
          width: 90%;
          transform: scale(0.8);
          transition: transform 0.3s ease;
          box-shadow: 0 10px 25px rgba(0,0,0,0.2);
          position: relative;
      }

      .popup-overlay.active .popup-content {
          transform: scale(1);
      }

      .close-btn {
          position: absolute;
          top: 10px;
          right: 10px;
          background: none;
          border: none;
          font-size: 1.5rem;
          cursor: pointer;
          color: #4b5563;
      }

      .character-card {
          transition: all 0.3s ease;
          transform-style: preserve-3d;
      }

      .character-card:hover {
          transform: translateY(-10px) rotateY(5deg);
          box-shadow: 0 15px 30px rgba(0,0,0,0.15);
      }

      .floating {
          animation: floating 3s ease-in-out infinite;
      }

      @keyframes floating {
          0% { transform: translateY(0px); }
          50% { transform: translateY(-10px); }
          100% { transform: translateY(0px); }
      }

      .bg-footer {
        background-color: #2F3928;
        margin-top: 10rem;
      }

      .logo-header {
        display: block;
        margin: 0px auto 0 auto;
        width: 20rem;
       }

      .logo-footer {
        display: block;
        margin: -120px auto 0 auto; /* margem superior negativa e centralização */
        width: 15rem;
      }
      /* index-deep */

      /* Botão Créditos */
       @keyframes slideUp {
        from {
          transform: translateY(100%);
          opacity: 0;
        }
        to {
          transform: translateY(0);
          opacity: 1;
        }
      }

      @keyframes slideDown {
        from {
          transform: translateY(0);
          opacity: 1;
        }
        to {
          transform: translateY(100%);
          opacity: 0;
        }
      }

      .animate-slide-up {
        animation: slideUp 0.4s ease-out forwards;
      }

      .animate-slide-down {
        animation: slideDown 0.4s ease-in forwards;
      }

      .rounded {
        border-radius: 5px !important;
      }
      /* Botão Créditos */

       /* Vídeos-dropdown */
       /* Custom CSS para a seção de vídeos */

       .video-toggle {
        background-color: #DE9F5C; /* Orange from palette */
        color: #2F3928; /* Dark green for text */
        transition: background-color 0.3s ease, transform 0.2s ease;
        }
        .video-toggle:hover {
            background-color: #c78a4a; /* Darker orange on hover */
            transform: scale(1.02); /* Slight scale effect */
        }
        .video-content {
            max-height: 0;
            margin-top: 10px;
            opacity: 0;
            overflow: hidden;
            transition: max-height 0.5s ease, opacity 0.5s ease; /* Animação suave */
        }
        .video-content.open {
            max-height: 800px; /* Ajuste conforme o conteúdo */
            opacity: 1;
        }
        .video-buttons button {
          transition: background-color 0.3s ease, transform 0.2s ease;
        }
        .video-buttons button:hover {
            transform: scale(1.05); /* Slight scale on hover */
        }
        .video-btn {
            background-color: #c53c45; /* Blue from palette */
        }
        .video-btn:hover {
            background-color: #a6232c; /* Darker blue on hover */
        }
        .audiodescricao-btn {
            background-color: #3076A3; /* Blue from palette */
        }
        .audiodescricao-btn:hover {
            background-color: #285a7a; /* Darker blue on hover */
        }
        .libras-btn {
            background-color: #379181; /* Green from palette */
        }
        .libras-btn:hover {
            background-color: #2d7366; /* Darker green on hover */
        }
       /* Vídeos-dropdown */


      