@import "./themes.css";
@import "./animations.css";
@import "./main_nav.css";
@import "./videoPlayer.css";
@import "./message_container.css";
@import "./infinityai.css";
@import "./instructionModal.css";
@import "./stats.css";
@import "./developerMode.css";
@import "./video_list.css";
@import "./features.css";
@import "./colorSettings.css";
@import "./videoSettings.css";
@import "./training_videos.css";
@import "./tables.css";
@import "./events.css";
@import "./searches.css";
@import "./tallyTree.css";
@import "./user_home.css";
@import "./home_analyst_stats.css";
@import "./management/core.css";
@import "./management/new_project_wizard.css";
@import "./management/project_dashboard.css";
@import "./management/ontology.css";
@import "./management/predicate_window.css";
@import "./management/data_output_wizard.css";
@import "./management/predicate_window.css";
@import "./driver_tour.css";
@import "./container_width.css";

@font-face {
    font-family: 'Teen';
    src: url('fonts/teen/teen.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Bold.woff') format('woff');
    font-weight: bold;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Light.woff') format('woff');
    font-weight: 200;
}

* {
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

body {
    color: var(--color-text-primary);
    background-color: var(--color-bg-0);
    overflow-x: hidden;
    font-family: var(--default-font-stack);
}

@media (max-width: 1500px) {
    .features-header>h1 {
        font-size: 38px;
    }
    .main-picture {
        max-width: 85%;
    }
    .features-header-main>h1 {
        font-size: 38px;
        padding-top: 15%;
    }
    .features-main-div h2 {
        top: 260px;
        left: 50%;
    }
}

html, body {
    height: 100%;
}

input {
    background-color: var(--color-bg-3);
    border: none;
    color: var(--color-text-primary);
}

input::placeholder {
    color: var(--color-bg-6);
}

select {
    border: none;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 12px;
    color: black;
}

ol {
    list-style-position: inside;
}

/* BS5 overrides - global changes to aid in migration from BS3 -> BS5 */

.table, .table-striped {
    color: var(--color-text-primary);
}

.table td,
.table th {
    color: var(--color-text-primary);
    background-color: var(--color-bg-3);
}

h1, h2, h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

h4, h5, h6 {
    margin-top: 10px;
    margin-bottom: 10px;
}

button {
    color: inherit;
}

/* END BS5 overrides */

.background-color4 {
    background-color: var(--color-bg-4);
}

.background-color3 {
    background-color: var(--color-bg-3);
}

.hidden {
    display: none;
}

.btn-default {
    background-color: #ddd;
}

.btn-x-sm {
    font-size: 11px;
    padding: 4px 8px;
}

.btn-x-sm.noBorder {
    font-weight: bold;
    opacity: 1;
}

.resize-handle {
    pointer-events: none;
}

.rotation-handle:hover, .rotation-handle:focus {
    cursor: move;
}

.user-icon {
    height: 30px;
    width: 30px;
    border-radius: 100%;
    margin-right: 6px;
}

.input-with-label {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.input-with-label .help-text {
    margin-top: 5px;
    font-style: italic;
}

.input-with-label>span:first-child label {
    font-weight: normal;
}

.input-with-label>span:first-child {
    margin-bottom: 5px;
    color: var(--color-text-secondary);
}

.loadingOverlay {
    display: none;
    position: fixed;
    justify-content: center;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: #000;
    background-repeat: repeat;
    opacity: 0.7;
    align-items: center;
    z-index: 200;
    flex-wrap: wrap;
    flex-direction: column;
}

.loadingOverlay p {
    text-align: center;
    color: white;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 24px;
    width: 100%;
}

.loadingOverlay div>div {
    width: 32px;
    height: 32px;
    background-color: #fff;
    border-radius: 100%;
    display: inline-block;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.loadingOverlay .bounce1 {
    animation-delay: -0.32s;
}

.loadingOverlay .bounce2 {
    animation-delay: -0.16s;
}

.panel-primary {
    border-bottom: none;
}

.panel {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.panel-body {
    /*display: flex;*/
    /*flex-direction: column;*/
    height: 100%;
    padding: 0;
}

.top-controls {
    padding-left: 15px;
    padding-right: 15px;
    height: 8%;
    padding-top: 5px;
    padding-bottom: 5px;
}

.main-workspace {
    margin: 0;
    height: calc(100% - 44px);
    display: flex;
    flex-direction: column;
}

.noBorder {
    border: none;
}

/* Player */

.title+.item {
    display: none;
}

.player-paper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.player-loader {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: #000;
    opacity: 0.7;
    align-items: center;
}

.loader-icons {
    flex-direction: column;
}

.loader-icons>div {
    width: 32px;
    height: 32px;
    background-color: #fff;
    border-radius: 100%;
    display: inline-block;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.player-loader .bounce1 {
    animation-delay: -0.32s;
}

.player-loader .bounce2 {
    animation-delay: -0.16s;
}

@keyframes sk-bouncedelay {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1.0);
    }
}

input.player-control-scrubber {
    margin: 0 auto;
    width: 99.75%;
    padding: 8px 0px 8px 0px;
}

input.player-control-scrubber:focus {
    outline: none;
}

input[type=range] {
    -webkit-appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
    height: 5px;
    background: grey;
    border: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: none;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: white;
    margin-top: -4px;
}

input[type=range]::-moz-range-track {
    height: 5px;
    background: grey;
    border: none;
    border-radius: 3px;
}

input[type=range]::-moz-range-thumb {
    border: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: white;
}

.player-keyframebar {
    position: relative;
    margin-bottom: 13px;
    height: 2.5em;
    width: calc(100% - 16px);
}

.player-keyframebar-keyframe {
    position: absolute;
    width: auto;
    height: 1.4em;
}

.player-sensormode-bar-block {
    position: absolute;
}

.player-sensormode-bar-irChange {
    height: 73px;
    background: var(--ir-background-pattern);
}

.player-sensormode-bar-eoChange {
    height: 73px;
    background: var(--eo-background-pattern);
    background-color: var(--color-bg-1);
    background-position: 0 0, 25px 25px;
    background-size: 10px 10px;
}

.player-keyframebar-keyframe-noselected {
    opacity: 0.5;
    stroke: white;
}

.player-keyframebar-keyframe-selected {
    opacity: 1;
    stroke: white
}

.player-keyframebar-keyframe-outline {
    stroke: white;
}

.player-keyframebar-keyframe-noselected:hover, .player-keyframebar-keyframe-selected:hover {
    opacity: 0.7;
}

.player-keyframebar-keyframe circle {
    stroke-width: 7px;
}

.player-rect-normal {
    stroke-width: 2px;
}

.player-rect-selected {
    stroke-opacity: 1;
    fill-opacity: 0.1;
    stroke-dasharray: 5, 0;
}

.player-rect-noselected {
    stroke-opacity: 1;
    fill-opacity: 0;
    stroke-dasharray: 8, 4;
}

.player-rect-noselected.player-rect-noreal.player-rect-nosinglekeyframe, .player-rect-noselected.player-rect-nosinglekeyframe {
    display: none;
}

.player-rect-active {
    fill: black;
    fill-opacity: 0.1;
    opacity: 0.5;
    /*stroke: white;*/
    stroke-opacity: 1;
    stroke-width: 1px;
}

.player-rect-noactive {
    fill: transparent;
    /*stroke: transparent;*/
    /*stroke-width: 0;*/
    opacity: 0;
}

/* Disables the arrow spinners on the frame/current time boxes - Chrome */

#frame-number::-webkit-outer-spin-button, #frame-number::-webkit-inner-spin-button, .current-frame-num::-webkit-outer-spin-button, .current-frame-num::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* Disables the arrow spinners on the frame/current time boxes - Firefox */

#frame-number, .current-frame-num {
    -moz-appearance: textfield;
}

#frame-number {
    display: inline-block;
    width: 60px;
    text-align: center;
    height: 25px;
}

.current-frame-num {
    display: inline-block;
    width: 60px;
    text-align: center;
    height: 25px;
}

input.text {
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.bi:hover {
    color: #AAAAAA;
}

/* stop the control buttons from being selectable*/

.noselect {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Chrome/Safari/Opera */
    -khtml-user-select: none;
    /* Konqueror */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                  not supported by any browser */
}

.modal-content {
    background-color: var(--color-bg-4);
    color: var(--color-text-primary);
}

.modal-content .btn {
    color: var(--color-bg-2);
}

.videoRow {
    padding-top: 4px;
    padding-bottom: 4px;
    height: 100%;
}

.modal-content {
    min-width: 760px;
}

.page-buttons {
    padding-top: 50px;
}

#attributesButtonGroup{
    background-color: var(--color-bg-3);
}

#eoButton {
    display: inline-block;
    background: var(--eo-background-pattern);
    background-color: var(--color-bg-1);
    background-position: 0 0, 25px 25px;
    background-size: 10px 10px;
}

