/* Added on top of the original 2003-2005 styles. Desktop look is untouched apart from the banner. */

#ls-banner {
  all: initial;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: #0b0018;
  border-bottom: 2px solid #9dff00;
  font: bold 12px/1.4 Verdana, Tahoma, sans-serif;
  color: #fff200;
  letter-spacing: .5px;
}
#ls-banner a,
#ls-banner a:link,
#ls-banner a:visited {
  all: initial;
  font: bold 12px/1.4 Verdana, Tahoma, sans-serif;
  color: #19f0ff;
  text-decoration: underline;
  cursor: pointer;
}
#ls-banner a:hover { color: #ff2fd0; }
#ls-banner span { color: #fff200; }

/* The Night Elf theme's background art wasn't saved; keep its panels readable. */
.bodycr, .bodytable { background-color: rgba(20, 20, 20, .85); }

img[src$="lost.svg"] { max-width: 220px; height: auto; }

@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; }
  body { margin: 0 !important; }

  /* Stack the three e107 columns: news first, menus after. */
  table.ls-layout,
  table.ls-layout > tbody { display: block !important; width: 100% !important; }
  table.ls-layout > tbody > tr { display: flex !important; flex-direction: column; }
  table.ls-layout > tbody > tr > td {
    display: block !important;
    width: auto !important;
    padding: 6px !important;
  }
  table.ls-layout > tbody > tr > td:nth-child(2) { order: -1; }

  td, th, div, p, span, a, li, blockquote, .bodycr, .bodytable, .defaulttext, .mediumtext {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }
  .smalltext, .smallblacktext { font-size: 13px !important; }
  .caption, .caption2, .captiontext { font-size: 18px !important; font-weight: bold; }

  td, div { overflow-wrap: anywhere; }
  img { max-width: 100% !important; height: auto !important; }
  table { max-width: 100% !important; }
  input, textarea, select { max-width: 100% !important; font-size: 16px !important; }

  /* Decorative 30px theme side-columns just eat space on a phone. */
  td.bodylt, td.bodyrt, td.toplf, td.toprt, td.bottomlt, td.bottomrt { display: none !important; }
}

#ls-frozen {
  all: initial;
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 99999;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  background: #fff200;
  color: #000;
  border: 3px outset #fff7a0;
  font: bold 14px/1.4 "Comic Sans MS", "Comic Neue", cursive, sans-serif;
  text-align: center;
  box-shadow: 4px 4px 0 #ff2fd0;
}
