/* BMBS Tier Lists - deliberately a little ugly, 2000s-web style. */

body {
  margin: 0;
  padding: 20px 0;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 12px;
  color: #000;
  background-color: #003366;
  background-image: repeating-linear-gradient(
    45deg,
    #003366 0px,
    #003366 10px,
    #004488 10px,
    #004488 20px
  );
}

a {
  color: #0000ee;
}
a:visited {
  color: #551a8b;
}

.page-shell {
  background-color: #c0c0c0;
  border: 3px outset #e0e0e0;
}

/* --- borders / bevels ---------------------------------------------------- */

.outset {
  border: 2px outset #e0e0e0;
  background-color: #d4d0c8;
}
.inset {
  border: 2px inset #e0e0e0;
  background-color: #ffffff;
}
.ridge {
  border: 3px ridge #999999;
}
.groove {
  border: 3px groove #999999;
}

/* --- top bar -------------------------------------------------------------- */

.topbar {
  background-color: #000000;
  color: #ffffff;
}
.badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: bold;
}
.badge-outset {
  background-color: #ffff00;
  color: #000000;
  border: 2px outset #ffff99;
}
.badge-blink {
  color: #ff0000;
  background-color: #000000;
  animation: blinker 1s steps(1) infinite;
}
@keyframes blinker {
  50% {
    opacity: 0;
  }
}

/* --- header ---------------------------------------------------------------- */

.header-box {
  background-color: #000080;
}
.site-title {
  font-size: 28px;
  font-weight: bold;
  color: #ffff00;
  text-shadow: 2px 2px 0 #ff0000;
  font-family: "Comic Sans MS", Verdana, sans-serif;
}
.site-title a {
  color: #ffff00;
  text-decoration: none;
}
.site-marquee {
  font-size: 11px;
  color: #00ff00;
  background-color: #000000;
  padding: 2px;
  margin-top: 4px;
}

.rainbow-hr {
  height: 4px;
  border: 0;
  background: linear-gradient(
    to right,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
}

.back-link {
  padding: 4px 8px;
  font-size: 11px;
}

/* --- content ---------------------------------------------------------------- */

.content-box {
  background-color: #ffffff;
}

/* --- generic buttons ---------------------------------------------------------- */

.big-button,
button.big-button,
a.big-button:link,
a.big-button:visited,
a.big-button:hover,
a.big-button:active {
  display: inline-block;
  min-width: 140px;
  margin: 4px;
  padding: 10px 14px;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-weight: bold;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  color: #000000;
  border: 3px outset #ffffff;
  cursor: pointer;
}
.big-button:active,
button.big-button:active {
  border-style: inset;
}
.btn-green {
  background-color: #33cc33;
}
.btn-yellow {
  background-color: #ffee00;
}
.btn-orange {
  background-color: #ff9900;
}
.btn-red {
  background-color: #ff3333;
  color: #ffffff;
}

.link-button,
.link-button:link,
.link-button:visited,
.link-button:hover,
.link-button:active {
  display: inline-block;
  width: 88px;
  padding: 6px 2px;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  background-color: #333333;
  border: 2px outset #999999;
}

/* --- footer ------------------------------------------------------------------- */

.footer {
  background-color: #000000;
  color: #ffffff;
  font-size: 10px;
}
.visitor-counter {
  font-family: "Courier New", monospace;
}
.counter-digits {
  background-color: #000000;
  color: #00ff00;
  border: 1px inset #666666;
  padding: 1px 4px;
  letter-spacing: 2px;
}

/* --- tier board ---------------------------------------------------------------- */

.tier-board {
  border-collapse: collapse;
}
.tier-board-title {
  background-color: #000000;
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
  padding: 6px;
}
.tier-row td {
  border: 1px solid #000000;
}
.tier-label {
  width: 70px;
  text-align: center;
  padding: 4px;
  vertical-align: middle;
  color: #000000;
}
.tier-letter {
  display: block;
  font-size: 18px;
  font-weight: bold;
}
.tier-desc {
  display: block;
  font-size: 9px;
}
.tier-dropzone {
  min-height: 60px;
  padding: 4px;
  vertical-align: top;
  background-color: #f4f4f4;
}
.tier-dropzone.dragover {
  background-color: #ffffcc;
  outline: 2px dashed #333333;
}

/* Cards placed in a tier row are shown at half size with the name hidden -
   it's still available as a native tooltip (title attribute) on hover. */
.tier-dropzone .game-card {
  width: 36px;
  margin: 1px;
  padding: 1px;
}
.tier-dropzone .game-card .cover img,
.tier-dropzone .game-card .cover svg {
  width: 34px;
  height: 49px;
}
.tier-dropzone .game-card .game-name {
  display: none;
}

.tier-green .tier-label {
  background-color: #33cc33;
}
.tier-yellow .tier-label {
  background-color: #ffee00;
}
.tier-orange .tier-label {
  background-color: #ff9900;
}
.tier-red .tier-label {
  background-color: #ff4500;
  color: #ffffff;
}
.tier-darkred .tier-label {
  background-color: #990000;
  color: #ffffff;
}

/* --- game pool ------------------------------------------------------------------ */

.pool-grid-wrap {
  padding: 6px;
  height: 760px;
  overflow-y: auto;
  background-color: #eeeeee;
  text-align: left;
}
.pool-grid-wrap.dragover {
  outline: 2px dashed #333333;
}

.game-card {
  display: inline-block;
  vertical-align: top;
  width: 96px;
  margin: 2px;
  padding: 2px;
  background-color: #ffffff;
  border: 2px outset #cccccc;
  text-align: center;
  cursor: grab;
  user-select: none;
}
.game-card.dragging {
  opacity: 0.4;
}
.game-card .cover img,
.game-card .cover svg {
  width: 92px;
  height: 132px;
  display: block;
  margin: 0 auto;
  background-color: #000000;
}
.game-card .game-name {
  font-size: 9px;
  margin-top: 2px;
  line-height: 1.2;
  word-wrap: break-word;
}

.save-status {
  margin-top: 6px;
  font-weight: bold;
  color: #006600;
}

.pool-cell .big-button {
  min-width: 70px;
  padding: 8px 6px;
  font-size: 11px;
}

/* --- statistics ------------------------------------------------------------------- */

.stats-table {
  border-collapse: collapse;
  margin-bottom: 10px;
}
.stats-table th,
.stats-table td {
  border: 1px solid #999999;
  padding: 3px 6px;
  font-size: 11px;
}
.stats-section-title {
  background-color: #000080;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
}
.stats-header {
  background-color: #d4d0c8;
}
.stat-row-a {
  background-color: #ffffff;
}
.stat-row-b {
  background-color: #f0f0f0;
}
.stat-rank,
.stat-avg,
.stat-count {
  text-align: center;
}