#irButton {
    display: inline-block;
    background: var(--ir-background-pattern);
}

.eoLbl, .irLbl {
    color: white;
}

#playbackRateSelect {
    color: black;
    margin-right: 5px;
}

#trackingTypeSelect {
    color: black;
    margin-right: 5px;
}

#feedbackTypeSelect {
    color: black;
    margin-right: 5px;
}

#annotationDisplayControlWrapper {
    display: inline-flex;
}

#annotationDisplayControlWrapper .annotation-display-control {
    color: #333;
    font-size: 12px;
    max-width: 175px;
}

#annotationDisplayControlWrapper .annotation-display-control:disabled {
    color: #999;
}

#endDeleteAnnotationButtonGroup {
    text-align: center;
    align-content: center;
}

.halfWidth {
    width: 50%;
}

#occludedAnnotationButtonCheckBox {
    position: relative;
    top: 2px;
    margin: 0px;
}

/*annotation styles*/

.highlight {
    outline: 2px solid black;
}

.highlight:hover {
    outline: 2px solid white;
}

.statsTotals {
    display: inline-block;
}

.bootstrap-table>.fixed-table-container>.fixed-table-body {
    height: auto;
}

.video-controls select {
    height: 24px;
}

.video-controls .bi {
    font-size: large;
}

