/*
  File name: style.css
  Resolution: 750px or 1000px width. center or left aligned
  Author: ORKFiA
  What to include: Only 'blueprints'. (Positioning, size, alignment of data, fonts and font sizes etc)
  What not to include: Details that fit in color specific css-files. (Colors, images, etc.)
  Other: Rename file to new version after big changes. Makes implementing quicker for users.
*/

/* The banner's lettering (#1370): fetched only by a page that shows a cloth in that face. */
@font-face { font-family: 'Jacquard 12'; src: url('/fonts/Jacquard12-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Jacquarda Bastarda 9'; src: url('/fonts/JacquardaBastarda9-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Jersey 10'; src: url('/fonts/Jersey10-Regular.woff2') format('woff2'); font-display: swap; }

/*
  Start new layout.
  Author: Damadm00, ORKFiA
*/

html {
  height: 100%;
  overflow: hidden;
}

/* Verdana first, as the 2008 design assumed. It is a Windows/Mac font, so a
   Linux browser — a player's, or the headless Chromium we screenshot with — has
   neither it nor a close match, and the generic `sans-serif` there lands on the
   browser's default standard font, noticeably narrower than the screenshot.
   DejaVu Sans is near-universal on Linux and wide-set like Verdana, so it
   catches that case first. All three stylesheets carry the same three names. */
body {
  height: 100%;
  padding: 0;
  margin: 0;
  font: 11px verdana, "DejaVu Sans", sans-serif;
}

a:link,
a:visited,
a:hover,
a:focus,
a:active {
  font-weight: bold;
  text-decoration: none;
}

h1 {
  font: 1.8em verdana, "DejaVu Sans", sans-serif;
  letter-spacing: 1px;
  margin: 10px;
}

h2 {
  font: 1.5em verdana, "DejaVu Sans", sans-serif;
  letter-spacing: 1px;
  margin: 10px;
}

h3 {
  font: bold 1em verdana, "DejaVu Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 1em 10px 1em 10px;
}

hr {
  border: 0;
  height: 1px;
  margin: 0 0 10px;
}

blockquote {
  margin: 5%;
}

form {
  margin: 10px;
}

input,
textarea {
  margin: 0;
  padding: 0 0 0 2px;
}

#portal {
  position: absolute;
  top: 120px;
  bottom: 32px;
  left: 0;
  width: 100%;
  padding: 0;
  text-align: left;
  overflow: auto;
}

/* End new layout */
/* Start 2 column layout */

#columns {
  padding: 0;
  width: 710px;
  margin: 0 auto;
}

#columns #leftcolumn {
  width: 350px;
  text-align: left;
  float: left;
}

#columns #rightcolumn {
  width: 350px;
  text-align: right;
  float: right;
}

.clear {
  clear: both;
}

.clear hr {
  display: none;
}

/* End 2 column layout */

/* Internal Affairs advisor: bare small tables flow three-up. The width holds
   exactly three per row, so each group lands on its own row without separators. */
#advisorColumns {
  width: 870px;
  margin: 0 auto;
  text-align: center;
}

#advisorColumns table.small {
  display: inline-table;
  vertical-align: top;
  margin: 0 6px 12px;
}
/* Start new classes for tables */

table {
  margin: 0 auto;
  font-weight: bold;
  text-align: center;
  border-style: solid;
  border-width: 1px;
}

table.big {
  width: 710px;
}

div.tableLinkBig {
  width: 710px;
  padding-bottom: 2px;
  text-align: right;
  margin: 0 auto;
}

table.medium {
  width: 405px;
}

div.tableLinkMedium {
  width: 405px;
  padding-bottom: 2px;
  text-align: right;
  margin: 0 auto;
}

table.small {
  width: 270px;
}

div.tableLinkSmall {
  width: 270px;
  padding-bottom: 2px;
  text-align: right;
  margin: 0 auto;
}

table.mini {
  width: 135px;
}

div.tableLinkMini {
  width: 135px;
  padding-bottom: 2px;
  text-align: right;
  margin: 0 auto;
}

tr.header {
}

tr.header th {
  padding: 3px 1px;
  /*border-bottom-style: solid;
  border-bottom-width: 1px;*/
}

tr.subheader {
}

tr.subheader th {
  text-align: left;
  padding: 3px 1px;
  /*border-bottom-style: solid;
  border-bottom-width: 1px;*/
}

tr.subheader td {
  text-align: right;
  padding: 3px 1px;
  /*border-bottom-style: solid;
  border-bottom-width: 1px;*/
}

tr.subheader th.center {
  text-align: center;
}

tr.subheader th.right {
  text-align: right;
}

tr.subheader td.center {
  text-align: center;
}

tr.subheader td.left {
  text-align: left;
}

tr.data th {
  padding: 2px 1px;
  text-align: left;
}

tr.data th.center {
  text-align: center;
}

tr.data td {
  padding: 2px 1px;
  text-align: right;
  font-weight: normal;
}

tr.data td div {
  overflow: auto;
}

tr.data td.center {
  text-align: center;
}

