body {
    font-family: 'Open Sans', sans-serif;
    /*    font-family: 'Atkinson Hyperlegible', sans-serif; */
    margin: 10px auto; }

body.light-theme {
    background-color: #fdfdfd;
  color: black;
}

body.dark-theme {
  background-color: #111111;
  color: white;
}

body.dark-theme a {
    color: white;
}

.dark-theme .helpline {
  background-color: #111111;
  color: white;
}

.dark-theme .ol_logo_text {
  color: white;
}

.dark-theme .ol_logo_text2 {
  color: white;
}

.dark-theme .ressyn {
    background: #333333;    
}

.dark-theme .def-box .def-box-defs {
  color: #00cc00;    
}

.dark-theme .top-cluster {
  color: white;    
}

.dark-theme .resant {
    background: #ffdddd;
    color: black;
}

body.dark-theme #tabs a {
    background: #222;
    text-shadow: none;
}
body.dark-theme #tabs a::after {
    background: #222;
}

body.dark-theme .logo-img {
    display:none;
}

body.dark-theme button {
    color: #cccccc;
    background-color: black;
}

body.dark-theme .ol_logo_sunburst {
    display:none;
}

body.dark-theme #viz-teaser-button {
    background-color: black;
}


@media (min-width: 50em) {
  body {
      width: 95%; } }
  
@media (min-width: 75em) {
  body {
    width: 95%; } }
@media (max-width: 30em) {
  .logo-img-results-page {
  }
}
@media (max-width: 50em) {
  body {
    width: 97%; }

  .navbar {
    text-align: center; }

  .logo-img {
    margin: 0px 0 0 0 !important;
    position: relative !important;
    width: 200px !important; }

  .shadow-box {
      border: 0px !important;
  }

  .thesaurus_results br {
    content: "";
    margin: 0.8em;
    display: block;
  }

  .thes_defs {
    font-size: 1.0em;
    margin-left: 0.2em;
  }

  .thes_usage {
    font-size: 0.8em;
  }

  .thes_usage_cluster {
    color: blue !important;
  }

  .thes_defs br {
    content: "";
    display: block;
  }

  .filterpane {
    padding-top: 5px;
  }

}

.thes_example {
    background: white;
    padding: 4px 6px 4px 6px;
    margin: 6px;
    color: grey;
    font-size: 100% !important;
    border: 1px solid green;
    border-radius: 5px;
         display:  inline-block;
}

.thes_example:hover {
    background-color: #f4fff4;
    color: black;
}

table {
  table-layout: fixed;
}

.res {
}

a {
  text-decoration: none;
  color: darkblue; }

a:hover {
  color: purple; }

.logo-img {
    margin: 0px 0 0px 0 !important;
    position: relative !important;
    width: 200px !important; }


.navbar #thesinput:focus {
  outline: none;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.2);
}

.footnote button {
  -webkit-box-shadow: 0 0 5px 5px #fffded;
  -moz-box-shadow: 0 0 5px 5px #fffded;
  box-shadow: 0 0 5px 5px #fffded;
  margin: 0px 4px 0px 4px;
  padding: 4px;
}

.navbar input, .navbar select, .navbar textarea {
  color: black;
  outline: none; }

.navbar textarea:focus, .navbar input:focus {
  color: black;
  outline: none;
  background: #e8e8e8; }

.footer {
  text-align: center;
  padding: 30px 0 15px 0;
  font-size: 1.0em; }

#thesaurus_ants {
  padding-left: 10px;
/* display: none; */
}

.shadow-box {
  border: 2px solid #f1cc39;
  padding: 10px;
}



.inactivefilter {
  width: 120px;
  color: #888;
}
.activefilter {
  width: 120px;
}
.def-box {
  clear: both;
  display: block;
  right: 0;
  padding-bottom: 12px;
  margin: 10px 0 0 20px;
}

.def-box .def-box-defs {
  padding-left: 0px;
  color: green;
  width: 90%;
}

.def-box .def-box-info {
  padding: 8px 10px;
  border-style: none;
  box-shadow: none;
}

::-webkit-input-placeholder {
   color: lightgrey;
}

:-moz-placeholder { /* Firefox 18- */
   color: lightgrey;
}

::-moz-placeholder {  /* Firefox 19+ */
   color: lightgrey;
}

:-ms-input-placeholder {  
   color: lightgrey;
}

.filterinnertitle {
   color: blue;                 
   font-size: 1.2em !important;
}