.video-controls>* {
    background-color: var(--color-bg-1);
    margin: 5px;
    border-radius: 5px;
}

.audio-controls .bi {
    font-size: x-large;
    padding: 5px
}

.audio-controls>* {
    background-color: var(--color-bg-1);
    margin: 5px;
    border-radius: 5px;
}

.playback-controls {
    padding-top: 5px;
}

.annotation-controls {
    padding: 4px;
}

.tracking-controls {
    padding: 8px;
}

.bi-trash-fill {
    top: 3px;
}

.glyphicon-step-backward {
    left: 3px;
}

.glyphicon-fast-backward {
    left: 3px;
}

.glyphicon-transfer {
    font-size: 16px;
    top: 3px;
}

.glyphicon-volume-off, .glyphicon-volume-up {
    top: 4px;
    font-size: 16px;
}

#volume-control {
    position: relative;
    display: inline-block;
    height: 15%;
    width: 100px;
    padding-right: 5px;
}

/*TESTCODE*/

.player-sensormode-bar {
    position: absolute;
    height: 20px;
    width: 100%;
}

.player-sensormode-bar .player-keyframebar-keyframe {
    margin: 0;
}

.player-sensormode-bar-keyframe {
    position: absolute;
    width: auto;
    height: 1.4em;
    margin-left: -.7em;
}

.player-sensormode-bar-keyframe-noselected {
    opacity: 0.3;
}

.player-sensormode-bar-keyframe-selected {
    opacity: 0.6;
}

.player-sensormode-bar-keyframe-outline {
    stroke: black;
    opacity: 0.7;
}

.player-sensormode-bar-keyframe-noselected:hover, .player-keyframebar-keyframe-selected:hover {
    opacity: 0.7;
}

.player-sensormode-bar-keyframe circle {
    stroke-width: 7px;
}

.main-banner {
    display: flex;
    flex-direction: row;
    align-content: center;
    margin-top: 30px;
}

.main-banner h1 {
    font-size: 54px;
    margin: 30px 0 0;
}

.main-banner h1 span {
    font-size: 30px;
}

.main-banner h4 {
    font-size: 26px;
}

