* {
    box-sizing: border-box;
}

:root {
    --header-height: 32px;
    --scale-row-height: 20px;
    --line-row-height: 28px;
    --line-maximized-height: 100px;
    --nodecursor: 'move';
    --nodesize: 12px;
    --nodeselectedsize: 13px;
    --label-width: 170px;
    --grouped-lines-opacity: 0.6;
    --main-text-color: #cccccc;
    --dim-text-color: #aaaaaa;
    --cursor-text-color: #000000;
    --line-color: #606060;
    --header-back-color: #181818;
    --channel-back-color: #282828;
    --channel-label-back-color: #1f1f1f;
    --group-back-color: #1c1c1c;
    --group-label-back-color: #181818;
    --main-back-color: #181818;
    --graph-back-color: #313131;
    --scale-back-color: #615e5e;
    --cursor-color: #ff9900;
    --range-cursor-color: #ff6200;
    --sb-track-color: #1f1f1f;
    --sb-thumb-color: #616470;
    --sb-size: 14px;
    touch-action: none;
}

input,select{
    background-color: var(--main-back-color);
    color: var(--main-text-color);
    border: 1px solid #323232;
    border-radius: 0;
    font-size: 1em;
    padding: 2px 0px;

}

input:hover {
    background-color: var(--channel-back-color);
    color: var(--main-text-color);
    border-radius: 0;
    outline: none;
}

input:focus {
    background-color: var(--scale-back-color);
    color: var(--main-text-color);
    border-radius: 0;
    outline: none;
}

/* Firefox (uncomment to work in Firefox, although other properties will not work!)  */
/** {
  scrollbar-width: thin;
  scrollbar-color: #397524 #DFE9EB;
}*/

/* Chrome, Edge and Safari */
*::-webkit-scrollbar {
    height: var(--sb-size);
    width: var(--sb-size);
  }
  *::-webkit-scrollbar-track {
    background-color: #1f1f1f;
  }
  
  *::-webkit-scrollbar-track:hover {
    background-color: #37383f;
  }
  
  *::-webkit-scrollbar-track:active {
    background-color: #37383f;
  }
  
  *::-webkit-scrollbar-thumb {
    border-radius: calc(var(--sb-size) - 2px);
    background-color: var(--sb-thumb-color);
    /*border: 1px solid #28292e;*/
  }
  
  *::-webkit-scrollbar-thumb:hover {
    background-color: #6f7280;
  }
  
  *::-webkit-scrollbar-thumb:active {
    background-color: #6f7280;
  }

.valueAt-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.7em;
    background-color: var(--main-back-color);
    color: var(--main-text-color);
    overflow: hidden;
    user-select: none;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    touch-action: none;
}

.valueAt-header {
    display: flex;
    align-items: center;
    min-height: var(--header-height);
    height: var(--header-height);
    background-color: var(--header-back-color);
    z-index: 10;
}

.valueAt-info-scale {
    display: flex;
    padding-right: var(--sb-size);
}

.valueAt-scale {
    display: flex;
    align-items: center;
    background-color: var(--scale-back-color);
    z-index: 10;
    flex: 1;
    flex-direction: column;
}

.valueAt-input-label{
    display: flex;
    align-items: center;
}

.valueAt-input-label input{
    margin-left: 4px;
}

.valueAt-info {
    width: var(--label-width);
    border-right: 1px solid var(--line-color);
}

.valueAt-info-keyframe {
    display: flex;

    align-items: baseline;
}

