@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&display=swap');

:root {
  --honeyval-orange: #ffb362;
  --honeyval-light-orange: #fff0df;
  --honeyval-orange-row: rgba(255, 186, 114, 0.12);
}

a {
  color: #3273dc;
}

.hero.is-orange {
  color: #ffef91;
  background: var(--honeyval-orange);
}

.hero.is-light-orange {
  background-color: var(--honeyval-light-orange);
}

.orange {
  color: var(--honeyval-orange);
}


.logo {
  height: 1.8em;
  margin-bottom: -0.4em;
}

.publication-title {
    font-family: 'Google Sans', sans-serif;
    font-size: 2.5rem;
    color: rgb(255, 255, 255);
}

.publication-authors {
    font-family: 'Google Sans', sans-serif;
}

.publication-authors a {
   color: #fefaf1 !important;
}

.publication-authors a:hover {
    text-decoration: underline;
}

.author-block {
  display: inline-block;
  color: #fefaf1 !important;
}

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

.tldr {
  font-size: 1.9rem;
}

.figure-overview {
  width: 95%;
  margin-top: 10px;
}

.centered-figure {
  display: flex;
  justify-content: center;
  align-items: center;
}

.caption {
  font-weight: bold;
  margin: 20px 6% 35px 6%; 
  padding: 0 0 0 2%;
  /* border-left: thick solid #B22222; */
  border-left: thick solid var(--honeyval-orange);
  color: #3c285f;
}

.intext {
  height: 1.1em;
}

.intext-big {
  height: 1.3em;
}

.green {
  color: #007f00;
}

.gray {
  color: #939393;
}

.red {
  color: #B22222;
}

.devilish {
  color: #aa8dd8;
}

.textsc {
  font-variant-caps: small-caps;
}

.example-buttons {
  display: flex;
  justify-content: space-between;
}

.example-buttons-inner {
  margin: 5px 5%;
  flex: 1;
}

.example-button {
  margin-top: 5px;
}

.example-cat {
  padding-bottom: 5px;
  border-bottom: 0px solid #aa8dd8;
}

button.active {
  background-color: #bbacd3;
}

.example {
  display: none;
}

.example.active {
  display: block;
}

.chat-container {
  width: 90%;
  margin-top: 20px;
  background-color: #fefefe;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.chat-container.left {
  margin-left: 5px;
  margin-right: auto;
}

.chat-container.right {
  margin-right: 5px;
  margin-left: auto;
}

.chat-header {
  background-color: #111;
  color: #fff;
  padding: 10px 10px 10px 20px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.chat-body {
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
  background-color: #fbfbfb;
  color: #333;
  font-family: 'Courier', sans-serif, monospace;
  overflow-y: scroll; 
  max-height: 350px;
}

.chat-detector {
  background-color: #0a2f48;
  color: #fff;
  padding: 10px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  display: none;
}

.chat-detector.active {
  display: block;
  font-family: "Didact Gothic", sans-serif;
  font-weight: bold;
  font-style: normal;
}

.emoji-label {
  height: 1.2em;
  margin-bottom: -0.2em;
}

#detectorMode {
  background-color: #5dadec;
}

.switch[type=checkbox]+label {
  padding-top: 0;
}

.chat-red1.active {
  color: #880000;
}
.chat-red2.active {
  color: #FF0000;
}
.chat-green1.active {
  color: #008000;
}
.chat-green2.active {
  color: #03ad55;
}
.chat-black1.active {
  color: #000000;
}
.chat-black2.active {
  color: #555555;
}

#BibTeX {
  background: #fbfbfb;
  font-family:'Courier New', Courier, monospace;
  border: 1px solid #ddd;
  overflow: auto;
  max-width: 80vw;
}

.footer {
  display: block;
  margin: auto;
  font-size: 10px;
  padding: 3rem 1.5rem 3rem;
}

.leaderboard-controls {
  display: grid;
  gap: 0.8rem;
  padding-top: 20px;
}

.leaderboard-control-title {
  color: #3c285f;
  font-weight: bold;
  margin-bottom: 0.35rem;
  text-align: center;
}

