:root {
  --logoblue: #034ea2;
  --sheetback: #034ea2;
  --border: #c0c0c0;
  --glas: rgba(200,220,248,0.75);
  --tileback: #c8dcf8;
}

::-webkit-scrollbar {
    height: 4px;
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background: gray;
    -webkit-border-radius: 1ex;
    -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.75);
}


html {
  width: 100% !important;
  height: 100% !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-x: none;
}

body {
  background-color: white;
  font-family: Cambria;
  font-size: 18px;
  print-color-adjust: exact;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-x: none;
}

.Android {
  font-family: "Times New Roman", Times, serif;
}


/* top level */

#crossDiv {
  position: absolute;
  border: 1px solid var(--border);
}

#topDiv {
  position: absolute;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background-color: var(--logoblue);
  color: white;
}

#installButton {
  position: absolute;
  right: 210px;
  top: 60px;
  width: 60px;
  height: 14px;
  color: var(--logoblue);
  background-color: white;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  vertical-align: middle;
  border-radius: 3px;
  cursor: pointer;
  z-index: 1;
  display: none;
}

#searchSectionButton {
  position: absolute;
  top: 28px;
  right: 250px;
  cursor: pointer;
}

#headersSectionButton {
  position: absolute;
  top: 28px;
  right: 200px;
  cursor: pointer;
}



#applDiv {
  position: absolute;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: white;
  padding-top: 1px;
  padding-bottom: env(keyboard-inset-height, 0px);
  overflow:hidden;
}

#buttonSetCross {
  position: absolute;
  top: 5px;
  right: 0;
  width: 480px;
}

#buttonSetTop {
  position: absolute;
  top: 32px;
  right: 0;
  width: 180px;
}

#copyright {
  position: absolute;
  bottom: 8px;
  font-family: Arial;
  font-size: 11px;
  right: 10px;
  cursor: pointer;
}

#tripleStationaryDiv {
  position: absolute;
  border: 0;
  padding: 0;
  
  overflow-y: hidden;
  overflow-x: auto;
  scrollbar-width: none; 
  -ms-overflow-style: none;
  
  display: flex;
  flex-wrap: nowrap;
  touch-action: pan-x;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
  touch-action: pan-x pan-y;
}

#tripleStationaryDiv::-webkit-scrollbar {
  display: none;
}

#tripleMovingDiv {
  position: absolute;
  border: 0;
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

#matchDiv {
  position: absolute;
  left: 0;
  top: 0;
  width: 300px;
  height: 100%;
  overflow: auto;
  border-right: 1px solid var(--border);
  z-index: 1;
  overflow: hidden;
}

#entryDiv {
  position: absolute;
  left: 300px;
  right: 200px;
  height: 100%;
  overflow: auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
  background-color: white;
  z-index: 1;
}


#headersDiv {
  position: absolute;
  right: 0;
  top: 0;
  width: 200px;
  height: 100%;
  overflow: auto;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  background-color: white;
  -ms-overflow-style: none;
  scrollbar-width: none;
  z-index: 0;
}

#headersDiv::-webkit-scrollbar {
  display: none;
}

#printedDiv {
  position: absolute;
  overflow: auto;
  background-color: white;
  border-top: 1px solid var(--border);
}

/* matchDiv */

#searchTabsDiv {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background-color: var(--sheetback);
  z-index: 0;
}

#searchTabWelsh, #searchTabEnglish, #searchTabAdvanced {
  position: absolute;
  top: 0px;
  //width: 99px;
  height: 25px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
  background-color: var(--sheetback);
  z-index: 0;
}

#searchTabWelsh {
  border-top: 1px solid white;
  border-left: 1px solid white;
  border-right: 1px solid white;
}

#searchWelshDiv, #searchEnglishDiv, #searchAdvancedDiv {
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  background-color: var(--sheetback);
  border-top: 1px solid white;
  color: white;
  text-align: center;
  z-index: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#searchWelshDiv, #searchEnglishDiv {
  height: 54px;
}

#searchAdvancedDiv::-webkit-scrollbar {
  display: none;
}

#matchHeadDiv {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  height: 30px;
  background-color: white;
  padding-top: 2px;
  text-align: center;
  border-top: 1px solid var(--border);
}

#matchBodyDiv {
  position: absolute;
  top: 110px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: white;
  border-top: 1px solid var(--border);
  overflow-x: hidden;
  overflow-y: auto;
}

#waitDiv {
  position: absolute;
  top: 150px;
  left: 125px;
  z-index: 3;
}

/* entry div */

#entryHeadDiv {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: var(--sheetback);
  color: white;
}

#entryHeadwordComplex {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 45px;
  white-space: nowrap;
  color: #ffffff;
  text-align: center;
}

#entryHeadword {
  display: inline-block;
  white-space: nowrap;
  font-size: 150%;
  transform-origin: center;
  cursor: pointer;
}

#prevArtButton {
  margin-right: 5px;
  cursor: pointer;
}

#nextArtButton {
  margin-left: 5px;
  cursor: pointer;
}

