/* #layer-manager-container {
  display: none;
} */



@media (min-width:992px) {
    #layer-manager-container {
        position: absolute;
        top: 60px;
        right: 10px;
        width: 240px;
        border: 1px solid rgb(170, 170, 170);
        padding: 0px;
        background-color: #ffffff;
        box-sizing: border-box;
        border-radius: 4px;
        padding-bottom: 0px;
        transition: top 1s ease;
      }
      
      .close-manager-button {
        font-size: 16px;
        border: none;
        background: #ffffff;
        cursor: pointer;
        position: absolute;
        top: 2px;
        right: 2px;
        display: none;
      }
      
      #layer-manager-container:hover .close-manager-button {
        display: block;
      }

      .title-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px;
      }
      
      .layer-manager-title {
        font-size: 14px;
        font-weight: 200;
        margin: 0;
      }
      
      #layer-list {
        padding-left: 0;
      }
      
      .layer-list-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        line-height: 1.2;
        position: relative;
        font-size: 0.9em;
        margin: 5px;
      }
      
      .left-container {
        display: flex;
        align-items: center;
        overflow: hidden;
        position: relative; /* Ensure the button stays within the bounds */
      }
      
      .legend-image,
      .legend-canvas {
        width: 20px;
        height: 20px;
        margin-right: 10px;
      }
      
      /* .legend-image.active .hover-image-container {
        display: block;
      } */

      .text-container {
        display: flex;
        flex-direction: column;
        flex: 1;
      }
      
      .layer-name {
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      
      .toggle-button {
        font-size: 14px;
        padding: 2.5px 6.5px;
        border: none;
        background: rgb(215, 215, 215);
        cursor: pointer;
        position: absolute;
        right: 3px;
        top: 50%;
        transform: translateY(-50%);
        display: none;
        border-radius: 4px;
      }
      
      #hover-image-container {
        position: fixed;
        display: none;
      }
      
      .hover-image {
        max-width: 300px;
        max-height: 300px;
        border: 1px solid #ccc;
        
      }
      
      .layer-list-item:hover .toggle-button, 
      .layer-list-item:hover .action-button {
        display: inline-block;
      }
      
      .action-button {
        display: none;
        padding: 2px 4px;
        border: none;
        background: rgb(215, 215, 215);
        cursor: pointer;
        position: absolute;
        right: 30px;
        top: 50%;
        transform: translateY(-50%);
        border-radius: 4px;
      }
      
      .action-button img {
        width: 16px; 
        height: 16px;
      }

      #minimized-button {
        display: none; /* Initially hidden */
        position: fixed;
        top: 60px;
        right: 10px;
        width: 48px;
        height: 45px;
        border: 1px solid rgb(170, 170, 170);
        background-color: #f9f9f9;
        border-radius: 4px;
        cursor: pointer;
        font-size: 12px;
        text-align: center;
        /* line-height: 45px;  Vertically center the text */
        padding: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: top 1s ease;
      }
      
      #minimized-button img {
        width: 20px;
        height: 20px;
      }
      
      #minimized-button.empty img {
        opacity: 0.3;
      }
      
     
 
}


/* @media (min-width:992px) {
    #layer-manager-container {
        position: fixed;
        top: 60px;
        right: 10px;
        width: 240px;
        border: 1px solid rgb(170, 170, 170);
        padding: 0px;
        background-color: #ffffff;
        box-sizing: border-box;
        border-radius: 4px;
        padding-bottom: 0px;
    }

    .close-button {
        font-size: 16px;
        border: none;
        background: #ffffff;
        cursor: pointer;
        position: absolute;
        top: 2px;
        right: 2px;
    }

    .title-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px;
    }

    .layer-manager-title {
        font-size: 14px;
        font-weight: 200;
        margin: 0;
    }

    #layer-list {
        padding-left: 0;
    }

    .layer-list-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        line-height: 1.2;
        position: relative;
        font-size: 0.9em;
        margin: 5px;
    }

    .left-container {
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    .legend-image {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }

    .text-container {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .layer-name {
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .toggle-button {
        font-size: 12px;
        padding: 2px 5px;
        border: none;
        background: rgb(215, 215, 215);
        cursor: pointer;
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
    }

    #hover-image-container {
        position: fixed;
        display: none;
    }

    .hover-image {
        max-width: 300px;
        max-height: 300px;
        border: 1px solid #ccc;
    }

    .toggle-button {
        display: none;
    }

    .layer-list-item:hover .toggle-button {
        display: inline-block;
    }

    #minimized-button {
        display: none; <!-- Initially hidden -->
        position: fixed;
        top: 60px;
        right: 10px;
        width: 48px;
        height: 45px;
        border: 1px solid rgb(170, 170, 170);
        background-color: #f9f9f9;
        border-radius: 4px;
        cursor: pointer;
        font-size: 12px;
        text-align: center;
        <!-- line-height: 45px;  Vertically center the text -->
        padding: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #minimized-button img {
        width: 20px;
        height: 20px;
    }

    #minimized-button.empty img {
        opacity: 0.3;
    }
} */
