/* Gangs of Street — mobile layout (RTL) */
html { -webkit-text-size-adjust: 100%; }
img, video, iframe { max-width: 100%; height: auto; }
#top_section img,
#top_bg_repeater img,
#mailbox img {
  max-width: none;
}

.gos-admin-wrap {
  display: inline-block;
  perspective: 520px;
  vertical-align: middle;
}
.gos-admin-name {
  display: inline-block;
  color: #ff0000 !important;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  transform-style: preserve-3d;
  animation: gosAdmin3d 2.4s ease-in-out infinite;
  text-shadow:
    1px 0 0 #8b0000,
    2px 1px 0 #7a0000,
    3px 2px 0 #5c0000,
    4px 3px 0 #3d0000,
    5px 4px 6px rgba(0,0,0,.85),
    0 0 14px #ff1a1a;
}
@keyframes gosAdmin3d {
  0%   { transform: rotateY(-42deg) rotateX(8deg) scale(1); }
  40%  { transform: rotateY(38deg) rotateX(-6deg) scale(1.12); }
  70%  { transform: rotateY(-18deg) rotateX(10deg) scale(1.04); }
  100% { transform: rotateY(-42deg) rotateX(8deg) scale(1); }
}

input, select, textarea, button {
  max-width: 100%;
  box-sizing: border-box;
}
input[type=text], input[type=password], input[type=email], textarea, select {
  font-size: 16px !important;
  min-height: 40px;
  padding: 8px 10px !important;
}
input[type=submit], input[type=reset], input[type=button], button, a.new_buttons {
  min-height: 40px;
  padding: 8px 14px !important;
  font-size: 14px !important;
}

#gos-mobile-bar { display: none; }

.gos-overlay {
  display: none;
  position: fixed;
  z-index: 20050;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0,0,0,.82);
  padding: 56px 10px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
.gos-overlay.open { display: block; }
.gos-overlay-box {
  width: min(440px, 96vw);
  margin: 0 auto 24px;
  background: #111;
  border: 1px solid #444;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.6);
}
.gos-overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #8b0008;
  color: #fff;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 16px;
  border-radius: 10px 10px 0 0;
}
.gos-overlay-x {
  width: 36px;
  height: 36px;
  min-height: 36px !important;
  padding: 0 !important;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.gos-overlay-body {
  padding: 8px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}
.gos-overlay-body .menu_body,
.gos-overlay-body table {
  width: 100% !important;
  display: table !important;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 980px) {
  body {
    background-attachment: scroll !important;
    background-size: cover !important;
  }
  body.gos-sheet-open { overflow: hidden; }
  #gos-mobile-bar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 20060;
    background: #141414;
    border-bottom: 1px solid #333;
    padding: 8px;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
  }
  #gos-mobile-bar button {
    flex: 1;
    background: #8b0008;
    color: #fff;
    border: 1px solid #000;
    border-radius: 8px;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
  }
  #left_menu_cell,
  #status_div,
  td#left_menu_cell,
  td#status_div {
    display: none !important;
  }
  #content_div,
  #content_div table,
  .centerbox {
    width: 100% !important;
    max-width: 100% !important;
  }
  #login_body {
    background-size: cover !important;
    background-position: center top !important;
    background-attachment: scroll !important;
    min-height: 100vh;
    overflow-x: hidden;
  }
}

@media (max-width: 640px) {
  body, td, th, a, font {
    font-size: 14px !important;
  }
  #top_bg_repeater img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  marquee { display: block; width: 100%; }
}
