@font-face {
  font-family: "Morpheus";
  src: url("fonts/MORPHEUS.TTF");
}

@font-face {
  font-family: "FrizQuadrata";
  src: url("fonts/Friz Quadrata Std Medium.otf");
}

body {
  background-color: black;
  font-family: FrizQuadrata;
}

.hand-written {
  font-family: Morpheus;
}

.beam, .metal-beam {
  background-image: url('images/inn-beam.webp');
  background-position: center;
  background-size: contain;
  height: 60px;
  width: 100%;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  position: relative;
}

.metal-beam {
  background-image: url('images/metal-rail.webp');
}

.beam img {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -64px;
  margin-top: -64px;
  width: 128px;
  height: 128px;
}

section {
	position: relative;
}

.character-description {
  background-image: url('images/screenshots/1.jpg');
  background-position: center;
  background-size: cover;
  padding-top: 2em;
  padding-bottom: 2em;
}

h4 {
  font-weight: 100;
  font-family: FrizQuadrata;
}

.footer {
  margin-top: 3em;
  margin-bottom: 1em;
  color: #cccccc;
}

section.welcome {
  background-image: url('images/tavern.webp');
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
}

section.welcome .row {
  height: 100%;
  align-items: stretch;
}

@keyframes slide-in {
  0%   { transform: translate(100px); opacity: 0; }
  100%   { transform: translate(0px); opacity: 1; }
}

section.welcome .brehna {
  background-image: url('images/brehna.webp');
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: contain;
  animation-name: slide-in;
  animation-delay: 1.1s;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-in-out;
  opacity: 0;
}

@keyframes bounce-in {
  0%   { transform: translateY(-100%); }
  45%   { transform: translateY(-10%); }
  50%   { transform: translateY(-12%); }
  60%   { transform: translateY(-10%); }
  80%   { transform: translateY(-5%); }
  95%   { transform: translateY(-2%); }
  99%   { transform: translateY(-1%); }
  40%, 70%, 90%, 97%, 100%   { transform: translateY(0%); }
}

section.welcome .sign {
  background-image: url('images/sign.webp');
  background-position: top left;
  background-repeat: no-repeat;
  background-size: contain;
  animation-name: bounce-in;
  animation-delay: 0s;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
  transform-origin: bottom;
}

@keyframes fade-in {
  0%   { opacity: 0; }
  100%   { opacity: 1; }
}

.speech-bubble {
  display: inline-block;
  position: absolute;
  bottom: 100%;
  right: 30%;
  max-width: 50%;
  padding: 0.25em 1em;
  color: #d9db8c;
  text-align: left;
  background-color: #000004cc;
  border-radius: .5rem;
  border: 2px solid #666;
  font-family: FrizQuadrata;
  text-align: center;

  animation-name: fade-in;
  animation-delay: 2.1s;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
  opacity: 0;
}

.speech-bubble::after{
  background-image: url('images/chatbubble-tail.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
  content: '';
  position: absolute;
  z-index:10;
  bottom: -1.75em;
  left: 50%;
  width: 2em;
  height: 2em;
}

.row.center-items {
  align-items: center;
}

.row.center-items div {
  margin-top: 2em;
  margin-bottom: 2em;
}

section.tavern-information {
  background-image:url('images/board-background.webp');
  padding: 2em;
}

.parchment {
  background-image: url('images/parchment-background.webp');
  border: 1px solid black;
  border-image: url('images/parchment-border-image.webp');
  border-image-slice: 80;
  border-image-width: 80px;
  border-image-outset: 1.5em;
  padding: 3em;
  text-shadow: 0 0 1px #666;
  transform-origin: center;
}

.wildhammer-boarder {
  background-image: url('images/board-background.webp');
  border: 2em solid black;
  border-image: url('images/wildhammer_border.webp');
  border-image-slice: 64;
  border-image-width: 2em;
  border-image-repeat: repeat;
  padding: 1em;

  color: #ccc;
  text-shadow: 0 0 3px black, 0 0 3px black, 0 0 3px black;
  text-align: justify;
}

.wildhammer-boarder h1 {
  color: #ccc;
  font-family: Morpheus;
  font-weight: 900;
  margin-bottom: 1em;
}

.stone-border {
  background-image: url('images/wildhammer_border_bg.webp');
  border: 2em solid black;
  border-image: url('images/stone-border.webp');
  border-image-slice: 64;
  border-image-repeat: repeat;
  border-image-width: 32px;
  margin-left: -2em;
  margin-right: -2em;
  padding: 1em;

  color: #000;
  text-align: justify;
  font-weight: 900;
  font-size: 1em;
  font-family: Morpheus;
}

@keyframes spin-three-dee {
  0%   { transform: rotateY(0deg); -webkit-mask-position-y: 0; }
  100%   { transform: rotateY(360deg); -webkit-mask-position-y: 256px; }
}

.loading-hologram-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;

  background-color: black;
}

