:root {
  --text-color: rgb(67 80 102);
  --body-bg: #f8f9fa;
  --border: #ced4da;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px; 
  line-height: 1.6; 
  color: var(--text-color); 
  background-color: var(--body-bg);
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* Internet Explorer/Edge */
  user-select: none;         /* Supported by modern browsers */
}

body.demo-classifier #slidesDialog,
body.demo-zeroshot #slidesDialog {
  display: none;
}

body:not(.demo-classifier):not(.demo-zeroshot) #demo-container {
  display: none;
}

body.demo-zeroshot .demo-classifier {
  display: none;
}

body.demo-classifier .demo-zeroshot {
  display: none;
}

.display-none {
  display: none;
}

#demo-container:not(.images-loaded) #embeddingsButton,
#demo-container.busy #embeddingsButton,
#demo-container.embeddings-computed #embeddingsButton {
  pointer-events:none;
  background-color: gray;
  color: lightgray;
}

#demo-container:not(.embeddings-computed) #step2 {
  opacity: 0;
  transition: opacity 0.5s linear;
}

#demo-container:not(.model-trained) #step3 {
  opacity: 0;
  transition: opacity 0.5s linear;
}

#demo-container.busy #trainClassifierButton {
  pointer-events:none;
  background-color: gray;
  color: lightgray;
}


.icon-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid #A7A7A7;
  background-color: white;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.icon-container img.main-icon {
  max-width: 60%;
  max-height: 60%;
  z-index: 2;
}

.icon-container img.sub-icon {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 35px;
  height: 35px;
  z-index: 1;
  border-radius: 50%;
}

button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border-width: 1px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.module {
  background-color: white;
  border-radius: 5px;
  border: 1px solid var(--border);
  margin: 25px;
  padding: 15px;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  display: none;
}

.terminology-inputs {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

.terminology-label {
  display: flex;
  flex-direction: column;
  padding: 5px;
  margin: 5px;
  align-items: center;
}

.terminology-label span {
  font-size: 12px;
}

.slider-container {
  background: #F8F9FA;
  border-radius: 5px;
  padding: 10px 20px;
  box-sizing: border-box;
}

.terminology-label input[type="text"] {
  margin-top: 5px;
  padding: 5px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  background-color: #eee;
  text-align: center;
}

.module.dataset {
    width: 500px
}

.module.dataset #loadDatasetButton {
    padding: 3px;
}

#selectFile {
  display: block;
  width: 100%;
  max-width: 500px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  margin-top: 30px;
}

#selectFile:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

#selectFile::-webkit-file-upload-button {
  visibility: hidden;
}

#selectFile::before {
  content: 'Choose Files';
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.5;
  color: buttontext;
  background-color: buttonface;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  margin-right: 1rem;
}

#selectFile:hover::before {
  background-color: #0056b3;
}

h1 { font-size: 2.5rem; }

.viewer-container {
  width: 256px;
  height: 300px;
  margin: 3px;
}

.viewer-container:has(.popup) {
background-image: linear-gradient(
  45deg,
  black,
  gray
);

}
.viewer {
  position: relative;
  width: 256px;
  height: 300px;
  cursor: crosshair;
}

.zoomButton {
  position: absolute;
  color: white;
  text-shadow: -1px -1px 0 #000;

  width: 15px;
  height: 15px;
  bottom: 10px;
  right: 5px;
}

.popup .zoomButton {
    top: 0px;
    right: 0px;
    visibility: hidden;
}

.popup .zoomButton::before {
    visibility:visible;
    position: absolute;
    color: white;
    content: '✕';
    z-index: 5;
    right: 5px;
}

/* hide zoom buttons of other images */
.childPopup :not(.popup) > .zoomButton {
  display: none;
}

#backdrop {
  position: fixed;
  background-color: #000;
  opacity: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;  
}

#backdrop:has(+.childPopup) {
  position: fixed;
  background-color: #000;
  opacity: .6;
  transition: opacity 0.5s ease;
  z-index: 3;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(2);
  z-index: 3;
}

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

#placeholder {
  position: absolute;
  top: 0;
  left: 0;
}

#demo-container.images-loaded #placeholder {
  display: none;
}

.placeHolder {
  width: 256px;
  height: 300px;
  margin: 3px;
  background-color: darkgray;
}


