:root {
  --hl-color1: rgb(255, 255, 0);
  /*yellow*/
  --hl-color2: rgb(100, 255, 100);
  /*green*/
  --hl-color3: rgb(60, 120, 255);
  /*blue*/
  --hl-color4: rgb(180, 120, 255);
  /*purple*/
  --hl-color5: rgb(255, 100, 100);
  /*red*/
  --hl-color6: rgb(255, 100, 100);
  /*red*/
  --bg-one: oklch(96.7% 0.003 264.542);
  --bg-two: oklch(87.2% 0.01 258.338);
  --border-one: oklch(70.7% 0.022 261.325);
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-one: oklch(27.4% 0.006 286.033);
    --bg-two: oklch(44.2% 0.017 285.786);
    --border-one: oklch(37% 0.013 285.805);
  }
}

/*
//-------------------
// annotations
//-------------------
*/
.annot8-hl {
  fill-opacity: 0.35;
  fill: var(--hl-color1);
  opacity: 0.35;
  background-color: var(--hl-color1);
}

.annot8-hl.annot8-active {
  fill-opacity: 0.5;
  opacity: 0.5;
  --border-bottom: 2px solid red;
  -webkit-animation: pulse 2s infinite alternate;
}

.annot8-hl-1,
.annot8-hl-facts {
  background-color: var(--hl-color1);
}

.annot8-hl-2,
.annot8-hl-issues {
  background-color: var(--hl-color2);
}

.annot8-hl-3,
.annot8-hl-ruling {
  background-color: var(--hl-color3);
}

.annot8-hl-4,
.annot8-hl-principles {
  background-color: var(--hl-color4);
}

/* override bulma */
.content blockquote {
  background-color: transparent !important;
}

.annot8-ui,
.annot8-disableSelection {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  outline: 0;
}

/*
//-------------------
// toolbar
//-------------------
*/
.annot8-toolbar-container * {
  outline: none;
}

.annot8-toolbar-container {
  text-align: center;
  position: fixed;
  left: 50%;
  transform: translate(-50%, 0);
  bottom: 15px;
  z-index: 15;
}

.annot8-toolbar {
  display: block;
  transition: opacity 250ms;
  overflow: auto;
}

.annot8-toolbar-inner {
  --background-image: linear-gradient(to bottom, #505050, #252525);
  background-color: #252525;
  background-repeat: repeat-x;
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border: 1px solid var(--border-one);
}

.annot8-toolbar-container,
.annot8-toolbar {
  --border: 2px solid blue;
  min-width: 200px;
}

/*
//-------------------
// toolbar buttons
//-------------------
*/
.annot8-toolbar-button {
  display: inline-block;
  overflow: hidden;
  background: transparent;
  color: #fff;
  padding: 0.5em 0.8em;
  margin: 0px;
  border: 0px;
  /*  border: 1px solid red; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.annot8-toolbar-button:hover {
  background-color: #505050;
}

.annot8-toolbar-button,
.annot8-toolbar-button:focus,
.annot8-toolbar-button:hover {
  outline: none;
}

.annot8-toolbar-icon {
  color: #fff;
  fill: #fff;
  --border: 1px solid red;
}

.annot8-toolbar-label {
  color: #fff !important;
  font-size: 1em;
  margin-top: 0.25em;
}

/*
//-------------------
// toolbar icons
//-------------------
*/
.annot8-icon-1,
.annot8-icon-facts {
  color: var(--hl-color1);
  fill: var(--hl-color1);
}

.annot8-icon-2,
.annot8-icon-issues {
  color: var(--hl-color2);
  fill: var(--hl-color2);
}

.annot8-icon-3,
.annot8-icon-ruling {
  color: var(--hl-color3);
  fill: var(--hl-color3);
}

.annot8-icon-4,
.annot8-icon-principles {
  color: var(--hl-color4);
  fill: var(--hl-color4);
}

@media (min-width: 600px) {
  .annot8-toolbar-label {
    display: inline;
    margin-top: 0px;
  }

  .annot8-toolbar-icon-label-spacer {
    margin-left: 0.75em;
  }

  .annot8-toolbar-button {
    flex-direction: row;
    padding: 0.75em 1em;
  }
}

/*
//-------------------
// modal
//-------------------
*/
.annot8-modal-container {
  margin: 0px;
  width: 400px;
  text-align: left;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  background: var(--bg-one);
  border: 1px solid var(--border-one);
  border-radius: 8px;
  padding: 5px;
}

.annot8-modal-container .truncate {
  width: 310px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.annot8-modal-inner {
  display: block;
  padding: 8px;
  padding-bottom: 2px;
  margin: 0px;
  background: var(--bg-one);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.33);
  transition: all 0.3s ease;
  font-family: Helvetica, Arial, sans-serif;
  width: 100%;
}

.annot8-modal-header h3 {
  margin-top: 0;
  color: #42b983;
}

.annot8-modal-body {
  margin: 0px 0;
  min-height: 14vh;
}

.annot8-modal-body textarea {
  background-color: var(--bg-two);
  --background-color: var(--bg-two);
  resize: none;
  padding: 3px;
  width: 85%;
}

.annot8-modal-body input[type='text'],
.annot8-modal-body input[type='text']:focus,
.annot8-modal-body textarea,
.annot8-modal-body textarea:focus {
  outline: none;
  border: 0px;
  --border: 2px solid red !important;
}

.annot8-model-button {
  background: transparent;
  color: #505050;
  padding: 0.5em 0.8em;
  margin: 0px;
  border: 0px;
}

@media print {
  .annot8-modal-container,
  .annot8-toolbar-container {
    display: none !important;
  }
}