.thes-logo {
  margin: auto;
}
.footnote a {
 color: #7777ff;
}
.footnote {
    display:  inline-block;
    margin-top: 20px;
}
#example_queries {
    margin-top: 15px;
}
#olthes_intro_text {
 display: none;
 margin: 10px 30px 0 30px;
}
.ql_btn {
 width: 100%;
 text-align: center;
}
ul.ui-autocomplete.ui-menu li:last-child {
    font-size: 0.8em;
    color: blue;
}

.resp-sharing-button {
  display: inline-block;
  border-radius: 5px;
  border-width: 1px;
  border-style: solid;
  transition: background-color 25ms ease-out, border-color 25ms ease-out, opacity 250ms ease-out;
  margin: 0.5em;
  padding: 0.5em 0.75em;
  font-family: Helvetica Neue,Helvetica,Arial,sans-serif;
}

.resp-sharing-button a {
  text-decoration: none;
  color: #FFF;
  display: block;
}

.resp-sharing-button__icon {
  display: inline-block;
}

.resp-sharing-button__icon svg {
  width: 1em;
  height: 1em;
  margin-bottom: -0.1em;
}

/* Non solid icons get a stroke */
.resp-sharing-button__icon {
  stroke: #FFF;
  fill: none;
}

/* Solid icons get a fill */
.resp-sharing-button__icon--solid,
.resp-sharing-button__icon--solidcircle {
  fill: #FFF;
  stroke: none;
}

.resp-sharing-button__link {
  text-decoration: none;
  color: #FFF;
}

.resp-sharing-button--large .resp-sharing-button__icon svg {
  padding-right: 0.4em;
}

.resp-sharing-button__wrapper {
  display: inline-block;
}

.resp-sharing-button--facebook {
  background-color: #3b5998;
  border-color: #3b5998;
}

.resp-sharing-button--facebook:hover,
.resp-sharing-button--facebook:active {
  background-color: #2d4373;
  border-color: #2d4373;
}

.resp-sharing-button--twitter {
  background-color: #55acee;
  border-color: #55acee;
}

.resp-sharing-button--twitter:hover,
.resp-sharing-button--twitter:active {
  background-color: #2795e9;
  border-color: #2795e9;
}

#overlay{
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
  height:100%;
  display: none;
  background: rgba(0,0,0,0.6);
}
.cv-spinner {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;  
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px #ddd solid;
  border-top: 4px #2e93e6 solid;
  border-radius: 50%;
  animation: sp-anime 0.8s infinite linear;
}

.is-hide{
  display:none;
}
#pattern-cheatsheet {
  margin: 5px;
}
#sortOrderControl {
    height: 10px;
}
#rerank {
    display: none;
}
#rerank_topn {
    display: none;
    font-size: 0.9em;
}
.ui-selectmenu-button {
    height: 22px;
    font-size: 1em;
    padding-top: 10px;
    cursor: pointer;
    border: 1px solid grey;
}

.ui-menu-item:hover {
    background: #007fff !important;
    color: #ffffff !important;
}

#filterbutton {
    margin-left: 20px;
    padding: 10px;
    height: 38px;
    color: grey;
    cursor: pointer;
    border: 1px solid grey;
}
#clearfilterbutton {
    margin-left: 20px;
    padding: 10px;
    height: 38px;
    background-color: pink;
    color: black;
    cursor: pointer;
    border: 1px solid grey;
}
#vizbutton {
    margin-left: 20px;
    padding: 10px;
    height: 38px;
    background-color: #EDFDFF;
    cursor: pointer;
    border: 1px solid grey;
}
#thes_doc {
    display: none;
}
#viz-teaser-button {
    background-color: #EDFDFF;
    height: 38px;
    font-size: 1em;
    padding: 10px;
    border: 1px solid grey;
    cursor: pointer;
}
.top-cluster {
    height: 38px;
    font-size: 1em;
    margin-top: 10px;
    padding: 10px;
    cursor: pointer;
    border: 1px solid grey;
}
#root {  /* for viz */
    overflow-x: scroll;
    scroll-snap-align: center;
}
mark {
  background-color: #ffffbb;
  color: black;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

.loader {
  border: 4px solid #ffffbb;
  border-top: 4px solid green;
  border-right: 4px solid #ffffbb;
  border-bottom: 4px solid green;
  border-radius: 50%;
  width: 30px;
  height: 30px;
 -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

.thes_example,#thesinput {
    font-family: 'Atkinson Hyperlegible', sans-serif !important; 
    font-size: 120%;
    line-height: 1.4;
}

.relres:hover::after {
    content:' \25B8 ';
    font-size: 0.8em;
}

.thes-subjectindex {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    margin-top: 40px;
    line-height: 1.8;
  box-sizing: border-box;
  border-radius: 8px 8px 8px 8px;
  box-shadow: 2px 2px #888888;
  border: 2px solid #999; 
  padding: 20px;
}    

.thes-supercluster-span {
    margin: 10px;
    padding: 5px;
}
.thes-supercluster-span:hover {
    background: #ffffbb;
}
.thes-cluster-span {
    margin: 20px;
    padding: 5px;
}
.thes-cluster-span:hover {
    background: #ffffbb;
}
.thes-supercluster-title {
    margin: 20px;
}
.search-button {
        position: absolute;
        right: 0;
        top: 0;
	background: #e4efe4;
	border: 5px solid #e4efe4;
	border-radius: 8px;
        padding: 5px 20px;
	margin-right: 10px;
	margin-top: 8px;
        cursor: pointer;
	max-width: 100;
}
.search-button:hover {
    background: #d4dfd4;
}
    .search-container {
        position: relative;
        width: 95%;
    }

.topgloss-button {
    color: green;
    font-size: .7em;
    display: inline;
    padding: 3px;
    border-color: lightgreen;
    border-width: 2px;
    border-style: solid;
    border-radius: 5px;
    cursor: pointer;
    background: white;
}
.topgloss-button:hover {
    color: #ff0000;
    background: lightgreen;
}
#quickfilters {
    margin: auto;
    max-width: 400px;
    line-height: 1.6;
}

