
   
@font-face { font-family: LiberationSerif; src: local('Liberation Serif, Regular') ,url('LiberationSerif-Regular.ttf'); }
@font-face { font-family: LiberationSans; src: local('Liberation Sans, Regular') ,url('LiberationSans-Regular.ttf'); }
@font-face {font-family: Bookerly; src: local('Bookerly') ,url('Bookerly.ttf'); }
@font-face {font-family: Bukyvede; src: local('Bukyvede') ,url('BukyVede-Regular.ttf'); }
@font-face {font-family: Monomakh; src: local('Monomakh') ,url('MonomakhUnicode.ttf'); }
@font-face {font-family: PT_Serif; src: local('PT Serif'), url('PTSerif-Regular.ttf'); }
@font-face {font-family: IBM_Plex_Sans; src: local('IBM Plex Sans'), url('IBMPlexSans-Regular.ttf'); }
@font-face {font-family: Calibri; src: local('Calibri'), url('calibri.ttf'); }
@font-face {font-family: Menaion; src: local('Menaion'), url('Menaion.ttf'); }

:root {
  --cyr-font-family: Menaion;
  --cyr-font-size: 17px;
  --cyr-letter-spacing: 0px;
  
  --glag-font-family: Bukyvede;
  --glag-font-size: 20px;
  --glag-letter-spacing: 2px;

  --chunk-font-family: var(--cyr-font-family);
  --chunk-font-size: var(--cyr-font-size);
  --chunk-letter-spacing: var(--cyr-letter-spacing);

  --no-lcs-opacity: 1.0;
  --no-lemma_id-opacity: 0.5;

  --search-letter-font: IBM_PLEX_SANS;
}

html {
  overflow-y: scroll;
}

body {
  margin: 8px;
  padding: 0px;
}
  
#p1 {
  font-family: Menaion;
  max-width: 100%;
}

a {
  text-decoration: none;
}

#main_box {
  display: flex;
  justify-content: flex-start;
  flex-flow: column nowrap;
  margin-bottom: 60px;
  border: 1px solid black;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}
#main_text {
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-evenly;
  align-items: flex-start;

 /* margin-left: 7.3%;
  margin-right: 7.3%;
  margin-bottom: 25px; */
  background-color: #172136;
  padding: 10px;
  padding-bottom: 0px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  
}

#textbody {
  line-height: 150%;
  
  font-family: var(--chunk-font-family);
  font-size: var(--chunk-font-size);
  letter-spacing: var(--chunk-letter-spacing);
}

#whole_text {
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-evenly;
  align-items: flex-start;
  max-width: 100%;
}

#deletion {
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-evenly;
  align-items: flex-start;
}

.chunk {
  
}
#new_text{
 /* margin-left: 7.3%;
  margin-right: 7.3%; */
  background-color: #172136;
  padding: 10px;
}
#tt_button {
 
  background-color: #071022;
  border-radius: 2px;
  padding: 6px;
  z-index: 1;
  color: #cbd9f4;
  font-family: Calibri;
  font-size: 13px;
  max-width: 97%;
}



#select_button {

  padding: 4px;
  z-index: 1;
  color: #cbd9f4;
  font-family: Calibri;
  font-size: 13px;
  max-width: 97%;

}

#delete_button {
  background-color: #071022;
  border-radius: 2px;
  padding: 6px;
  z-index: 1;
  color: #cbd9f4;
  font-family: Calibri;
  font-size: 12px;
  max-width: 97%;
}

.link-buttons {
  padding: 5px;
  border-radius: 2px;
  background-color: #071022;
  color: #c71f1f;
  font-family: IBM_PLEX_SANS;
  top: 1px;
  position:relative;
  font-size: 10px;
  cursor: pointer;
  width: fit-content;

}

.link-buttons:hover, .deletion_button:hover {
  background-color: #040a16;
  color: red;
}

#lang_button {
  position: absolute;
  background-color: #071022;
 /* border-style: solid; */
  border-radius: 2px;
  padding: 6px; 
  z-index: 1;
  color: #cbd9f4;
  font-family: Calibri;
  font-size: 14px;

}

#text_labels_box {
  display: flex;
  flex-flow: row nowrap;
  justify-content: start;
  margin-top: 15px;
  margin-left: 2%;
  max-width: 97%;
}
#textselect_box {
  display: flex;
  flex-flow: row wrap;
  justify-content: start;
  max-width: 100%;
  
}

#textselect, #langselect {
  border-radius: 3px;
  z-index: 1;
  font-family: IBM_PLEX_SANS;
  padding: 3px;
  font-size: 13px;
  font-weight: bold;
  min-width: 40px;
  max-width: 100%;
  margin-right: 7px;
  margin-bottom: 4px;
}
#subtitle_select {
  border-radius: 4px;
  z-index: 1;
  font-family: IBM_PLEX_SANS;
  padding: 3px;
  font-size: 13px;
  min-width: 40px;
  max-width: 100%;
  margin-bottom: 4px;
}

