/**
 * Copyright 2016 Google Inc. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

html, body {
  padding: 0;
  margin: 0;
  width: 420px;
  height: 250px;
  background: #FAFAFA;
  color: #444;
}

header {
  height: 125px;
  background: url(../images/header.jpg) center center no-repeat;
  position: relative;
  box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.28);
  width: 100%;
  overflow: hidden;
}

header h1 {
  color: #FFF;
  margin: 0;
  padding: 0;
  font-weight: 300;
  z-index: 2;
  font-size: 22px;
  width: 100%;
  box-sizing: border-box;
  position: absolute;
  left: 16px;
  bottom: 36px;
}

header h2 {
  opacity: 0.68;
  font-size: 12px;
  color: #FFFFFF;
  position: absolute;
  left: 16px;
  bottom: 10px;
  font-weight: 300;
}

header a {
  text-decoration: none;
  text-transform: uppercase;
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  height: 32px;
  font-size: 14px;
  background: linear-gradient(to bottom, #D0021B 0%, #B30419 100%);
  color: #FFF;
  font-weight: bold;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
  line-height: 32px;
  text-align: center;
  width: 140px;
  outline: none;
  transform-origin: 50% 50%;
  transform: translate(36px, 20px) rotate(45deg);
}

.results {
  max-height: 340px;
  overflow-y: scroll;
}

.results li.group {
  padding: 0;
  margin: 16px;
  background: #FFFFFF;
  box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.28);
  height: 45px;
  overflow: hidden;
  font-size: 16px;
  color: #4B4B4B;
  list-style: none;
  color: #222;
  position: relative;
}

.results .group-name {
  line-height: 45px;
  display: block;
  padding: 0 0 0 44px;
  position: relative;
  cursor: pointer;
}

.results .group-name::before {
  content: '';
  display: inline-block;
  width: 44px;
  height: 44px;
  position: absolute;
  left: 0;
  top: 0;
}

.results .group-score {
  position: absolute;
  top: 0;
  line-height: 44px;
  right: 16px;
  font-size: 14px;
  color: #AAA;
}

.results .group.no-errors .group-name::before {
  background: url(../images/pass.svg) no-repeat center center;
}

.results .group.errors .group-name::before {
  background: url(../images/fail.svg) no-repeat center center;
}

.results li.group.expanded {
  height: auto;
  overflow: initial;
}

.results li.group ul {
  border-top: 1px solid #CCC;
  font-size: 14px;
  line-height: 1.5;
  padding: 16px 0 16px 32px;
  margin: 0;
}

.results [title] {
  cursor: help;
  border-bottom: 1px dashed black;
}

.results .pass {
  color: #44A736;
}

.results .fail {
  color: #D0021B;
}

.results .error {
  padding: 24px;
  text-align: center;
  color: #D0021B;
}

.reload-all {
  display: block;
  font-size: 14px;
  padding: 5px;
  border-radius: 2px;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  position: absolute;
  color: #CCC;
  right: 32px;
  bottom: 16px;
  cursor: pointer;
}
