.image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

.tab-container {
  display: flex;
}

.tab {
  padding: 10px 20px;
  text-decoration: none;
  color: #555;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
}

.tab:hover {
  background-color: #ffffff;
}

.tab.active {
  background-color: #ffffff;
  border-color: #ccc;
  border-bottom-color: transparent;
}

td {
  vertical-align: top;
}

/* BE-3480: a JSON <pre> in a cell would otherwise take the UA default 1em top/bottom margin. */
td pre {
  margin: 0;
}

/* BE-3480: a list in a cell would otherwise take the UA default 1em top/bottom margin and 40px indent. */
td ul,
td ol {
  margin: 0;
  padding-left: 1.2em;
}

/* BE-2844: collapsed key reference for a JSON form field - the key column would otherwise butt against its help. */
.key-reference td {
  padding-right: 12px;
}

.zebra tr:nth-child(odd) {
  background-color:#eef;
}

.zebra tr:nth-child(even) {
  background-color:#fff;
}

.zebra tr.attention {
  background-color: #FFECB3;
}

.zebra th {
  background-color:#fff;
}

.internal td:first-child {
  padding-left: 20px;
}

.dashed {
  border-style: dashed;
  height: 100px;
  width: 90%;
  text-align: center;
  margin: auto;
}

.dragging {
  background-border: 2px solid #73AD21;
  background-color: #ccc;
}

.claimed {
  color: #800;
}

.claimed a:link {
  color: #800;
}

.claimed a:visited {
  color: #800;
}

.stale {
  color: white;
  background-color: #800;
}

.stale a:link {
  color: white;
  background-color: #800;
}

.stale a:visited {
  color: white;
  background-color: #800;
}

.disabled-text {
  color: #888;
}

.disabled-text a {
  color: #888;
}

.internal {
  color: #888;
}

.internal a:link {
  color: #888;
}

.internal a:visited {
  color: #888;
}

/* sorting table */
th:after {
  content: ' ';
  position: relative;
  left: 5px;
  border: 8px solid transparent;
}

th.sort-asc:after {
  top: 10px;
  border-top-color: black;
}

th.sort-desc:after {
  bottom: 15px;
  border-bottom-color: black;
}

th.headerSortDown,
th.headerSortUp {
  padding-right: 10px;
}

.numeric {
  text-align:right;
}

.right-button {
  position: relative;
  float: right;
}

.rounded {
  border-radius: 25px;
  border: 2px solid #73AD21;
  padding: 20px;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 10px;
  -width: 200px;
  -height: 150px;
}

.red-rounded {
  border-radius: 25px;
  border: 2px solid #cc0000;
  padding: 20px;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 10px;
  -width: 200px;
  -height: 150px;
}

.task-div {
  border-radius: 25px;
  border: none; /* Remove the border */
  padding: 20px;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 10px;
  background-color: lightblue; /* Add light blue background */
}

.topic-div {
  border-radius: 25px;
  border: none; /* Remove the border */
  padding: 20px;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 10px;
  background-color: lightblue;
}

.doc-div {
  border-radius: 25px;
  border: none; /* Remove the border */
  padding: 20px;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 10px;
  background-color: lightblue;
}

.timeline-div {
  border-radius: 25px;
  border: none; /* Remove the border */
  padding: 20px;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 10px;
  -background-color: lightblue;
}

.seldoc-div {
  border-radius: 25px;
  border: none; /* Remove the border */
  padding: 20px;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 10px;
  background-color: #FFD700;
}

.msg-div {
  border-radius: 25px;
  border: none; /* Remove the border */
  padding: 20px;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 10px;
  background-color: #BFE0F0;
}

.clickable-div {
  display: block;
  text-decoration: none;
  color: inherit;
}

.paused {
  color: #888;
}

.paused a:link {
  color: #888;
}

.paused a:visited {
  color: #888;
}

.correct {
  color:#0f0;
  background-color:#bfb;
}

.ok {
  color:#000;
}

.wrong {
  color:#f00;
  background-color:#fbb;
}

.bold {
  font-weight: bold;
}

.warning {
  color: red;
  font-style: italic;
}

.pending {
  font-style: italic;
}

.subtle {
  color: #888;
  font-size: 0.85em;
}

.attention {
  background-color: #FFECB3;
}

#content {
  clear: both;
}

.banner_top {
  height:1.6em;
  padding:0.5em;
  color: #F6F7F8;
  clear:both;
  background: #212738;
  width: 98%;
  display: flex;
  align-items: center;
}

.banner_top_left {
  float:left;
  font-weight: bold;
  font-size:1.1em;
  margin: 5px 0px 5px 0px;
  display: flex;
  align-items: center;
}

.banner_top_right {
  float:right;
  font-size:1.1em;
  text-align:right;
  margin: 5px 20px 5px auto;
  display: flex;
  align-items: center;
}

.footer {
  clear: both;
  height: 1.5em;
  font-size: 0.8em;
  margin-top: 20px;
  padding-top: 5px;
  border-top: 1px solid #999;
  color: #000;
  width: 100%;
  text-align: center;
}

.banner_top a:visited {
  color: white;
  text-decoration: none;
}

.banner_top a:link {
  color: white;
  text-decoration: none;
}