.badge {
  position: absolute;
  padding: 0px 5px;
  border-radius: 12px;
  color: black;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  display: none;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.image-loader-container {
  display: inline-block;
}

.badge-in-text {
  position: unset;
  display: inline-flex;
  vertical-align: middle;
  margin: 0 3px;
  white-space: nowrap;
  width: fit-content;
}

.badge.ai {
  top: 30px;
  left: 5px;
  background: grey;
}

.ai-positive .badge.ai {
  background-color: #f0ad4e;
  display: block;
}

.ai-negative .badge.ai {
  background-color: #d3d3d3;
  display: block;
}

.ai-negative.positive .badge.ai {
  color: red;
}

.negative.ai-positive .badge.ai {
  color: red;
}


.badge.ai::before {
  content: "AI: ";
}

.badge.gt {
  top: 5px;
  left: 5px;
  background: grey;

}

.positive .badge.gt {
  background-color: #f0ad4e;
  display: block;
}

.negative .badge.gt {
  background-color: #d3d3d3;
  display: block;
}

.badge.gt::before {
  content: "";
}

.badge.dataset {
  top: 3px;
  right: 3px;
  border-radius: 2px;
  color: white;
}

.training .badge.dataset {
  background: #5bc0de;
  display: block;
}

.training .badge.dataset::before {
  content: "Training Set";
}

.eval .badge.dataset {
  background: #5cb85c;
  display: block;
}      

.eval .badge.dataset::before {
  content: "Eval Set";
}

body.demo-zeroshot .badge.dataset {
  display: none;
}

.badge-in-text .badge {
  position: unset;
  border-width: 1px;
  border-color: black;
  border-style: solid;
}

.embedding::before {
  content: "✅";
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  animation: moveToCorner 1s ease-in-out forwards;
  z-index: 1;
  color: lightyellow;
}

@keyframes moveToCorner {
  from {
      bottom: 50%;
      left: 50%;
      scale: 3;
      opacity: 1;
  }
  to {
      bottom: 8px;
      left: 5px;
      scale: 1;
      opacity: 0.7;
  }
}

.positive {
position: relative;
}

.negative {
position: relative;
}

.toggleButton {
  height: 12px;
  position: absolute;
  top: 3px;
  left: 90px;
  cursor: alias;
  font-size: 1rem;
}

#toast-container {
position: fixed;
top: 10px;
right: 10px;
z-index: 9999;
}

.toast {
background-color: #FF5F6D;
color: white;
padding: 10px 20px;
margin-top: 10px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
opacity: 0;
transition: opacity 0.5s ease-in-out;
}

.center-child {
  position: relative;
}

.loader {
  position: fixed;
  left: 50%;
  bottom: 2em;
  font-size:48px;
  color: #F00;
  width: 1em;
  height: 1em;
  box-sizing: border-box;
  border-radius: 50%;
  transform: translateX(-50%) rotateX(-60deg) perspective(1000px);
}
.loader:before,
.loader:after {
  content: '';
  display: block;
  position: absolute;
  box-sizing: border-box;
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
  border-radius: inherit;
  animation: flowerFlow 1s ease-out infinite;
}
.loader:after {
  animation-delay: .4s;
}

@keyframes flowerFlow {
  0% {
      opacity: 1;
      transform: rotate(0deg);
      box-shadow: 0 0 0 -.5em currentcolor,
      0 0 0 -.5em currentcolor,
      0 0 0 -.5em currentcolor,
      0 0 0 -.5em currentcolor,
      0 0 0 -.5em currentcolor,
      0 0 0 -.5em currentcolor,
      0 0 0 -.5em currentcolor,
      0 0 0 -.5em currentcolor;
  }
  100% {
      opacity: 0;
      transform: rotate(180deg);
      box-shadow: -1em -1em 0 -.35em currentcolor,
      0 -1.5em 0 -.35em currentcolor,
      1em -1em 0 -.35em currentcolor,
      -1.5em 0 0 -.35em currentcolor,
      1.5em -0 0 -.35em currentcolor,
      -1em 1em 0 -.35em currentcolor,
      0 1.5em 0 -.35em currentcolor,
      1em 1em 0 -.35em currentcolor;
  }
}

.thumbnail {
  width: 100px;
  margin: 1px;
}

.loading {
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% {
      background-color: white;
  }
  50% {
      background-color: yellow;
  }
}

.loaded::before {
content:'[add icon symbol here]';
display:inline-block;
vertical-align: top;
line-height: 1em;
width: 1em;
height:1em;
margin-right: 0.3em;
text-align: center;
color: #999;

}

.content {
  text-align: center;
  width: 500px;
  margin: 20px auto;
  padding: 15px;
  border: 1px solid #ccc; /* Add a border (optional) */
  border-radius: 5px; /* Add rounded corners (optional) */
  background-color: #f9f9f9; /* Add a light background color (optional) */
  line-height: 1.6; /* Adjust line spacing */
}

.content select, .content button {
    margin: 10px 0;
    padding: none;
}

select {
  padding: 8px 16px;
  background-color: #e9ecef;
}

.title-text {
  color: #000;
  font-family: "Google Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-indent: -20px;
  padding: 20px;
}

.call-for-action-component {
  width: 485px;
  border-radius: 11px;
  border: 1px solid #679EFB;
  background: #D7E4FA;
  padding: 20px;
  margin-bottom: 10px;
}

.indent-left {
  align-items: flex-start;
  margin-left: 20px;
  width: -webkit-fill-available;;
}

.margin-bottom {
  margin-bottom: 23px;
}

#metrics p {
  margin: 0;
}

.white-button {
  border-radius: 100px;
  background: white;
  color: black;
  border: 1px solid #747775;
  margin: auto;
  width: fit-content;
  padding: 10px 24px;
  font-size: 14px;
  cursor: pointer;
}

.chart-container {
  height: 300px;
  width: 300px;
  max-width: 300px;
  max-height: 300px;
}

canvas {
  background-color: white;
}

.fullscreenNote {
  position: fixed;
  top: 5px;
  animation: disappear 0s ease-in 5s forwards;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: yellow;
}

@keyframes disappear {
    to {
      opacity: 0;
      height: 0;
      width: 0;
    }
}
