/* /**
 *
 * STAGETEXT 2025
 *
 * This file contains styling for the Caption Tool
 */

.caption-list-item {
  list-style-type: none;
  border: 4px solid rgb(168, 168, 168);
  margin-top: 2px;
  margin-bottom: 2px;
  padding-left: 2px;
  padding-top: 2px;
  padding-bottom: 2px;
  padding-right: 2px;
  background-color: #dee2e6;
  min-height: 2em;
}

.list-group-item {
  padding-left: 30px;
}

.captionPickerContainerForCaptions {
  overflow: auto;
  padding-bottom: 8%;
  margin-bottom: 2%;
}

.visibleInEditMode {
  display: none;
  visibility: hidden;
}

.invisibleInEditMode {
  display: inline;
  visibility: visible;
}

.align-left {
  text-align: left;
  float: left;
}

.align-middle {
  text-align: center;
  margin: 0%;
}

.align-right {
  text-align: right;
  float: right;
}

.float-right {
  float: right;
}

.iframeContainer {
  border: 20px;
}

#draggable {
  z-index: auto !important;
  display: none;
}

[contenteditable="true"]:focus {
  background: white;
  xpadding: 0.5em 0.75em;
}

.caption-picker-caption-live {
  background-color: #ffc107;
}

.edit-button {
  background-color: #ffffff;
  font-size: 0.7em !important;
}

/* .user-menu {
  width: 100%;
} */

.caption {
  font-size: 1em;
  font-family: monospace;
  font-weight: bolder;
  overflow: hidden;
}

.lowbrightness {
  opacity: 0.5;
}

.fastanimation {
  animation: blinker 1s linear infinite;
}

.fastanimation::before{
  content: "▸▸ ";
  position: relative;
  color: grey;

}

li:focus {
  background-color: #adb5bd;
}

.settings-row {
  padding: 1%;
  background-color: #adb5bd;
}

.accordion-item {
  background-color: #adb5bd;
  border: #e6cb02;
}

#draggable {
  text-align: center !important;
}

.hide-backlog-feature {
  display: none;
}

.comment {
  color: red !important;
}

.dark {
  background-color:808080 !important;
}

.background-element {
  background-color: white;
}

.longCaption {
  color: red;
}

.longCaption:before {
  content: "⚠️";
  /* align to the top */;
  vertical-align: top;
  /* align to the right */;
  float: right;
  padding-right: 5px;
}

#clickablefooter {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

/* 2024-08-19 Style overrides to utilise more screen real estate */

#license-string {
  color: #adb5bd;
}

.st-navbar {
  padding-top: .0rem !important;
  padding-bottom: .0rem !important;
}

.st-transcription-area {
  margin-bottom: 0rem !important;
}

.st-footer {
  margin-bottom: 0rem;
}

.caption-picker-caption-live {
  background-color: #e6cb02 !important;
}

.progress-bar {
  background-color: #e6cb02 !important;
}

#nav-bar-image {
  margin-left: -8%;
  width: 177px;
}

.editableCaption {
  color: black;
  background-color: red;
}

.editableCaption:focus {
  background-color: #e6cb02;
}


#inlineLedEmulator {
  position: absolute;
  top: 50px;
  left: 50px;
  width: 500px;
  height: 102px;
  border: 2px solid #000000;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: move;
  display: none;
  z-index: 9999; /* Ensure it's on top of everything else */
}

#inlineLedEmulator iframe {
  width: 100%;
  height: 100%; /* Match parent container exactly */
  margin: 0; /* Remove any default margin */
  padding: 0; /* Remove any default padding */
  border: none; /* No border */
  display: block; /* Ensure it behaves as a block element */
  box-sizing: border-box; /* Account for padding/borders in width/height */
}

#inlineLedEmulatorHeader {
  background-color: #333; /* Distinct background for contrast */
  color: #e6cb02; /* Maintain text color */
  padding: 4px 8px; /* Slightly increase padding for better usability */
  height: auto; /* Let padding determine height */
  cursor: move; /* Clearly indicate draggable area */
  z-index: 9999; /* Ensure it's on top of everything else */
  box-sizing: border-box;
  font-size: 14px; /* Slightly larger font for better visibility */
  font-weight: bold; /* Make text stand out */
  display: flex; /* Align content properly */
  align-items: center; /* Vertically center content */
  justify-content: center; /* Center content horizontally */
}

/* Optional hover effect for the header */
#inlineLedEmulatorHeader:hover {
  background-color: #444; /* Subtle hover effect */
}

/* Remove border and shadow from accordion button when expanded/focused for flush accordions */
/* see https://trello.com/c/tQhwhCXW/61-overlapping-of-selection-box-in-settings */
/* .accordion-flush .accordion-button:focus,
.accordion-flush .accordion-button:not(.collapsed) {
  box-shadow: none;
  background-color: #fff;
} */
 /* Show a standard grey line between accordion items in a flush accordion */
.accordion-flush .accordion-item {
  border-bottom: 1px solid #dee2e6; /* Bootstrap's default border color */
}

/* Optional: Remove border from the last item for a cleaner look */
.accordion-flush .accordion-item:last-child {
  border-bottom: 0;
}

/* Keep the button background white and remove box-shadow for alignment */
.accordion-flush .accordion-button {
  background-color: #fff;
  box-shadow: none;
  border-radius: 0;
}