/**
 * Styles for Holmes.js
 * Original by Lucas Bonomi
 * Changes by Haroen Viaene
 * Revised by Christian Carriere-Tisseur
 */

:root {
  font-size: 16px;
}




header {
  text-align: center;
}

header img {
  height: .8em;
}

button {
  outline: none;
  padding: 0;
  margin: 0;
}

/**
 * Typography
 */

h1 {
  font-family: Didot, "Vidaloka", serif;
  font-size: 3em;
  color: #000;
  display: inline-block;
  position: relative;
  text-shadow: 1px 1px 0 #EDEDED, 3px 3px 0 rgba(0, 0, 0, .05)
}

h3 {
  font-family: Didot, "Vidaloka", serif;
  font-weight: bold;
  font-size: 2.2em;
}


/* todo: don't need a media query */

@media (max-width: 640px) {
  h3 {
    font-size: 5vw;
  }
}

h1:hover {
  text-shadow: 1px 1px 0 #EDEDED, 3px 3px 0 rgba(0, 0, 0, .2)
}


/**
 * Input
 */

input[type="search"] {
  font-size: 1.4em;
  border-radius: .45em;
  background-color: #fff;
  background-image: url(../images/search-icon.svg);
  background-repeat: no-repeat;
  background-position: center right 8px;
  background-size: 8%;
  box-shadow: 0 .1em .1em 0 rgba(0, 0, 0, .1);
  border: solid 1px rgba(0, 0, 0, .2);
  border-bottom: 1px solid rgba(0, 0, 0, .3);
  padding: .4em;
  width: 50%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}

input[type="search"]::-webkit-search-cancel-button {
  right: .4em;
  position: relative;
}

input[type="search"]:not(:invalid) {
  background: #fff;
}



/**
 * Code block
 */


/**
* Search
*/

.search {
	position: relative;
	height: 55px;
}

.search .toggle {
  position: absolute;
  top: 64%;
  right: 7%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  font-size: 3.5em;
  color: rgba(0, 0, 0, .25);
  display: block;
  width: 1em;
  height: 1em;
  text-align: center;
  line-height: 1em;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: none;
  border: none;
  font-family: Didot, "Vidaloka", serif;
}

.search .toggle:hover:after {
  content: attr(data-tooltip);
  position: absolute;
  top: -46px;
  left: -96px;
  color: #fff;
  border-radius: .25em;
  padding: .35rem;
  background: rgba(0, 0, 0, .8);
  font-size: 1rem;
  width: 170px;
  opacity: 1;
  font-family: system, -apple-system, sans-serif;
  line-height: 1;
}

.search .toggle.clicked {
  color: rgba(0, 0, 0, .5);
}


/**
 * Results
 */


/**
 * Results Cards
 */

.results blockquote

.results cite {	position:absolute;
;
  font-size: .95em;
  vertical-align: bottom;
  display: inline-block;
  font-style: normal;
  font-weight: 400;
  margin-top: 1.2em;
  -webkit-font-smoothing: subpixel-antialiased;
}

.results.classes blockquote.visible {
  border-bottom: 5px solid #86BA68;
  -webkit-order: 1;
  -ms-flex-order: 1;
  order: 1;
}

.results.classes blockquote.hidden {
  border-bottom: 5px solid #D15E39;
  display: block;
  -webkit-order: 2;
  -ms-flex-order: 2;
  order: 2;
}

/**
 * Footer
 */

footer {
  padding: 2em 0 0;
}

@media (max-width: 640px) {
  footer {
    font-size: .8em;
    padding: 1em 0;
    line-height: 2;
    text-align: center;
  }
  footer .pull-right {
    width: 100%;
    float: left;
  }
}


/**
 * Generic classes
 */

.hidden {
  display: none;
}

.pull-right {
  float: right;
}

span.separator {
  font-family: Didot, "Vidaloka", serif;
  font-size: 2.2em;
  display: block;
  min-height: 100px;
  position: relative;
}

span.separator:after {
  content: attr(data-category);
  position: absolute;
  bottom: 0;
  right: 0;
  opacity: .55;
}

@media (max-width: 640px) {



input[type="search"] {
  font-size: 1.4em;
  border-radius: .45em;
  background-color: #fff;
  background-image: url(../images/search-icon.svg);
  background-repeat: no-repeat;
  background-position: center right 8px;
  background-size: 8%;
  box-shadow: 0 .1em .1em 0 rgba(0, 0, 0, .1);
  border: solid 1px rgba(0, 0, 0, .2);
  border-bottom: 1px solid rgba(0, 0, 0, .3);
  padding: .4em;
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}

  
  span.separator:after {
    font-size: .8em;
  }
}

span.separator:before {
  content: '';
  position: absolute;
  background: url(../images/footprint.svg) no-repeat center center / contain;
  width: 100%;
  height: 100%;
}

span.separator:nth-of-type(odd):before {
  -moz-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  filter: FlipH;
  -ms-filter: "FlipH";
}

span.separator:nth-of-type(odd):after {
  left: 0;
  right: inherit;
}

.microlight {
  font-family: 'Courier New', monospace;
  white-space: pre;

}
