
/* Hide the default file input */
input[type="file"] {
    display: none;
}

/* Custom button style */
.custom-file-upload {
    display: inline-block;
    padding: 0.3em 1.2em;
    margin: 0 0.3em 0.3em 0;
    border-radius: 2em;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Roboto',sans-serif;
    font-weight: 300;
    color: #FFFFFF;
    background-color: #B2292E;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.home-pane {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    z-index: 3;
    font-size: 100%;
    opacity: 1;
    background-color: #F1F1F1;
    display: none;
}

.loading-pane {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    z-index: 4;
    font-size: 100%;
    opacity: 1;
    background-color: #F1F1F1;
    display: none;
}

.library-pane {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
    font-size: 100%;
    opacity: 1;
    background-color: #F1F1F1;
    text-align: center;
}


/* Libary List */


h2 {
    margin: 0;
    padding-bottom: 10px;
    text-align: center;
    font-weight: bold;
}

.library-list {
    flex: 1; /* Expands to fill remaining space */
    overflow-y: auto; /* Enables scrollbar when needed */
    border: 1px solid gray; /* Border around the list */
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
    width: 80vw;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-bottom: 5px;
    box-sizing: border-box;
    cursor: pointer; /* Change cursor to pointer on hover */
}

    .item:hover {
        background-color: #CFCFCF;
    }

/* Item name text */
.item-name {
    flex-grow: 1; /* Takes available space to push the delete button to the right */
    text-align: left; /* Left-align item text */
    margin-left: 10px;
}

button {
    cursor: pointer;
}

#add-button {
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
}

/* Thumbnail preview styling */
.thumbnail {
    width: 90px; /* Set the width of the thumbnail */
    height: 90px; /* Set the height of the thumbnail */
    margin-right: 2px; /* Spacing between thumbnail and item name */
    border-radius: 3px; /* Optional: Round the corners of the thumbnail */
    object-fit: contain; /* Ensures the image fills the thumbnail area */
    border: 1px solid gray; /* Border around the list */
    background-color: white;
}
    /* Enlarge the thumbnail on hover, making it absolute */
    .thumbnail:hover {
        position: relative;
        transform: scale(2) translate(25%, 25%); /* Scale up the thumbnail on hover */
        z-index: 1000; /* Ensure it appears above other elements */
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); /* Optional: shadow effect */
        background-color: white;
    }

.deleteButton:hover {
    background-color: gray;
}
