:root {
  --fontSize: 18px;
  --fontFamily: "Trebuchet MS", Arial, Helvetica, sans-serif;
  --backgroundColor: beige;
}


/* Styles used for the mediapipe page */

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.abs {
  position: absolute;
}

a {
  color: blue;
  text-decoration: none;
}
a:hover {
  color: lightblue;
}

body {
  bottom: 0;
  font-family: var(--fontFamily);
  color: black;
  left: 0;
  margin: 0px;
  position: absolute;
  right: 0;
  top: 0;
  transform-origin: 0px 0px;
  overflow: hidden;
  height:100vh;
  width:100vw;
}

.container {
  position: absolute;
  background-color: var(--backgroundColor);
  width: 100%;
  max-height: 100%;
}

.input_video {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.input_video.selfie {
  transform: scale(-1, 1);
}

.input_image {
  position: absolute;
}

.playback_container {
  width: 400px;
  margin-left: 20px;
}

.canvas-container {
  display: flex;
  row-gap: 5px;
  column-gap: 15px;
  vertical-align: middle;
  /* align-items: center; */
  background-color: var(--backgroundColor);
}

.canvas-container span {
  color: black;
}

#introTextContainer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color:#3498db;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
}

#playback_rec_video {
  height: 400px;
}

.vid-container {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
}

.child_canvas {
  width: 100%;
  flex: 0 0;
}

.child {
  width: 33%;
  flex: 0 0;
}

.child_vid {
  width: 50%;
  flex: 0 0;
}

.logo {
  bottom: 10px;
  right: 20px;
}
.logo .title {
  color: white;
  font-size: 28px;
}
.logo .subtitle {
  position: relative;
  color: white;
  font-size: 10px;
  left: -30px;
  top: 20px;
}

.control-panel {
  position: absolute;
  left: 10px;
  top: 100px;
}

.loading {
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  align-items: center;
  backface-visibility: hidden;
  justify-content: center;
  opacity: 1;
  transition: opacity 1s;
}
.loading .message {
  font-size: x-large;
}
.loading .spinner {
  position: absolute;
  width: 120px;
  height: 120px;
  animation: spin 1s linear infinite;
  border: 32px solid #bebebe;
  border-top: 32px solid #3498db;
  border-radius: 50%;
}

.loaded .loading {
  opacity: 0;
}

/*
TODO MOVE TO ITS OWN FILE
*/

#optionsDetails::part(summary) {
  font-family: var(--fontFamily);
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  align-items: center;
  justify-content: center;
}

#options_popup {
  width: 350px;
  height: auto;
  background: #eee;
  color: black;
  font-family: var(--fontFamily);
  font-size: var(--fontSize);
  z-index: 3000;
  /* left:375px;
  top:300px; */
  top: calc(2/3 * 100%);
  left: 50%;
  transform: translate(-50%, -50%);
}

.preference {
  display: grid;
  grid-row-gap: 5px;
  grid-column-gap: 15px;
  grid-template-columns: 33% 66%;
  vertical-align: middle;
  align-items: center;
  margin-left: 3px;
  margin-right: 13px;
  width: 100%;
}

.myLabel {
  vertical-align: middle;
}

.subsection {
  font-family: var(--fontFamily);
  font-size: var(--fontSize);
  margin: 5px;
  color: #555;
  text-align: left;
}

.padding_left {
  padding-left: 10px;
}

.button_font {
  font-family: var(--fontFamily);
  font-size: var(--fontSize);
}

.vid-control-title {
  margin: 5px 5px 0px 5px;
  border-bottom: 1px solid #74A9D8;
}

.vid-control-row {
  display: flex;
  flex-direction: row;
  grid-gap: 20px;
  align-items: center;
}

.options-row {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.volumeControls {
  display: flex;
  align-items: center;
}

.playbackRange {
  --thumb-size: 0px;
  --track-color-active: red;
  --track-height: 2px;
}

#videoControlContainer {
  background-color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  text-align: center;
  border: 1px solid #video_player_containervideo_player_container;
  font-size: 24px;
  border-radius: 2.5rem;
  padding: 5px;
}

/* FROM LAYOUTS.CSS */

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

/**
  Setting display:contents means don't draw a box - use the parent
  (the effect: I want a container just for showing / hiding without
  affecting layout)
**/
.container_contents {
  display: contents;
}

.grid_indented {
  padding-left: 10px;
}

.grid_indented_right {
  padding-right: 5px;
}

