.scene {
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    height: 70vh; /* Adjusted height */
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    padding-top: 10%;
    background: linear-gradient(to bottom, #259ad1 -24%, #FFF 123%);
    z-index: 10004;
    
  }
  .scene-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); 
    z-index: 10003;
  }
  
  .scene.open {
    transform: translateX(0);
  }
  
  
  
  .scene.open + .scene-overlay {
    display: block;
  }
  
  /* ... Rest of your styles for .mushroom, .tube, .floor, etc. remain unchanged ... */
  
  .mushroom {
      position: absolute;
      width: 200px;
      height: 155px;
      z-index: 3;
      bottom: 112px;
      right: 10%;
     left: 60%;
  }
  
  .mushroom .head {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 100% 100% 90% 90%;
  background: rgb(241,111,92);
  background: radial-gradient(circle, rgba(241,111,92,1) 20%, rgba(139,11,0,1) 75%);
  }
  .mushroom .head .ball {
  position: relative;
  width: 47%;
  height: 47%;
  background-color: rgba(255, 255, 255, 0.85);
  margin: 0 auto;
  border-radius: 100%;
  top: 10px;
  box-shadow: inset 0px -11px 24px -2px rgba(241, 111, 92, 0.44);
  }
  
  .mushroom .head .ball:before {
  content: "";
  position: relative;
  display: block;
  width: 50%;
  height: 80%;
  background-color: rgba(255, 255, 255, 0.85);
  margin: 0 auto;
  border-radius: 100%;
  top: 10px;
  left: -100px;
  }
  .mushroom .head .ball:after {
  content: "";
  position: relative;
  display: block;
  width: 50%;
  height: 80%;
  background-color: rgba(255, 255, 255, 0.85);
  margin: 0 auto;
  border-radius: 100%;
  top: -20px;
  left: 100px;
  }
  .mushroom .face {
  position: relative;
  bottom: 40%;
  margin: 0 auto;
  width: 50%;
  height: 50%;
  background-color: #F3D4BA;
  border-radius: 50% 50% 41% 41%;
  box-shadow: inset 1px -6px 22px -7px rgba(0, 0, 0, 0.74), inset 0px 7px 24px -7px rgba(207, 139, 53, 0.5), inset 0px -28px 24px -7px rgba(207, 139, 53, 0.5);
  border-top: 2px solid #7A121A;
  z-index: 1;
  }
  .mushroom .face:after {
  content: "";
  width: 134px;
  height: 5px;
  box-shadow: inset -2px 12px 20px 12px #00000026;
  position: absolute;
  bottom: -5px;
  border-radius: 100%;
  z-index: 0;
  left: -12%;
  }
  .mushroom .eyes {
      position: absolute;
      top: 15px; /* Adjusted for better vertical alignment */
      left: 30px;
      width: 40%;
      padding: -10% 30% 0 30%; /* Adjusted the horizontal padding for closer alignment */
  }
  
  .mushroom .eyes > div {
      display: block;
      height: 25px;
      width: 12px; /* Adjusted width for a better eye shape */
      background-color: #303030;
      border-radius: 20px;
  }
  
  .mushroom .eyes > div:before {
      content: "";
      display: block;
      position: relative;
      left: 2px;
      top: 2px;
      height: 10px;
      width: 6px;
      background-color: rgba(255, 255, 255, 0.5);
      border-radius: 20px;
  }
  
  .mushroom .eyes > div.left {
      float: left;
      margin-right: 4px; /* Added margin for better spacing between eyes */
  }
  
  .mushroom .eyes > div.right {
      float: right;
      margin-left: 4px; /* Added margin for better spacing between eyes */
  }
  .tube, .top-tube {
  position: absolute;
  bottom: 93px;
  right: 7%;
  width: 150px;
  height: 200px;
  display: block;
  background: #1B991B;
  background: linear-gradient(to right, #1B991B 0%, rgba(149, 233, 149, 0.82) 17%, #52b152 28%, #008a00 49%, #005700 74%);
  }
  .tube {
  box-shadow: inset 0px 3px 1px 0px #165816, inset 0px -36px 54px 6px rgba(32, 83, 32, 0.27);
  }
  .top-tube {
  width: 180px;
  height: 50px;
  top: -50px;
  margin-right: -25px;
  border-radius: 3px;
  box-shadow: inset 0 4px 2px -2px rgba(39, 165, 39, 0.46), inset 0 3px 2px 1px rgba(12, 85, 12, 0.74), inset 0 1px 2px 1px rgba(39, 165, 39, 0.74);
  }
  .floor {
  position: absolute;
  bottom: 0;
  border-radius: 3px;
  border: 1px solid #7E5E2E;
  background-color: #9E7537;
  background-image: linear-gradient(45deg, #916B33 25%, transparent 25%, transparent 75%, #916B33 75%, #916B33), linear-gradient(45deg, #916B33 25%, transparent 25%, transparent 75%, #916B33 75%, #916B33);
  background-size: 70px 70px;
  background-position: 0 0, 35px 35px;
  width: 100%;
  height: 100px;
  box-shadow: inset 0 2px 1px 2px #C09149, inset 0 -31px 27px 5px rgba(109, 82, 42, 0.32);
  z-index: 0;
  }
  .floor:before {
  content: "";
  width: 100%;
  
  position: relative;
  top: -15px;
  
  display: block;
  border-radius: 3px;
  border: 1px solid #7E5E2E;
  background-color: #9C773D;
  box-shadow: inset 0 4px 1px 2px #C09149;
  }
      /* Ensure the input field and button are contained within the floor and floor::before */
      .floor {
  
      padding-bottom: 50px;  /* Add some space for the input and button */
  }
  
  .floor:before {
  
      bottom: 0;
      left: 0;
      right: 0;
      height: 15px;  /* To ensure it covers the input and button */
      background: inherit;
  }
  
  /* Animations */
  @keyframes walk {
      from {
          transform: translate3d(-175px, 0, 10px);  /* Adjusted starting position */
      }
  to {
  transform: translate3d(calc(93vw - 200px), 0, 100px);
  }
  }
  .walking {
  animation-direction: alternate;
  animation-fill-mode: forwards;
  animation-name: walk;
  animation-duration: 3s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  }
  
  .square-container {
    width: 50px;
    height: 50px;
    border: 1px solid #ccc;
    overflow: hidden;
    position: relative;
    transition: width 0.5s ease-in-out, height 0.5s ease-in-out;
  }
  
  .square-container.open {
    width: 300px;
    height: 100vh;
  }
  
  #toggleButton {
    position: fixed;
    top: 10px;
    right: 10px;
    transform: none;
    z-index: 10005;  /* Adjusted to be on top of everything else */
    padding: 5px 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, top 0.3s ease;
    
  }
  
  #toggleButton:hover {
    background-color: #f0f0f0;
  }
  
  #toggleButton.open {
    top: 10px;
  }
  
  /* Responsive design for smaller devices */
  @media (max-width: 768px) {
      .square-container.open {
          width: 80vw;
      }
  }
  
  /* Arrow indicator styles */
  .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
  }
  
  .scene.open .arrow {
    transform: rotate(180deg);
  }
  #toggleButton.open .arrow {
      transform: rotate(180deg); /* Point to the left when open */
  }
  /* Close button styles */
  .close-btn {
      position: absolute;
      top: 1%;  /* Adjusted to move it inside the image */
      left: 10px;  /* Adjusted to position it on the left side */
      background-color: #fff;
      border: 1px solid #ccc;
      border-radius: 50%;
      cursor: pointer;
      font-size: 20px;
      line-height: 20px;
      width: 30px;
      height: 30px;
      text-align: center;
      z-index: 10002;  /* To ensure it's above other elements inside the .scene */
  }
  
  .close-btn:hover {
      background-color: #f0f0f0;
  }
  
  
  
  
  .floor {
      z-index: 0; /* Ensure the floor is at the lowest layer */
  }
  
  .tube, .top-tube {
      z-index: 1;  /* Ensure the tube appears above other elements */
  }
  
  .small-mushroom {
      position: absolute;
      width: 100px; /* Half the size */
      height: 77.5px; /* Half the size */
    z-index: 1; /* Temporary value to check visibility */
     bottom: 200px; /* Try different values to see if it appears */
      right: 7%; /* Positioned right behind the tube */
  }
  
  @keyframes vertical-move {
      0%, 100% {
          bottom: 50px; /* Adjusted to start from inside the tube */
      }
      50% {
          bottom: 340px; /* Adjusted to make sure it's visible while coming out of the tube */
      }
  }
  
  /* Comment out the animation temporarily */
   .small-mushroom.walking-vertical {
      animation: vertical-move 3s infinite alternate;
  } 
  
  .small-mushroom {
      visibility: visible; /* Explicitly set visibility */
      opacity: 1;          /* Ensure it's fully opaque */
  }
  
  .small-mushroom {
      background-color: yellow; /* Just for testing visibility */
  }
  /* Styling for the email input field */
  #nl_email {
      padding: 10px 0px;  /* Add some padding */
      border: 1px solid #d3d3d3;  /* Add a light border */
      background-color: #f9f9f9;  /* Add a subtle background color */
      border-radius: 5px 0 0 5px;  /* Rounded corners on the left side */
      width: 70%;  /* Take up 70% of the container width */
      box-sizing: border-box;  /* Include padding and border in the element's total width and height */
      margin-left: -3px;
      text-indent: 10px;
  }
  
  #nl_email:focus {
      outline: none;  /* Remove default outline */
      border-color: #259ad1;  /* Change border color on focus */
      box-shadow: 0 0 5px rgba(37, 154, 209, 0.4);  /* Add a subtle glow effect */
  }
  
  /* Styling for the submit button */
  .button.button--primary.form-prefixPostfix-button--postfix {
      padding: px 20px;  /* Add some padding */
      margin-bottom: 20px;
      background-color: #259ad1;  /* A nice blue color */
      color: #ffffff;  /* White text color */
      border: none;  /* Remove any border */
      border-radius: 5px 5px 5px 5px;  /* Rounded corners on the right side */
      cursor: pointer;  /* Change the cursor to a hand when hovered over */
      width: 88%;  /* Take up 30% of the container width */
      box-sizing: border-box;  /* Include padding and border in the element's total width and height */
      transform: translateY(5.px);
      margin-top: 10px;
      margin-right: 3px;
  }
  
  .button.button--primary.form-prefixPostfix-button--postfix:hover {
      background-color: #1e82a6;  /* A slightly darker blue on hover */
  }
  
  /* Add some space around the email input field and button */
  .form-field {
      margin: -28px 0;  /* Add a top and bottom margin */
  }
  .form-fieldset {
      z-index: 10003; /* An arbitrarily high value to ensure it's above other elements in the popup */
      position: relative; /* z-index works on positioned elements */
  }
  .form-prefixPostfix.wrap {
      display: flex; /* Set the display to flex */
      align-items: center; /* Vertically align the items in the center */
  }
  
  .form-input {
      flex: 1; /* Let the email input take the available space */
      margin-right: -3px; /* Optional: Add some space between the input and the button */
      margin-left: 5px;
  }
  
  /* Responsiveness for medium devices (like tablets) */
  @media (max-width: 768px) {
      /* Make the email input field take up more space for better visibility */
      #nl_email {
          width: 88%;
      }
      
      /* Adjust the width of the button so it doesn't get too small */
      .button.button--primary.form-prefixPostfix-button--postfix {
          width: 88%;
      }
  }
  
  /* Responsiveness for small devices (like mobile phones) */
  @media (max-width: 480px) {
      /* Stack elements vertically for better usability on small screens */
      .form-prefixPostfix.wrap {
          flex-direction: column;
     
      }
  
      #nl_email {
          width: 88%; /* Take up the full width */
          margin-bottom: 0px; /* Add some space between the input and the button */
          border-radius: 5px; /* Full rounded corners */
       
      }
  
      .button.button--primary.form-prefixPostfix-button--postfix {
          width: 88%; /* Take up the full width */
          border-radius: 5px; /* Full rounded corners */
          transform: translateY(0); /* Reset the vertical position */
          margin-right: 2px;
      }
  }
  /* For devices smaller than typical desktop widths */
  @media (max-width: 1024px) {
      /* Add some space around the email input field and button */
      .form-field {
          margin: -28px 0;  /* Adjust top and bottom margin */
      }
  
      #nl_email {
          width: 88%; /* Take up the full width */
          margin-bottom: -6px; /* Adjust space between the input and the button */
          border-radius: 5px; /* Full rounded corners */
      }
  }
  /* ... Your existing styles ... */
  
  /* Update the flex direction for desktops */
  @media (min-width: 1025px) {
      .form-prefixPostfix.wrap {
          flex-direction: column;
      }
  
      #nl_email, .button.button--primary.form-prefixPostfix-button--postfix {
          height: 40px; /* Increased height */
          margin-bottom: 8px; /* Some space between them */
          border-radius: 5px; /* Full rounded corners for both */
          margin-left: 3px;
      }
  
      /* Adjust the width for both email and button to 100% */
      #nl_email {
          width: 87%;
      }
      .button.button--primary.form-prefixPostfix-button--postfix {
          width: 88%;
          transform: translateY(0); /* Reset the vertical position */
      }
  }
  .sidebar-header {
      text-align: center;       /* Center aligns the text */
      margin-top: 20px;         /* Adds some space to the top */
      color: #ffffff;           /* Makes the text color white (or choose any other color) */
      padding: 0 0px;          /* Some horizontal padding to ensure text doesn't touch the edges */
      font-size: 26px;          /* Adjust font size as necessary */

  }
  @media (max-width: 768px) {
      .sidebar-header {
          font-size: 18px;    /* Slightly smaller font size for tablets */
          width: 100%;
      padding: 0 5%;
      margin-bottom: -80px;
      }
  }
  
  @media (max-width: 480px) {
      .sidebar-header {
          font-size: 16px;    /* Even smaller font size for mobile phones */
          
      }
  }
  .sidebar-header {
      text-align: center;
      color: #781012;
      font-size: 26px;
      font-family: poppins,sans-serif;
      font-weight: 800;
      position: absolute;      /* Use absolute positioning to place it above the tube */
      bottom: -90px;           /* Adjust this value to position the h2 right above the tube */
      left: 50%;
      transform: translateX(-50%);  /* Centers the h2 horizontally */
      width: 100%;             /* Ensure the h2 spans the entire width of the sidebar */
      z-index: 3;              /* Ensure it's on top in terms of stacking order */
      
  }
  /* Adjust logo size and positioning */
  .logo {
  max-width: 80%;  
  height: auto;
  margin-bottom: 10px;
  }
  
  .header-tube-container {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);  /* Centering on the y-axis */
  display: flex;
  flex-direction: column;  /* Stack elements vertically */
  align-items: center;     /* Center everything horizontally */
  gap: 20px;               /* Space between logo and h2 */
  }
  
  /* Ensure the h2 and tube are grouped together at the bottom */
  .h2-and-tube-group {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;             /* Take up full width */
  }
  /* By default, set the logo to not display */
  .logo {
      display: none;
  }
  
  /* When the condition is met, display the logo */
  @media (min-height: 668px) {
      .logo {
          display: block;
      }
  }
      /* Ensure the email input and subscribe button are vertically stacked */
      .form-prefixPostfix.wrap {
      flex-direction: column;
  }
  .form-input, .button--primary {
      width: 100%;
      margin: 5px 0;  /* Add some spacing between them */
  }
      /* Center the logo and h2 text between the top of the viewing window and the top-tube */
      {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);  /* Centering on the x-axis */
  
  }
  .header-tube-container {
      top: 10%;  /* Adjust as needed */
  }
  /* Adjust h2 text size and positioning */
  .sidebar-header {
  font-size: 1.2em;
  text-align: center;
  margin: 0;
  padding: 0;
  }
  /* Ensure the logo and h2 text never overlap */
  .logo {
  max-height: 100px;  /* Adjust based on your design preferences */
  width: auto;
  }
  
  
  @media (max-width: 810px) {
  .logo {
      margin-bottom: -10px;
      top:  /* Adjust this value as needed to set the desired space */
  }
  
  .sidebar-header {
      font-size: 26px;
      position: relative;
      top: 100px;
      left: 0;
      transform: none;
      width: 100%;
      padding: 0 5%;
      margin-bottom: -80px;
  }
  }
  
  .logo {
      margin-bottom: -10px;
      top:  /* Adjust this value as needed to set the desired space */
  }
  
  .sidebar-header {
      font-size: 26px;
      position: relative;
      top: 100px;
      left: 0;
      transform: none;
      width: 100%;
      padding: 0 5%;
      margin-bottom: -80px;
      /* Retained the removal of properties related to nowrap and ellipsis */
  }
  
  
  @media (max-width: 428px) {
  .logo {
      margin-bottom: -10px;  /* Adjust this value as needed to set the desired space */
  }
  
  .sidebar-header {
      font-size: 26px;
      position: relative;
      top: 0px;
      left: 0;
      transform: none;
      width: 100%;
      padding: 0 5%;
      margin-bottom: -80px;
  }
  }
  
  .logo {
      margin-bottom: -10px;  /* Adjust this value as needed to set the desired space */
  }
  
  .sidebar-header {
      font-size: 26px;
      position: relative;
      top: 0px;
      left: 0;
      transform: none;
      width: 100%;
      padding: 0 5%;
      margin-bottom: -80px;
      /* Retained the removal of properties related to nowrap and ellipsis */
  }
  
  
  @media (max-width: 375px) {
  .logo {
      margin-bottom: -10px;  /* Adjust this value as needed to set the desired space */
  }
  
  .sidebar-header {
      font-size: 20px;
      position: relative;
      top: 0px;
      left: 0;
      transform: none;
      width: 100%;
      padding: 0 5%;
      margin-bottom: -80px;
      /* Retained the removal of properties related to nowrap and ellipsis */
  }
  }
  
  
  /* Adding styles for open state of the toggle button */
  #toggleButton.open .arrow {
  display: none; /* Hide the arrow when the sidebar is open */
  }
  
  #toggleButton.open:after {
  content: '✖'; /* Show the X icon when the sidebar is open */
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  }

  

@keyframes radial-pulse {
  0% {
    box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.5);
  }

  100% {
    box-shadow: 0 0 0 15px rgba(0, 0, 0, 0);
  }
}

#toggleButton.pulse {
  animation: radial-pulse 1s infinite;
}

  


#toggleButton {
    transform: rotate(0deg);
    right: 0;
    top: 95%;
    transform-origin: center;
    width: auto; /* Resetting the width */
    height: fit-content; /* Adjusting the height to fit the content */
    font-family: "Quicksand", sans-serif;
}

