/* Spacing */
/* Global colours */
/* Font sizes */
/* Borders */
/* Shadows */
/* Colours */
:root {
  --light-text-color: #eee;
  --dark-text-color: #222;
  --alert-bg-color: #1fa2a9;
  --error-bg-color: #b93a5a;
}

@font-face {
  font-family: "Digital Dream";
  src: url(/fonts/DIGITALDREAM.ttf);
}
@font-face {
  font-family: "a Autobus Omnibus";
  src: url("/fonts/aAutobusOmnibus.ttf");
}
body {
  background-image: var(--site-bg-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--main-text-color);
  width: 75%;
  margin: 0 auto;
  font-family: Comfortaa, sans-serif;
  font-size: 12pt;
}
@media screen and (max-width: 980px) {
  body {
    font-size: 11pt;
    width: 95%;
  }
}

h1, h2, h3, h4, h5 {
  font-family: "a Autobus Omnibus", sans-serif;
  line-height: 1.6em;
  text-transform: uppercase;
}

a {
  color: var(--main-link-color);
}
a:hover, a:active {
  color: var(--topbar-accent-color);
}

hr {
  display: block;
}

::-webkit-scrollbar-thumb {
  width: 0.4rem;
  background: var(--topbar-accent-color);
}

/* Utility */
.float-left {
  margin-right: 1.4rem;
  float: left;
}

.big-padding {
  padding: 3rem;
}

.mid-padding {
  padding: 1.4rem;
}

.bg-black-faded {
  background-color: rgba(0, 0, 0, 0.6);
}

.spacer {
  display: block;
  height: 3rem;
}

.tab-icon {
  font-size: 30pt;
}

.spaced-form {
  display: flex;
  flex-direction: column;
}

.text-lg {
  font-size: 16pt;
}

.text-sm {
  font-size: 10pt;
}

/* Banner */
.banner {
  display: none;
  margin: 3rem auto 1.4rem;
  border-radius: 10px;
  height: 300px;
  background-image: url(/placeholders/1000x300.png);
  background-size: cover;
  background-position: center;
}

/* Nav */
nav {
  z-index: 2;
  background-size: contain;
  position: relative;
  margin: 1.4rem -5vw -5vw;
}
@media screen and (max-width: 768px) {
  nav {
    margin: 1.4rem 0 -5vw;
  }
}
nav a:not([active]):not([href]):not([tabindex]) {
  color: var(--nav-link-inactive-color);
}

.nav-bg {
  z-index: -1;
  width: 100%;
}
@media screen and (max-width: 768px) {
  .nav-bg {
    display: none;
  }
}

.nav-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 86%;
  left: 7%;
  margin: -4vw auto 0;
  gap: 0.4rem;
  height: 10%;
}
@media screen and (max-width: 768px) {
  .nav-row {
    background-color: var(--topbar-accent-color);
    margin-top: 0;
    padding: 0.4rem;
    width: 102%;
    left: -1%;
  }
}
.nav-row .nav-link {
  background: var(--button-bg-color);
  background: linear-gradient(var(--nav-bg-color), var(--nav-highlight-color), var(--nav-bg-color), var(--nav-shadow-color));
  gap: 5px;
  flex-grow: 1;
}
@media screen and (max-width: 768px) {
  .nav-row .nav-link {
    min-width: 50%;
  }
}

.links {
  padding-left: 3rem;
  padding-right: 3rem;
}
@media screen and (max-width: 768px) {
  .links {
    position: relative;
    padding-left: 1.4rem;
    padding-right: 1.4rem;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
  }
}

.clock-wrapper {
  position: absolute;
  top: 4vw;
  width: 50%;
  right: 0;
  text-align: center;
}
@media screen and (max-width: 768px) {
  .clock-wrapper {
    position: relative;
    top: 0;
    width: 100%;
  }
}

#clock {
  display: inline-block;
  border-radius: 50%;
  padding: 1.4rem;
  font-family: "a Autobus Omnibus", monospace;
  background-color: var(--alert-bg-color);
  background-image: var(--clock-bg-image);
  color: var(--clock-text-color);
  background-size: cover;
  text-align: center;
  text-shadow: 1px 1px 2px var(--showcard-dark-color);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6) inset;
}
@media screen and (max-width: 768px) {
  #clock {
    margin: 0.4rem;
  }
}

#time {
  font-size: 22pt;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  position: absolute;
  bottom: 8vw;
  font-size: 14pt;
}
@media screen and (max-width: 980px) {
  .stats {
    font-size: 11pt;
  }
}
@media screen and (max-width: 768px) {
  .stats {
    background-color: var(--topbar-color);
    position: relative;
    bottom: 0;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
  }
}

.stats-left {
  flex-basis: 40%;
  width: 40%;
}

.logo-wrapper {
  text-align: center;
}

.logo {
  max-width: 300px;
  max-height: 5rem;
}

.stats-right {
  flex-grow: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0 3rem;
  justify-content: center;
}

.stat-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.stat-badge {
  font-size: 80%;
  border-radius: 10px;
  padding: 0.2rem;
  background-color: var(--main-bg-color);
}