.leaderboard-agent-title {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.leaderboard-selection-status {
  color: #6a5a7d;
  font-size: 0.82rem;
  font-weight: normal;
  line-height: 1.2;
}

.leaderboard-buttons.buttons.is-centered {
  padding-bottom: 0;
  row-gap: 0.45rem;
}

.button.is-selected {
  background-color: #ca5d5d !important;
  border-color: #ca5d5d !important;
  color: #fff !important;
}

.button.is-selected:focus {
  outline: none !important;
  box-shadow: 0 0 0 0.125em #b222227d  !important;
}

.leaderboard-buttons .button:not(.is-selected) {
  background-color: var(--honeyval-orange) !important;
  border-color: var(--honeyval-orange) !important;
  color: #fff !important;
}

.leaderboard-toggle-button {
  min-height: 2.5rem;
}

.leaderboard-agent-button {
  overflow: visible;
  position: relative;
}

.button-selected-badge {
  align-items: center;
  background-color: #3c285f;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(60, 40, 95, 0.35);
  display: flex;
  height: 1.15rem;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: -0.35rem;
  top: -0.35rem;
  transform: scale(0.7);
  transition: opacity 0.15s ease, transform 0.15s ease;
  width: 1.15rem;
}

.button-selected-badge::before {
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  content: "";
  height: 0.52rem;
  margin-top: -0.1rem;
  transform: rotate(45deg);
  width: 0.28rem;
}

.leaderboard-agent-button.is-selected .button-selected-badge {
  opacity: 1;
  transform: scale(1);
}

.leaderboard-toggle-button .button-label {
  line-height: 1.1;
}

th[data-sort-col] {
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: normal;
}

th[data-sort-col].is-sorted {
  color: #3c285f;
}

th[data-sort-col]:hover {
  background-color: #f0f0f0;
}

.leaderboard-table-container {
  width: min(1100px, calc(100vw - 2rem));
  max-width: none;
  max-height: 620px;
  overflow: auto;
  margin-bottom: 0;
  margin-left: 50%;
  margin-top: 0.75rem;
  transform: translateX(-50%);
}

.leaderboard-table-container table {
  min-width: 960px;
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  margin-bottom: 0;
  margin-top: 0;
}

.table-container thead th {
  background-color: #fff;
  position: sticky;
  top: 0;
  vertical-align: middle;
  z-index: 1;
}

.table-container th,
.table-container td {
  padding: 0.5rem;
  transition: background-color 0.15s ease;
  vertical-align: middle;
}

.table-container th.is-column-hovered,
.table-container td.is-column-hovered {
  background-color: #f0f0f0;
}

.table-container tbody tr:hover td {
  background-color: #f0f0f0;
}

.table-container th:hover,
.table-container td:hover {
  box-shadow: inset 0 0 0 2px #777;
}

.table-container th:first-child,
.table-container td:first-child {
  min-width: 10rem;
  text-align: left;
}

.table-container th:nth-child(n+2),
.table-container td:nth-child(n+2) {
  min-width: 7.25rem;
  text-align: right;
}

.pinned-honeypot-row {
  background-color: var(--honeyval-orange-row);
}

.model-cell {
  overflow-wrap: anywhere;
  white-space: normal;
}

.model-logo {
  height: 1.15em;
  margin-right: 0.4rem;
  max-width: 1.35em;
  object-fit: contain;
  vertical-align: -0.2em;
  width: auto;
}

.sort-indicator {
  align-items: center;
  background-color: rgba(178, 34, 34, 0.12);
  border-radius: 999px;
  color: #B22222;
  display: inline-flex;
  height: 1rem;
  justify-content: center;
  margin-left: 0.35rem;
  vertical-align: -0.12rem;
  width: 1rem;
}

.sort-indicator::before {
  content: "";
  height: 0;
  width: 0;
}

.sort-indicator.is-ascending::before {
  border-bottom: 0.36rem solid currentColor;
  border-left: 0.25rem solid transparent;
  border-right: 0.25rem solid transparent;
  margin-top: -0.08rem;
}

.sort-indicator.is-descending::before {
  border-left: 0.25rem solid transparent;
  border-right: 0.25rem solid transparent;
  border-top: 0.36rem solid currentColor;
  margin-bottom: -0.08rem;
}