tr.data td.left {
  text-align: left;
}

tr.data td.incoming {
  font-weight: bold;
}

tr.message td {
  padding: 2px 1px;
  text-align: left;
  font-style: italic;
  font-weight: normal;
}

th.bsup,
td.bsup {
  border-top-style: solid;
  border-top-width: 1px;
}

th.bsdown,
td.bsdown {
  border-bottom-style: solid;
  border-bottom-width: 1px;
}

th.bsright,
td.bsright {
  border-right-style: solid;
  border-right-width: 1px;
}

th.bsleft,
td.bsleft {
  border-left-style: solid;
  border-left-width: 1px;
}

/* End classes for tables */
/* Start classes for texts */

#textBig,
#textMedium,
#textSmall,
#text,
div.text {
  text-align: left;
  margin: 10px auto 0;
  border-top-style: solid;
  border-top-width: 1px;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  background-attachment: fixed;
}

#text,
div.text {
  width: 100%;
}

#textBig {
  width: 710px;
}

#textMedium {
  width: 405px;
}

#textSmall {
  width: 270px;
}

.militstats {
  font-size: 0.8em;
}

.center h2,
.center h3 {
  margin: 10px 0;
}

#textBig p,
#textMedium p,
#textSmall p,
#text p,
.text p {
  line-height: 1.8em;
  font-family: Verdana, sans-serif;
  margin: 10px;
}

/* A report's `Label: value` rows: set closer than prose, under a small heading. */
#textMedium p.rows {
  line-height: 1.5em;
}

#textMedium p.rows .heading {
  font-size: 0.85em;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.center p {
  line-height: 1.8em;
  font-family: Verdana, sans-serif;
  margin: 10px 0;
}

.signature {
  text-align: right;
  font-style: italic;
  opacity: 0.85;
  margin-top: 20px;
}

#textBig ul,
#textMedium ul,
#textSmall ul,
#text ul,
.text ul {
  line-height: 1.8em;
  font-family: Verdana, sans-serif;
  margin: 10px 0;
  padding: 0 30px;
}

#textBig ol,
#textMedium ol,
#textSmall ol,
#text ol,
.text ol {
  line-height: 1.8em;
  font-family: Verdana, sans-serif;
  margin: 10px 0;
  padding: 0 30px;
}

#textBig a:hover,
#textMedium a:hover,
#textSmall a:hover,
#text a:hover,
.text a:hover {
  border-bottom-style: dotted;
  border-bottom-width: 1px;
}

/* End classes for texts */
/* Start classes for other elements */

#center,
div.center {
  margin: 0 auto;
  text-align: center;
}

/* A page's nav strip (RendersNavStrip): one line of space under it, which the next block's own top margin collapses into. */
div.center.navStrip {
  margin-bottom: 16px;
  margin-bottom: 1lh;
}

/* Start forms elements */

label {
    font-weight: bold;
}

label.hidden {
  margin: 0;
  padding: 0;
  width: 0;
  height: 0;
  visibility: hidden;
  display: none;
}

/* End classes for other elements */
/* Specific layout&design variables */

a:visited.forum {
  font-weight: normal;
}

a.header,
strong.header {
  padding-left: 10px;
}

.bold {
  font-weight: bold;
}

.incoming {
  font-weight: bold;
}

.pd {
  padding: 1px;
}

.padding {
  padding: 1px;
}

.nleft {
  border-left-width: 0;
}

.nright {
  border-right-width: 0;
}

.strike {
  text-decoration: line-through;
}

/* End general layout&design variables */
/* CSS rules for main inc below (Martel) */

a:link.gloss,
a:visited.gloss,
a:hover.gloss,
a:focus.gloss,
a:active.gloss {
  text-decoration: none;
  border-bottom-width: 1px;
  border-bottom-style: dotted;
}

/* Game Manual overlay (#gameManual) — pure CSS, :target-driven. Markup from
   ManualOverlay::html(); any <a href="#gameManual"> opens it, the backdrop
   and the X (links to #!) close it. The panel fits manual.css's 1125px
   column plus scrollbar room; min() keeps it inside narrow viewports. */
div.manualOverlay {
  display: none;
}

div.manualOverlay:target {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

a.manualOverlayBackdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

div.manualOverlayPanel {
  position: absolute;
  top: 2%;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, 96vw);
  background: #FFFFFF;
  border: 1px solid #3F4F69;
}

div.manualOverlayPanel iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

a.manualOverlayClose {
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font: bold 13px Verdana, Arial, Helvetica, sans-serif;
  color: #FFFFFF;
  background: #3F4F69;
  text-decoration: none;
}

/* Phones (the site's 860px breakpoint): fill the screen, and give the X a
   touch-sized strip of its own so it doesn't sit on the manual's nav. */
@media (max-width: 860px) {
  div.manualOverlayPanel {
    top: 0;
    bottom: 0;
    width: 100%;
    padding-top: 36px;
    border: 0;
    background: #3F4F69;
  }

  a.manualOverlayClose {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 20px;
  }
}