.main-banner div {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.main-banner img {
    height: 160px;
    margin-right: 20px;
}

.radio-wrapper input[type=radio] {
    display: none;
}

.radio-wrapper input[type=radio]+label {
    padding: 4px 10px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.radio-wrapper input[type=radio]+label:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.radio-wrapper input[type=radio]:checked+label {
    color: var(--color-primary);
    background: var(--color-bg-5);
}

.radio-wrapper input[type=radio]:checked+label:before {
    content: '\2713';
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    color: var(--color-success);
    padding-right: 6px;
}

.videoShameMessage {
    background-color: var(--color-warning-light);
    padding: 10px;
    line-height: 20px;
    font-size: 18px;
    color: black;
    margin-bottom: 20px;
}

.home-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding-bottom: 50px;
}

.annotator-button {
    color: #fff;
    cursor: pointer;
}

.annotator-button.disabled {
    cursor: default;
}

.annotator-button.disabled, .annotator-button:hover {
    color: #aaa;
}

.list-collapse {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    display: flex;
    line-height: 2;
    padding: 0 4px;
}

.list-collapse-closed {
    transform: rotate(-90deg);
    transform-origin: center center;
}

.metadata-viewer div {
    margin: 2%;
}

.metadata-viewer ul {
    height: 1500%;
    overflow: auto;
}

.metadata-viewer button {
    background-color: var(--color-bg-4);
}

.metadata-viewer-head {
    list-style-type: none;
}

.toggle-switch>input[type="radio"] {
    display: none;
}

.toggle-switch>label {
    padding: 4px 12px;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--color-bg-5);
    cursor: pointer;
}

.toggle-switch>label:first-of-type {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.toggle-switch>label:last-of-type {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.toggle-switch input[type=radio]:checked+label {
    background-color: var(--color-text-secondary);
    color: var(--color-bg-2);
    border-radius: 4px;
}

/* Toggle Event Text */

.event-controls {
    padding: 4px;
    display: inline-flex;
}

.switch-box {
    position: relative;
    width: 65px;
    padding: 3px 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.show-event-title {
    font-size: 12px;
    padding: 6px 2px;
    margin: 0 5px;
}

.show-events-checkbox {
    display: none;
}

.show-events-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #999999;
    border-radius: 30px;
    margin-bottom: 0 !important;
}

.show-events-inner {
    display: block;
    width: 200%;
    margin-left: -100%;
    -moz-transition: margin 0.3s ease-in 0s;
    -webkit-transition: margin 0.3s ease-in 0s;
    -o-transition: margin 0.3s ease-in 0s;
    transition: margin 0.3s ease-in 0s;
}

.show-events-inner::before, .show-events-inner::after {
    display: block;
    float: left;
    width: 50%;
    height: 15px;
    padding: 0;
    line-height: 18px;
    font-size: 10px;
    color: white;
    font-family: Trebuchet, Arial, sans-serif;
    font-weight: bold;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 30px;
    box-shadow: 0px 15px 0px rgba(0, 0, 0, 0.08) inset;
}

.show-events-inner::before {
    content: "ON";
    padding-left: 10px;
    background-color: #2FCCFF;
    color: #FFFFFF;
    border-radius: 15px 0 0 15px;
}

.show-events-inner::after {
    content: "OFF";
    padding-right: 10px;
    background-color: #EEEEEE;
    color: #999999;
    text-align: right;
    border-radius: 0 15px 15px 0;
}

.show-events-switch {
    display: block;
    width: 25px;
    height: 25px;
    max-height: 25px;
    margin: 0px;
    background: #FFFFFF;
    border: 2px solid #999999;
    border-radius: 30px;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 45px;
    -moz-transition: all 0.3s ease-in 0s;
    -webkit-transition: all 0.3s ease-in 0s;
    -o-transition: all 0.3s ease-in 0s;
    transition: all 0.3s ease-in 0s;
    background-image: -moz-linear-gradient(center top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 80%);
    background-image: -webkit-linear-gradient(center top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 80%);
    background-image: -o-linear-gradient(center top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 80%);
    background-image: linear-gradient(center top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 80%);
    box-shadow: 0 1px 1px white inset;
}

.show-events-checkbox:checked+.show-events-label .show-events-inner {
    margin-left: 0;
}

.show-events-checkbox:checked+.show-events-label .show-events-switch {
    right: 0px;
}

.context-hidden {
    display: none;
}

.context-shown {
    display: block;
    z-index: 1000;
    position: absolute;
    overflow: hidden;
    border: 1px solid #CCC;
    white-space: nowrap;
    font-family: sans-serif;
    background: #FFF;
    color: #333;
    border-radius: 5px;
    list-style: none;
    padding-left: 0;
    max-width: 250px;
}

.context-shown p {
    padding: 8px 12px;
    margin: 0;
    background-color: whitesmoke;
    font-style: italic;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.context-shown div {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 296px;
}

.context-shown li {
    padding: 8px 12px;
    cursor: pointer;
    user-select: none;
    border-top: 1px solid #e6e6e6;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.context-shown li:hover {
    background-color: #DEF;
}

.li-disabled {
    color: #bfbfbf;
    text-decoration: none;
    pointer-events: none;
}

.context-icon {
    pointer-events: none;
    margin-right: 5px;
    top: 2px;
}

.context-img {
    width: 14px;
    margin-right: 5px;
    padding-bottom: 3px;
    filter: invert(100%);
}

.context-img-disabled {
    width: 14px;
    margin-right: 5px;
    padding-bottom: 3px;
    filter: invert(25%);
}

.action-buttons {
    display: flex;
    flex-direction: row;
}

#select-label {
    width: 100%;
    height: 85%;
    background-color: var(--color-bg-3);
}

#chosen-labels {
    width: 100%;
    display: flex;
    margin-top: 20px;
}

#ontology-list {
    flex: 2;
    background-color: var(--color-bg-4);
    color: white;
    border: solid 1px var(--color-bg-5);
    text-align: left;
    margin-left: 2%;
    height: 10%;
}

