html {
    margin: 0;
    height: 100vh;
    padding: 0px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

#title {
    padding-top: 10px;
    color: #fff;
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

h2 {
    font-size: 16px;
    /* margin-top: 10px; */
    /* margin-bottom: 10px; */
    display: block;
    text-align: left;
    margin: 10px;
}

h3 {
    font-size: 14px;
    font-weight: 400;
    margin-top: 10px;
    margin-bottom: 10px;
    display: block;
    text-align: left;
}

body {
    margin: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    height: 100vh;
}

.main-container {
    display: flex;
    border: none;
}

.divider {
    width: 5px;
    cursor: col-resize;
    /* Use a resizable cursor */
    background-color: #d9d8d8;
    /* margin-left: 10px; */
}

.divider:hover {
    background-color: #aaa9a9;
}

/* Add this CSS to disable user selection while resizing */
.user-select-none {
    user-select: none;
}

#main-content {
    display: flex;
    /* Use flex container */
    width: 100%;
    height: 100vh;
    padding: 10px 0px;
    box-sizing: border-box;
}

.row-layout {
    flex-direction: row;
}

.column-layout {
    flex-direction: column;
}

.left-container {
    flex-grow: 1;
}
/*
.source-photos-container,
.collections-for-review-container,
.calscape-photos-container,
.collection-container {
    margin: 10px;
}
*/
.thumbnail-scroll-container,
.collections-scroll-container {
    height: 100%;
    /* Takes the full height of the source-photos-container */
    max-height: 800px;
    overflow-y: auto;
    padding: 10px;
    background-color: #f2f2f2;
    box-sizing: border-box;
}

/* styles for next and previous buttons */
.next-button {
/*    display: inline-block; hiding until implemented*/
    display: none;
    background-color: #516d3d;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
  }

/* Style for the grid */
#thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 20px;
    background-color: #f2f2f2;
;
    min-height: 250px;
    height: 100%;
    /* Takes the full height of the thumbnail-scroll-container */
    box-sizing: border-box;
}

.right-container {
    display: flex;
    flex-direction: column;
    /* Stack children vertically */
    min-width: 350px;
    max-width: calc(100% - 250px);
    /* Set initial width for panels */
    width: calc(60% - 5px);
}

.collection-container {
    display: flex;
    flex-direction: column;
}

.group-properties-container,
.properties-scroll-container {
    padding: 10px;
    background-color: #f2f2f2;
}

.group-thumbnail-scroll-container {
    max-height: 800px;
    overflow-y: auto;
    /* Enable vertical scrolling */
    padding: 10px;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 20px;
    background-color: #fff;
    min-height: 250px;
    position: relative;
    /* Make the container relative for absolute positioning */
    height: 100%;
    box-sizing: border-box;
}

.drag-and-drop-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(78, 160, 219, 0.241);
    /* Light blue background */
    color: black;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    /* Center the text */
    font-size: 14px;
    /* Slightly larger font size */
    border: 1px dashed white;
    /* Semi-transparent white border */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    /* Light shadow */
}

.tcontainer .thumbnail {
    max-width: 100%; /* Allow the largest dimension to adjust automatically */
    height: 150px; /* Set the height to a fixed value */
    object-fit: cover; /* Scale the image proportionally to cover the entire container */
    object-position: 50% 50%; /* Center the image within its container */
}

.tcontainer {
    box-sizing: border-box; /* Include padding and borders in the element's dimensions */
    border: 1px solid #ccc;
    display: flex;
    /* justify-content: center; */ /* Horizontally center the content */
    flex-direction: column;
    align-items: center; /* Center children horizontally */
    margin: auto;
}

.tcontainer.selected {
    border: 3px solid #007bff;
    border-width: 3px; /* Increase border width for selected items */
}

.caption {
    width: 150px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    word-wrap: break-word; /* Allow long words to break */
    max-width: 300px; /* Limit the maximum width of the caption */
    overflow: hidden; /* Hide overflow */
}

.full-text {
    display: none; /* Initially hide full caption */
}

/* Show the full caption on hover */
.caption:hover .full-text {
    display: block;
}

/* Show the full caption on hover */
.caption:hover .short-text {
    display: none;
}

.caption p {
    font-size: 13px;
}

.section-spacing {
    margin-bottom: 10px; /* Adjust the margin as needed */
}

.lb-dataContainer {
    background-color: black !important;
}

