/*
 * MUD Lineage Tour website. Loaded after Evennia's website.css and Bootstrap 4,
 * so it only has to restate what it changes: the classic ANSI terminal palette
 * (black, white, bright white, green, bright green, bright black for rules and
 * muted text), monospace type throughout, and the tour's own page pieces (tour-*).
 */

:root {
  --tour-bg: #000000;
  --tour-panel: #0a0a0a;
  --tour-panel-2: #111111;
  --tour-line: #555555;
  --tour-text: #aaaaaa;
  --tour-bright: #ffffff;
  --tour-muted: #777777;
  --tour-green: #00aa00;
  --tour-green-bright: #55ff55;
  --tour-mono: "DejaVu Sans Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

body {
  background-color: var(--tour-bg);
  color: var(--tour-text);
  font-family: var(--tour-mono);
}

h1, h2, h3, h4 {
  font-family: var(--tour-mono);
  color: var(--tour-bright);
  font-weight: bold;
}

a {
  color: var(--tour-green);
}

a:hover {
  color: var(--tour-green-bright);
}

code {
  font-family: var(--tour-mono);
  color: var(--tour-green-bright);
  background: var(--tour-panel-2);
  padding: 0.1em 0.35em;
  border-radius: 0;
}

.text-muted {
  color: var(--tour-muted) !important;
}

/* Menu */

.navbar {
  background-color: var(--tour-bg);
  border-bottom: 1px solid #333333;
  font-family: var(--tour-mono);
  font-weight: normal;
  padding: 0 1.25rem;
  min-height: 3.5rem;
  align-items: center;
  position: relative;
}

.navbar .navbar-brand {
  color: var(--tour-bright);
  font-size: 1rem;
  line-height: 3.5rem;
  height: 3.5rem;
  margin: 0 2rem 0 0;
  padding: 0;
}

.tour-prompt {
  color: var(--tour-green);
}

.navbar .navbar-collapse {
  justify-content: flex-end;
}

.navbar .navbar-nav {
  align-items: center;
}

.navbar .navbar-nav li {
  display: flex;
  align-items: center;
}

.navbar .nav-link,
.navbar .btn-link {
  color: var(--tour-text);
  font-family: var(--tour-mono);
  font-weight: normal;
  font-size: 1rem;
  line-height: 3.5rem;
  height: 3.5rem;
  padding: 0 0.75rem;
  border: none;
  margin: 0;
}

.navbar .nav-link:hover,
.navbar .btn-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--tour-green);
  text-underline-offset: 0.3em;
}

.navbar .nav-link:hover,
.navbar .btn-link:hover {
  color: var(--tour-bright);
}

.navbar-dark .navbar-nav .nav-link.tour-nav-play {
  background: var(--tour-green);
  color: var(--tour-bg);
  font-weight: bold;
  line-height: 2.25rem;
  height: 2.25rem;
  padding: 0 1rem;
  margin-left: 1rem;
}

.navbar-dark .navbar-nav .nav-link.tour-nav-play:hover {
  background: var(--tour-green-bright);
  color: var(--tour-bg);
  text-decoration: none;
}

.navbar .navbar-toggler {
  border-color: var(--tour-line);
}

/* Stock pieces (help pages, forms, messages) on the dark background */

.card {
  background-color: var(--tour-panel);
  border-color: var(--tour-line);
  border-radius: 0;
  color: var(--tour-text);
}

.card-header {
  background-color: var(--tour-panel-2);
  border-color: var(--tour-line);
}

.list-group-item {
  background-color: var(--tour-panel);
  border-color: var(--tour-line);
  color: var(--tour-text);
}

.table {
  color: var(--tour-text);
}

.table td,
.table th,
.table thead th {
  border-color: var(--tour-line);
}

.form-control {
  background-color: var(--tour-bg);
  border-color: var(--tour-line);
  border-radius: 0;
  color: var(--tour-text);
  font-family: var(--tour-mono);
}

.form-control:focus {
  background-color: var(--tour-bg);
  border-color: var(--tour-green);
  color: var(--tour-bright);
  box-shadow: none;
}

.footer {
  background-color: var(--tour-panel);
  border-top: 1px solid var(--tour-line);
}

/* The button */

a.playbutton,
a.playbutton:visited {
  background: var(--tour-green);
  color: var(--tour-bg);
  border: none;
  text-shadow: none;
  box-shadow: none;
  font-family: var(--tour-mono);
  font-weight: bold;
  font-size: 1.25rem;
  padding: 0.6em 1.6em;
  border-radius: 0;
}

a.playbutton:hover,
a.playbutton:active {
  background: var(--tour-green-bright);
  color: var(--tour-bg);
}

/* Front page */

.tour-hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--tour-line);
  text-align: left;
}

.tour-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.tour-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 0.15em;
  vertical-align: -0.1em;
  background: var(--tour-green);
  animation: tour-blink 1.1s steps(2, start) infinite;
}

@keyframes tour-blink {
  to { visibility: hidden; }
}

.tour-hero .lead {
  color: var(--tour-green-bright);
}

.tour-hero-text {
  margin-bottom: 1.5rem;
}

.tour-note {
  color: var(--tour-muted);
  font-size: 0.95rem;
}

.tour-section {
  padding: 2rem 0;
}

.tour-wings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.tour-wing h3,
.tour-wing h2 {
  font-size: 1.5rem;
  margin-bottom: 0.1rem;
}

.tour-wing-line {
  color: var(--tour-muted);
  margin-bottom: 0.75rem;
}

.tour-gallery-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.tour-gallery-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 3.25rem;
  background: var(--tour-panel);
  border: 1px solid var(--tour-line);
  border-left: 4px solid var(--tour-green);
  padding: 0 1rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}

.tour-gallery-list a {
  display: flex;
  align-items: center;
}

.tour-gallery-list a {
  color: var(--tour-bright);
  text-decoration: none;
}

.tour-gallery-list a:hover .tour-name {
  color: var(--tour-green-bright);
}

.tour-year {
  color: var(--tour-green-bright);
  margin-right: 0.6rem;
}

.tour-name {
  font-size: 1rem;
}

.tour-gallery-list .tour-docent {
  margin-left: auto;
  color: var(--tour-muted);
  font-size: 0.9rem;
}

.tour-docent {
  display: block;
  color: var(--tour-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Galleries page */

.tour-gallery {
  background: var(--tour-panel);
  border: 1px solid var(--tour-line);
  border-left: 4px solid var(--tour-green);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.tour-gallery h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.tour-gallery p {
  margin-bottom: 0.5rem;
}

.tour-runs-on {
  color: var(--tour-muted);
  font-size: 0.9rem;
}

.tour-try code {
  margin-right: 0.3rem;
}

.tour-gallery .tour-docent {
  margin-top: 0.5rem;
}

/* Guestbook page */

.tour-guestbook {
  list-style: none;
  padding: 0;
}

.tour-guestbook li {
  background: var(--tour-panel);
  border: 1px solid var(--tour-line);
  border-left: 4px solid var(--tour-green);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.tour-guestbook li p {
  margin: 0.25rem 0 0;
}

.tour-guestbook-name {
  color: var(--tour-bright);
  font-size: 1.1rem;
}

.tour-guestbook-when {
  color: var(--tour-muted);
  font-size: 0.85rem;
  margin-left: 0.6rem;
}
