/*
 * Local archive adaptations for the ProjectMC January 2013 About page.
 *
 * The recovered stylesheet is loaded first and remains byte-for-byte intact.
 * These rules only rebase local assets, contain the old fixed layout, and fix
 * selectors/layout details that otherwise break in the tribute-site preview.
 */

html {
  min-width: 760px;
  background: #f6f6ea;
}

body {
  min-width: 760px;
  color: #222;
  background-color: #f6f6ea;
  background-image: url("./images/pattern.jpg");
  font-family: "Lucida Sans", Arial, sans-serif;
}

.archive-copy-note {
  width: 100%;
  margin: 0;
  padding: 8px 14px;
  box-sizing: border-box;
  color: #dcecf6;
  background: #043f64;
  border-bottom: 1px solid #79a2ba;
  font: 12px/1.45 Arial, sans-serif;
  text-align: center;
}

.archive-copy-note strong {
  color: #fff;
}

#background,
#content {
  width: min(1000px, 100%);
}

#content {
  display: grid;
  grid-template-columns: minmax(0, 695px) 275px;
  grid-template-areas:
    "header-left header-right"
    "navigation navigation"
    "main sidebar"
    "footer footer";
  column-gap: 30px;
  align-items: start;
}

#header_left {
  grid-area: header-left;
  position: relative;
  width: 100%;
  min-height: 180px;
}

#header_right {
  grid-area: header-right;
  width: 245px;
}

.header_logo p {
  margin-top: 24px;
}

.header_ip p {
  margin-bottom: 8px;
}

.header_image {
  position: absolute;
  top: 11px;
  right: 42px;
  width: 150px;
  height: 150px;
  margin: 0;
  object-fit: contain;
}

#loginsquare {
  box-sizing: border-box;
}

#login_fields input:disabled {
  color: #444;
  background: #eee;
  opacity: 1;
}

#navbar {
  grid-area: navigation;
  float: none;
  clear: both;
  position: relative;
  z-index: 10;
  margin-top: -5px;
}

#navbar > ul > li > a,
#navbar > ul > li > a:visited,
#navbar > ul > li > a:active {
  color: #3c3d3e;
}

#navbar > ul > li > ul {
  z-index: 20;
  margin: 0;
  padding: 0;
}

#navbar > ul > li > ul > li > a,
#navbar > ul > li > ul > li > a:visited,
#navbar > ul > li > ul > li > a:active {
  color: #777;
}

#content_background {
  grid-area: main;
  float: none;
  width: auto;
  min-height: 620px;
}

#content_text {
  box-sizing: border-box;
  width: 100%;
  padding: 16px 18px 28px;
  line-height: 1.55;
}

#content_text h2 {
  margin-top: 4px;
}

#content_text table {
  border-collapse: collapse;
}

#content_text th,
#content_text td {
  padding: 7px 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

#sidebar_backgroundalt {
  grid-area: sidebar;
  float: none;
  width: 275px;
  height: auto;
  min-height: 620px;
  overflow: hidden;
}

#sidebar_backgroundalt > h2,
#sidebar_backgroundalt > #server_status,
#sidebar_backgroundalt > #twitter_container {
  margin-right: 5px;
  margin-left: 5px;
}

#server_status {
  box-sizing: border-box;
  padding: 9px;
  line-height: 1.9;
}

.status-icon {
  width: 18px;
  height: 18px;
  margin-left: 5px;
  vertical-align: -4px;
}

.sidebar_image {
  display: block;
  float: none;
  width: calc(100% - 10px);
  height: auto;
  margin: 16px 5px 20px;
}

#twitter_container {
  box-sizing: border-box;
  width: calc(100% - 10px);
}

.tweet-container {
  padding: 8px;
}

#content_footer {
  grid-area: footer;
  float: none;
  box-sizing: border-box;
  margin-top: 30px;
}

#content_footer a,
#content_footer a:visited,
#content_footer a:active {
  color: #fff;
}

#content_clear {
  display: none;
}

@media (max-width: 900px) {
  #content {
    grid-template-columns: minmax(0, 1fr) 245px;
    column-gap: 20px;
  }

  .header_image {
    right: 10px;
    width: 125px;
    height: 125px;
  }
}