.valueAt-info-keyframe div {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.valueAt-info-name{
    width: 50px;
}

.valueAt-info-prop{
    width: 50px;
}

.valueAt-info-combined {
    display: flex;
    justify-content: space-between;
}

.valueAt-info-keyframe input,select {
    width: 70px;
    margin: 0 4px;
}

.valueAt-info-keyframe select {
    width: 100px;
}

.valueAt-cursor-dragbox {
    height: var(--scale-row-height);
    width: 100%;
    pointer-events: all;
    border-bottom: 1px solid var(--channel-back-color);

}

.valueAt-cursor{
    display: flex;
    position: absolute;
    top: var(--header-height);
    width: 5px;
    z-index: 100;
    justify-content: center;
    cursor: ew-resize;
    transform: translate(-50%, 0px);
}

.valueAt-cursor span{
    border-left: 1px solid var(--cursor-color);
}

.valueAt-cursor-label {
    display: flex;
    border: 2px solid var( --cursor-color );
    color: var(--cursor-text-color);
    font-weight: 500;
    background-color: #ffffff;
    /*height: fit-content;*/
    padding: 0px 6px;
    border-radius: 8px;
    cursor: ew-resize;
    position: absolute;
}

.valueAt-cursor-button-left {
    cursor: pointer; 
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.valueAt-cursor-button-left:hover {
    background-color: gray;
}

.valueAt-cursor-button-right {
    cursor: pointer;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.valueAt-cursor-button-right:hover {
    background-color: gray;
}

.valueAt-scroll-container {
    position: relative;
    width: 100%;
    flex: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.valueAt-linewrap {
    background-color: var(--graph-back-color);
    z-index: 5;
}

.valueAt-remaining {
    z-index: 10;
}

.valueAt-footer {
    height: 28px;
    width: 100%;
    background-color: var(--header-back-color);
}

.player-buttons {
    display: flex;
    
    width: var(--label-width);
}

.valueAt-group{
    position: relative;
}

.valueAt-group-header{
    background-color: var(--group-back-color);
    border-bottom: 1px solid var(--line-color);
}

.valueAt-group-label {
    color: var(--dim-text-color);
    background-color: var(--group-label-back-color);
    border-right: 1px solid var(--line-color);
    position: relative;
    padding: 2px 0px;
    width: var(--label-width);
    height: var(--line-row-height);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.valueAt-group-label.valueAt-collapse{
    display: none;
}

.valueAt-group-caret {
    display: inline-block;
    margin-right: 2px;
}

.valueAt-group-label-span svg{
    fill: var(--dim-text-color);
    width: 16px;
    height: 16px;
}

.caret-down {
    -ms-transform: rotate(90deg); /* IE 9 */
    -webkit-transform: rotate(90deg); /* Safari */
    transform: rotate(90deg);
}

.valueAt-group-label-span {
    cursor: pointer;
}



.valueAt-expand {
    position: relative;
    width: 100%;
    /*z-index: 9;*/
}

.valueAt-expand.valueAt-collapse {
    position: absolute;
    top: 0px;
}

.valueAt-expand.valueAt-grouped-lines {
    opacity: var(--grouped-lines-opacity);
    pointer-events: none;
}

.valueAt-flex-hor {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.valueAt-line {
    display: flex;
    align-items: center;
    position: relative;
    height: var(--line-row-height);
    flex: 1;
    border-bottom: 1px solid var(--line-color);
    background-color: var(--channel-back-color);
    width: 100%;
    /*z-index: 0;*/
}

.valueAt-line.valueAt-collapse {
    position: absolute;
    overflow: hidden;
    background-color: var(--group-back-color);
}

.valueAt-list {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    overflow: hidden;
}

.valueAt-scrollbar {
    position: relative;
    background-color:var(--sb-track-color);
    z-index: 15;
    font-size: 0.7em;
    color:#6d6e6f;
    height: var(--sb-size);
    top: 0;
    left: var(--label-width);
    width: calc(100% - var(--sb-size) - var(--label-width));
    overflow: hidden;
}

.valueAt-scrollbar div {
    height: 100%;
    min-width: 50px;
    background-color: var(--main-back-color);
    background-color: var(--sb-thumb-color);
    border-radius: calc(var(--sb-size) / 2);
    position: relative;
}

.valueAt-v-size {
    background-color: #b0b0b0;
    height: 100%;
    grid-area: 1 / 4 / 10 / 4;
    background: linear-gradient(90deg, rgba(176,176,176,1) 0%, rgba(130,130,130,1) 21%, rgba(122,122,122,1) 84%, rgba(59,58,58,1) 100%);
}

.labeled-input{
    display: flex;
    text-wrap-mode: nowrap;
    align-items: center;
    justify-content: space-between;
    width: var(--label-width);
    padding: 0 4px 0 0;
}

.labeled-input input{
    width: 80px;
}

.valueAt-line-label{
    text-wrap-mode: nowrap;
    z-index: 1;
    width: var(--label-width);
    color: var(--dim-text-color);
    height: 100%;
    border-right: 1px solid var(--line-color);
    background-color: var(--channel-label-back-color);   
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.valueAt-hide {
    display: none;
}

.valueAt-hide-label.valueAt-hidden{
    color: red;
}

.valueAt-line-label.valueAt-collapse{
    opacity: 0;
}



.valueAt-line-icons {
    display: flex;
    position: absolute;
    top: 0px;
    right: 0px;
    color: var(--dim-text-color);
    margin-right: 4px;
    font-size: 1.0em;
    align-items: flex-start;
    background-color: transparent;
    flex-direction: row;
    justify-content: flex-end;
    height: 100%;
    margin-top: 4px;
}

.valueAt-line-icon {
    display: flex;
    color: var(--dim-text-color);
    fill: var(--dim-text-color);
    width: 14px;
    height: 14px;
    align-items: center;
    margin: 1px;
    justify-content: center;
    background-color: transparent;
    padding: 0;
    border: none;
    opacity: 0.5;
}

.valueAt-on {
    opacity: 1;
}

.valueAt-line-icon:hover {
    color: var(--main-text-color);
    border: 1px solid var(--dim-text-color);
}

.valueAt-line-label span {
    position: relative;
    padding-top: 5px;
}

.valueAt-svg-wrapper{
    position: relative;
    height: 100%;
    flex: 1;
    touch-action: none;
}

.valueAt-line.valueAt-maximized:not(.valueAt-line.valueAt-collapse){
    height: var(--line-maximized-height);
}

.valueAt-wave-line{
    background-color: var(--scale-back-color);
    height: calc(var(--line-row-height)* 2);
}

.valueAt-wave-line svg {
    flex: 1;
    width: 100%;
    fill: none;
    stroke: white;
    stroke-width: 1.2px;
    pointer-events: none;
    height: 100%;
}

.valuesAt-svg {
    position: absolute;
    height: 100%;
    width: 100%;
    stroke: white;
    stroke-width: 1px;
    z-index: 20;
}

.valueAt-node {
    position: absolute;
    border-radius: 50%;
    border: 1px solid #000000b8;
    background-color: #ffff833b;
    aspect-ratio: 1 / 1;
    height: var(--nodesize);
    cursor: var(--nodecursor);
    transform: translate(-50%,50%);
    z-index: 24;
}

.valueAt-node:hover {
    border: 1px solid #fff;
    background-color: #ffff0064;
}

.valueAt-node-selected:hover {
    border: 1px solid #ffff00;
    background-color: #ff000064;
}

.valueAt-node-selected {
    height: var(--nodeselectedsize);
    border: 1px solid #ffff00;
    background-color: #ff000064;
    -webkit-tap-highlight-color: transparent;
}

.valueAt-h-scroll{
    height: 12px;
}

.valueAt-select-box{
    position: absolute;
    border: 1px solid rgb(232, 232, 232);
    z-index: 1000;
}

.valueAt-cursor-area input {
    width: 100%;
}

#scale{
    height: 100%;
    background-color: #4f5059;
    margin-right: var(--sb-size);
}