.stat-icon {
  height: 1em;
}

.stat-bar {
  width: 100px;
  background-color: var(--main-bg-color);
}
.stat-bar .progress-bar {
  background-color: orchid;
  height: 100%;
}

.nav-button, .nav-dropdown .dropdown-toggle, .danger-button, .body-button, .nav-row .nav-link {
  border: none;
  text-align: center;
  padding: 0.4rem;
  color: var(--nav-text-color);
  height: 100%;
  flex-basis: 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: 0.1s all linear;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}
.nav-button:hover, .nav-dropdown .dropdown-toggle:hover, .danger-button:hover, .body-button:hover, .nav-row .nav-link:hover {
  /*background: var(--topbar-color);*/
  background: linear-gradient(var(--nav-shadow-color), var(--nav-bg-color), var(--nav-shadow-color), var(--nav-dark-shadow-color));
}

.body-button {
  background: var(--nav-menu-bg-color);
}

.body-button:hover {
  background: var(--button-shadow-color);
}

.danger-button {
  background: var(--error-bg-color);
  color: white;
}

.danger-button:hover {
  background: var(--button-shadow-color);
}

.nav-dropdown {
  height: 100%;
  background: var(--main-bg-color);
  flex-basis: 0;
  flex-grow: 1;
  border-radius: 10px;
  z-index: 1;
}
@media screen and (max-width: 768px) {
  .nav-dropdown {
    z-index: auto;
  }
}
.nav-dropdown .dropdown-toggle {
  background: linear-gradient(var(--nav-bg-color), var(--nav-highlight-color), var(--nav-bg-color), var(--nav-shadow-color));
  z-index: 2;
  white-space: nowrap;
}
.nav-dropdown .dropdown-menu {
  width: 100%;
  padding-top: 1rem;
  margin-top: -1rem;
  z-index: -1;
  background-color: var(--nav-menu-bg-color);
}
@media screen and (max-width: 768px) {
  .nav-dropdown .dropdown-menu {
    margin-top: 0;
    padding-top: 0;
    z-index: 3;
  }
}
.nav-dropdown .dropdown-item {
  text-align: center;
  background-color: var(--nav-menu-bg-color);
  color: var(--nav-text-color);
}
.nav-dropdown .dropdown-item:focus, .nav-dropdown .dropdown-item:hover {
  background-color: var(--topbar-color);
}

/* Main area */
.main-wrapper {
  background-color: var(--main-bg-color);
  padding: 5rem 0 2rem;
  border-radius: 10px;
}
@media screen and (max-width: 768px) {
  .main-wrapper {
    padding-top: 2rem;
  }
}

.status-message {
  background-color: var(--alert-bg-color);
  color: white;
}

.error-message {
  background-color: var(--error-bg-color);
  color: white;
}

.main {
  border-radius: 10px;
  position: relative;
  padding: 4rem 0 0 0;
}
@media screen and (max-width: 768px) {
  .main {
    padding-top: 1.4rem;
  }
}
.main img {
  max-width: 100%;
}
.main.padded {
  padding-left: 3rem;
  padding-right: 3rem;
}
@media screen and (max-width: 768px) {
  .main.padded {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }
}
.main > hr {
  width: 50%;
  margin: 3rem auto;
}

.main-title-wrapper {
  text-align: center;
  margin-bottom: 1.4rem;
}

.main-title {
  display: inline-block;
  margin: 0;
  padding: 0.4rem;
  border-radius: 10px;
  background-color: var(--showcard-dark-color);
  color: var(--showcard-text-color);
  min-width: 20%;
}

.breadcrumbs {
  text-align: center;
  margin-bottom: 1.4rem;
}

.showcard, .forum-post, .main-title {
  background-color: var(--showcard-dark-color);
  color: var(--showcard-text-color);
  background-size: cover;
  background-position: center;
  -moz-column-break-inside: avoid;
       break-inside: avoid;
  border-radius: 10px;
  margin-bottom: 1.4rem;
  overflow: hidden;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}
.showcard a, .forum-post a, .main-title a {
  color: var(--showcard-link-color);
}

/* Announcements homepage */
.spotlights {
  position: relative;
  display: flex;
  margin: 1.4rem;
  row-gap: 1.4rem;
  -moz-column-gap: 1.4rem;
       column-gap: 1.4rem;
}
@media screen and (max-width: 768px) {
  .spotlights {
    flex-direction: column;
  }
}

.spotlight {
  flex-basis: 33%;
  position: relative;
}
.spotlight img {
  width: 100%;
}

.spotlight-title {
  background-color: var(--topbar-color);
  display: inline-block;
  padding: 0.4rem 3rem;
  position: absolute;
  top: -0.4rem;
  z-index: 2;
  border-bottom-right-radius: 3rem;
}

/* Posts / Announcements */
.post-list {
  row-gap: 0.4rem;
}
.post-list hr {
  border-color: var(--main-text-color);
  opacity: 0.6;
}

.post-header {
  background-size: cover;
  background-position: center;
}

.post-header-wrapper {
  text-align: center;
  margin-bottom: 1.4rem;
}

.post-title, .post-footer {
  text-align: center;
}

