/* Mobile/Tablet safe overrides for legacy tibiacom layout */
@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden !important;
  }

  #ArtworkHelper,
  #Bodycontainer {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  #ContentRow {
    position: relative !important;
    top: 16px !important;
    display: block !important;
    padding: 0 8px !important;
  }

  #LeftArtwork,
  #RightArtwork,
  #ThemeboxesColumn {
    display: none !important;
  }

  /* Keep menu proportions (do not stretch graphics) */
  #MenuColumn {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 180px !important;
    margin: 0 auto 12px auto !important;
  }

  /* Main content below menu */
  #ContentColumn {
    position: relative !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow-x: auto !important;
  }

  /* Only normalize core content container, avoid forcing all tables/images */
  .TableContainer {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  pre,
  code {
    overflow-x: auto !important;
  }
}