#hidden_select {

  visibility: hidden; position: fixed;
}

#newtext {
  position: flex;
  width: 70%;
  height: 150px;
  border-style: solid;
  border-radius: 4px;
  background-color: #071022;
  color: #cbd9f4;
  text-indent: 0%;
  font-family: Bookerly;
  font-size: 14px;
}

#text_title {
  position: flex;
  width: 70%;
  height: 38px;
  border-style: solid;
  border-radius: 4px;
  background-color: #071022;
  color: #cbd9f4;
  text-indent: 0%;
  font-size: 18px;
  font-family: Bookerly;
}

.submit_btn {
  border-style: solid;
  padding: 4px;
  border-radius: 2px;
  background-color: #071022;
  color: #cbd9f4;
  font-family: Calibri;
  margin-top: 1%;
  margin-bottom: 1%;
  position:relative;
  font-size: 12px;
  left: 8px;
  cursor: pointer;
}

.deletion_button {

  border: none;
  padding: 4px;
  border-radius: 2px;
  background-color: #071022;
  color: #c71f1f;
  font-family: Calibri;
  margin-top: 1%;
  margin-bottom: 1%;
  position:relative;
  font-size: 8px;

  cursor: pointer;
}

.submit_btn:hover {
 
  background-color: #040a16;
}


#title {
  font-size: 19px;
  font-family: Bookerly;
  color: rgb(255 115 205);
  text-align: center;
  margin-left: 30px;
  margin-right: 30px;
  position: flex;
}

#loadingbutton {
  position: fixed;
  left: 0;
  bottom: 0;

  background-color: #071022;
  border-style: solid;
  border-radius: 2px;
  padding: 5px;
  z-index: 1;
  color: #cbd9f4;
  font-family: Calibri;
  font-size: 34px;

}

#pageno_footer {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
}
#pagenos {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  height: fit-content;
  width: fit-content;
  min-height: 13px;
  /* min-width: 155px; */
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  background-color: #040a16;
  border: 1px solid black;
  border-bottom: none;
}

.pageno {
  cursor: pointer
}
.pageno:hover {
  color: rgb(0 255 186);
}
.current_pageno {
  color: rgb(0 255 186);
  border-bottom: 2px solid rgb(0 255 186);
}

.pageno_text {
  height: 30px;
  width: 52px;
  padding: 3px;
  outline: none;
  overflow: hidden;
  text-align: center;
  resize: none;
  border: 1px solid #040a16;
  border-bottom: none;
  box-sizing: border-box;
  color: #cbd9f4a6;
  font-family: Bookerly;
  font-size: 16px;
  background-color: #071022;
  user-select: none;
}
#pageno_box {
  width: 52px;
  height: 30px;
  text-align: center;
  padding: 3px;
  outline: none;
  overflow: hidden;
  resize: none;
  border: 1px solid #040a16;
  border-bottom: none;
  box-sizing: border-box;

  color: #cbd9f4;
  font-family: Bookerly;
  font-size: 16px;
  background-color:#071022;
}
#pageno_box:focus {
  border: 1px solid black;
  background-color: black;
}
#pageno_leftarrow {
  border-right: 1px solid black;
  width: 26px;

  border-top-left-radius: 5px; /* 1px less than the parent box because of the border */

  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-weight: 900;
}
#pageno_rightarrow {
  border-left: 1px solid black;
  width: 26px;

  border-top-right-radius: 5px; /* 1px less than the parent box because of the border */

  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-weight: 900;
}
.nav_arrow {
  cursor: default;
  color: grey;
  font-family: LiberationSerif;
  user-select: none;
}
.nav_arrow:hover {
  background-color:#172136;
  color: white;
}

.nav_arrow_deactiv {
  cursor: default;
  color: grey;
  font-family: LiberationSerif;
}

