/*
 * Aurora Forums v0.5.0
 * Exact visual-alignment pass using the main Aurora website stylesheet.
 * Prosilver is loaded first; these rules provide Aurora-specific overrides.
 */

:root {
  color-scheme: dark;
  --aqua: #00d9df;
  --aqua-soft: #87fbff;
  --black: #000;
  --panel: rgba(0, 0, 0, .76);
  --line: rgba(0, 217, 223, .7);
  --text: #fff;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: #000;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: #000 url("images/Web_Background.jpg") center center / cover fixed no-repeat;
  font: 16px/1.65 Arial, Helvetica, sans-serif;
}

img { max-width: 100%; }
a { color: inherit; }
a:link, a:visited { color: var(--aqua-soft); }
a:hover, a:focus { color: #fff; text-decoration: none; }

/* Exact Aurora website header structure */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #000;
}

.brand {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--aqua);
}

.brand a {
  display: block;
}

.brand img {
  display: block;
  width: min(500px, 76vw);
  max-height: 92px;
  object-fit: contain;
}

.nav-bar {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  min-height: 66px;
  padding: 0 max(18px, calc((100vw - 1140px)/2));
  border-bottom: 2px solid var(--aqua);
  background: #000;
}

.home-link,
.facebook-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-link img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.facebook-link img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.facebook-link { justify-self: end; }

.main-menu {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item { position: relative; }

.nav-item > a {
  display: block;
  padding: 20px 13px;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-item > a:hover,
.nav-item:focus-within > a,
.nav-item.active > a {
  color: var(--aqua-soft) !important;
}

.nav-item.active > a {
  text-shadow: 0 0 10px rgba(0, 217, 223, .35);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
}

/* phpBB content area */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.page-body {
  min-height: 0;
}

/* Forum page heading mirrors Aurora page-heading spacing without inventing new artwork */
.headerbar {
  min-height: 0;
  margin: 0;
  padding: 42px 22px 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.headerbar .inner {
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.site-description {
  float: none;
  width: 100%;
  text-align: center;
}

.forum-heading h1 {
  margin: 0 0 14px;
  color: var(--aqua-soft);
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
}

.forum-heading h1 a,
.forum-heading h1 a:visited {
  color: var(--aqua-soft);
  text-decoration: none;
}

.forum-heading h1 a:hover,
.forum-heading h1 a:focus {
  color: #fff;
}

.aurora-board-description {
  max-width: 980px;
  margin: 0 auto;
  color: #fff;
  font-size: 1rem;
  line-height: 1.65;
  text-align: center;
}

#search-box {
  position: static;
  float: none;
  width: min(520px, 100%);
  margin: 0;
}

.search-header {
  box-shadow: none;
}

.search-header fieldset {
  display: flex;
}

.search-header .inputbox {
  flex: 1 1 auto;
  min-width: 0;
}

/* phpBB navigation */
.navbar {
  margin: 0 0 20px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 217, 223, .45);
  border-radius: 8px;
  background: rgba(0, 0, 0, .82);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .42);
}

.navbar a,
.navbar .icon,
.navbar .dropdown-trigger {
  color: #fff;
}

.navbar a:hover,
.navbar a:focus,
.navbar a:hover .icon,
.navbar a:focus .icon {
  color: var(--aqua-soft);
}

/* Forum/category containers use the same panel language as Aurora cards */
.forabg,
.forumbg {
  margin-bottom: 20px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 217, 223, .48);
  border-radius: 10px;
  color: #fff;
  background: rgba(0, 0, 0, .82);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .42);
}

.forabg > .inner,
.forumbg > .inner {
  margin: 0;
}

.forabg .header,
.forumbg .header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--aqua);
  background: #000;
}

ul.topiclist li.header dl,
ul.topiclist li.header dt,
ul.topiclist li.header dd,
.forabg .header a,
.forumbg .header a {
  color: #fff;
}

.forabg .header a:hover,
.forumbg .header a:hover {
  color: var(--aqua-soft);
}

ul.topiclist li.row,
table.table1 tbody tr {
  background: rgba(0, 0, 0, .74);
  border-bottom-color: rgba(0, 217, 223, .18);
}

ul.topiclist li.row:nth-child(even),
table.table1 tbody tr:nth-child(even) {
  background: rgba(0, 16, 17, .78);
}

ul.topiclist li.row:hover,
table.table1 tbody tr:hover {
  background: rgba(0, 217, 223, .12);
}

ul.topiclist dd,
ul.topiclist dt,
ul.topiclist dd.posts,
ul.topiclist dd.views,
ul.topiclist dd.lastpost {
  border-left-color: rgba(0, 217, 223, .16);
}

.forumtitle,
.topictitle {
  color: var(--aqua-soft) !important;
  font-weight: 700;
}

.forumtitle:hover,
.topictitle:hover {
  color: #fff !important;
}

/* Posts, panels, UCP/MCP and tables */
.panel,
.post,
.bg1,
.bg2,
.bg3,
.panel-container .panel {
  color: #fff;
  border-color: rgba(0, 217, 223, .35);
  background: rgba(0, 0, 0, .82);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .42);
}