#entryPublished {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  font-family: Arial;
  font-size: 11px;
  text-align: center;
  cursor: pointer;
}

#searchPanelButton {
  position: absolute;
  left: 5px;
  top: 50%;
  cursor: pointer;
  z-index: 1;
}

#headerPanelButton {
  position: absolute;
  right: 5px;
  top: 50%;
  cursor: pointer;
  z-index: 1;
}

#entryPrint {
  position: absolute;
  left: 10px;
  bottom: 5px;
  cursor: pointer;
}

#entryCite {
  position: absolute;
  left: 45px;
  bottom: 5px;
  cursor: pointer;
}

#entryShare {
  position: absolute;
  left: 80px;
  bottom: 5px;
  cursor: pointer;
}

#entryFeedback {
  position: absolute;
  right: 80px;
  bottom: 5px;
  cursor: pointer;
}

#collapseButton {
  position: absolute;
  right: 45px;
  bottom: 5px;
  cursor: pointer;
}

#expandButton {
  position: absolute;
  right: 45px;
  bottom: 5px;
  cursor: pointer;
}

#printedButton {
  position: absolute;
  right: 10px;
  bottom: 3px;
  cursor: pointer;
}

#entryBodyDiv {
  position: absolute;
  left: 0;
  right: 0;
  top: 80px;
  bottom: 0;
  overflow-x: hidden;
  overflow-y: auto;
  
  font-size: 85%;
  display: block;
  margin: 5px;
  padding: 5px 15px 5px 0px;
}

/* headers div */

#headersHeadDiv {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 80px;
  background-color: var(--sheetback);
  border-bottom: 1px solid var(--border);
  font-family: Arial;
  font-weight: bold;
  font-size: 12px;
  line-height: 110%;
  color: white;
  white-space: nowrap;
}

#buttonSetHeaders {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 15px;
  height: 20px;
}

#headersEntryDiv {
  position: absolute;
  left: 0;
  right: 0;
  top: 80px;
  bottom: 0;
  white-space: nowrap;
  overflow-x: hidden;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#headersEntryDiv::-webkit-scrollbar {
  display: none;
}

#headersAlphaDiv {
  position: absolute;
  right: 0;
  width: 35px;
  top: 80px;
  bottom: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-x: hidden;
  overflow-y: auto;
}

#headersAlphaDiv::-webkit-scrollbar {
  display: none;
}

div.letter {
  height: 20px;
  width: 25px;
  margin: 3px;
  border: 1px solid black;
  border-radius: 14px 14px 14px 14px;
  box-shadow:2px 2px gray;
  padding-top: 5px;
  font-family: Arial;
  font-size: 75%;
  font-weight: bold;
  font-style: italic;
  text-align: center;
  color: black;
  background-color: var(--tileback);
  cursor: pointer;
}

/* printed div */

#printedHeadDiv {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: var(--sheetback);
  color: white;
}

#buttonSetPrinted {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
}

#printedHeadword {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  text-align: center;
  font-size: 180%;
}

#printedPrint {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-family: Arial;
  font-size: 11px;
  cursor: pointer;
  font-weight: bold;
}

#printedPublished {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-family: Arial;
  font-size: 11px;
}

#printedBodyDiv {
  position: absolute;
  left: 0;
  right: 0;
  top: 80px;
  bottom: 0;
  overflow: hidden;
}

#pageImage {
  position: relative;
  border: 1px solid black;
}

/* other */

input.inputBox {
  position:absolute;
  font-size: 14px;
  height: 20px;
  border: gray solid 1px;
  padding: 5px;
  margin: 10px;
  background-color: white;
}

button.inputClearButton {
  position: absolute;
}

button.inputSearchButton {
  position: absolute;
}

button.mutations {
  position: absolute;
  border: 0;
  width: 25px;
  height: 25px;
  padding: 0;
}

#inputList {
  font-size: 14px;
  position: absolute;
  width: 270px;
  border: gray solid 1px;
  background-color: white;
  display: none;
  z-index: 10;
}

#searchTermTemplate {
  display: none;
}


p.datalist {
  margin: 2px;
  padding: 0;
  padding-left: 8px;
  padding-right: 8px;
  cursor: pointer;
}

span.buttonItem {
  position: absolute;
  font-family: Arial;
  font-weight: bold;
  font-size: 12px;
  color: white;
  white-space: nowrap;
  line-height: 110%;
  cursor: pointer;
}

span.ifItem {
  font-family: Arial;
  font-weight: bold;
  font-size: 12px;
  color: white;
  white-space: nowrap;
  line-height: 110%;
  cursor: pointer;
}

span.ifItem1 {
  font-family: Arial;
  font-weight: bold;
  font-size: 13px;
  color: white;
  white-space: nowrap;
  line-height: 110%;
  cursor: pointer;
}