.grid_col_1 {
  grid-column: 1 / 2;
}

.grid_col_2 {
  grid-column: 2 / 3;
}

.grid_col_3 {
  grid-column: 3;
}

.grid_col_1_3 {
  grid-column: 1 / 3;
}

/* from timeline editor */
.colored {
  background-color: lightgray;
}

#nav_container {
  max-width: 50vw;
  min-width: 300px;
  height: 100vh;
  flex-direction: column;
}
#videos {
  border: 1px solid darkblue;
  background-color: white;
  display:flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 33%;
  max-height: 66%;
}

#cc,#ccContainer {
  display: flex;
  flex-direction: column;
  border: 1px solid darkblue;
  background-color: white;
}

#cc {
  overflow-y: auto;
}
#ccContainer {
  min-height: 33%;
  max-height: 66%;
}

.container {
  display: flex;
  column-gap: 5px;
  row-gap: 5px;
  height: 100vh;
}
.grid {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 5px;
  row-gap: 5px;
}
.full_row {
  grid-column: 1 / 3;
}

#visualization {
  /* width: 600px; */
  /* height: 300px; */
  border: 1px solid lightgray;
}

#myVideo {
  background-color: black;
}
video::cue {
  background-image: linear-gradient(to bottom, dimgray, lightgray);
  color: papayawhip;
}

video::cue(b) {
  color: peachpuff;
}
div.vis-editable,
div.vis-editable.vis-selected {
  /* custom styling for editable items... */
}

div.vis-readonly,
div.vis-readonly.vis-selected {
  /* custom styling for readonly items... */
  background-color: #ff4500;
  border-color: red;
  color: white;
}

/* ASL video segment list */

.aslEntry {
  height: auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  border: 1px solid var(--border);
  overflow: visible;
  margin-bottom: 10px;
}
.selected {
  border: 2px solid var(--selectedBorder);
}

.aslEntry:hover {
  background-color: var(--hoverColor);
}
.aslEntry:hover > * {
  background-color: var(--hoverColor);
}
.timingColumn {
  display: flex;
  flex-direction: column;
  width: 50%;
  padding: 14px;
}

.vttNumber {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 2px;
  font-size: 19px;
}

.vttTimingCell {
  position: relative;
  max-height: 18px;
  width: 95px;
  padding-bottom: 4px;
}

.vttTimingInput {
  width: 100%;
  font-size: 14px;
  white-space: nowrap;
  border: 0px;
  border-radius: 0.4rem;
  padding: 1px 0px 1px 8px;
  margin-left: -8px;
  font-weight: 600;
  color: var(--timeColor);
}

.aslEntry video {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  justify-content: initial;
  padding: 14px;
  color: rgb(56, 56, 56);
  background-color: var(--bgColor);
  outline: currentcolor;
  align-self: center;
  width: 50%;
}

/* Shoelace styles */
.label-on-left {
  --label-width: 3.75rem;
  --gap-width: 1rem;
}

.label-on-left + .label-on-left {
  margin-top: var(--sl-spacing-medium);
}

.label-on-left::part(form-control) {
  display: grid;
  grid: auto / var(--label-width) 1fr;
  gap: var(--sl-spacing-3x-small) var(--gap-width);
  align-items: center;
}

.label-on-left::part(form-control-label) {
  text-align: right;
}

.label-on-left::part(form-control-help-text) {
  grid-column-start: 2;
}

/* fonts */
@font-face {
  font-family: OpenDyslexic;
  font-weight: bold;
  src: url("../fonts/OpenDyslexic-Bold.otf") format("opentype");
}
@font-face {
  font-family: OpenDyslexic;
  font-weight:normal;
  src: url("../fonts/OpenDyslexic-Regular.otf") format("opentype");
}
@font-face {
  font-family: OpenDyslexic;
  font-style: italic;
  src: url("../fonts/OpenDyslexic-Italic.otf") format("opentype");
}
@font-face {
  font-family: OpenDyslexic;
  font-weight: bold;
  font-style: italic;
  src: url("../fonts/OpenDyslexic-BoldItalic.otf") format("opentype");
}

/* test */
#video_player_container, #video_player_video {
  background-color: #3498db;
  width: 640px;
  height: 360px;
  position: relative;
}
#video_player_canvas {
  position:absolute;
  width: 160px;
  height: 90px;
  background-color: black;
  right: 0;
  top: 0;
}
#video_player_canvas > canvas {
  width: 100%;
  height: 100%;
}