html {
  color: rgb(0, 0, 0);
  background-color: rgb(255, 255, 255);
  /* Force a height >100% to always show a scroll bar */
  height: 101%;
}

body {
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  line-height: 120%;
  background-color: white;
  height: 100%;
}

div {
  margin: 0;
  border: 0;
  padding: 0;
}
div.main-wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 1280px;
  min-width: 340px;
}
div.main-row {
  width: 100%;
  position: relative;
  overflow: hidden;
}
div.main-row::after {
  content: "";
  clear: both;
  display: block;
}

#logo {
  position: absolute;
  top: -160px;
  left: 0;
  height: 160px;
  width: 100%;
  z-index: 700;
  text-align: center;
  font-size: 70px;
  font-weight: 100;
  line-height: 110%;
  color: rgba(56, 142, 60, 1.00);
  transition: top 1s;
  transition-timing-function: ease;
}
#searchContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 59px;
  z-index: 800;
  transition: top 1s, height 1s;
  transition-timing-function: ease;
  color: rgba(56, 142, 60, 1.00);
}
#searchInfo {
  height: 64px;
}

div#errorContainer {
  height: 600px;
}
div#loadingBar {
  height: 0px;
  background-color: rgba(56, 142, 60, 1.00);
  transition: width 0.1s ease;
  position: relative;
  top: -4px;
  left: 0;
}
div#resultContainer {
  height: 100%;
}
div.hidden {
  display: none;
}
#channelContainer {
  position: fixed;
  bottom: 7px;
  right: calc((100% - 1280px)/2 - 21px);
  width: 17px;
  z-index: 600;
  transition: bottom 1s;
  transition-timing-function: ease;
}
@media screen and (max-width: 1472px)  {
  #channelContainer {
    right: 56px;
  }
}
@media screen and (max-width: 640px)  {
  #channelContainer {
    right: 42px;
  }
}
.slideContainer {
  clear: both;
  position: absolute;
  bottom: 0;
  width: 100%;
  /*z-index: 900;*/
}
.slideInfo {
  color: rgba(255, 255, 255, 0.87) !important;
  background-color: rgba(0, 0, 0, 0.00) !important;
}
.flagSpan {
	display: none;
}
@media screen and (max-width: 640px) {
	.flagSpan {
		display: none;
	}
}
#mainContainer {
  position: relative;
  top: 71px;
  transition: top 1s;
  left: 0;
  width: 100%;
  z-index: 400;
}

#resultContainer {
  overflow: visible;
}
@media screen and (max-width: 1280px)  {
  #resultContainer {
    overflow: hidden;
  }
}
#pageContainer, #searchContainer, .slideContainer {
  text-align: center;
}
#search {
  font-size: 16px;
  line-height: 110%;
  width: calc(100% - 144px);
  height: 24px;
  position: relative;
  top: -6px;
  margin-left: 0;
}
input#searchButton {
  margin-right: 0;
}
#pageNumber, .slideNumber {
  font-size: 16px;
  position: relative;
  top: -6px;
  padding: 15px;
}

.material-input {
  padding: 14px;
  margin: 3px;
  border: 0;
  font: inherit;
  text-transform: uppercase;
  outline: none;
}
.material-input-flat {
  background-color: inherit;
  color: rgba(56, 142, 60, 1.00);
  background-color: rgba(255, 255, 255, 0.20);
  transition: background-color 1s;
  transition-timing-function: ease;
}
.material-input-flat:hover {
  background-color: rgba(255, 255, 255, 1.00);
}
.material-input-raised {
  rgba(56, 142, 60, 1.00)
  box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.50);
  /*border-radius: 2px;*/
}
.material-input-text {
  background-color: rgba(255, 255, 255, 0.20);
  text-transform: none;
  transition: background-color 1s;
  transition-timing-function: ease;
}
.material-input-text:focus {
  background-color: rgba(255, 255, 255, 1.00);
}