.post-title {
  padding: 1.4rem;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.post-body {
  padding: 1.4rem;
}
@media screen and (max-width: 768px) {
  .post-body {
    padding: 0.4rem;
  }
}

.post-footer {
  padding: 0 1.4rem 1.4rem;
}

/* Forums */
.forum-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.forum-post-top {
  margin-bottom: 0;
}

.forum-post {
  padding: 1.4rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  -moz-column-gap: 1.4rem;
       column-gap: 1.4rem;
  row-gap: 0.4rem;
}
@media screen and (max-width: 768px) {
  .forum-post {
    flex-direction: column;
  }
}
.forum-post.forum-reply {
  margin-left: 3rem;
}

.forum-post-image {
  width: 80px;
  max-height: 80px;
  border-radius: 10px;
}

.forum-post-info {
  flex-basis: 0;
  flex-grow: 1;
}
@media screen and (max-width: 768px) {
  .forum-post-info {
    order: 1;
  }
}

.forum-post-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Character */
.character-card {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  -moz-column-gap: 1.4rem;
       column-gap: 1.4rem;
}

.character-card-right, .character-card-left {
  flex-basis: 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
@media screen and (max-width: 768px) {
  .character-card-right, .character-card-left {
    flex-basis: 100%;
  }
}

.character-card-right {
  position: relative;
}
.character-card-right > .carousel {
  width: 75%;
}
.character-card-right .carousel-control-prev, .character-card-right .carousel-control-next {
  bottom: auto;
  top: -2rem;
  height: 2rem;
}
.character-card-right .list-group {
  margin: 1.4rem;
}
.character-card-right .list-group-item {
  display: flex;
  justify-content: space-between;
}

/* Quests */
.quest {
  padding: 1.4rem;
  margin-bottom: 1.4rem;
  border-radius: 10px;
}

/* Shop */
.shop-top-row {
  display: flex;
  flex-wrap: wrap;
  background-color: var(--showcard-dark-color);
}

.shop-portrait {
  flex-grow: 1;
  height: 600px;
  display: flex;
  flex-direction: column;
}
@media screen and (max-width: 768px) {
  .shop-portrait {
    height: auto;
  }
}
.shop-portrait img {
  max-width: 450px;
  width: 90%;
  align-self: center;
}

.shop-portrait-padding {
  flex-grow: 1;
  background-color: var(--nav-bg-color);
  text-align: center;
  padding: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-inventory {
  position: relative;
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  height: 600px;
  padding: 1.4rem;
  gap: 0.4rem;
  overflow: auto;
  background-color: var(--topbar-color);
}
@media screen and (max-width: 768px) {
  .shop-inventory {
    height: auto;
  }
}

.shop-slot {
  margin: 0;
  padding: 0.4rem;
  border-radius: 5px;
  width: 120px;
  height: 120px;
  background-color: var(--showcard-dark-color);
  color: var(--showcard-text-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media screen and (max-width: 768px) {
  .shop-slot {
    width: 100px;
    height: 100px;
  }
}
.shop-slot img {
  width: 90px;
  height: 90px;
}

.shop-bottom-row {
  display: flex;
  background-color: var(--nav-menu-bg-color);
}

.dialogue-tail {
  position: absolute;
  right: 100%;
  top: 1.4rem;
  border: 20px solid transparent;
  border-bottom-color: var(--nav-menu-bg-color);
  border-right-color: var(--nav-menu-bg-color);
}
@media screen and (max-width: 768px) {
  .dialogue-tail {
    right: auto;
    top: auto;
    bottom: 100%;
    left: 1.4rem;
  }
}

.shop-keeper-dialogue {
  position: relative;
  padding: 1.4rem;
  background-color: var(--nav-menu-bg-color);
  margin-right: 3rem;
  border: 2px solid var(--nav-menu-bg-color);
  width: 40%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media screen and (max-width: 768px) {
  .shop-keeper-dialogue {
    flex-basis: 100%;
    margin: 0;
  }
}

.shop-choices {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 0.4rem;
}
.shop-choices a {
  padding: 0.4rem;
  border-radius: 10px;
  background-color: var(--showcard-dark-color);
}

/* World Map */
.map {
  border: 10px solid var(--showcard-dark-color);
  border-radius: 10px;
  position: relative;
}

.map-link {
  position: absolute;
  width: 15%;
}

.map-tabs {
  display: inline-flex;
  padding: 0.8rem 2.8rem;
  background-color: var(--topbar-color);
  border-radius: 55px;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  justify-content: center;
}
.map-tabs a {
  color: white;
}

.map-tabs-wrapper {
  text-align: center;
  margin-bottom: 1.4rem;
}

/* Overlay area */
.overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  background-color: var(--main-bg-color);
  opacity: 0.9;
  text-align: right;
  z-index: 10;
  font-size: 10pt;
  color: black;
}
.overlay img {
  max-width: 100%;
}
.overlay a:hover {
  color: var(--showcard-dark-color);
}

/* Footer */
footer {
  padding: 1.4rem;
  margin-top: 3rem;
  background-color: var(--nav-bg-color);
  color: var(--nav-text-color);
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}
