
@media (max-width: 1200px) {
  #headerbar-menu a svg {
    display: inline;
  }
  #headerbar-dummy {
    height: 75px;
  }
  #headerbar {
    height: 75px;
  }
  #headerbar-controlmenu {
    right: 12px;
  }
  #headerbar-menu {
    top: 45px;
  }
  #main {
    padding-top: 75px;
  }
  #sidebar {
    background-color: rgba(243, 243, 243, 0.95);
    width: 320px;
    padding-left: 15px;
    top: 75px;
    height: calc(100% - 75px);
    padding-top: 5px;
    padding-bottom: 55px;
  }
  #headerbar-logo {
    position: absolute;
    left: 20px;
    top: 8px;
  }
  #headerbar-logo-us {
    position: absolute;
    left: 20px;
    top: 3px;
    width: 165px;
    height: 30px;
    background: top left url('../img/logo_asurl.svg') no-repeat;
    background-size: 165px 30px;
  }
  #headerbar-customizemenu {
    width: 270px;
    top: 42px;
    right: 4px;
  }
  #headerbar-customizemenu #open-main {
    display: block;
  }
  #toggle-info.active {
    height: 26px;
  }
  #headerbar-viewmenu {
    right: auto;
    left: 0;
    top: 42px;
    width: 220px;
  }
  /*#tourbox {
    height: 40px;
    padding-top: 35px;
  }
  #tourbox-clickbox {
    height: 40px;
  }
  #tourbox-icon {
    width: 30px;
    height: 30px;
    background-size: 30px 60px;
    top: 5px;
  }
  #tourbox-header {
    top: 9px;
  }*/
  #headerbar-menu {
    right: 105px;
  }
  #tourbox.active {
    height: 260px;
  }
  #sidebar h1 {
    margin-bottom: 5px;
  }
  .interface-group {
    height: auto;
    padding: 9px 0;
  }
  .interface-group span.config-title {
    position: relative;
    display: block;
    height: 25px;
    width: 250px;
    top: 0;
    left: 0;
    margin: 5px 0 -5px 0;
  }
  .interface-group .config-unit-separate {
    display: block;
    margin: -10px 0 5px 0;
  }
  .interface-group .config-unit br {
    display: none;
  }
  .interface-group select {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
  }
  .interface-group input {
    position: relative;
    display: block;
    float: left;
    top: 0;
    left: 0;
  }
  .interface-group .config-slider {
    display: block;
    position: relative;
    top: 0;
    left: 0;
  }
  .config-slider .note-container {
    right: 100px;
  }
  .additional-info-wrapper {
    left: auto;
    top: 12px;
    right: 20px;
  }
  .interface-group-quickstate .additional-info-wrapper {
    right: 18px;
  }
  .additional-info-text {
    left: auto;
    right: 5px;
  }
  #license-text {
    font-size: 12px;
    line-height: 1.2em;
  }
  #credits {
    right: 0;
  }
  #add-cars-note {
    position: absolute;
    left: 15px;
    top: 89px;
    width: calc(100% - 36px);
  }
}

@media (max-width: 500px) {
  body {
    font-size: 13px;
  }
  #search-note {
    display: none;
  }
  #headerbar-dummy {
    height: 105px;
  }
  #headerbar {
    height: 105px;
  }
  #sidebar {
    width: 260px;
    top: 105px;
    height: calc(100% - 105px);
    padding-top: 5px;
    padding-bottom: 55px;
  }
  #sidebar h2 {
    margin: 0.8em 0 0.5em 0;
  }
/*  #tourbox {
    height: 38px;
    padding-top: 33px;
  }*/
  #main {
    padding-top: 105px;
  }
/*  #tourbox-clickbox {
    height: 38px;
  }*/
  #headerbar-logo {
    left: 12px;
  }
  #headerbar-viewmenu {
    top: 38px;
    left: auto;
    right: 8px;
  }
  #headerbar-controlmenu {
    top: 5px;
    right: 8px;
  }
  #headerbar-customizemenu {
    width: 250px;
    top: 72px;
    right: 0;
  }
  #open-main {
    width: 110px;
  }
  #open-customize {
    width: 130px;
  }
  #headerbar-tabmenu {
    right: -10px;
  }
  .legend-entry {
    padding-top: 0.4em;
    padding-bottom: 0.4em;
  }
  .legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 7px;
    margin-right: 7px;
  }
  .highlighted-dot {
    width: 16px;
    height: 16px;
    border-radius: 8px;
    margin-right: 8px;
  }
  .legend-dot.average {
    margin-right: 7px;
  }
  .quicksetting-paragraph {
    padding-top: 0.3em;
    padding-bottom: 0.3em;
    margin-top: 0.4em;
    margin-bottom: 0.4em;
  }
  .quicksetting-check {
    padding-top: 0.15em;
  }
.quickstate-selection a {
  width: calc(20% - 1px);
}
  .highlighted-car-entry {
    padding-top: 0.3em;
    padding-bottom: 0.3em;
    margin-top: 0.1em;
    margin-bottom: 0.1em;
  }
  #headerbar-menu {
    right: 7px;
  }
/*  #tourbox-header {
    left: 20px;
  }
  #tourbox.active {
    font-size: 12px;
  }
  #tourbox-icon {
    display: none;
  }
  #tourbox.active #tourbox-icon {
    display: block;
  }*/
  .interface-group {
    height: auto;
    padding: 9px 0;
  }
  .interface-group span.config-title {
    position: relative;
    display: block;
    height: 25px;
    width: 250px;
    top: 0;
    left: 0;
    margin: 5px 0 -5px 0;
  }
  .interface-group .config-unit-separate {
    display: block;
    margin: -10px 0 5px 0;
  }
  .interface-group .config-unit br {
    display: none;
  }
  .interface-group select {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
  }
  .interface-group input {
    position: relative;
    display: block;
    float: left;
    top: 0;
    left: 0;
  }
  .interface-group .config-slider {
    display: block;
    position: relative;
    top: 0;
    left: 0;
  }
  .config-slider .note-container {
    right: 40px;
  }
  #search-group input {
    width: 190px;
  }
  #credits-inner {
    font-size: 13px;
  }
  #credits-newline {
    display: inline;
  }
  #credits-full {
    padding: 2px 5px;
  }
  #license-text {
    font-size: 11px;
    line-height: 1em;
  }
  #tourbox {
    height: 220px;
    margin-top: -110px;
    top: calc(100% - 250px + 136px);
    left: auto;
    right: 1%;
    z-index: 150;
    max-width: 98%;
  }
  #add-cars-note {
    position: absolute;
    left: 12px;
    top: 124px;
    width: calc(100% - 24px);
  }
  #cookie-consent {
    width: 100%;
    bottom: 5px;
    right: 0;
  }

@media screen and (max-width: 500px) and (-webkit-min-device-pixel-ratio:0) { 
  select,
  textarea,
  input,
  input[type="text"] {
    font-size: 14px;
  }
}