#errorNoHits {
  background-image: url("imageResources/error_nohits.png");
}
#errorNetwork {
  background-image: url("imageResources/error_network.png");
}
.errorImage {
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.errorCard {
  width: 300px;
  margin: auto !important;
  position: relative;
  top: 14px;
}
.errorText {
  text-align: center;
  color: rgba(0, 0, 0, 0.87);
}

/* Using colors from Google material design
   https://www.google.com/design/spec/style/color.html#color-color-palette
   Green 200 rgba(165, 214, 167, 1.00)
   Green 700 rgba(56, 142, 60, 1.00)
   Red 700 rgba(211, 47, 47, 1.00)
   Grey 50 rgba(250, 250, 250, 1.00)
   Grey 200 rgba(238, 238, 238, 1.00);
*/
.material-bar {
  background-color: rgba(165, 214, 167, 1.00);
  box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.50);
}
.material-circle {
  /*background-color: rgba(165, 214, 167, 1.00);*/
  background-color: rgba(250, 250, 250, 1);
  width: 70px;
  height: 70px;
  border-radius: 35px;
  box-shadow: 0px 6px 8px 0px rgba(0, 0, 0, 0.50), 0px 0px 4px 0px rgba(255, 255, 255, 0.50);
  transition: transform 0.1s;
  transition-timing-function: linear;
}
@media screen and (max-width: 1472px)  {
  .material-circle {
    width: 56px;
    height: 56px;
    border-radius: 28px;
  }
}
@media screen and (max-width: 640px)  {
  .material-circle {
    width: 48px;
    height: 48px;
    border-radius: 24px;
  }
}
.material-circle:hover {
  transform: scale(1.10);
  z-index: 850;
}
.material-card {
  margin: 3px;
  box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.50);
  /*border-radius: 2px;*/
}
.material-transcard {
  margin: 3px;
  opacity: 0.7;
}
.material-content {
  padding: 8px;
}
.material-card-normal {
  background-color: rgba(250, 250, 250, 1.00);
  color: rgba(0, 0, 0, 0.87);
}
.material-card-title {
  background-color: rgba(56, 142, 60, 1.00);
  color: rgba(255, 255, 255, 0.87);
}
.material-card-fail {
  background-color: rgba(211, 47, 47, 1.00);
  color: rgba(255, 255, 255, 0.87);
}
.material-card-faded {
  opacity: 0.7;
}
.material-card-image {
  color: rgba(255, 255, 255, 0.87);
}
.material-card-imageOverlay {
  background-color: rgba(0, 0, 0, 0.00);
  color: rgba(255, 255, 255, 0.87);
  position: absolute;
  width: calc(100% - 8px*2);
}
.material-card-border {
  border-bottom: 1px solid rgba(238, 238, 238, 1.00);
}
.material-divtree {
  margin-left: 16px;
  border-bottom: 1px solid rgba(238, 238, 238, 1.00);
  border-left: 1px solid rgba(238, 238, 238, 1.00);
}
.material-modal {
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}
.material-modal-content {
  background-color: rgba(238, 238, 238, 1.00);
  position: relative;
  top: 40%;
  margin: 0 auto 0 auto;
  width: 30%;
}

.material-icon-float {
  float: right;
  position: relative;
  top: -3px;
  color: inherit;
  width: 24px;
  padding-left: 8px;
}
.material-icon-center {
    width: 100%;
    text-align: center;
    font-size: 48px !important;
}

/*Multi-column layout controls*/
div.result, div.about {
  padding: 0;
  overflow: hidden;
  /*animation: result-load 1.0s;*/
  opacity: 1.0;
  transition: transform 0.1s;
  transition-timing-function: linear;
  text-align: left;
}
div.result-wide, div.about-wide {
  width: calc(100% - 2*3px);
}
div.result-narrow {
  float: left;
  width: calc(25% - 2*3px);
  cursor: pointer;
}
div.result-narrow:hover {
  transform: scale(1.02);
}
div.about-narrow {
  float: left;
  width: calc(50% - 2*3px);
}