.loading-hologram {
  animation-name: spin-three-dee;
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;

  width: 100%;
  height: 100%;

  background-image: url('images/hologram.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-color: transparent;
  mask: url('images/hologram-mask.webp');
  mask-mode: 'alpha';
  mask-type: alpha;
  -webkit-mask-position: center center;
  -webkit-mask: url(images/hologram-mask.webp);
  -webkit-mask-position-x: center;
  -webkit-mask-position-y: 0;
  -webkit-mask-size: 256px 256px;
}

.metal-frame {
  position: relative;
  background-color: black; 
  border: 2em solid black;
  border-image: url('images/metal-frame.webp');
  border-image-slice: 64;
  border-image-repeat: repeat;
  border-image-width: 2em;
  color: #ccc;
}

.metal-frame .whistle {
  position: absolute;
  left: -9em;
  top: -5em;
  width: 7em;
}

.stone-border h1 {
  color: black;
  font-family: Morpheus;
  font-weight: 900;
  font-size: 3em;
}

.stone-border h2 {
  color: black;
  font-family: Morpheus;
  font-weight: 900;
  margin-bottom: 1em;
  font-size: 1.25em;
}

.parchment .nail {
  width: 10%;
  position: absolute;
  top: -1em;
  left: 0; 
  right: 0; 
  margin-left: auto; 
  margin-right: auto;
}

.map {
  object-fit: contain;
  max-width: 100%;
}

.parchment h1,
.parchment h2,
.parchment h3,
.parchment h4,
.parchment h5,
.parchment h6 {
  color: #000;
  font-family: Morpheus;
}

section.what-is-roleplaying {
  background-image: url('images/tavern-bar.webp');
  background-size: cover;
  background-position: center center;
  padding-top: 3em;
  padding-bottom: 3em;
}

section.quest-accepted {
  padding-top: 1em;
  padding-bottom: 1em;
  background-image: url('images/ui_alliance.jpg');
  background-size: cover;
  background-position: center center;
}

.quest-category {
  background-image: url('images/quest_category_bg.webp');
  background-size: contain;
  background-position: left bottom;
  background-repeat: no-repeat;
  color: #e2ae05;
  text-shadow: 0 0 3px black, 0 0 3px black, 0 0 3px black;
  font-size: 1.25em;
  padding-left: 1em;
  padding-top: 0.5em;
}

.quest-name {
  color: #bca60b;
  font-weight: normal;
  text-shadow: 0 0 3px black, 0 0 3px black, 0 0 3px black;
  padding-left: 3em;
}

.quest-objectives {
  color: #ccc;
  text-shadow: 0 0 3px black, 0 0 3px black, 0 0 3px black;
  padding-left: 4em;
  line-height: 1.25em;
  list-style-type: '- ';
}

ul.quest-objectives li {
  margin-bottom: .25em;
}

section.character-generator {
  background-image: url('images/deeprun-tram.jpg');
  background-position: center center;
  background-size: cover;
}

section.character-generator .brixie-container {
  display: flex;
  align-items: end;
  height: 100%;
}

section.character-generator .brixie {
  width: 100%;
  z-index: 99;
}

section.character-generator .submit-buttons {
  margin-bottom: 1rem;
  text-align: center;
}
section.advanced-options .grouped-options {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.5em 0.5em;
  flex-direction: row;
}

section.advanced-options {
  background-image: url('images/additional-options-bg.webp');
  background-size: cover;
  background-position: center top;
  color: #ccc;
  text-align: left;
  background-color: #000;
  font-family: FrizQuadrata;
}

section.advanced-options .metal-rail {
  background-image: url('images/metal-rail.webp');
  height: 3em;
  background-size: contain;
}

section.advanced-options .grouped-options label {
  cursor: pointer;
  flex: 0;
  white-space: nowrap;
  flex-basis: 20%;
  margin:  0;
}

section.advanced-options .row {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

section.other-resources {
  padding-bottom: 1em;
  background-image: url('images/library-loft.webp');
  background-position: center center;
  background-size: cover;
}

.character-generator-result {
  color: #ccc;
  background-size: cover;
  background-position: center center;
  padding-top: 0.05em;
}

.generate-character-btn {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  background-image: url('images/button_idle.webp');
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
}

.generate-character-btn:hover {
  background-image: url('images/button_hover.webp');
}

.jumbotron {
  margin-top: 1em;
  margin-bottom: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.9) 10%, rgba(0,0,0,0.9) 90%, rgba(0,0,0,0.70) 100%);
  color: #fff;
  text-shadow: 0 0 3px black, 0 0 7px black, 0 0 10px black;
  padding: 2em 0;
  border-top: 2px;
  border-bottom: 2px;
  border-right: 0;
  border-left: 0;
  border-image: linear-gradient(90deg, transparent 0%, #e4e400 10%, #e4e400 90%, transparent 100%) 1;
  border-style: solid;
}

hr {
  border-image: linear-gradient(90deg, transparent 0%, #e4e400 10%, #e4e400 90%, transparent 100%) 1;
}

h1 {
  font-family: FrizQuadrata;
  color: #e4e400;
}

.jumbotron .btn {
  text-shadow: none;
  margin-top: 1em;
}

.tooltip.bs-tooltip-auto[x-placement^=bottom] .arrow::before, .tooltip.bs-tooltip-bottom .arrow::before {
  margin-left: -3px;
  content: "";
  border-width: 0 5px 5px;
  border-bottom-color: #ccc;
}

.tooltip.show {
  opacity: 0.94;
} 

.tooltip-inner {
  max-width: 275px;
  padding: 0.25em 1em;
  color: #ccc;
  text-align: left;
  background-color: #000004;
  border-radius: .5rem;
  border: 2px solid #333;
  border-top-color: #ccc;
  font-family: FrizQuadrata;
}

.race-info-card {
  padding: 1em 1em;
  color: #ccc;
  text-align: left;
  background-color: #000004e1;
  border-radius: .5rem;
  border: 2px solid #333;
  border-top-color: #ccc;
  font-family: FrizQuadrata;
  margin-top: 1em;
}

.race-info-card .list-group-item {
  background-color: transparent;
  border: none;
}

.race-info-card .list-group-item:hover {
  z-index: inherit;
  text-decoration: inherit;
}

.race-info-card .list-group-item .generator-icon {
  width: 48px;
  height: 48px;
}

.race-info-card h4 {
  color: #fff;
}

.race-class-icon {
  width: 64px;
  height: 64px;
}


@media (min-width: 576px) {

}

@media (min-width: 768px) {
  .speech-bubble {
    bottom: 75%;
  }

  .speech-bubble::after{
    left: 80%;
  }

  .character-description {
    padding-top: 3em;
    padding-bottom: 3em;
  }

  .faction {
    background-attachment: fixed !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
  }

  .faction.alliance {
    background-image: url('images/ui_alliance.jpg');
  }

  .faction.horde {
    background-image: url('images/ui_horde.jpg');
  }

  .stone-border, .wildhammer-boarder {
    padding: 3em;
  }

  .jumbotron {
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.90) 15%, rgba(0,0,0,0.90) 85%, transparent 100%);
  }
}

@media (min-width: 992px) {
  .speech-bubble {
    right: 45%;
    bottom: 65%;
  }

  .character-description {
    padding-top: 5em;
    padding-bottom: 5em;
  }
}

@media (min-width: 1200px) {
  .speech-bubble {
    bottom:  75%;
  }
}

@media(min-height: 600px) {
  section.welcome {
    min-height: 600px;
  }
}
