html,
body {
  padding: 0;
  margin: 0;
  height: 100%;
  font-family: arial, sans-serif;
  font-size: 16px;
}

.wrapper {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 0;
  height: calc(100% - 102px);
}

.text-input {
  padding: 8px;
  display: block;
  border: 1px solid #cccccc;
  width: 80%;
  overflow: visible;
  margin: 10px auto;
  box-sizing: border-box;
}

/* LOADING indicator */
.lds-facebook {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-facebook div {
  display: inline-block;
  position: absolute;
  left: 8px;
  width: 16px;
  background: #cfcfcf;
  animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}
.lds-facebook div:nth-child(1) {
  left: 8px;
  animation-delay: -0.24s;
}
.lds-facebook div:nth-child(2) {
  left: 32px;
  animation-delay: -0.12s;
}
.lds-facebook div:nth-child(3) {
  left: 56px;
  animation-delay: 0;
}
@keyframes lds-facebook {
  0% {
    top: 8px;
    height: 64px;
  }
  50%,
  100% {
    top: 24px;
    height: 32px;
  }
}

.terminology-loader {
  width: 50vw;
  height: 40px;
  line-height: 40px;
  border: 1px solid #cccccc;
  padding-left: 10px;
}

.scrollable {
  overflow-y: auto;
  font-size: 18px;
}

button:hover {
  background-color: #3aaf10;
}
button {
  background-color: #4caf50;
  border: none;
  color: white;
  padding: 6px 12px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 4px 2px;
  cursor: pointer;
}
button:disabled,
button[disabled] {
  background-color: #cccccc;
  color: #666666;
}

.banner {
  padding: 5px;
  text-align: center;
  background: #14ba99;
  color: white;
  font-size: 14px;
  font-weight: bold;
  height: 26px;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
}

/*TABS*/

#code-matching {
  position: absolute;
  width: 100%;
  display: none;
}
#code-matching.show {
  display: block;
}
.tab-content {
  transform: translateX(-4000px);
  position: absolute;
}

.tab-content.focus {
  transform: translateX(0px);
}

#results {
  width: 100%;
}

.tab {
  display: none;
}

.tab.visible {
  display: block;
}

.expander,
.empty-expander {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="700" style="fill:white;stroke-width:10;stroke:black">          <circle cx="70" cy="70" r="60" />      <line x1="70" x2="70" y1="10" y2="130" />      <line x1="10" x2="130" y1="70" y2="70" />      <circle cx="70" cy="210" r="60" style="stroke-width:14"/>   <line x1="70" x2="70" y1="150" y2="270" style="stroke-width:14"/>     <line x1="10" x2="130" y1="210" y2="210" style="stroke-width:14"/>   <circle cx="70" cy="350" r="60" />      <line x1="10" x2="130" y1="350" y2="350" />      <circle cx="70" cy="490" r="60" style="stroke-width:14"/>     <line x1="10" x2="130" y1="490" y2="490"  style="stroke-width:14"/>     <circle cx="70" cy="630" r="30" />      </svg>');
  background-size: cover;
  margin: 6px 18px 6px 14px;
}
.expander,
.empty-expander,
.blank-expander {
  width: 18px;
  display: inline-block;
  aspect-ratio: 1 / 1;
}

#code-match {
  font-size: 18px;
}

@media (min-width: 480px) {
  .banner {
    font-size: 16px;
  }
}

@media (min-width: 800px) {
  .tab {
    display: none !important;
  }
  #code-matching {
    padding-left: 10px;
    position: inherit;
    display: block;
  }
  .wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
  }
  .tab-content {
    transform: translateX(0px);
    position: inherit;
  }
  .scrollable {
    font-size: 16px;
  }
  .expander,
  .empty-expander,
  .blank-expander {
    padding: 0;
  }
  .expander,
  .empty-expander {
    margin: 2px;
  }
}

/* Style the tab */
.tab {
  overflow: hidden;
  border-bottom: 1px solid #ccc;
  /* background-color: #f1f1f1; */
}

/* Style the buttons inside the tab */
.tab button.tablinks {
  background-color: inherit;
  color: gray;
  margin: 0;
  float: left;
  border: none;
  border-left: 1.5px solid white;
  border-right: 1.5px solid white;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
}

.tab button.tablinks.active {
  background-color: #f1f1f1;
  color: black;
  border-left: 1.5px solid #cecece;
  border-right: 1.5px solid #cecece;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
  color: black;
  border-left: 1.5px solid #ddd;
  border-right: 1.5px solid #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* AUTOCOMPLETE DROP DOWN */
.autocomplete-search-box {
  box-sizing: border-box;
  position: relative;
  margin-bottom: 20px;
}

.autocomplete-search-box .search-box {
  margin: 10px 10% 0 5%;
}

.autocomplete-search-box .search-result {
  width: 80%;
  padding: 0;
  margin: 0 10% 0 5%;
  border: 1px solid #ccc;
  border-top: 0;
  box-sizing: border-box;
  max-height: calc(100vh - 200px);
  overflow: auto;
  position: absolute;
  background: white;
  z-index: 1;
  padding-left: 8px;
  display: flex;
  flex-direction: column;
}

.autocomplete-search-box li {
  position: relative;
  display: block;
  padding: 0;
  color: #212529;
  text-decoration: none;
  background-color: #fff;
  border: 0;
  width: 100%;
  list-style-type: none;
}

.autocomplete-search-box li:hover,
.autocomplete-search-box li.highlighted {
  background: #3498db;
  color: white;
}

#message {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
}

.descendant,
.root-descendant {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 16px;
}
.descendant.hidden {
  display: none;
}

.descendant span,
.root-descendant span {
  vertical-align: middle;
}

.expander {
  cursor: pointer;
  background-position: 50% 50%;
}
.expander:hover {
  background-position: 50% 75%;
}

.closed .expander {
  background-position: 50% 0;
}

.closed .expander:hover {
  background-position: 50% 25%;
}

.empty-expander {
  background-position: 50% 100%;
}

.tree-code {
  padding-left: 4px;
  border-radius: 5px;
  cursor: pointer;
}
.tree-code:hover {
  background: #15713d;
  color: white;
}
.root-tree-code {
  font-weight: bold;
}

.tree-branches {
  font-family: 'DejaVu Sans Mono', monospace;
}
