:root {
    --sidebar-width-max: 300px;
    --sidebar-width-min: 0px;
    --sidebar-width-current: 300px;
    --sidebar-visibility: visible;
    --background: #001114;
    --sidebar: #564c57;
    --text: #edf6f9;
    --accent-1: #008dd5;
    --accent-2: #ff934f;
    --sidebar-duration: 0.3s;
}

@media screen and (max-width: 400px) {
    :root {
        --sidebar-width-current: var(--sidebar-width-min);
        --sidebar-visibility: hidden;
    }
}

body{
    background-color: var(--background);
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0px;
}

select{
    background-color: var(--sidebar);
    height: 34px;
    color: var(--text);
    border: var(--text) solid 2px;
    border-radius: 14px;
    padding: 0px 10px;
}

#view_data{
    display: flex;
    flex-direction: column;
    height: 100%;
}

#viewer_section{
    display: flex;
    flex-direction: column;
    height: 100%;
}

#viewer_buttons>select{
    background-color: var(--background);
}

#app_container {
    display: block;
}

#sidebar{
    background-color: var(--sidebar);
    height: 100%;
    width: var(--sidebar-width-current);
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    overflow-x: hidden;
    transition: var(--sidebar-duration);
}

#sidebarToggle{
    left: calc(var(--sidebar-width-current) - 0px);
    top: 24px;
    width: 24px;
    position: fixed;
    transition: left var(--sidebar-duration);
}

#main_content{
    width: calc(100% - var(--sidebar-width-current));
    padding: 10px 0px;
    margin-left: var(--sidebar-width-current);
    transition: margin-left var(--sidebar-duration);
    height: calc(100vh - 20px);
}

.sidebar_section {
    visibility: var(--sidebar-visibility);
    padding: 10px;
    --color: attr(data-section string);
    transition: var(--sidebar-duration);
}

.section_title {
    height: 50px;
    font-size: 36px;
    font-weight: bolder;
    text-align: center;
    background-color: var(--color);
    overflow: hidden;
    line-height: 50px;
}

.section_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section {
    display: flex;
    width: 100%;
    justify-content: center;
}

#progress-bar {
    width: 0%;
    height: 30px;
    background-color: #4caf50;
    text-align: center;
    color: var(--text);
}

#loadingProgress {
    display: block;
    position: absolute;
    width: 60%;
    margin: auto;
    margin-top: 50%;
    transform: translate(0, -50%);
    text-align: center;
    background-color: var(--background);
    padding: 10px;
    border: 1px solid var(--background);
}

#metadata {
    margin-top: 20px;
    font-size: 16px;
    width: auto;
    display: flex;
    flex-direction: column;
}

#metadata>p {
    margin: 6px;
}

#thumbnail {
    height: 200px;
}


#viewerWindow {
    width: 100%;
    height: 500px; /* Default size */
    transition: height 0.3s ease;
}

#curr_frames {
    display: inline-block;
}

.full-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 998;
}

.full-button {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

.full-load {
    position: fixed !important;
    top: 50%;
    left: 50%;
    z-index: 999;
    margin-top: 0 !important;
    transform: translate(-50%, -50%) !important;
}

#viewer {
    width: 100%;
    height: 100%;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
  
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}
  
.btn {
    margin: 10px;
    padding: 10px 20px;
}

.hidden {
    display: none !important;
}

#queue_section {
    align-items: stretch;
}

.project_div {
    border: 1px solid #ccc;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
}

.project_header {
    background-color: var(--accent-1);
    padding: 5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project_header>p {
    font-weight: bold;
    font-size: 18px;
    width: auto;
}

.project_queue {
    display: flex;
    flex-direction: column;
}

.queue_item {
    width: 100%;
    height: 40px;
    position: relative;
    border: 1px solid #ccc;
    margin: 5px 0;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.queue_item p {
    margin: 0;
    padding: 0;
}

.progress-bar {
    background-color: #4caf50;
    width: 0%;
    height: 30px;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    animation: ripple 1.5s infinite linear;
    background: linear-gradient(90deg, #4caf50 25%, #66bb6a 50%, #4caf50 75%);
    background-size: 200% 100%;
}

/* Ripple keyframes */
@keyframes ripple {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
}