html {
  font-family: sans-serif;
  line-height: 1.15;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #fafafa url(/img/bg.png);
  margin: 0;
}

footer, header, main, menu, nav, section {
  display: block;
}

a {
  background-color: transparent;
  -webkit-text-decoration-skip: objects;
}

a:link, a:visited {
  color: #109ceb;
  outline-width: 0;
  text-decoration: none;
}

a:hover, a:active {
  color: #f90;
  text-decoration: none;
}

small {
  font-size: 80%;
}

svg:not(:root) {
  overflow: hidden;
}

input, textarea {
  font-family: sans-serif;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

input {
  overflow: visible;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

textarea {
  overflow: auto;
}

[type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

[type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

[type="checkbox"], [type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-cancel-button, [type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

.data-form fieldset {
  border: 0;
  margin: 1rem 0 0;
  padding: 0;
}

.data-form legend, .data-form label {
  display: block;
  font-size: 1.17rem;
  font-weight: bold;
  margin-top: 1rem;
}

.data-form .checkbox-label {
  display: inline-block;
  font-weight: normal;
  font-size: inherit;
  margin-top: inherit;
}

.data-form input {
  margin-top: .5rem;
  max-width: 90%;
}

.data-form textarea {
  max-width: 97%;
}

.page-header {
  background-color: #109ceb;
  background: linear-gradient(to bottom, #57b9f1 0%, #109ceb 100%);
  border-bottom: 1px solid #0c7cbc;
  box-shadow: 0 3px 3px #ddd;
  color: #fff;
}

.header-logo {
  float: left;
  max-height: 6rem;
  padding: .5rem;
}

.page-header h1 {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: normal;
  font-size: 4rem;
  line-height: 7rem;
  margin: 0;
}

.navbar {
  background-color: #ddd;
  box-shadow: inset 0 7px 9px -7px #777;
  color: #000;
  padding: .5rem;
}

.navbar ul, .result-list, .checkbox-list {
  margin: 0;
  padding: 0;
}

.navbar h2, .movie-facts .classification, .additional-fields legend {
  display: none;
}

.result-list li, .checkbox-list li {
  margin-top: .2rem;
}

.checkbox-list li {
  display: inline-block;
  margin-right: 2rem;
}

.container-title {
  background-color: #109ceb;
  background: linear-gradient(to bottom, #57b9f1 0%, #109ceb 100%);
  color: #fff;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: bold;
  margin: 0 -1.5rem 1.5rem;
  outline: 1px solid #0c7cbc;
  padding: .5em;
}

.container {
  background-color: #fff;
  border: 1px solid #aaa;
  border-collapse: collapse;
  box-shadow: 3px 3px 3px #ddd;
  color: #666;
  margin: 2rem auto 80px;
  max-width: 80%;
  min-height: 550px;
  padding: 0 1.5rem 1.5rem;
  width: 800px;
}

.chart {
  min-height: 500px;
}

.menu ul {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 3.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.menu li, .classification-logo {
  padding: .5rem;
}

.toc {
  background-color: #fff;
  border: 1px solid #aaa;
  border-right-style: none;
  border-collapse: collapse;
  border-radius: 8px 0 0 8px;
  box-shadow: 3px 3px 3px #ddd;
  color: #666;
  float: right;
  font-size: 1.5rem;
  margin: 2rem auto 80px;
  padding: 1.5rem;
  position: -webkit-sticky;
  position: sticky;
  text-align: center;
  top: 0;
}

.toc-list {
  margin: 0;
  padding: 0;
}

.result-header {
  margin-bottom: 0;
  margin-top: 1rem;
}

.director-list, .genre-list, .storage-format-list, .navbar, .result-list, .toc-list, .checkbox-list {
  list-style: none;
}

.director-list li, .genre-list li, .storage-format-list li, .navbar li, .movie-facts dt, .movie-facts dd, .movie-facts ul, .added-directors label, .added-directors input {
  display: inline;
}

.added-alt-titles label, .added-genres label, .group-fieldset > legend {
  display: none;
}

.group-fieldset > fieldset:first-of-type {
  margin-top: 0px;
}

.additional-fields input {
  margin-right: 1rem;
}

.director-list li:after, .genre-list li:after, .storage-format-list li:after {
  content: ", ";
}

.navbar li:after {
  content: " | ";
}

.director-list li:last-child:after, .genre-list li:last-child:after, .storage-format-list li:last-child:after, .navbar li:last-child:after {
  content: "";
}

.movie-poster {
  clear: right;
  float: left;
  padding: .5rem;
}

.movie-facts dd, .movie-facts ul {
  margin: 0;
  padding: 0;
}

.movie-facts dt {
  font-weight: bold;
}

.movie-facts dt:after, .additional-fields label:after {
  content: ": ";
}

.movie-facts dd:after {
  content: "";
  display: block;
}

.page-footer {
  background-color: #ddd;
  bottom: 0;
  color: #666;
  height: 50px;
  left: 0;
  padding-bottom: 10px;
  padding-top: 10px;
  position: fixed;
  width: 100%;
}

.footer-logo {
  clear: right;
  float: left;
  margin-left: 7px;
  margin-right: 7px;
}

.response {
  border-left-style: solid;
  border-left-width: .5rem;
  padding: .5rem 1rem;
}

.success {
  background-color: #e9fbe9;
  border-color: #52e052;
  color: #309c40;
}

.warning {
  background-color: #fff4cc;
  border-color: #ffc800;
  color: #9f6000;
}

.error {
  background-color: #fad7d4;
  border-color: #f08a81;
  color: #a94442;
}

.info {
  background-color: #d9edf7;
  border-color: #00a5f7;
  color: #31708F;
}

.danger {
  background-color: #fad7d4;
  border: 1px solid #f08a81;
  color: #a94442;
  display: inline-block;
  margin: inherit;
  padding: .5rem;
  vertical-align: bottom;
}

/* Small devices */
@media (max-width: 767px) {

  .toc {
    font-size: 3vh;
    margin-top: 2vh;
    padding: 2vw;
  }

  .header-logo {
    max-height: 9vw;
    max-width: 9vw;
    padding: 1.5vh 1.5vh .5vh;
  }

  .page-header h1 {
    font-size: 9vw;
    line-height: 10.5vw;
    padding: 1.5vh 1.5vh .5vh;
  }

  .container-title {
    background-color: #109ceb;
    color: #fff;
    font-size: 4.5vw;
    margin: -2vw -2vw 2vh;
    padding: 2vw;
  }

  .container {
    font-size: 4.5vw;
    margin-top: 2vh;
    min-height: 65vw;
    padding: 2vw;
  }

  .chart {
    min-height: 60vw;
  }

  .with-toc {
    position: relative;
    right: 5vw;
  }

  .navbar {
    font-size: 4.5vw;
  }

  .menu ul {
    font-size: 7vw;
  }

  .result-list li, .checkbox-list li {
    margin-top: 2vw;
  }

  .movie-poster {
    max-width: 40%;
  }

  .classification-logo {
    max-width: 15%;
  }

  .movie-outline {
    clear: both;
  }

  .additional-fields label {
    clear: left;
  }

  .additional-fields input {
    margin-right: 0;
  }
}