/* Container to hold the full-screen image select. */
#figma-full-screen-image-select-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* 100% of the viewport height */
    z-index: 1000; /* Assuming you want this to appear above everything else. */
    display: none; /* Initially hidden */
    flex-direction: column; /* The navbar and canvasBody will stack vertically. */
    background-color: rgba(0,0,0,0.7); /* Semi-transparent background */
    overflow: hidden; /* hide overflow content */
    display: none; /* Add this line */
    z-index: 8998;
}

/* Navbar and its contents */
#figma-full-screen-image-select-container .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Individual container styling */
.tools-container, .title-bar-container, .zoom-container, .close-container {
    flex: 1;
}

.title-bar-container {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.zoom-container {
    text-align: right;
}

.close-container {
    max-width: 50px;
    text-align: right;
}

.close-container img {
    max-width: 100%;
    cursor: pointer;
}

/* Canvas body */
#canvasBody {
    flex-grow: 1; /* Take up all remaining vertical space */
    padding: 20px;
    overflow-y: auto; /* If contents are larger than canvasBody, it will be scrollable vertically. */
    background-color: #EAECF0;
}

.is-multi-page-btn-container{
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 9;
}

.is-multi-page-btn-container button{
    padding: 8px;
    align-items: flex-start;
    gap: 10px;
    border-radius: 6px;
    background: #FFF;
    border: 1px solid #FFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    
    /* Apply the inverse scale factor */
    /* transform: scale(1);
    transform-origin: top left; */
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
}

.is-multi-page-btn-container button:active, .is-multi-page-btn-container button:focus{
    outline: none;
}

.is-multi-page-btn-container button:hover > svg path{
    stroke: #000;
}

.is-multi-page-btn-container button.active> svg path{
    stroke: #0F53FA;
}

.image-wrapper .loader {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.8);
    backdrop-filter: blur(8px); /* Add blur effect */
    z-index: 998;
    font-size: 24px;
  }
  
.image-wrapper .loader::before {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  
    color: white;
  }

  .TEXT.image-wrapper, .LINE.image-wrapper, .COMPONENT.image-wrapper, .COMPONENT_SET.image-wrapper{
    display: none;
  }

  .is-multi-page-btn:not(.processed-multi-page).disabled{
    cursor: default !important;
  }