/* Reset styles */
*{
  padding:0;
  margin:0;
  text-decoration:none;
  line-height:1;
  outline:none;
  border:none;
  box-shadow:none;
  box-sizing:border-box;
}
html{
  font-size:62.5%;
}
body{
  font-size:1.6rem;
  width:100%;
  height:100%;
  position:fixed;
}
/* Site fonts */
@font-face {
  font-family: 'robotoregular';
  src: url('../fonts/roboto-regular-webfont.woff2') format('woff2'),
       url('../fonts/roboto-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'robotobold';
  src: url('../fonts/roboto-bold-webfont.woff2') format('woff2'),
       url('../fonts/roboto-bold-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
/* Common styles */
/* Placeholder */
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #848482;
  font-family:robotoregular;
  font-size:1.4rem;
}
::-moz-placeholder { /* Firefox 19+ */
  color: #848482;
  font-family:robotoregular;
  font-size:1.4rem;
}
:-ms-input-placeholder { /* IE 10+ */
  color: #848482;
  font-family:robotoregular;
  font-size:1.4rem;
}
:-moz-placeholder { /* Firefox 18- */
  color: #848482;
  font-family:robotoregular;
  font-size:1.4rem;
}
/* Header */
header{
  height:auto;
  width:100%;
  position:fixed;
}
header .title-searchbar-wrap{
  background-color: #f4f4f4;
}
header .title-searchbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 29px;
  height:auto;
  position:relative;
  z-index:99;
  max-width:1440px;
  margin:auto;
}
header h1{
  font-family:robotobold;
  font-size:3.2rem;
  line-height:48px;
  letter-spacing:1px;
}
/* Search box */
.search{
  display:flex;
  width:100%;
  max-width:280px;
}
.search input{
  color:#000;
  width:70%;
  height:auto;
  border: 1px solid #C3C3C3;
  padding:5px 10px;
  font-family:robotoregular;
  font-size:1.6rem;
}
.search .search-btn{
  width:auto;
  height:auto;
  background: #C3C3C3;
  border: none;
  padding:10px 25px;
  font-family:robotoregular;
  font-size:1.4rem;
  text-transform:uppercase;
  cursor:pointer;
}
/*  Search controls */
.search-controls{
  display:flex;
  flex-direction: column;
  padding:15px 29px 0;
  max-width:1260px;
  margin:auto;
  transition:0.1s linear;
  position:relative;
  z-index:98;
}
.search-controls.hide{
  display:none;
}
/* Alphabet chooser */
.search-options-wrap{
  list-style:none;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  width:100%;
  margin-bottom:20px;
}
.search-options-wrap .search-option{
  display:flex;
  min-width:30px;
  min-height:30px;
  height:auto;
  width:auto;
  justify-content:center;
  align-items: center;
  border:1px solid #c3c3c3;
  margin-bottom:15px;
  font-family:robotoregular;
  font-size:1.6rem;
  border-radius:3px;
  cursor:pointer;
  transition:all 0.2s linear;
}
.search-options-wrap .search-option:not(:last-child){
  margin-right:15px;
}
.search-options-wrap .search-option:hover{
  background-color:#808080;
  color:#fff;
  border:1px solid #808080;
  transform:scale(1.1);
}
.search-options-wrap .search-option.active{
  background-color:#808080;
  color:#fff;
  border:1px solid #808080;
  transform:scale(1.1);
}
/* Search results summary */
.search-results-summary-panel{
  display:flex;
  justify-content:space-between;
  width:100%;
}
.search-results-summary-panel .search-summary{
  display:flex;
}
.search-results-summary-panel .search-summary span{
  font-family:robotoregular;
  font-size:1.4rem;
}
.search-results-summary-panel .search-summary span.current{
  font-family:robotobold;
  margin-left:3px;
}
/* Collapsible */
.collapsible{
  display:flex;
  height:auto;
  justify-content: center;
  align-items: center;
  padding-bottom:10px;
  position:relative;
  z-index:100;
}
.collapsible img{
  width:25px;
  cursor:pointer;
  transform:rotate(180deg)
}
.collapsible img.toggle{
  transform:rotate(0)
}
/* Content area */
.terms-container{
  overflow:auto;
  padding:10px 29px;
  position:relative;
  overflow-x:hidden;
  max-width:1440px;
  margin-left:auto;
  margin-right:auto;
  padding-top:0;
  padding-bottom:40px;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.terms-container.error{
  display:flex;
  align-items:center;
  justify-content:center;
}
.terms-container.error p.error{
  font-family:robotobold;
  font-size:1.6rem;
  color:red;
}
.terms-container::-webkit-scrollbar {
  display: none;
}
.term-details{
  position:absolute;
  height:100%;
  opacity:0;
  visibility:hidden;
  right:0;
  transform:translateX(100%);
  top:0;
  transition:all 0.3s linear;
  width:100%;
  max-width:800px;
}
.term-details.show{
  transform:translateX(0);
  opacity:1;
  visibility:visible;
}
.term-details .term-details-inner{
  background-color:#f4f4f4;
  width:100%;
  height:100%;
  padding:29px;
  position:relative;
  overflow:auto;
  margin-top:10px;
}
.close-btn{
  position:absolute;
  display:flex;
  justify-content:center;
  align-items:center;
  background-color:red;
  color:#fff;
  font-family:robotobold;
  font-size:1.5rem;
  width:24px;
  height:24px;
  right:29px;
  top:25px;
  cursor:pointer;
}
/* Term component */
.terms-container .term-component{
  background-color:#c4c4c4;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding:10px 15px;
  width:100%;
  max-width:100%;
  cursor:pointer;
}
.terms-container .term-component:hover,
.terms-container .term-component.active{
  background-color:#808080;
}
.terms-container .term-component:hover span,
.terms-container .term-component.active span{
  color:#fff;
}
.terms-container .term-component:not(:last-child){
  margin-bottom:10px;
}
.terms-container .term-component span{
  font-family:robotobold;
  font-size:1.4rem;
  color:#000;
}
.terms-container .term-component span.toggle{
  font-size:1.6rem;
}
.term-details h3{
  font-family:robotobold;
  margin-bottom:15px;
  margin-top:15px;
}
/* Term card component */
.term-details-card{
  display:flex;
  flex-direction:column;
  max-width:100%;
}
.term-details-card:not(:last-child){
  margin-bottom:15px;
}
.term-details-card .card-title{
  width:100%;
  display:flex;
  justify-content:left;
  align-items:center;
  background-color:#72A0C1;
  font-family: robotobold;
  font-size:1.6rem;
  color:#fff;
  padding:8px 22px;
}
.term-details-card .card-text{
  width:100%;
  display:block;
  background-color:#e2dddd;
  padding:15px 22px;
}
.term-details-card.akas .card-text span:last-child{
  display:none;
}
.term-details-card.related-terms .card-text span:last-child{
  display:none;
}
.term-details-card .card-text{
  font-family: robotoregular;
  font-size:1.6rem;
  color:#000;
  line-height:1.5;
}
.term-details-card .card-text p{
  font-family: robotoregular;
  font-size:1.6rem;
  color:#000;
  line-height:1.5;
}
.term-details-card .card-text span{
  font-family: robotoregular;
  font-size:1.6rem;
  color:#000;
  line-height:1.5;
}
/* Loader */
.lds-roller {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
  position: relative;
  width: 80px;
  height: 80px;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  /* display: none; */
  z-index: 99999999;
}
.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}
.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #72A0C1;;
  margin: -4px 0 0 -4px;
}
.lds-roller div:nth-child(1) {
  animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
  top: 63px;
  left: 63px;
}
.lds-roller div:nth-child(2) {
  animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
  top: 68px;
  left: 56px;
}
.lds-roller div:nth-child(3) {
  animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
  top: 71px;
  left: 48px;
}
.lds-roller div:nth-child(4) {
  animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
  top: 72px;
  left: 40px;
}
.lds-roller div:nth-child(5) {
  animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
  top: 71px;
  left: 32px;
}
.lds-roller div:nth-child(6) {
  animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
  top: 68px;
  left: 24px;
}
.lds-roller div:nth-child(7) {
  animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
  top: 63px;
  left: 17px;
}
.lds-roller div:nth-child(8) {
  animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
  top: 56px;
  left: 12px;
}
@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Media queries */
@media(min-width:768px){
  .terms-container .term-component{
    max-width:590px;
  }
  .collapsible img{
    width:30px;
  }
}
@media (max-width:767px){
  .header .title-searchbar{
    flex-direction:column;
    padding:10px;
  }
  header h1{
    font-size:2.6rem;
    margin-bottom:10px;
  }
  .search-results-summary-panel{
    flex-direction:column;
  }
  .search-results-summary-panel .search-summary.current-search{
    margin-bottom:15px;
  }
  .search-options-wrap{
    justify-content:center;
  }
  .search-results-summary-panel .search-summary{
    justify-content:center;
  }
  .search-options-wrap{
    margin-bottom: 10px;
  }
  .collapsible{
    padding-top:5px;
  }
}