.ol_logo {
    margin-bottom: 20px;
    vertical-align: middle;
    font-family: "Gabarito", sans-serif;
    font-size: 2em;
    font-weight: 600;
    color: #444444;    
    text-decoration: none;    
}
.ol_logo a:visited {
    color: #555555;    
}
.ol_logo a:link {
    color: #555555;    
}
.ol_logo_sunburst {
    display: inline-block;
    transform: translateY(12px);
}
.meter_btn_unselected:hover {
  background:  #bbffbb;
  cursor: pointer;
}
.ol_logo_text2 {
    font-weight: 200;
}

#fb1 {
  display: inline-block;
  vertical-align: center;
}
#fb2 {
  display: inline-block;
  vertical-align: top;
}

.btn {
  font-size: 14px;
  width: 8em;
  margin-bottom: 4px;
  margin-left: 5px;  
  height: 26px;
  border-radius: 6px;
}
.btn:hover {
    cursor: pointer;
    text-decoration: bold;
    background: #FFD580;
}
#olform {
    vertical-align: center;
}

#thesinput {
  height: 55px;
  width: 32ch;
  font-size: 30px;
  transition: box-shadow 0.2s ease-in-out;
  border: 2px solid black;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(255, 253, 237, 0.1);
  padding: 10px;
  margin-bottom: 20px;
  vertical-align: middle;      
}

#thesinput:focus {
  outline: none;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 50em) {
    #thesinput {
	    width: 12ch;
    }
}


.ui-autocomplete .ui-menu-item .definition2 {
    color: #3b3b3d;
    float: right;    
    padding-left: 10px;     
    white-space: nowrap;
    display: flex; align-items: flex-end;    
    overflow: hidden; 
    text-overflow: ellipsis;
    text-align: left;
    font-size: 0.7em;
    padding-top: 4px;
}


.ui-menu-item {
    vertical-align: baseline;
    line-height: 1.6;
    font-size: 120%;
}
.ui-menu-item:hover .definition2 {
    color: white;
}

.autocomplete_bolded {
    color: #0000cd;    
}

.ui-autocomplete .ui-menu-item .definition_match {
    font-weight: bold;
    color: green;
}

.ui-menu-item:hover .definition_match {
    color: yellow;
}

.ui-menu-item:hover .autocomplete_bolded {
    color: white;    
}

.definition2 {
    width: 500px;
}

@media (max-width: 750px) {
    .definition2 {
	width: 200px;
    }
}

.ui-autocomplete {
  border-color: black !important; 
  border-width: 2px !important;  
  border-style: solid; /* Optional: Set border style */
  border-radius: 6px;
  padding: 5px 5px 5px 0px !important;

}

@media (max-width: 768px) {
  .ui-autocomplete {
    left: 0 !important;
    width: 98vw !important;
    margin: 0;              /* no extra margins on phone */
  }
}

.submit-container {
  position: relative;
  display: inline-block;
}

.btn-note {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f1cc39;
  color: black;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 6px;
}

.btn-note::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #f1cc39;
}
