/*
 * The upstream theme is shared by several xc_toolbox sites. These small
 * overrides restore the game.xc199.com layout without changing its game pages.
 */
.left-nav {
  justify-content: flex-start;
}

.left-nav .nav {
  margin-top: 0.5rem;
}

.left-nav .logo img,
.left-nav .logo .logo_img {
  display: inline-block;
  width: 7.55rem;
  height: 2.7rem;
  margin-top: 1.05rem;
  object-fit: contain;
}

.left-nav .logo .wap_logo {
  display: none;
}

.head_div .logo_img_waps {
  width: 7.55rem;
  height: 2.7rem;
  object-fit: contain;
}

.head_div .search_div {
  top: 0.75rem;
  right: 7rem;
  width: 12rem;
}

.head_div .headbutdiv .search_div {
  top: 0;
  right: 0;
}

.head_div .search,
.head_div .search input {
  height: 1.5rem;
  line-height: 1.5rem;
}

.footer {
  clear: both;
  margin: 1rem 0 0 12rem;
  padding: 0;
  border-top: 0;
}

.footer .center {
  width: 100%;
  max-width: 63.3rem;
  margin: 0 auto;
  padding: 1rem 2rem 0;
  border-top: 1px solid #e8e8fd;
}

.ud-footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2rem;
  color: #9099a5;
  font-size: 0.6rem;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .main {
    margin-top: 3rem;
  }

  .left-nav .logo img,
  .left-nav .logo .logo_img {
    width: 7.55rem;
    height: 2.7rem;
    margin-top: 1.05rem;
  }

  .head_div .search_div {
    top: 0.75rem;
    right: 6.5rem;
    width: 9.6rem;
  }

  .head_div .headbutdiv .search_div {
    top: 0;
    right: 0;
  }

  .footer {
    margin-left: 0;
  }

  .footer .center {
    padding: 0.9rem 1rem 0;
  }

  .ud-footer-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .head_div > a {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10001;
  }

  .head_div .logo_img_waps {
    width: 6.95rem;
    height: 2.7rem;
    margin: -0.45rem 0 0 0.375rem;
  }

  .head_div > .wapbut {
    left: auto;
    right: 3rem;
    top: 0.75rem;
    z-index: 10002;
    display: grid;
    width: 1.5rem;
    height: 1.5rem;
    place-items: center;
    font-size: 0.9rem;
    line-height: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 100%;
  }

  .headbutdiv,
  .headbutdiv.headbutdiv_nologins {
    top: 0.75rem;
    right: 0.5rem;
    display: flex;
    width: auto;
    height: 1.5rem;
    align-items: center;
  }

  .headbutdiv .search_div {
    display: none;
  }

  .headbutdiv .headerbut {
    float: none;
    margin-left: 0.25rem;
  }

  .moder {
    display: grid;
    width: 100%;
    margin: 0;
    padding: 0.5rem 0 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .moder li {
    width: auto;
    padding: 0;
  }
}