.lb-caption {
    font-size: 13px !important;
    font-weight: normal;
    padding-left: 5px;
    padding-bottom: 10px;
}

.photo-caption-label {
    color: #B4886B;
    margin-right: 10px;
    text-align: right;
    display: inline-block;
    width: 100px;
}

.photo-title {
    margin-top: 5px;
    font-size: 16px !important;
}

.photo-caption {
    font-size: 13px;
}

.photo-caption p{
    font-size: 13px !important;
    margin: 0 !important; padding: 0 !important;
}

.photo-title, .photo-caption {
    margin: 0; /* Remove default margins for paragraphs */
    color: #ffffff; /* White text */
    overflow-wrap: anywhere;
}

.photo-caption p:last-child {
    margin-bottom: 5px; /* Bottom margin for the last paragraph */
}

.label {
    color: #B4886B;
    font-weight: bold;
    margin-right: 10px;
    text-align: right;
    border: none;
    outline: none;
    flex: 1;
    align-self: center;
    min-width: 100px;
    /* Set a fixed minimum width for the label */
}

.label:after {
    content: ": ";
}

/* Style for the required asterisk */
.label[for]:required::after {
    content: '*';
    color: tomato;
    margin-right: 4px;
    /* Add spacing between asterisk and label */
}

.required-asterisk {
    color: red;
}

/* Container for the label/input pairs */
.form-group {
    display: flex;
    padding: 8px;
}

.species-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Auto expanding input field styling */
.auto-expand-input {
    font-size: 100%;
    border: 1px solid #ccc;
    border-radius: 3px;
    flex: 5;
    padding: 10px 10px;
    margin-bottom: 0;
}

.colltype-choice {
    margin: 0.4rem;
}

.suggestions {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: #FFF;
    max-height: 100px;
    overflow-y: auto;
    width: 100%;
    /* Expand to match the input field width */
    box-sizing: border-box;
    /* Include padding and borders in the width */
    margin-top: 5px;
    /* Add some spacing between input and suggestions */
}

.suggestions li {
    margin: 0;
    padding: 0;
    cursor: pointer;
    list-style-type: none;
    text-align: left;
}

.multivalue-input-container {
    flex: 5;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #e7e7e7;
    width: 100%;
    /* This should make it take the full available horizontal space */
    padding: 10px;
}

.multivalue-input-inner {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    max-height: 220px;
    /* Set your desired max height here */
    overflow-y: auto;
    /* Add a vertical scrollbar when content overflows */
}

.input-container {
    display: flex;
    align-items: center;
    /* Vertically center the input and delete button */
}

.input {
    font-size: 100%;
    border: 1px solid #ccc;
    border-radius: 3px;
    flex: 5;
    margin: 10px;
}

.multivalue-input {
    flex: 1;
    margin: 10px;
}

.input-button-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
}

.add-btn,
.delete-btn {
    background-color: #e7e7e7;
    color: black;
    font-size: 12px;
    border-radius: 6px;
    flex: 0 0 auto;
    margin-right: 10px;
}

.add-btn:focus:not(:focus-visible):not(.focus-visible),
.delete-btn:focus:not(:focus-visible):not(.focus-visible) {
    box-shadow: none;
    outline: none;
}

.add-btn:hover,
.delete-btn:hover {
    background-color: #979494;
}

.add-btn:focus,
.delete-btn:focus {
    box-shadow: rgba(156, 157, 156, 0.4) 0 0 0 3px;
    outline: none;
}

.add-btn:disabled,
.delete-btn:disabled {
    background-color: #979494;
    border-color: rgba(27, 31, 35, .1);
    color: rgba(255, 255, 255, .8);
    cursor: default;
}

.add-btn:active {
    background-color: #636564;
    box-shadow: rgba(184, 186, 184, 0.2) 0 1px 0 inset;
}

.hr {
    margin: 0px 5em;
    margin-top: 10px;
    margin-bottom: 10px;
    border: 1px solid grey;
    border-radius: 1em;
    background-color: gray;
}

* {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

/* Styling for the header */
header {
    background-color: #224762;
    text-align: center;
    justify-content: center;
    padding: 10px;
    margin: 20px;
}

/* Styling for the navigation bar */
#left-nav {
    background-color: rgba(64, 124, 168, 0.5);
    display: inline-block;
    height: 100%;
    width: 15%;
    min-width: 200px;
    margin-top: 60px;
    margin-right: 10px;
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.3);
    position: relative;
    /* Add this to establish a positioning context for absolute positioning */
    z-index: 1;
}

