/* Import Google font:poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inconsolata&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #50154c, #40286b);

    /* min-height: 100vh; */
}

body::-webkit-scrollbar, .labels-list::-webkit-scrollbar {
    width: 1rem;
    /* border: 5px solid #5b2091; */
    /* box-sizing: border-box; */
}
.labels-list::-webkit-scrollbar-track-piece {
    background-color: linear-gradient(to bottom, #50154c, #40286b);
    border: 3px solid rgb(33, 33, 33);
    border-radius: 10px;
}
body::-webkit-scrollbar-track, .labels-list::-webkit-scrollbar-track {
    background-color: rgb(33, 33, 33);
    /* background: linear-gradient(to bottom, #b41aaa, #6d1ffc); */
}
.labels-list::-webkit-scrollbar-track {
    border-radius: 10px;
}
body::-webkit-scrollbar-thumb, .labels-list::-webkit-scrollbar-thumb {
    /* background-color: rgb(232, 201, 255); */
    background: linear-gradient(to bottom, #b41aaa, #6d1ffc);
    box-sizing: border-box;
    border-left: 3px solid rgb(33, 33, 33);
    border-right: 3px solid rgb(33, 33, 33);
    border-radius: 7px;
    width: 0.5rem;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    margin-bottom: 10px;
    /* display: flex; */
}
nav {
    display: flex;
    background-color: #1a1a1a;
    min-height: 50px;
    /* align-items: center; */
    color: white;
    /* justify-content: center; */
    position: sticky;
}
/* nav:first-child {
    : flex-start;
} */
nav .left {
    width: 80%;
}
nav h1 {
    padding: 0px 20px;
    margin: 0px 15px;
    /* width: 100%; */
    /* align-self: flex-start; */
}

nav .search {
    width: 100%;
    /* background-color: cyan; */
    display: flex;
    align-items: center;
    justify-content: center;
}

nav .search .search-box {
    height: 30px;
    border: 1px solid grey;
    background-color: #262626;
    border-radius: 20px;
    color: white;
    width: 250px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
nav .search-box input {
    background-color: transparent;
    border: none;
    width: 205px;
    color: inherit;
    font-size: 16px;
    padding: 0px 5px;
    height: 100%;
}
nav .search-box input:focus {
    border: none;
    outline: none;
}

nav .right {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}
nav ul {
    list-style: none;
    display: flex;
    margin: 0px 15px;
    width: 100%;
    justify-content: flex-end;
    /* gap: 10px; */
}

nav ul li {
    padding: 10px 20px;
}

button {
    cursor: pointer;
}

/* .video-container {
    max-height: 100vh;
} */
@media only screen and (max-width: 650px) {
    /* .video-container {
        min-height: 30vh;
    } */
    .labels-list .heading h1{
        font-size: 24px;
    }
}

.grid {
    display: grid;
    grid-template-columns: 65vw auto;
}
.video-container {
    display: flex;
    /* align-items: center; */
    justify-content: center;
    user-select: none;
}
.video-controls, .video-timer, .options, nav, .nav {
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}
.video-timer {
    font-family: 'Inconsolata', monospace;
}

.video-controls .options, nav, .nav {
    width: 100%;
}
.options.center {
    /* background: red; */
    width: auto;
}
.video-controls {
    padding: 5px 20px 10px;
}

.options button {
    width: 40px;
    height: 40px;
    border: none;
    color: aliceblue;
    background: none;
    font-size: 19px;
    cursor: pointer;
}

.options:first-child {
    justify-content: flex-start;
}
.options:last-child {
    justify-content: flex-end;
}

.options button :where(i, span) {
    width: 100%;
    height: 100%;
    line-height: 40px;
    max-width: 75px;
}

.options .video-timer {
    font-size: 16px;
    color: #efefef;
    margin-left: 5px;
    min-width: 90px;
    display: flex;
    justify-content: flex-start;
}

.video-timer .separator {
    font-size: 16px;
    margin: 0px 5px;
    font-family: "Open-sans";
}

.options input {
    height: 4px;
}

.container {
    max-width: 1000px;
    width: 98%;
    background: black;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    max-height: 510px;
    height: auto;
}
.container.fullscreen {
    max-width: 100%;
    width: 100%;
}

.container video {
    width: 100%;
}

.wrapper {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -15px;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: all 0.08s ease;
}
.container.show-controls .wrapper {
    bottom: 0px;
    opacity: 1;
    pointer-events: auto;
    transition: all 0.08s ease;
}
.wrapper::before {
    content: "";
    bottom: 0;
    width: 100%;
    position: absolute;
    z-index: -1;
    height: calc(100% + 35px);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

/* ???????????????   STYLING THE TIMELINE   ??????????????? */

.video-timeline {
    height: 10px;
    width: 100%;
    cursor: pointer;
    /* border: 1px solid red; */
}
.timeline-area {
    height: 12px;
    width: 100%;
    cursor: pointer;
    /* border: 1px solid red; */
}

.video-timeline .progress-area {
    height: 3px;
    position: relative;
    background: none;
}
.bg-grey {
    background: rgba(255, 255, 255, 0.6) !important;
}

.progress-area .progress-bar, .frame-progress-bar {
    width: 0%;
    height: 3.5px;
    background: red;
    position: relative;
}

div.progress-containerr {
    height: 3px;
    position: absolute;    
    top: 0;
    width: 100%;
    /* border: 0.01px solid grey; */
    /* display: grid; */
    /* grid-template-columns: auto auto auto auto; */
    /* gap: 0.3%; */
}
.disabled-progress-frames {
    background: rgba(206, 206, 206, 0.6);
    transform: scaleY(1.5);
    position: relative;
    z-index: -10;
}
.progress-frames {
    background: rgba(255, 255, 255, 0.8);
    transform: scaleY(1.5);
    z-index: -10;
}
.progress-span-over {
    position: relative;
    z-index: 10;
    background-color: black;
    height: 3.5px;
}
.progress-frames:hover {
    background-color: red !important;
    transform: scaleY(2);
}

.fa-down-long {
    font-size: 20px;
}
.cinema div {
    border: 3px solid aliceblue;
    width: 25px;
    height: 18px;
    margin: 10px;
    border-radius: 1px;
    cursor: pointer;
}

.progress-area span, .start, .end {
    position: absolute;
    left: 50%;
    color: #ffffff;
    top: -25px;
    transform: translateX(-50%);
    font-size: 13px;
}

.progress-area span, .progress-area .progress-bar::before {
    display: none;
}
.video-timeline:hover .progress-area span,
.video-timeline:hover .progress-area .progress-bar::before {
    display: block;
}

.progress-area .progress-bar::before {
    content: "";
    position: absolute;
    right: 0;
    height: 13px;
    width: 13px;
    background: inherit;
    top: 50%; 
    transform: translateY(-50%);
    border-radius: 50%;
}

.progress-area:active, .progress-bar:active, .video-timeline:active, .progress-area > span:active {
    cursor: pointer;
}

/* Playback content */

.playback-content {
    position: relative;
}
.playback-content .speed-options{
    position: absolute;
    background: #ffffff;
    bottom: 40px;
    left: -40px;
    width: 95px;
    border-radius: 4px;
    list-style: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.playback-content .speed-options.show{
    opacity: 1;
    pointer-events: auto;
}

.speed-options li {
    width: 100%;
    font-size: 14px;
    padding: 5px 0px 5px 15px;
    cursor: pointer;
    user-select: none;
}

.speed-options li.active {
    color: #ffffff;
    background-color: #2289ff;
}











.slider-container {
    text-align: center;
}

input[type="range"] {
    width: 50px;
    margin: 0 10px;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 1px;
    cursor: pointer;
    background: #ddd;
    border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    border: 1px solid #aaa;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -6px;
}

input[type="range"]:focus {
    outline: none;
}

input[type="range"]:focus::-webkit-slider-runnable-track {
    background: #ccc;
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 1px;
    cursor: pointer;
    background: #ddd;
    border-radius: 2px;
}

input[type="range"]::-moz-range-thumb {
    border: none;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

input[type="range"]:focus::-moz-range-track {
    background: #ccc;
}

#volumeValue {
    font-size: 12px;
}








/* Labels Styling */


.temp {
    height: 100px;
}

.popup2 {
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup2 {
    display: none;
}

.popup-content {
    background-color: #00002c;
    margin: 2% auto;
    margin-top: 80px;
    padding: 20px;
    border: none;
    width: 50%;
    max-width: 400px;
    border-radius: 12px;
    color:white;
    margin: 10% auto;
    min-height: 300px;
    position: relative;
}
.popup-content::before {
    content: "";
    position: absolute;
    background: linear-gradient(45deg, #b41aaa, #6d1ffc 50%, #0dd5aa);
    top: -5px;
    right: -5px;
    bottom: -5px;
    left: -5px;
    z-index: -1;
    border-radius: 12px;
    animation: myAnimation 3s ease-in-out infinite;
}
@keyframes myAnimation {
    0%, 100% {
        background-size: 200% 200%;
        background-position: 100% 0;
    }
    50% {
        background-size: 200% 200%;
        background-position: 0 100%;
    }
}

.incenter{
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}
.incenter > button{
    margin: 15px 10px;
    padding: 6px 8px;
    font-size: 16px;
    font-weight: bold;
    background: #8645ff;
    border-radius: 10px;
    width: 90px;
    text-align: center;
    color: white;
    border: none;
}

.close2 {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: all 0.2s ease;
    user-select: none;
}

.close2:hover,
.close2:focus {
    color: rgb(115, 255, 255);
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.05);
}

/* .label {
    font-size: 10px;
    margin: 0px 15px;
} */
button.label {
    background: #febc00;
}
button.add-frame {
    background: #ebad02;
}
button.save {
    background: rgb(31, 31, 31);
    /* border: 1px solid white; */
    color: white;
    border: none;
}
button.export {
    background: rgb(31, 31, 31);
    border: none;
    color: white;

}
button.edit {
    background: green;
}
button.time-start {
    background: #17d045;
}
button.time-end {
    background: rgb(0, 166, 211);
}
button.x {
    background: red;
    margin-right: 10px;
    font-weight: bold;
    font-size: 28px;
}

button.label, button.save, button.edit, button.time-start, button.time-end, button.x, button.add-frame, button.export {
    padding: 0px 8px;
    border-radius: 5px;
    font-size: 15px;
    height: 25px;
    text-align: center;
    margin-left: 10px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
}
button.export, button.save {
    width: 60px;
}

.start, .end {
    width: 30px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -35px;
    width: 20px;
    /* border-radius: 50%; */
}
.start::before, .end::before {
    content: "";
    position: absolute;
    background-color: inherit;
    width: 14px;
    height: 14px;
    top: 15.5px;
    transform: rotate(45deg);
    z-index: -1;

}
.start i, .end i {
    position: absolute;
    top: 5px;
}

.start {
    /* border: 1px solid red; */
    background-color: #17d045;
    left: 17px;
}

.over {
    z-index: 10;
}
.under {
    z-index: -10;
}

.end {
    /* border: 1px solid blue; */
    background-color: rgb(0, 166, 211);
    left: 30px;
}

.hidden {
    display: none !important;
}
.message-box {
    /* background: rgb(208, 255, 208); */
    max-width: 500px;
    min-width: 400px;
    height: 60px;
    text-align: center;
    padding: 10px 20px;
    border-radius: 8px;
    position: fixed;
    z-index: 11;
    margin: auto;
    top: 30px;
    /* border: 1px solid green; */
    transform: translateY(-100px);
    opacity: 0;
    transition: all ease-in-out 0.5s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.saved {
    background: rgb(208, 255, 208);
    /* border: 1px solid green; */
}
.Connection-error, .Name-error{
    /* background: rgb(208, 255, 208); */
    background: rgb(255, 169, 169);
    /* border: 1px solid red; */
}

.show-message{
    transform: translateY(0px);
    opacity: 100%;
}
.message-box span {
    /* position: absolute;
    right: 20px;
    top: 18px; */
    user-select: none;
    cursor: pointer;
    font-weight: bold;
    color: grey;
    /* border: 1px solid red; */
    width: 20px;
    /* height: 20px; */
    border-radius: 5px;
    /* background-color: rgb(255, 144, 144); */
}

.message-container {
    display: flex;
    align-items: center;
    justify-content: center;
    /* position: fixed;
    z-index: 15; */
}

.labels-list {
    border: 2px solid rgb(195, 0, 255);
    margin: 0px 10px;
    border-radius: 10px;
    min-height: 510px;
    height: 85vh;
    overflow: auto;
}

.label-item, .heading, .import-option {
     
    /* border: 1px solid red; */
    background: #262626;
    /* background-image: url("media/background-label-items.jpg"); */
    background-size: cover;
    padding: 10px;
    color: white;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(79,21,76,255);
    border: 1px solid black;
    /* filter: brightness(80%) contrast(120%) grayscale(10%); */
}
.label-item {
    max-width: 1000px;
    width: 90%;
    margin: 15px auto;
}
.heading {
    max-width: 1000px;
    width: 90%;
    margin: 8px auto;
    margin-top: 15px;
}
.import-option-container {
    margin: 8px auto;
    width: 90%;
    /* border: 1px solid red; */
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
/* .label-item, .heading h2 {
    font-size: 16px;
} */

.label-item p {
    margin-bottom: 10px;
    padding: 5px;
    border-radius: 8px;
    font-size: 14px;
    /* display: inlineblock; */
    background: rgba(0, 0, 0, 0.154);
}


.label-item button {
    padding: 6px 4px;
    min-width: 48px;
    margin-right: 10px;
    border-radius: 5px;
    border: none;
    color: white;
    font-weight: bold;
    font-size: 11.5px;
    user-select: none;
}

.label-item .view-label {
    background-color: rgb(38, 139, 38);
}
.label-item .edit-label {
    background-color: #29a49c;
}
.label-item .del-label {
    background-color: red;
}


.frames-container {
    /* border: 1px solid red; */
    max-width: 65vw;
    min-height: 100px;
    padding: 15px;
    display: flex;
    align-items: left;
    justify-content: center;
    flex-wrap: wrap;
}

.frames-box {
    border: 2px solid rgb(205, 0, 0);
    width: 100%;
    padding: 10px;
    border-radius: 10px;
}
.frames {
    min-height: 40px;
    /* border: 1px solid red; */
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}
.frames .frameBtn {
    user-select: none;
}

.frames span {
    /* border: 1px solid red; */
    padding: 1px 10px;
    margin: 0px 5px;
    border-radius: 12px;
    background: linear-gradient(to right, #bd3381,#d14163);
    color: white;
    user-select: none;
    cursor: pointer;
    min-width: 125px;
    display: inline-block;
    text-align: center;
}
.label-options {
    margin-top: 5px;
    width: 100%;
    display: grid;
    grid-template-columns: auto 3px auto;
    text-align: center;
    user-select: none;
}
.label-options > span {
    background-color: white;
    height: 100%;
}
.label-options > button {
    border: none;
    cursor: pointer;
    padding: 6px;
    color: white;
}
#saved-labels {
    background-color: #1f1f1f;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}
#import-labels {
    background-color: #1f1f1f;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.label-options .highlight-option {
    font-weight: bold !important;
    background-color: #181818 !important;
}

.save-export-btn {
    width: 100%;
    /* border: 1px solid red; */
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
#file-input {
    display: none;
}
#upload-btn {
    cursor: pointer;
}
.fa-file:before {
    content: "\f15b";
    margin-left: 10px;
    font-size: 20px;
}

#loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 85%;
    display: none;
    background: rgba(255, 255, 255, 0.133);
    justify-content: center;
    align-items: center;
    z-index: 10;
}
#blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* display: none; */
    background:  rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    z-index: 0;
}

#loading-gif {
    width: 125px; /* Adjust the width of the loading GIF as needed */
    animation: rotate 4s linear infinite;
}
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.loading-circle {
    background: black;
    /* transform: ; */
}

/* Style for the label */
/* label {
    margin-top: 10px;
    display: block;
} */

/* Style for the select dropdown */
select {
    padding: 3px;
    font-size: 15px;
    border: none;
    border-radius: 12px;
    width: 125px;
    background: #404040;
    color: white;
}

/* Style for the dropdown arrow */
select::-ms-expand {
    display: none;
}

/* Style for the options within the dropdown */
option {
    font-size: 16px;
}

/* Style for when the dropdown is focused */
select:focus {
    outline: none;
    border-color: #29ffff; /* Change the color as needed */
    box-shadow: 0 0 5px rgba(76, 175, 170, 0.5); /* Change the color as needed */
}

.form-name-desc {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;

}

label[for].popup-form {
    color: white;
    max-width: 260px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 15px;
}

.form-name-desc input, .form-name-desc textarea{
    max-width: 260px;
    border-radius: 10px;
    border: none;
    padding: 7px;
    background: rgba(0, 0, 0, 0.429);
    color: white;
}

.frames-box hr {
    border: rgb(225 131 255) 1px solid;
}

.actions {
    color: white;
    border: 1.5px solid white;
    font-size: 12px;
    padding: 0px 6px;
    margin: 0px 3px;
    border-radius: 5px;
    min-width: 42px;
    text-align: center;
}