﻿@font-face {
  font-family: 'Lobster Two';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/lobstertwo/v13/BngMUXZGTXPUvIoyV6yN59fK.ttf) format('truetype');
}
html,
body {
  font-family: 'Lobster Two', cursive;
  font-size: 1.2rem;
}
html,
body,
#app {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  max-height: 100vh;
}
button,
a {
  cursor: pointer;
}
#app {
  background-color: #1B1B1B;
  background-image: url(content/mapMenu.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.valid.modified:not([type=checkbox]) {
  outline: 1px solid #26b050;
}
.invalid {
  outline: 1px solid red;
}
.validation-message {
  color: red;
}
#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}
#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}
.page {
  position: relative;
  overflow: hidden;
  width: 100vw;
  min-height: 100vh;
}
#gameview {
  position: absolute;
  width: 100%;
  height: 100%;
}
.uipanel {
  position: absolute;
  margin: 0.5em;
  padding: 0;
  border: 15px solid transparent;
  border-image: url(content/panelborder.png) 40 stretch;
}
.uipanel button {
  border: 5px solid transparent;
  border-image: url(content/buttonborder.png) 40 stretch;
  border-radius: 0;
  background-color: #CB9662;
  cursor: pointer;
  margin: 0;
  transition: ease-in-out 200ms transform;
}
.uipanel button[disabled] {
  border-image: url(content/buttonborderDisabled.png) 40 stretch;
}
.uipanel button:hover {
  opacity: 0.9;
  transform: scale(1.05);
}
.uipanel button,
.uipanel input,
.uipanel select {
  padding: 0.25em 0.5em;
  font-family: inherit;
  font-size: inherit;
}
.uipanel > div {
  background: #E0B890CC;
  padding: 0em;
}
.uipanel > div > h2 {
  border-bottom: 1px solid #1B1B1B;
}
.uipanel > div ul,
.uipanel > div h3,
.uipanel > div h2 {
  margin: 0;
}
.uipanel > div p.subtext {
  font-style: italic;
  margin-top: 0.1em;
}
.uipanel.location {
  position: absolute;
  left: 0;
  top: 0;
  width: 10em;
}
.uipanel.location .exits {
  list-style: none;
  margin: 0;
  padding: 0;
}
.uipanel.location .exits button:before {
  content: '';
  background: url(content/iconMarker.svg);
  display: inline-block;
  width: 1em;
  height: 1em;
}
.uipanel.location .persons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}
.uipanel.location .persons div.actionsbox {
  border: 5px solid transparent;
  border-image: url(content/buttonborders.png) 40 stretch;
  border-top: none;
  position: absolute;
  left: -5px;
  width: 20em;
  box-sizing: border-box;
}
.uipanel.location .persons div.actionsbox ul.actions {
  background-color: #5A4433;
  list-style: none;
  padding: 0;
  padding-left: 1em;
}
.uipanel.location .persons > li {
  border: 5px solid transparent;
  border-image: url(content/buttonborders.png) 40 stretch;
  border-radius: 0;
  width: 20em;
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
}
.uipanel.location .persons > li:hover,
.uipanel.location .persons > li:focus,
.uipanel.location .persons > li:focus-within {
  z-index: 999;
  border-bottom: none;
}
.uipanel.location .persons > li:not(:hover, :focus, :focus-within) {
  width: auto;
}
.uipanel.location .persons > li:not(:hover, :focus, :focus-within) div.actionsbox {
  display: none;
}
.uipanel.location .persons > li li.action {
  display: flex;
  flex-direction: row;
}
.uipanel.location .persons > li li.action > div {
  display: flex;
  flex-direction: row;
  background-color: #5A4433;
}
.uipanel.location .persons > li li.action input,
.uipanel.location .persons > li li.action select {
  width: 100%;
}
.uipanel.location .persons > li li.action button {
  width: 4em;
  flex-shrink: 0;
}
.uipanel.location .persons > li > div {
  background-color: #5A4433;
}
.uipanel.location .persons > li > div:before {
  content: '';
  background: url(content/iconPerson.svg);
  display: inline-block;
  width: 1em;
  height: 1em;
}
.uipanel.menu {
  top: 0;
  right: 0;
  text-align: center;
}
.uipanel.menu > div,
.uipanel.menu > div > div,
.uipanel.menu > div > div > div {
  display: flex;
  flex-direction: column;
}
.uipanel.menu button {
  margin: 0.125em 0;
}
.uipanel.events {
  position: absolute;
  bottom: 0;
  right: 0;
  border: 0;
  background: none;
  margin: auto;
  width: 100%;
  max-width: 30em;
}
.uipanel.events > div {
  background: #E0B890CC;
  border-radius: 0.5em;
  margin: 0.5em;
  padding: 0.5em;
}
.uipanel.events > div ul {
  font-family: sans-serif;
  max-height: 10em;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
.uipanel.events > div ul > li {
  padding: 0.22em;
  animation: ease-in-out 2s;
}
.uipanel.events > div ul > li.play {
  animation-name: highlightMessage;
}
.uipanel.events > div ul > li:hover {
  background: #fff9;
  font-weight: bold;
}
.uipanel.events > div ul > li:nth-child(even) {
  background: #fff5;
}
.uipanel.events > div ul > li p {
  margin: 0;
}
@keyframes highlightMessage {
  0% {
    background: transparent;
  }
  10% {
    background: yellow;
  }
  20% {
    background: transparent;
  }
  30% {
    background: yellow;
  }
  45% {
    background: transparent;
  }
  70% {
    background: yellow;
  }
  100% {
    background: transparent;
  }
}
.uipanel.area {
  position: absolute;
  bottom: 0;
  left: 0;
}
.uipanel.area .subtext:empty {
  display: none;
}
.uipanel.area ul {
  padding-left: 1em;
}
.uipanel.area ul .stakeholder p {
  margin: 0;
}
.uipanel.area ul .stakeholder .subtext {
  padding-left: 1em;
  color: #000a;
}
.editorPanel {
  width: 100vw;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}
.editorPanel h2 {
  border-bottom: 1px solid black;
  margin: 0;
  box-sizing: border-box;
}
.editorPanel ul {
  display: flex;
  flex-direction: column;
  margin: 0.25em 0;
  gap: 0.25em;
  list-style: none;
  padding: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.editorPanel ul > li {
  background: #0003;
  padding: 0.25em 0.5em;
  border-radius: 0.5em;
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  max-width: 100%;
  box-sizing: border-box;
}
.editorPanel ul > li > label {
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
}
.editorPanel ul > li > label > span:first-child {
  width: 6em;
  flex-shrink: 0;
}
.editorPanel ul > li > label input {
  width: 100%;
}
.editorPanel ul > li p.subtext {
  margin: 0;
  color: #0009;
  font-style: italic;
}
.editorPanel .tageditor {
  display: flex;
  flex-direction: row;
  place-items: center;
  gap: 0.5em;
}
.editorPanel .tageditor ul,
.editorPanel .tageditor li {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
}
.editorPanel .tageditor li > p {
  margin: 0;
}
.editorPanel .tageditor form {
  display: flex;
  flex-direction: row;
}
.editorPanel .tageditor form input {
  width: 6em;
}
.settings.panel,
.credits.panel {
  max-width: 30em;
  margin: auto auto 3em auto;
  text-align: center;
  border: 15px solid transparent;
  border-image: url(content/panelborder.png) 40 stretch;
  display: flex;
  flex-direction: column;
}
.settings.panel h1,
.credits.panel h1,
.settings.panel h2,
.credits.panel h2,
.settings.panel h3,
.credits.panel h3 {
  margin: 0;
}
.settings.panel label,
.credits.panel label {
  display: block;
}
.settings.panel label > span:first-child,
.credits.panel label > span:first-child {
  display: inline-block;
  width: 7.2em;
  text-align: right;
}
.settings.panel label > span:last-child,
.credits.panel label > span:last-child {
  display: inline-block;
  width: 2.2em;
  text-align: left;
}
.settings.panel > div,
.credits.panel > div {
  background: #E0B890CC;
}
.settings.panel > div ul,
.credits.panel > div ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
#editor {
  background: white;
}
#startscreen {
  max-width: 30em;
  margin: auto auto 3em auto;
  text-align: center;
  border: 15px solid transparent;
  border-image: url(content/panelborder.png) 40 stretch;
  display: flex;
  flex-direction: column;
}
#startscreen > div {
  background: #E0B890CC;
}
#startscreen > div > h1 {
  margin: 0;
  border-bottom: 1px solid #1B1B1B;
}
#startscreen > div > nav {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  margin: 0.5em 0;
}
#startscreen > div > nav a {
  display: block;
  font-weight: bolder;
  text-decoration: none;
  transition: transform ease-in-out 200ms;
}
#startscreen > div > nav a:hover {
  transform: scale(1.1);
  color: rgb(143 95 187);
}
#startscreen > div ul {
  padding: 0;
  list-style: none;
  margin: 0;
}
#startscreen > div ul li {
  border: 15px solid transparent;
  border-image: url(content/buttonborders.png) 40 stretch;
}
#startscreen > div ul li > div {
  background-color: #5A4433;
}
#startscreen > div ul li > div h2,
#startscreen > div ul li > div p {
  margin: 0;
}
#startscreen > div ul li > div button,
#startscreen > div ul li > div a {
  display: inline-block;
  background: transparent;
  color: #eee;
  border: none;
  font-size: 1.1em;
  font-family: inherit;
  text-decoration: none;
  margin: auto;
  transition: transform ease-in-out 200ms;
  margin: 0.25em 0.5em;
}
#startscreen > div ul li > div button:hover,
#startscreen > div ul li > div a:hover {
  transform: scale(1.1);
  color: yellow;
}
#goFullscreen {
  font-family: Arial, sans-serif;
  position: absolute;
  right: 0;
  top: 0;
  margin: 0.3em 0.5em;
  font-size: 1.5em;
  color: white;
  background: none;
  border: 0;
}
#goFullscreen:before {
  content: '\26F6';
}
#goFullscreen:hover {
  color: yellow;
}
.fullscreen #goFullscreen:before {
  content: '\25FA';
}
.loading {
  margin: auto;
  display: flex;
  flex-direction: column;
  place-items: center;
  place-content: center;
}
.lds-ripple {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ripple div {
  position: absolute;
  border: 4px solid #fbb;
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}
@keyframes lds-ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    top: 0px;
    left: 0px;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}