/* =======================
   Existing tutorial styles
   ======================= */
   .tutorial-modal {
    display: none; /* hidden by default; shown via JS */
    position: fixed;
    z-index: 9999;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
  }
  
  .tutorial-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    margin: auto;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    position: relative;
  }
  
  .tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .tutorial-step-counter {
    font-size: 0.85rem;
    opacity: 0.8;
    min-width: 50px;
  }
  
  .tutorial-close {
    position: absolute;
    top: 10px;
    left: 10px; 
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
  }
  .tutorial-close:hover {
    opacity: 1;
  }
  
  .tutorial-body {
    margin-top: 2rem;
  }
  
  .tutorial-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    transform: scale(1.3);
  }
  
  .tutorial-progress {
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
  }
  .tutorial-progress-fill {
    height: 100%;
    width: 0;
    background: #3a8ee6;
    transition: width 0.3s ease;
  }
  
  /* Example button styling */
  .btn-nav {
    background: #3a8ee6;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
  }
  .btn-nav:disabled {
    opacity: 0.5;
    cursor: default;
  }
  .btn-outline {
    border: 1px solid #3a8ee6;
    background: #fff;
    color: #3a8ee6;
    border-radius: 4px;
    padding: 0.4rem 1rem;
    cursor: pointer;
  }
  
  /* =======================
     Mirror flip utility
     ======================= */
  .flip-x {
    transform: scaleX(-1);
  }
  
  /* 
     ===================
     Pets angled layout
     ===================
  */
  .pets-angled-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-bottom: 20px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Group each pet with its bubble */
  .pet-group {
    display: flex;
    align-items: center;
    gap: 1rem; /* adjust gap as needed */
  }
  
  .monkey-side {
    transform: scaleX(-1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    right: 63px;
    top: 50px;
  }
  .parrot-side {
    transform: scaleX(-1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    left: 56px;
    top: 40px;
  }
  
  .pet-image {
    width: 120px; /* Adjust as needed */
    height: auto;
  }
  
  /* Bubble container, image, and text styling */
  .bubble-container {
    position: relative;
    height: 164px;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 45px;
  }
  
  .chat-bubble-parrot-bubble {
    position: relative;
    left: 30px;
  }
  
  .chat-bubble {
    width: 160px;
    height: auto;
  }
  
  .bubble-text {
    position: absolute;
    font-size: 0.85rem;
    text-align: center;
    width: 75%;
    pointer-events: none;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 20px;
  }
  
  /* Adjust transforms for bubbles if needed */
  .bubble-angled-left {
    transform: scaleX(-1);
  }
  
  /* ========================
     Media Queries
     ======================== */
  @media (max-width: 658px) and (min-width: 631px) {
    .bubble-container {
      height: 150px; /* slightly reduce from 164px */
    }
    
    .chat-bubble {
      width: 140px; /* scale down from 160px */
    }
    
    .bubble-text {
      font-size: 0.8rem; /* scale down from 0.85rem */
      width: 80%;        
    }
    
    .monkey-side {
      right: 50px; 
      top: 20px;   
    }
    
    .parrot-side {
      left: 45px; 
      top: 15px;  
    }
  }
  
  @media (max-width: 630px) {
    .bubble-container {
      height: auto; 
      margin-bottom: 1rem;
    }
  
    .chat-bubble {
      width: 130px;
      position: relative;
      top:15px;
    }
  
    .bubble-text {
      width: 80%;
      font-size: 0.7rem;
      margin-bottom: 0; 
      top:30px;
    }
  }
  
  @media (max-width: 590px) {
  
    .chat-bubble {
      width: 100px; 
    }
    
    .bubble-text {
      font-size: 0.6rem; 
      width: 85%;
      line-height: 1;
    }
    
    .monkey-side {
      right: 40px; 
      top: 15px;
    }
  
    .parrot-side {
      left: 35px;
      top: 10px;
    }
  }
  
  @media (max-width: 560px) {
    .pets-angled-layout{
      scale: 1.2;
      position: relative;
      margin:0 auto;
      width: 300px;
      left: 283px;
    }
  }

  @media (max-width: 460px) {
    .pets-angled-layout{
      scale: 1.1;
      position: relative;
      margin:0 auto;
      width: 300px;
      transform: translate(50%);
      right: 17%;
    }
  }

  @media (max-width: 440px) {
    .pets-angled-layout{
      scale: 1;
      position: relative;
      margin:0 auto;
      width: 300px;
      transform: translate(50%);
      right: 19%;
    }
  }

  
  @media (max-width: 400px) {
    .pets-angled-layout{
      scale: 1;
      position: relative;
      margin:0 auto;
      width: 300px;
      transform: translate(50%);
      right: 17%;
    }

    .bubble-text {
      font-size: 0.67rem; 
      width: 85%;
      line-height: 1;
    }

    .chat-bubble {
      width: 110px; 
    }

    .bubble-container {
      bottom:75px
    }

    .monkey-side {
      right: 60px; 
      top: 15px;   
    }
    .parrot-side {
      left: 55px; 
      top: 10px;  
    }
  }

  @media (max-width: 380px) {
    .pets-angled-layout{
      scale: 0.9;
    position: relative;
    margin:
    0 auto;
    width: 300px;
    transform: translate(50%);
    right: 16%;
    top: 20px;
    }
  }

  @media (max-width: 370px) {
    .pets-angled-layout{
      scale: 0.9;
    }
  }
  
  /* 
    ==========================
    POINTING FINGER STYLES
    ==========================
  */
  #pointer-finger {
    position: absolute;
    z-index: 10000; 
    pointer-events: none; /* So it doesn't block clicks */
    display: none;        /* Shown dynamically in JS */
    transform: scale(0.5);
  }
  
  /* Bouncy pointer animation */
  .pointing-animation {
    animation: pointingBounce 1.2s infinite;
  }
  
  @keyframes pointingBounce {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-8px);
    }
  }
  

  .dropdown-content a.hovered {
    background-color: #061A9A;
    color: #fff;
  }

  /* NEW: Also apply the hover effect to icons within hovered links */
.dropdown-content a.hovered .nav-icon {
  fill: #fff;
}