/**
 * Copyright 2015 Google Inc.
 *
 * 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.
 */

body {
  font-family: sans-serif;
  font-weight: 300;
}

a {
  color: #4183C4;
  font-weight: 300;
  text-decoration: none;
}

a:hover {
  color: #3d85c6;
  text-decoration: underline;
}

h1 a {
  font-weight: 300;
  white-space: nowrap;
}

body {
  font-family: 'Roboto', sans-serif;
  padding: 1em;
  word-break: break-word;
}

button {
  background-color: #d84a38;
  border: none;
  border-radius: 2px;
  color: white;
  font-family: Roboto, sans-serif;
  font-size: 0.9em;
  margin: 0 1em 2em 0;
  padding: 0.5em 0 0.7em 0;
  width: 7.5em;
}

button:last-of-type {
  margin: 0 1em 1em 0;
}

button:active {
  background-color: #cf402f;
}

button:hover {
  background-color: #cf402f;
}

button[disabled] {
  color: #ccc;
}

button[disabled]:hover {
  background-color: #d84a38;
}

code {
  font-family: sans-serif;
  font-weight: 400;
}

div#container {
  margin: 0 auto 0 auto;
  max-width: 40em;
}

details:last-of-type {
  margin: 0 0 1.5em 0;
}

details#setup div, details#info div {
  margin: 0 0 1.2em 0;
}

div#storeStatus {
  display: inline-block;
  margin: 0 0 1em 0;
}


h1 {
  border-bottom: 1px solid #ccc;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 600;
  margin: 0 0 0.8em 0;
  padding: 0 0 0.2em 0;
}

h2 {
  color: #444;
  font-size: 1em;
  font-weight: 500;
  line-height: 1.2em;
  margin: 0 0 0.8em 0;
}

html {
/* avoid annoying page width change
when moving from the home page */
overflow-y: scroll;
}

img {
  border: none;
  max-width: 100%;
}

input[type=checkbox] {
  position: relative;
  top: -1px;
}

input[type=radio] {
  position: relative;
  top: -1px;
}

input[type=text] {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  padding: 1px 2px 3px 6px;
  width: 315px;
}

label {
  color: #444;
  display: inline-block;
  font-family: 'Roboto Condensed';
  font-weight: 400;
  width: 9.5em;
}

input[type=checkbox] + label {
  width: auto;
}

ol {
  padding: 0 0 0 20px;
}

p {
  color: #444;
  font-weight: 300;
  line-height: 1.6em;
}

p.borderBelow {
  border-bottom: 1px solid #eee;
  margin: 0 0 1.5em 0;
  padding: 0 0 1.7em 0;
}

select {
  font-family: sans-serif;
  height: 25px;
  position: relative;
  top: -1px;
  width: 327px;
  -webkit-appearance: menulist-button; /*csslint compatible-vendor-prefixes:false */
}

span#trickPlay {
  display: inline-block;
  left: -3px;
  position: relative;
  width: 9.3em;
}

h1 span {
  white-space: nowrap;
}

strong {
  font-weight: 600;
}

summary {
  cursor: pointer;
  display: block;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 18px;
  outline: none;
  margin: 0 0 1em 0;
}

ul {
  padding: 0 0 0 20px;
}

video {
  background: #222;
  width: 100%;
}

@media screen and (max-width: 650px) {
  h1 {
    font-size: 24px;
  }
}

@media screen and (max-width: 550px) {
  button {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0.6em 0.8em 0;
    padding: 9px 0 10px 0;
  }

  button:last-of-type {
    margin: 0;
  }

  button:active {
    background-color: darkRed;
  }

  details {
    margin: 2em 0 1.5em 0;
  }

  div#storeStatus {
    display: block;
    height: 1em;
    margin: 0 0 1em 0;
  }

  h1 {
    font-size: 22px;
    margin: 0 0 1.5em 0;
  }

  input[type=checkbox] {
    top: 2px;
  }

  input[type=text] {
    font-size: 16px;
  }

  label {
    font-weight: 500;
    margin: 0 0 0.4em 0;
  }

  select {
    display: block;
    margin: 0 1em 0.3em 0;
  }
  summary {
    font-weight: 600;
  }
}

@media screen and (max-width: 400px) {
  button {
    font-size: 13px;
    margin: 0 0.4em 1em 0;
    padding: 5px 0 7px 0;
  }

  h1 {
    font-size: 20px;
  }
}