.panel,
.post {
  border: 1px solid rgba(0, 217, 223, .35);
  border-radius: 8px;
}

.post.bg2,
.bg2 {
  background: rgba(0, 10, 11, .86);
}

.post:target {
  border-color: var(--aqua);
  box-shadow: 0 0 0 2px rgba(0, 217, 223, .14), 0 8px 26px rgba(0, 0, 0, .42);
}

.postbody .content,
.postbody h3,
.postprofile,
.postprofile strong,
.postprofile dd,
.postprofile dt,
.attachbox,
.codebox,
blockquote {
  color: #fff;
}

.postprofile {
  border-color: rgba(0, 217, 223, .30);
}

hr,
.panel hr,
.panel-container hr,
.cp-menu hr {
  border-color: rgba(0, 217, 223, .30);
}

/* Inputs and buttons */
.inputbox,
input.inputbox,
textarea.inputbox,
select {
  border: 1px solid rgba(0, 217, 223, .55);
  border-radius: 6px;
  background: #000;
  color: #fff;
  box-shadow: inset 0 1px 5px rgba(0, 0, 0, .45);
}

.inputbox:hover,
.inputbox:focus,
input.inputbox:hover,
input.inputbox:focus,
textarea.inputbox:hover,
textarea.inputbox:focus,
select:focus {
  border-color: var(--aqua);
  background: #071415;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(0, 217, 223, .10);
}

.inputbox::placeholder,
textarea.inputbox::placeholder {
  color: #b8dddd;
}

.button,
.button1,
.button2,
input.button1,
input.button2,
a.button1,
a.button2 {
  border: 1px solid var(--aqua);
  border-radius: 6px;
  background: #02090b;
  color: #fff;
  box-shadow: none;
}

.button:hover,
.button:focus,
.button1:hover,
.button1:focus,
.button2:hover,
.button2:focus,
input.button1:hover,
input.button2:hover,
a.button1:hover,
a.button2:hover {
  border-color: var(--aqua);
  background: var(--aqua);
  color: #001012;
}

.button .icon,
.button-secondary,
.button-secondary .icon {
  color: var(--aqua-soft);
}

/* Dropdowns, pagination, alerts */
.dropdown .dropdown-contents,
.dropdown-extended .dropdown-contents {
  border-color: var(--line);
  background: #000;
  color: #fff;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .45);
}

.dropdown-extended ul li,
.dropdown li {
  border-color: rgba(0, 217, 223, .30);
}

.pagination li a,
.pagination li span {
  border-color: rgba(0, 217, 223, .35);
  border-radius: 5px;
  background: #02090b;
  color: #fff;
}

.pagination li a:hover,
.pagination li.active span {
  border-color: var(--aqua);
  background: rgba(0, 217, 223, .22);
  color: #fff;
}

.notice,
.rules {
  border-color: var(--aqua);
  background: rgba(0, 8, 10, .92);
  color: #fff;
}

.error { color: #ffb4b4; }

.tabs .tab > a,
.minitabs .tab > a {
  background: #000;
  color: #fff;
}

.tabs .tab.activetab > a,
.tabs .tab > a:hover,
.minitabs .tab.activetab > a,
.minitabs .tab > a:hover {
  background: rgba(0, 217, 223, .18);
  color: #fff;
}

.cp-menu .panel {
  background: rgba(0, 0, 0, .82);
}

/* Footer aligned to main Aurora site */
.page-footer {
  margin-top: 38px;
}

.site-footer {
  position: relative;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 25px 20px 19px;
  border-top: 1px solid #222;
  color: #ddd;
  background: #000;
  text-align: center;
}

.footer-tagline {
  width: min(600px, 86vw);
}

.footer-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-mark {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.footer-site-copyright,
.site-footer p {
  margin: 0;
  font-size: .875rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
}

.footer-legal a,
.footer-link,
.copyright a {
  color: var(--aqua-soft);
  text-decoration: none;
}

.footer-legal a:hover,
.footer-legal a:focus-visible,
.footer-link:hover,
.footer-link:focus-visible,
.copyright a:hover,
.copyright a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.copyright {
  display: grid;
  gap: 4px;
  justify-items: center;
  color: #9fb9bb;
}

.footer-row {
  margin: 0;
}

.footer-phpbb-credit,
.footer-phpbb-credit .footer-copyright,
.footer-phpbb-credit .footer-info {
  color: #8da9aa;
  font-size: .76rem;
}


/* Live phpBB layout polish */
#page-body,
#page-footer {
  font-size: .94rem;
}

.headerbar + .navbar {
  margin-top: 2px;
}

.navbar {
  min-height: 48px;
  padding: 10px 14px;
}

.navbar .linklist > li,
.navbar .linklist > li > a,
.navbar .breadcrumbs .crumb > a {
  font-size: .86rem;
  line-height: 1.45;
}

.forabg .header,
.forumbg .header {
  padding: 12px 16px;
}

ul.topiclist li.header dl,
ul.topiclist li.header dt,
ul.topiclist li.header dd {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .025em;
}

.forabg ul.topiclist li.row,
.forumbg ul.topiclist li.row {
  background-color: rgba(0, 0, 0, .88) !important;
  color: #fff;
}

.forabg ul.topiclist li.row:nth-child(even),
.forumbg ul.topiclist li.row:nth-child(even) {
  background-color: rgba(0, 13, 14, .90) !important;
}

.forabg ul.topiclist li.row:hover,
.forumbg ul.topiclist li.row:hover {
  background-color: rgba(0, 217, 223, .13) !important;
}

.forabg ul.topiclist li.row dl.row-item,
.forumbg ul.topiclist li.row dl.row-item {
  min-height: 68px;
  background-color: transparent !important;
}

.forabg ul.topiclist li.row .list-inner,
.forumbg ul.topiclist li.row .list-inner {
  padding-top: 10px;
  padding-bottom: 10px;
  color: #dffefe;
  font-size: .92rem;
  line-height: 1.45;
}

.forumtitle,
.topictitle {
  font-size: 1.03rem;
}

ul.topiclist dd.topics,
ul.topiclist dd.posts,
ul.topiclist dd.views,
ul.topiclist dd.lastpost {
  color: #eaffff;
  font-size: .84rem;
}

ul.topiclist dd.lastpost a,
ul.topiclist dd.lastpost .lastsubject {
  color: var(--aqua-soft);
}

/* Turn the stock index information blocks into Aurora cards. */
.stat-block {
  margin: 16px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 217, 223, .42);
  border-radius: 9px;
  color: #fff;
  background: rgba(0, 0, 0, .79);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .32);
}