.selected-labels {
    flex: 1;
    margin-left: 20px;
    margin-right: 2%;
}

.selected-labels p {
    text-align: center;
    border: solid 1px var(--color-bg-5);
    padding-top: 2%;
}

.list-group {
    height: 240px;
    overflow: scroll;
    border: solid 1px var(--color-bg-5);
    border-radius: 2%;
    overflow-x: hidden;
    width: 300px;
}

.list-group::-webkit-scrollbar {
    width: 0px;
}

.overflow-x-hidden-fuel {
    overflow-x: hidden;
}

.overflow-y-scroll-fuel {
    overflow-y: scroll;
}

.list-group-item {
    background: var(--color-bg-3);
    border: solid 1px var(--color-bg-5);
    overflow: hidden;
}

.list-group-item:hover {
    background: var(--color-bg-5)
}

.list-group-item:hover .button-delete {
    display: block;
    transition: width 3s;
}

.list-group-item .button-delete {
    color: rgb(255, 0, 0);
    background: none;
    border: none;
    font-weight: bold;
    font-size: 1em;
    margin-right: 0.3em;
    padding: 0.25em 0.75em;
    float: left;
    display: none;
}

.badge-danger {
    background-color: red;
    color: white;
}

.nav-badge {
    position: absolute;
    right: 5px;
    bottom: 5px;
}

a.simple-link, a.simple-link:hover, a.simple-link:visited, a.simple-link:focus {
    color: dodgerblue !important;
}

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

.flex-display-row-reverse {
    display: flex;
    flex-direction: column-reverse;
}

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

.flex-display-column-reverse {
    display: flex;
    flex-direction: column-reverse;
}

/*
Override the 'user guide' pane to allow click-through of shaded area otherwise cypress can't work correctly
 */

#driver-page-overlay {
    pointer-events: none !important;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.new-user-homepage-bg {
    background-color: var(--color-accent-dark);
}

.new-user-homepage-description-bg {
    background-color: var(--bs-gray-700);
}

.font-size-5 {
    font-size: 5rem;
}

.highlight-green {
    border: 2px solid var(--color-success);
}

.border-top-white-section {
    border-top: 1px solid #dee2e6;
}

.keywordChip {
    min-width: 50px;
    background-color: mediumpurple;
    padding: 5px 10px;
    border-radius: 15px;
    display: flex;
    gap: 5px;
    overflow-wrap: anywhere;
}