/*-------------------------tooltip_prevs.css----------------------------*/
.tooltip {
  position: relative;
  display: inline-block;
  /*color: rgb(252, 119, 119); */
  color: #cbd9f4;
  cursor: pointer;
  border-bottom: 2px solid rgb(23, 33, 54, 0);
  }
  
  .tooltip:hover {
    color: rgb(255 115 205);
  }
  
  .multiword {
    border-bottom: 2px dotted rgb(0 255 186 / 50%);
  }
  
  
  .lemma_set, .lemma_set_unexplicit {
    color: rgb(0 255 186);
  
    position: relative;
    display: inline-block;
    cursor: pointer;
  }
  .lemma_set:hover, .lemma_set_unexplicit:hover {
    color: rgb(0 255 34);
    position: relative;
    display: inline-block;
    cursor: pointer;
  }
  
  .tooltip_selected {
    position: relative;
    display: inline-block;
    color: rgb(255 115 205);
    cursor: pointer;
    border-bottom: 2px solid rgb(23, 33, 54, 0);
    }
  .mw_selectable:hover {
    border-bottom: 2px solid rgb(0 255 186);
  }
  .mw_current_select {
    border-bottom: 2px solid rgb(0 255 186);
  }
  
  
  
  #editbtn {
  
    color: rgb(0, 255, 34);
    border: 1px solid rgb(0, 255, 34);
  }
  
  #delbtn {
    color: red;
    border: 1px solid red;
  }
  
  
  .tooltip_opt {
  
    width: 60px;
    border-style: solid;
    padding: 2px;
    border-radius: 2px;
    background-color: #071022;
    color: #cbd9f4;
    font-family: Calibri;
    position:relative;
    font-size: 17px;
    cursor: pointer;
    background-color: #172136;
   
  }
  
  
  .tooltip:hover .lemma_tt, .tooltip:hover .mw_tt {
    visibility: visible;
  } 
  
  .tooltip_opt:hover {
    background-color: #040a16;
  } 
  
  
  .tooltip .lemma_tt, .tooltip_selected .lemma_tt, .tooltip .mw_tt, .tooltip_selected .mw_tt {
  
    visibility: hidden;
    min-width: 125px;
    max-width: 140px;
    height: fit-content;
    background-color: #071022;
    color: #cbd9f4;
    text-align: center;
    border-radius: 6px;
    border: solid 1px black;

    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -62.5px;
    /*I can't use transform: translateX(-50%) to centre the small-screen tooltips, because the function to prevent them going off-screen overrides this value and applies a transform style directly to each element*/

    letter-spacing: 0px;

    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: stretch;
    flex-grow: 0;
    cursor: default;

    /* word-break: break-word; */
    width: fit-content;
    
    }
  
    #tt_top {
      display: flex;
      flex-flow: row nowrap;
      justify-content: space-between;
      align-items: flex-start;
    }
  
  #lemma_tag_tt {
    height:fit-content;
    width: fit-content;
   /* min-height: 20px; */
    
  
    outline: none;
    overflow: hidden;
  
    box-sizing: border-box;
  
    font-size: 13px;
    font-family: Menaion;
    line-height: 100%;
  
    border-bottom-right-radius: 6px;
    border-top-left-radius: 5px;
    padding: 3px;
    border: 1px solid black;
    border-left: none;
    border-top: none;
  
    resize: none;
  }
  
  #tt_mid {
     display: flex;
      flex-flow: row nowrap;
      justify-content: center;
      align-items: stretch;
      padding: 3px;
      flex-grow: 1;
  }
  
  #tt_meaning {
    background-color: #040a16;
  
    padding: 3px;
    flex: 1;
    border-radius: 4px;
    border: 1px solid black;;
  
    font-family: 'IBM_PLEX_SANS';
    font-size: 11px;
    text-align: center;
    white-space: normal;
    line-height: 115%;
    min-height: 10px;
    max-height: 147px;
    overflow-y: auto;
    
    box-sizing: border-box;
  
    resize: none; /* these two are for if I make it into a <textarea> one day */
    outline: none;
  }
  
  
    #tt_bottom {
      display: flex;
      flex-flow: row nowrap;
      justify-content: flex-end;
      align-items: flex-start;
    }
  
  #pos_tag_box_tt {
    height:fit-content;
    width: fit-content;
    cursor: default;;
  
    font-size: 9px;
    font-family: IBM_Plex_Sans;
    color: black;
  
    display: flex;
    flex-flow: column-reverse nowrap;
    justify-content: center;
    align-items: center;
    text-align: center;
  
    margin-left: 10px;
  
  
  
    /* border-bottom: none;
    border-right: none;
    border-left: none; */
  }
  
  
  
  .pos_tag_tt {
  
    padding-left: 4px;
    padding-right: 4px;
    user-select: none;
    width: 7px;
    height: 12px;
    border-bottom-left-radius: 5px;
    border-top-right-radius: 5px;
    border-left: 1px solid black;
    border-bottom: 1px solid black;
  }
  
  
  
  #pos_tag_verb_tt {
    background-color: #4dac0d;
  }
  
  #pos_tag_adj_tt {
    background-color: #fc7f03;
  }
  
  #pos_tag_noun_tt {
    background-color: #9cac0d;
  }
  
  #pos_tag_adverb_tt {
    background-color: #e32f1a;
  }
  
  #pos_tag_prep_tt {
    background-color: #0d9cac;
  }
  
  #pos_tag_conj_tt {
    background-color: #0dac62;
  }
  
  #pos_tag_part_tt {
    background-color: #ac0d9c;
  }
  #pos_tag_ques_tt {
    background-color: hsl(345, 100%, 70%);
  }
  #pos_tag_multiword {
    background-color: #cbd9f4;
  }
  
  
  .appendages {
   
    position: absolute;
    font-family: Calibri;
    font-size: 16px;
    right: 100%;
  
    border-top: 1px solid black;
    border-left: 1px solid black;
    border-bottom: 1px solid black;
    border-right: 1px solid black;
    padding-top: 2px;
    padding-bottom: 2px;
    box-sizing: border-box;
    width: 25px;
    height: 25px;
    user-select: none;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    text-align: center;
  }
  
  #append1 {
    top: 2%;
  }
  #append2 {
    top: 20px; 
  }
  .append_inact {
    background-color: /* #8c64ed59;*/ #403876;
    color: #cbd9f482;
    z-index: 0;
  }
  .append_act {
    background-color: /*#8c64edad;*/ #664fb2;
    color: #cbd9f4;
    z-index: 1;
  }
  .append_inact:hover {
    background-color: /*#8c64edad;*/ #664fb2;
    color: #cbd9f4;
  }