/* Switches for three, two and single column mode from screen size */
@media screen and (max-width: 1280px)  {
  div.result-narrow {
    width: calc(33.333% - 2*3px);
  }
}
@media screen and (max-width: 960px)  {
  div.result-narrow {
    width: calc(50% - 2*3px);
  }
  div.about-narrow {
    width: calc(100% - 2*3px);
  }
}
@media screen and (max-width: 640px)  {
  div.result-narrow {
    width: calc(100% - 2*3px);
  }
}

@keyframes result-load {
  from {
    opacity: 0.0;
  } to {
    opacity: 1.0;
  }
}

/* Aspect ratio-preserving divs for containing images
   http://stackoverflow.com/questions/12121090/responsively-change-div-size-keeping-aspect-ratio
*/
div.image-container {
  width: 100%;
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.87);
  position: relative;
}
div.image-container:after {
  padding-top: 75%;
  display: block;
  content: "";
}
div.image-aspectRatio {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s;
  transition-timing-function: ease;
  box-shadow: inset 0 70px 35px -18px rgba(0, 0, 0, 0.40);
}
/*http://codepen.io/bernethe/pen/dorozd*/
.ticker {
  width: 20px;
  height: 20px;
  clear: both;

  position: absolute;
  left: calc(50% - 10px);
  top: calc(50% - 10px);

  border: 2px rgba(0, 0, 0, 0.53) solid;
  border-top: 2px rgba(255, 255, 255, 0.53) solid;
  border-radius: 50%;
  animation: sp-circleRot .6s infinite linear;
}
@keyframes sp-circleRot {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

/* Background image control for channel display
   Changing channel view switches channelX classes
*/
.channel {
  background-size: cover;
  background-attachment: scroll;
}
.channel1 {
  background-position: 0% 0%;
}
.channel2 {
  background-position: 0% 25%;
}
.channel3 {
  background-position: 0% 50%;
}
.channel4 {
  background-position: 0% 75%;
}
.channel5 {
  background-position: 0% 100%;
}

p,h1,h2,h3 {
  font-weight: 400;
  margin: 0;
  border: 0;
  padding: 0;
  color: inherit;
}
p {
  margin: 6px 0;
}
h1 {
  font-size: 16px;
  font-weight: 400;
}
h2 {
  font-size: 100%;
  font-weight: 500;
}

b {
  font-weight: 500;
}

i {
  font-style: italic;
}

.subtext {
  font-size: 12px;
  opacity: 0.621;
}
.sequence {
  font-weight: 400;
  font-family: 'Roboto Mono', monospace;
  font-style: normal;
  word-wrap: break-word;
}
.sequence::before {
  font-family: 'Roboto', sans-serif;
  content: "5\2032\00a0\00a0";
  font-size: 85.7%;
  opacity: 0.621;
}
.sequence::after{
  font-family: 'Roboto', sans-serif;
  content: "\00a0 3\2032";
  font-size: 85.7%;
  opacity: 0.621;
}

a, a:link, a:visited, a:hover, a:active {
  color: inherit;
  /*font-weight: 500;*/
  text-decoration: underline;
  cursor: pointer;
}

a.button {
  background-color: rgba(56, 142, 60, 1.00);
  color: rgba(255, 255, 255, 0.87);
  padding: 2px 3px;
  border-radius: 3px;
}

.tooltip-top {
  position: absolute;
  top: 7px;
  color: rgba(255, 255, 255, 0.87);
  background-color: rgba(0, 0, 0, 0.87);
  text-align: center;
  padding: 7px;
  border-radius: 7px;
  margin: 3px;
}
@media screen and (max-width: 640px)  {
  .tooltip-top {
    width: calc(100% - 96px);
  }
}
.tooltip-top:before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  margin-left: -8px;
  width: 0; height: 0;
  border-bottom: 8px solid rgba(0, 0, 0, 0.87);
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
}

span.rev {
  unicode-bidi: bidi-override;
  direction: rtl;
}
span.rem {
  display: none;
}
