@media only screen and (max-width: 900px) {
  #mobileCatImg {
    display: block;
    height: 2em;
    margin-left: 16px;
    margin-top: 7px;
  }

  #mobileCatSelector {
    display: block;
    width: 90%;
    background-color: white;
    margin-left: 20px;
    margin-bottom: 10px;
    padding: 0.7em;
    background-position-y: 0em;
    margin-top: 8px;
  }

  .element {
    display: none;
  }
}

@media only screen and (max-width: 600px) {
  body {
    grid-template-rows: 10fr 80fr 8fr;
  }

  #mobileCatSelector {
    padding: 1.7em;
    background-position-y: 1em;
    margin-top: 0;
  }

  video {
    width: 115%;
    margin: -20px;
  }

  footer {
    display: none;
  }

  table {
    width: 100%;
  }

  li:hover {
    filter: brightness(100%);
  }

  #darkenBackground {
    display: none !important;
    position: relative;
    width: 0;
    height: 0;
  }

  #objects {
    bottom: 8vh;
  }

  .nav-top {
    display: none;
  }

  #deviceSelection {
    margin-bottom: 10px;
    background-color: white;
  }

  .scannSettings {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 8vh;
    padding: 10px;
    display: block;
    width: 100%;
    background-color: #f9f9f9;
    border-top: 1px solid #e9e9e9;
  }

  .grid-3 {
    background-color: #f9f9f9;
    border-bottom: 1px solid #e6e6e6;
  }

  .category-selection {
    margin-top: 10px;
  }

  .main-container {
    display: block;
  }

  .mobile_item_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3em;
    background-color: white;
    display: none;
    border-bottom: 1px solid #dfdfdf;
    background-color: #f9f9f9;
  }

  .mobile_item_overlay p {
    margin-top: 0.6em;
    margin-left: 10px;
    text-align: left;
    color: #4c4c4c;
    cursor: pointer;
    font-size: 1.2em;
  }

  .Object_element {
    padding-top: 10px;
  }

  .Object_element p {
    font-size: 1em;
  }

  .object-view {
    position: absolute;
    top: 3em;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    display: none;
  }

  .object-selector {
    position: absolute;
    top: 4.7em;
    left: 0;
    right: 0;
    bottom: 0;
  }

  li {
    padding: 14px;
    font-size: 1.2em;
  }

  .modal {
    left: 0;
    right: 0;
    top: 0;
    bottom: 8vh;
    border: none;
  }

  .modal-top {
    display: none;
  }

  .modal-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 78vh;
    padding-top: 7vh;
    max-height: unset;
  }

  .mobile-navigation-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7vh;
    border-bottom: 1px solid #dfdfdf;
    background-color: #f9f9f9;
    display: block;
    z-index: 15;
  }

  .mobile-navigation-controls p {
    margin-top: 0.6em;
    margin-left: 10px;
    text-align: left;
    color: #4c4c4c;
    cursor: pointer;
    font-size: 1.2em;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8vh;
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    box-shadow: -1px 0px 20px 3px #f1f1f1;
    display: block;
    background-color: white;
    z-index: 20;
  }

  .mobile-nav-button img {
    width: 2em;
    display: block;
    margin: auto;
    margin-top: 8px;
  }

  .mobile-nav-button {
    margin-bottom: 10px;
  }

  #search_mobile {
    border: 1px solid transparent;
    background-color: #f1f1f1;
    padding: 10px;
    font-size: 16px;
    width: 94%;
    outline: none;
  }

  form {
    margin-left: 0;
    margin-top: 2em;
  }

  .autocomplete {
    width: 100%;
  }

  #manual_info_mobile {
    position: relative;
    background-color: #f9f9f9;
    margin-top: -20px;
    margin-left: -20px;
    margin-right: -20px;
  }

  #manual_info_mobile h2 {
    margin-left: 15px;
    padding-top: 20px;
  }

  #manual_info_mobile select {
    position: absolute;
    right: -15px;
    top: 10px;
    background-color: white;
  }

  #manual_info_mobile iframe {
    width: 100%;
    height: 80vh;
    background-color: white;
    border: none;
    border-top: 5px solid #24292e;
  }

  .object-selector-search input {
    font-size: 1.1em;
    padding: 10px;
  }

  .object-selector-search i {
    right: 24px;
    font-size: 1.3em;
    top: 11px;
  }

  #documents_search_q {
    font-size: 1em;
    margin-top: 10px;
  }

  .search_manuals a {
    display: block;
    text-align: center;
    margin-top: 10px;
  }

  #doc_container div {
    display: block;
    padding: 5%;
    width: 84%;
    max-width: 90vw;
    margin: auto;
  }

  .barcode_controls {
    position: relative;
    margin-left: 20px;
    margin-top: -20px;
  }

  #installMessage {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 10vh;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
  }
}