#toplinks-flexbox {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  font-family: IBM_PLEX_SANS;
  /* background-color: #172136;
  color: #cbd9f4a6; */
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  border-bottom: 1px solid black;
}
#texts_link {
  border-top-left-radius: 5px;
}
.toplink-buttons {
  font-size: 17px;
  width: fit-content;
  max-width: 97%;
  padding: 4px;
  user-select: none;
  min-width: 80px;
  text-align: center;
  border-right: 1px solid black;
  cursor: pointer;
  /* background-color: #172136 */
}
.toplink-buttons.current {
  /* background-color: #040a16; */
  color: #cbd9f4;
}
.toplink-buttons:hover {
  /* background-color: #071022; */
  color: #cbd9f4d3;
}
.toplink-buttons.current:hover {
  /* background-color: #040a16; */
  color: #cbd9f4;
}
#topbar_placefiller {
  /* width: -webkit-fill-available; */
  width: 100%;
}
#theme_switcher {
  width: 20px;
  opacity: 85%;
  font-size: 16px;
  padding: 4px;
  text-align: center;
  user-select: none;
  border-top-right-radius: 5px;
  border-left: 1px solid black;
  cursor: pointer;
}
#theme_switcher:hover{
  opacity: 100%;
}


#load_spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid #cbd9f487;
  border-radius: 50%;
  border-top: 3px solid #071022;
  border-top: 3px solid #071022;
  width: 40px;
  height: 40px;
  -webkit-animation: spin 1s linear infinite; /* Safari */
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
@-webkit-keyframes spin {
  0% { -webkit-transform: translate(-50%, -50%) rotate(0deg); }
  100% { -webkit-transform: translate(-50%, -50%) rotate(360deg); }
}

.tooltip:not([data-lcs_recon]) {
  opacity: var(--no-lcs-opacity);
}

.tooltip:not([data-lemma_id]) {
  opacity: var(--no-lemma_id-opacity);
}

#annotation_mode_box {
  margin-top: 9px; /* br elements within a flexbox do not seem to do anything on Firefox */
  display: flex;
  justify-content: space-around;
  width: 100%;
}
.annotation_mode {
  border-radius: 32px;
  border: 1px solid black;
  border: 2px solid black;
  min-width: 54px;
  padding: 2px;
  padding-left: 4px;
  padding-right: 4px;
  font-size: 13px;
  user-select: none;
  /* background-color: #181f2e;
  color: #cbd9f4; */
  font-family: IBM_Plex_Sans;
  text-align: center;
  opacity: 0.6;
  cursor: pointer;
  position: relative;
}
.annotation_mode.active {
  opacity: 1.0;
  /* background-color: #071022; */
}

#btn_load_spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid #cbd9f487;
  border-radius: 50%;
  border-top: 3px solid #071022;
  border-top: 3px solid #071022;
  width: 15px;
  height: 15px;
  -webkit-animation: spin 1s linear infinite; /* Safari */
  animation: spin 1s linear infinite;
}
#gorazd_hidden_box {
  position: fixed;
  bottom: 0px;
  left: 4%;
  z-index: 2;
  cursor: pointer;
  display: none;
  /* flex-direction: column nowrap; */
  justify-content: center;
  align-items: center;
  background-color: #040a16;
  color: #cbd9f4a6;
  
  border-left: 2px solid black;
  border-right: 2px solid black;
  border-top: 2px solid black;
  border-top-right-radius: 4px;
  border-top-left-radius: 4px;
  padding: 4px;
  height: 32px;
  width: 65px;
}
#gorazd_outline {
  display: none;
  flex-flow: column nowrap;
  height: fit-content;
  width: 400px;
  max-height: 80%;
  position: fixed;
  bottom: 2px;
  z-index: 2;
  left: 2px;
  border-radius: 6px;
  background-color: #071022;
}