.bubble {
  background: rgba(9,30,66,0.13);
  border-radius: 10px;
  padding-left: 5px;
  padding-right: 5px;
}

.bubble a:link {
  color: #000;
  text-decoration: none;
}

.bubble a:visited {
  color: #000;
  text-decoration: none;
}

.comment {
  margin-left: 20px;
  margin-right: 20px;
}

.loading {
  border: 10px solid #f3f3f3;
  border-top: 10px solid #41C499;
  border-radius: 50%;
  width: 8rem;
  height: 8rem;
  margin: 8rem;
  align: center;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
    border-top: 10px solid #41C499;
  }
  25% {
    transform: rotate(90deg);
    border-top: 10px solid #41C499;
  }
  50% {
    transform: rotate(180deg);
    border-top: 10px solid #41C499;
  }
  75% {
    transform: rotate(270deg);
    border-top: 10px solid #41C499;
  }
  100% {
    transform: rotate(360deg);
    border-top: 10px solid #41C499;
  }
}

.clickable {
  cursor: pointer;
}

.clickableState {
  cursor: pointer;
}

.invalidState {
  border: 3px solid #ff0000; /* Red color border */
  background-color: #ffcccc; /* Light red/pink color */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Shadow with a slight transparency */
  font-weight: bold;
}

.selectedTab {
  font-weight: bold;
}

g.clickableState:hover rect.label-container {
  fill: #FF6600 !important;
}

g.coreState rect.label-container {
  fill: #ECFFEC !important;
}

g.deletedState rect.label-container {
  fill: #aaaaaa !important;
}

.editform td {
  padding-top: 5px;
  padding-bottom: 5px;
}

.centered {
  text-align: center;
}

.htmx-indicator {
  opacity: 0;
  transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator{
  opacity: 1;
}

.htmx-request.htmx-indicator{
  opacity: 1;
}

.nested-quote {
  font-style: italic;
  text-align: right;
}

.fit-to-content {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.category {
  border-radius: 5px;
  background-color: #d9e2ff;
  padding: 1px;
  margin: 1px;
  border: 1px solid #9ad1e1;
  transition: background-color 0.3s ease;
}

.category:hover {
  background-color: #a3c4e5;
}

.category-div a {
  text-decoration: none;
  color: inherit;
}

.assigned {
  float: right;
}

.lens-icon {
  height: 1em;
  width: auto;
  vertical-align: middle;
}

.padded {
  padding-left: 20px;
}

.line-input {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.line-input input[type="text"] {
    flex-grow: 1;
    margin-right: 10px;
}

.line-input button {
    flex-shrink: 0;
}

.multi-input {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.multi-input input[type="text"] {
    width: 100%;
    margin-bottom: 5px;
}

.multi-input button {
    margin-bottom: 10px;
}

.category-values {
    margin-left: 20px;
}

.category-value {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.category-value input[type="text"] {
    flex-grow: 1;
    margin-right: 15px;
}

.category-value button {
    flex-shrink: 0;
}

/***** MODAL DIALOG ****/
#modal {
  /* Underlay covers entire screen. */
  position: fixed;
  top:0px;
  bottom: 0px;
  left:0px;
  right:0px;
  background-color:rgba(0,0,0,0.5);
  z-index:1000;

  /* Flexbox centers the .modal-content vertically and horizontally */
  display:flex;
  flex-direction:column;
  align-items:center;

  /* Animate when opening */
  animation-name: fadeIn;
  animation-duration:150ms;
  animation-timing-function: ease;
}

#modal > .modal-underlay {
  /* underlay takes up the entire viewport. This is only
  required if you want to click to dismiss the popup */
  position: absolute;
  z-index: -1;
  top:0px;
  bottom:0px;
  left: 0px;
  right: 0px;
}

#modal > .modal-content {
  /* Position visible dialog near the top of the window */
  margin-top:10vh;

  /* Sizing for visible dialog */
  width:80%;
  max-width:600px;

  /* Display properties for visible dialog*/
  border:solid 1px #999;
  border-radius:8px;
  box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.3);
  background-color:white;
  padding:20px;

  /* Animate when opening */
  animation-name:zoomIn;
  animation-duration:150ms;
  animation-timing-function: ease;
}

#modal.closing {
  /* Animate when closing */
  animation-name: fadeOut;
  animation-duration:150ms;
  animation-timing-function: ease;
}

#modal.closing > .modal-content {
  /* Animate when closing */
  animation-name: zoomOut;
  animation-duration:150ms;
  animation-timing-function: ease;
}

@keyframes fadeIn {
  0% {opacity: 0;}
  100% {opacity: 1;}
}

@keyframes fadeOut {
  0% {opacity: 1;}
  100% {opacity: 0;}
}

@keyframes zoomIn {
  0% {transform: scale(0.9);}
  100% {transform: scale(1);}
}

@keyframes zoomOut {
  0% {transform: scale(1);}
  100% {transform: scale(0.9);}
}

.tablelist {
  margin: 0;
  padding: 0;
  padding-left: 5px;
  list-style-position: inside;
}

.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 4px;
  padding: 6px 8px;
  position: absolute;
  z-index: 100;
  top: 100%;
  left: 0;
  white-space: nowrap;
  font-size: 12px;
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.tooltip-wrapper:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.copy-icon {
  height: 16px;
  width: auto;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 6px;
}