#left-nav ul {
    list-style-type: none;
    padding: 10px;
    margin: 0;
}

#left-nav ul li {
    padding: 5px;
}

#left-nav ul li a {
    text-decoration: none;
    color: black;
    display: block;
    padding: 5px 5px;
    text-align: left;
}

#left-nav ul li ul.submenu {
    display: none;
    color: black;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#left-nav ul li:hover ul.submenu {
    display: block;
    background-color: rgba(64, 124, 168, 0.5);
}

#left-nav ul li a:hover {
    color: black;
    background-color: rgba(64, 124, 168, 0.5);
}

#left-nav ul li a.selected {
    color: #eee;
    background-color: rgba(64, 124, 168, 0.5);
}

/* Specific styles when on the home page */
#left-nav.nav-home ul li:not(#welcome-link) {
    display: none;
    /* Hide all li elements except welcome link */
}

#left-nav.nav-home ul li#welcome-link {
    display: block;
    /* Ensure welcome link is displayed */
}

/* Hide submenu on the home page */
#left-nav.nav-home ul li ul.submenu {
    display: none;
}

#left-nav.nav-home ul li:hover ul.submenu {
    display: none;
}

#menu {
    background-color: #124266;
    overflow: hidden;
    display: flex;
    align-items: bottom;
    justify-content: space-between;
}

#menu ul {
    list-style-type: none;
    padding: 5px;
    margin: 0;
}

#menu ul li {
    padding: 5px;
}

#menu ul li a {
    text-decoration: none;
    color: white;
    display: block;
    padding: 5px 5px;
    text-align: left;
}

#menu ul li ul.submenu {
    display: none;
    color: white;
    background-color: #124266;
}

#menu ul li:hover ul.submenu {
    display: block;
}

#menu ul li a:hover {
    color: white;
    background-color: #555;
}

/* Styling for the modal */
.modal {
    display: none;
    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    z-index: 4;
}

.container {
    max-width: 960px;
    margin-left: 15%;
    background-color: #fff;
    padding: 20px;
}

.table-container {
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.table-title {
    color: #333;
    text-align: center;
}

.review-section {
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

.permissions-checkbox {
    margin: 20px 0;
    display: flex;
    align-items: center;
}

.permissions-checkbox label {
    margin-left: 8px;
}


#submit-button-container, #save-button-container {
    display: block;

}

#submit-button, #save-button {
    cursor: pointer;
    margin: 10px;
    position: relative;
}

#submit-button:focus:not(:focus-visible):not(.focus-visible),
#save-button:focus:not(:focus-visible):not(.focus-visible) {
    box-shadow: none;
    outline: none;
}

#submit-button:hover, #save-button:hover {
    background-color: #6A8855;
}

#submit-button:focus, #save-button:focus {
    box-shadow: rgba(46, 164, 79, .4) 0 0 0 3px;
    outline: none;
}

#submit-button:active, #save-button:active {
    background-color: #6A8855;
    box-shadow: rgba(20, 70, 32, .2) 0 1px 0 inset;
}

#submit-button:disabled, #save-button:disabled  {
    background-color: #cccccc;
    color: #666666;
    border: 1px solid #999999;
    cursor: not-allowed;
}

.permissions-checkbox {
    margin: 20px 0;
    display: flex;
    align-items: center;
}

.permissions-checkbox label {
    margin-left: 8px;
}

.table-container {
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.table-title {
    color: #333;
    text-align: center;
}

.review-section {
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

#status-area {
    position: fixed;
    bottom: 10px;
    left: 10px; /* Adjust as needed */
    z-index: 2;
}

.status-message {
    position: relative;
    border-radius: 5px;
    padding: 10px;
    min-height: 50px;
    width: 170px;
}

.status-message {
    display: flex;
    justify-content: flex-start; /* Align children to the start (left) of the container */
    align-items: center;
    padding-right: 30px; /* Adjust as needed to make space for the close icon */
}

#status-text {
    flex-grow: 1;
    margin-right: 10px;
}

/* Styles for success messages */
.status-message.success {
    background-color: #dceadf;
    color: #155724;
    border: 1px solid #3e734a;
}

/* Styles for error messages */
.status-message.error {
    background-color: #dcb7ba9d;
    color: #721c24;
    border: 1px solid #721c24;
}

#collectionTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#collectionTable a {
    text-decoration: underline;
    color: blue;
    cursor: pointer;
}

#collectionTable a:hover {
    color: darkblue;
}

#save-photos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Style the Quill toolbar */
.ql-toolbar {
    top: 0;
    left: 0;
    z-index: 1;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    /* Add a border or adjust as needed */
}

/* Style the Quill container */
.quill-container {
    top: 0;
    left: 0;
    background-color: #fff;
    margin-bottom: 0;
    position: relative;
}

/* Style the Quill editor area */
.ql-editor {
    height: 150px;
    padding: 3px 4px;
    overflow: visible;
}

/* Custom styles for headings */
.ql-snow .ql-size-small {
    font-size: 12px;
}

.ql-snow .ql-size-normal {
    font-size: 16px; /* Default font size */
}

.ql-snow .ql-size-large {
    font-size: 20px;
}

/* Custom styles for normal text */
.ql-snow .ql-size-medium {
    font-size: 14px;
}

/* Style for the selected count */
.selected-count {
    margin-right: auto;
    margin-left: 10px;
    /* Pushes the action buttons to the right */
}

#delete-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 10px; /* Add padding around the text and icon */
    transition: box-shadow 0.2s ease;
    /* Add a transition for smoother effect */
    margin-right: 20px;
}

#delete-button i {
    color: red;
    /* Customize the color of the trash can icon */
    font-size: 18px;
    /* Adjust the size of the icon as needed */
}

/* Hover effect */
#delete-button:hover i {
    color: darkred;
    /* Change the color on hover */
}

/* Focus effect */
#delete-button:focus:not(:focus-visible) {
    outline: none;
    /* Remove outline if focus is not via keyboard */
    box-shadow: none;
}

#delete-button:focus-visible i {
    outline: none;
    /* Remove the default focus outline */
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.5);
    /* Add a box shadow to indicate focus */
}

/* Active effect */
#delete-button:active i {
    transform: translateY(1px);
    /* Move the icon down slightly on click */
}

/* Disabled state */
#delete-button:disabled {
    cursor: not-allowed;
    /* Change cursor to indicate button is disabled */
}

#delete-button:disabled i {
    opacity: 0.5;
    /* Reduce opacity of icon when button is disabled */
}

#photo-actions-container {
    order: -1; /* This will make photo-actions-container appear above main-content */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10 px;
}

.flex-container-column {
    display: flex;
    flex-direction: column;
    width: 100%; /* Take full width available */
}

.expand-button {
    background-color: transparent; /* Transparent background */
    color: #323131; /* Subtle gray text color */
    border: none; /* Remove button border */
    padding: 10px; /* Add padding around the text and icon */
    cursor: pointer; /* Show pointer cursor on hover */
    transition: background-color 0.3s; /* Smooth transition for background color change */
    margin-right: 20px;
    border-radius: 8px;

    /* Center the icon vertically */
    display: flex;
    align-items: center;
}

.expand-button:hover {
    background-color: #f0f0f0; /* Light gray background on hover */
}

.expand-button i {
    margin-right: 5px; /* Add spacing between icon and text */
}

/* Style the text */
.expand-button span {
    font-size: 14px; /* Font size */
    font-weight: normal; /* Bold font weight */
}

#expand-button:disabled {
    color: #bfbfbf;
    cursor: not-allowed;
}

.expand-wrapper {
    position: relative; /* Position wrapper relative for absolute positioning of text */
}

.expand-text {
    position: absolute;
    bottom: -20px; /* Position text below the button */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.expand-wrapper:hover .expand-text {
    display: block; /* Show text when wrapper is hovered over */
    opacity: 1; /* Optionally set opacity to fade in the text */
    white-space: nowrap;
    background-color: #979494;
    color: white;
    padding: 5px;
}

.selected-count,
.expand-wrapper {
    display: inline-block; /* Display side by side */
    vertical-align: middle; /* Align vertically */
}

footer {
    background-color: #f0f0f0; /* Subtle background color */
    padding: 10px; /* Add padding for spacing */
    text-align: center;
}

.version-info {
    font-family: Arial, sans-serif; 
    color: #333; /* Dark text color */
    font-size: 14px; /* Adjust font size */
    text-align: left;
}

.version-info span {
    display: block; /* Ensure each version number is on a new line */
    margin-bottom: 5px; /* Add space between version numbers */
}

.copyright {
    margin-top: 10px; /* Adjust as needed */
}