span.ifItem2 {
  font-family: Arial;
  font-weight: bold;
  font-size: 12px;
  color: white;
  white-space: nowrap;
  line-height: 110%;
  border: 2px solid white;
  border-radius: 4px;
  padding-left: 3px;
  padding-right: 3px;
  padding-top: 1px;
  cursor: pointer;
}

span.ifText {
  font-family: Arial;
  font-weight: bold;
  font-size: 12px;
  color: white;
  white-space: nowrap;
  line-height: 110%;
}

div.moreLess {
  -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  transform: rotate(-90deg);
  font-family: Arial;
  font-size: 14px;
  color: white;
  position: relative;
  z-index: 1;
  right: 5px;
  bottom: -5px;
  cursor: pointer;
}

label {
  font-family: Arial;
  font-weight: bold;
  font-size: 12px;
  color: white;
  white-space: nowrap;
  cursor: pointer;
}

span.popup {
  display: none;
}

table {
  width: 300px;
  text-align: left;
  table-layout: fixed;
}

/* from online.xsl */

sup {
  font-size: 70%;
}

p {
  margin: 5px;
  margin-right: 10px;
}

p.header {
  font-size: 90%;
  height: 20px;
  margin: 0px;
  padding-left: 10px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  color: #a0a0a0;
  font-weight: bold;
  cursor: pointer;
}

p.match {
  font-size: 90%;
  margin: 5px;
  margin-left: 30px;
  text-indent: -20px;
  margin-right: 30px;
  color: blue;
  cursor: pointer;
}

span.match {
  padding-left: 5px;
  padding-right: 5px;
}

p.p1 {
  margin-left: 10px;
  margin-top: 0px;
  margin-bottom: 0px;
}

p.p11 {
  margin-left: 10px;
  margin-right: 30px;
}

p.p22 {
  margin-left: 30px;
  margin-right: 30px;
}

p.p33 {
  margin-left: 50px;
  margin-right: 30px;
}

p.p44 {
  margin-left: 70px;
  margin-right: 30px;
}

p.p55 {
  margin-left: 90px;
  margin-right: 30px;
}

p.p12 {
  margin-left: 30px;
  text-indent: -20px;
  margin-right: 30px;
}

p.p12c {
  margin-left: 42px;
  text-indent: -32px;
  margin-right: 30px;
}

p.p13 {
  margin-left: 50px;
  text-indent: -40px;
  margin-right: 30px;
}

p.p14 {
  margin-left: 70px;
  text-indent: -60px;
  margin-right: 30px;
}

p.p23 {
  margin-left: 50px;
  text-indent: -20px;
  margin-right: 30px;
}

p.p24 {
  margin-left: 70px;
  text-indent: -40px;
  margin-right: 30px;
}

p.p34 {
  margin-left: 70px;
  text-indent: -20px;
  margin-right: 30px;
}

p.p45 {
  margin-left: 70px;
  text-indent: -20px;
  margin-right: 30px;
}

div.cit {
  font-size: 85%;
  display: block;
  margin: 5px;
  margin-left: 30px;
  margin-right: 10px;
  padding: 5px 0px 5px 0px;
  background-color: #d6ebff;
  border-radius: 6px;
}

a, a:link, a:visited, a:hover, a:active {
  text-decoration: none;
  color: blue;
}
span.a {
  color: blue;
}

em {
  font-style: inherit;
  background-color: yellow;
}

input.fold_in {
  background: transparent;
  float: right;
  display: block;
  margin-right: 5px;
  width: 20px;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}

input.fold_out {
  float: right;
  display: none;
  margin-right: -14px;
  width: 20px;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}

span.v1 {
  font-size: 70%;
  vertical-align: 20%;
}
span.v2 {
  font-size: 45%;
  vertical-align: 20%;
  font-weight: bolder;
}
span.invbreve {
  font-size: 160%;
  vertical-align: -15%;
  margin-left: 3px;
  margin-right: -3px;
}

#citeBox {
  font-size: 16px;
  position: absolute;
  left: 15px;
  width: 300px !important;
  border: gray solid 1px;
  background-color: white;
  background-color: #c0c0c0;
  -webkit-border-radius: 10px;
  padding-bottom: 10px;
  box-shadow:2px 2px gray;
  display: none;
  overflow: hidden;
  z-index: 3;
}

#shareBox {
  font-size: 16px;
  position: absolute;
  padding-left: 10px;
  border: gray solid 1px;
  background-color: white;
  background-color: #c0c0c0;
  -webkit-border-radius: 10px;
  box-shadow:2px 2px gray;
  display: none;
  z-index: 3;
}

p.citeHead {
  text-align: center;
  font-size: 120%;
  font-weight: bold;
}

p.citeText {
  font-weight: bold;
  margin-bottom: 10px;
}

span.citeButtonItem {
  //margin-left: 25px;
  position: absolute;
  left: 180px;
  font-family: Arial;
  font-weight: bold;
  font-size: 12px;
  color: white;
  background-color: var(--sheetback);
  white-space: nowrap;
  line-height: 110%;
  cursor: pointer;
  -webkit-border-radius: 5px;
  padding: 5px;
}