.stat-block h3 {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 217, 223, .35);
  color: var(--aqua-soft);
  background: rgba(0, 0, 0, .92);
  font-size: .92rem;
  font-weight: 700;
  text-transform: uppercase;
}

.stat-block p,
.stat-block > div {
  margin: 0;
  padding: 12px 14px;
  color: #fff;
  font-size: .88rem;
  line-height: 1.55;
}

.stat-block a {
  color: var(--aqua-soft);
}

.stat-block a:hover,
.stat-block a:focus {
  color: #fff;
}

/* Keep common index metadata readable without the old prosilver blue/grey wash. */
.action-bar,
.panel-container,
.topic-actions,
.postbody,
.postprofile,
.content,
.signature,
.attachbox,
.codebox,
blockquote,
fieldset,
fieldset.fields1,
fieldset.fields2 {
  color: #fff;
}

/* Footer utility navigation belongs with the footer, not in a distant island. */
.page-footer {
  margin-top: 22px;
}

.page-footer > .navbar {
  margin: 0 0 18px;
  border-color: rgba(0, 217, 223, .38);
  background: rgba(0, 0, 0, .86);
}

#nav-footer {
  min-height: 30px;
}

#nav-footer a,
#nav-footer .icon,
#nav-footer .rightside {
  color: #dffefe;
}

#nav-footer a:hover,
#nav-footer a:focus,
#nav-footer a:hover .icon,
#nav-footer a:focus .icon {
  color: var(--aqua-soft);
}

/* Prevent the post-footer anchor/cron wrapper from exposing the teal body background. */
.aurora-bottom-anchor {
  height: 0;
  overflow: hidden;
  background: #000;
  line-height: 0;
}

/* Slightly tighter real-site footer spacing after live testing. */
.site-footer {
  gap: 10px;
  padding-top: 23px;
  padding-bottom: 17px;
}

.footer-tagline {
  margin-bottom: 2px;
}

.footer-phpbb-credit,
.footer-phpbb-credit .footer-copyright,
.footer-phpbb-credit .footer-info {
  line-height: 1.4;
}

/* Main-site responsive behavior */
@media (max-width: 900px) {
  .nav-bar {
    grid-template-columns: 44px 1fr 44px 44px;
  }

  .home-link img {
    width: 38px;
    height: 38px;
  }

  .facebook-link img {
    width: 47px;
    height: 47px;
  }

  .menu-toggle {
    display: grid;
    grid-column: 3;
    gap: 4px;
    justify-self: end;
    padding: 9px;
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 23px;
    height: 2px;
    background: #fff;
  }

  .facebook-link { grid-column: 4; }

  #main-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 66px);
    overflow: auto;
    border-bottom: 2px solid var(--aqua);
    background: rgba(0, 0, 0, .98);
  }

  #main-menu.open { display: block; }

  .main-menu {
    padding: 12px 22px 24px;
  }

  .nav-item > a {
    padding: 11px 8px;
  }
}

@media (max-width: 620px) {
  .brand { min-height: 82px; }

  .wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .headerbar {
    padding: 28px 12px 24px;
  }

  .forum-heading h1 {
    font-size: 1.8rem;
  }

  .aurora-board-description {
    font-size: .92rem;
  }

  .site-footer {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
