@font-face {
  font-family: "EB Garamond";
  src: local("Garmond"), url("./fonts/EBGaramond-VariableFont_wght.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("./fonts/fontawesome/fa-solid-900.woff2") format("woff2");
}
/*******************/
/**** VARIABLES ****/
/*******************/
:root {
  --color-white:	#ffffff;
  --color-black:	#000000;
  --color-grey: #666666;
  --color-primary-100:	#0D8989 /** rgba(13,137,137,1) */;
  --color-primary-020:	rgba(13,137,137,0.2);
  --color-primary-040-black:	#053737 /* rgba(13,137,137,0.4) in front of black background */;
  --color-primary-060-black:	#085252 /* rgba(13,137,137,0.6) in front of black background */;
  --color-primary-080-black:	#0A6E6E /* rgba(13,137,137,0.8) in front of black background */;
  --color-highlight-blue-100:	#2F74C2;
  --color-highlight-blue-040-black:	#132E4E /* rgba(13,137,137,0.4) in front of black background */;
  --color-highlight-blue-060-black:	#1C4674 /* rgba(13,137,137,0.6) in front of black background */;
  --color-highlight-blue-080-black:	#265D9B;
  --color-highlight-red-100:	#b00f0f;
  --color-highlight-red-040-black:	#460606 /* rgba(13,137,137,0.4) in front of black background */;
  --color-highlight-red-060-black:	#6A0909 /* rgba(13,137,137,0.6) in front of black background */;
  --color-highlight-red-080-black:	#8D0C0C;
  --color-highlight-yellow-100:	#b9970d;
  --color-highlight-yellow-040-black:	#4A3C05 /* rgba(13,137,137,0.4) in front of black background */;
  --color-highlight-yellow-060-black:	#6F5B08 /* rgba(13,137,137,0.6) in front of black background */;
  --color-highlight-yellow-080-black: #94790A;
  --color-grey-1:	#867D7D;
  --color-grey-2:	#514545;
  --color-grey-3:	#373535;
  --color-grey-4:	#222222;
  --color-grey-5:	#333333;
  --color-grey-6:	#ddd6d6;
}

/*********************/
/**** FONTAWESOME ****/
/*********************/
.fa {
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.65));
}

.fa-check::before {
  content: "\f00c";
}

.fa-chevron-down::before {
  content: "\f078";
}

.fa-chevron-right::before {
  content: "\f054";
}

.fa-book-open::before {
  content: "\f518";
}

.fa-pen-to-square::before {
  content: "\f044";
}

.fa-person::before {
  content: "\f183";
}

.fa-chess-rook::before {
  content: "\f447";
}

.fa-xmark::before {
  content: "\f00d";
}

.fa-square-xmark::before {
  content: "\f057";
}

.fa-square-xmark::before {
  content: "\f2d3";
}

.fa-bars::before {
  content: "\f0c9";
}

.fa-star::before {
  content: "\f005";
}

.fa-hand::before {
  content: "\f256";
}

.fa-play::before {
  content: "\f04b";
}

.fa-dice::before {
  content: "\f522";
}

.fa-plus::before {
  content: "+";
}

.fa-brands::before {
  content: "\f2b4";
}

.fa-right-to-bracket::before {
  content: "\f2f6";
}

.fa-right-from-bracket::before {
  content: "\f2f5";
}

.fa-pen::before {
  content: "\f304";
}

.fa-arrow-up::before {
  content: "\f062";
}

.fa-back::before {
  content: "\f1da";
}

.fa-trash::before {
  content: "\f1f8";
}

.fa-trash-arrow-up::before {
  content: "\f829";
}

.fa-scissors::before {
  content: "\f0c4";
}

.fa-refresh::before {
  content: "\f021";
}

.fa-clipboard-user::before {
  content: "\f7f3";
}

.fa-map::before {
  content: "\f279";
}

.fa-deploy::before {
  content: "\e538";
}

.fa-dungeon::before {
  content: "\f6d9";
}

/*Functional Styling*/
@media (pointer: coarse), (hover: none) {
  [title] {
    position: relative;
    display: inline-flex;
    /*justify-content: center*/
  }
  [title]:focus::after {
    content: attr(title);
    position: absolute;
    top: 90%;
    color: var(--color-black);
    background-color: var(--color-white);
    border: 1px solid;
    width: fit-content;
    padding: 3px;
    font-size: 10px;
  }
}
* {
  box-sizing: border-box;
}

/************************/
/**** GENERAL styles ****/
/************************/
.scrollable {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}

/*ToDo:  Conditionally hiding the scrollbar (https://blog.logrocket.com/hide-scrollbar-without-impacting-scrolling-css/) */
dialog {
  background-color: #DDD;
  border-radius: 1em;
  border: none;
  padding: 0;
  z-index: 10;
}

a, p, button, input, select, textarea {
  margin: 0;
  padding-top: 4px;
  font-size: 110%;
}

button {
  border: 0;
  outline: none;
  background-color: transparent;
}

button:hover {
  cursor: pointer;
}

img {
  -webkit-touch-callout: none;
}

.text-button:hover {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.button {
  position: relative;
  background-size: auto 37px;
  height: 37px;
  width: max-content;
  border-radius: 45px;
  cursor: pointer;
}

.button:hover {
  filter: brightness(200%);
}

.button-primary {
  width: min-content;
  height: auto;
  height: 34px;
  background-image: linear-gradient(180deg, var(--color-grey-1), var(--color-grey-2) 44%);
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.65));
  text-align: center;
  border-radius: 45px;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--color-white);
  padding: 8px;
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
  min-width: 100px;
}

.button-primary.petrol {
  background-image: linear-gradient(180deg, var(--color-primary-100), var(--color-primary-040-black) 44%);
}

.button-primary:hover {
  background-image: linear-gradient(180deg, var(--color-grey-1), var(--color-grey-2) 75%);
}

.button-primary.petrol:hover {
  background-image: linear-gradient(180deg, var(--color-primary-100), var(--color-primary-040-black) 75%);
}

.button-primary-circle {
  padding: 8px 15px 8px 45px;
}

.button-primary-circle::before {
  width: 30px;
  height: 30px;
  background-color: var(--color-grey-3);
  border: 2px solid var(--color-grey-1);
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  border-radius: 45px;
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-primary-circle.petrol::before {
  background-color: var(--color-primary-040-black);
  border: 2px solid var(--color-primary-100);
}

.button-primary:hover.button-primary-circle::before {
  background-color: var(--color-grey-2);
}

.button-primary.petrol:hover.button-primary-circle::before {
  background-color: var(--color-primary-060-black);
}

.button-circle {
  position: relative;
  background-color: var(--color-grey-3);
  border: 2px solid var(--color-grey-1);
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.65));
  width: 36px;
  height: 36px;
  border-radius: 45px;
  color: var(--color-white);
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
}

.button-icon {
  width: 20px;
  height: 20px;
}

.button-label {
  color: var(--color-white);
  font-weight: bold;
  padding-left: 40px;
  padding-right: 10px;
  display: block;
}

h1 {
  text-align: center;
  font-size: xx-large;
}

/*h3
 * margin: 0.5em  */
label {
  color: #ccc;
}

textarea {
  color: var(--color-white);
  background-color: var(--color-black);
  border: darkgrey 1px solid;
  font-size: 110%;
}

.text {
  /*padding: 0*/
  /*position: relative*/
  /*background: var(--color-grey-2)*/
  color: var(--color-white);
  /*vertical-align: baseline*/
  width: 100%;
  height: 28px;
  box-sizing: border-box;
  border: 1px solid var(--color-grey-2);
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
  padding-top: 4px \9 ;
}

input, select {
  background: black;
  color: var(--color-white);
  -webkit-user-select: text;
  overflow: visible;
  line-height: normal;
}

output {
  text-align: right;
}

input:disabled {
  color: #ccc;
}

input.placeholder {
  color: grey;
}

input[type=file] {
  display: none;
}

.text input[type=text]:hover {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.text input[type=text]:focus {
  box-shadow: 0 0 0 3px #80a62d;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
  text-align: right;
}

.text input[type=submit]:hover, .text-rounded input[type=submit]:hover, .text input[type=submit]:focus, .text-rounded input[type=submit]:focus {
  background-position: center -30px;
}

.button {
  position: relative;
  display: inline-block;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
  user-select: none;
}

.button:disabled {
  opacity: 20%;
}

.button:hover, .button:focus {
  filter: brightness(150%);
  box-shadow: 0 0 30px 10px grey;
}

.button:active {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 1px 1px 1px rgba(255, 255, 255, 0.5), inset 0 1px 2px rgba(0, 0, 0, 0.5);
  background: #777777 linear-gradient(45deg, #cccccc, #777777);
}

.button > img {
  pointer-events: none;
}

.button.close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 20px;
  height: 20px;
}

.miniButton {
  height: 30px;
  width: 42px;
  background-color: darkgrey;
  border: 2px outset lightgrey;
  padding: 0;
  justify-self: center;
}

.minimenu {
  position: absolute;
  right: 0;
  top: 0;
  height: 20px;
  width: 16px;
  cursor: pointer;
  background: #444;
  color: #AAA;
  padding: 0;
}

.dropzone:hover {
  filter: brightness(1.5);
}

.hint {
  cursor: help;
}

.invisible {
  display: none;
}

.button.icon {
  height: 50px;
  width: 50px;
}

table {
  table-layout: initial;
  width: 100%;
  /* border: 1px solid dimgrey */
  border-collapse: collapse;
}

th, td {
  border: 1px solid grey;
  padding: 3px;
}

.headerCol {
  text-align: left;
  font-size: larger;
  font-weight: bold;
  padding: 1em 12px 8px;
  border: 0;
}

.numberCol {
  text-align: right;
}

/**** GENERAL icons anywhere on the page **** */
.clickable {
  cursor: pointer;
}

.icon {
  /* display: inline-block */
  position: relative;
  margin: 0;
}

.icon img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.icon figcaption {
  position: absolute;
  left: 15px;
  top: 40px;
  width: 3ch;
  text-align: center;
  margin: 0;
  background: #555;
  font-size: small;
}

.icon a {
  position: absolute;
  left: -5px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  font-size: 80%;
}

.icon p {
  position: relative;
  bottom: 8px;
  width: 55px;
  /* height: 15px */
  font-size: 80%;
  text-align: center;
  overflow: hidden;
}

.icon.spanRows {
  grid-row: 1/span 5;
}

figure > img {
  pointer-events: none;
}

.doublespan {
  grid-column: span 2;
  white-space: nowrap;
}

.triplespan {
  grid-column: span 3;
}

.quadspan {
  grid-column: span 4;
}

.centered {
  text-align: center !important;
}

.hidden {
  display: none;
}

/**** combined selectors not supported by svelte **** */
.actdata {
  display: grid;
  justify-content: center;
  grid-gap: 5px;
  margin: 5px;
  font-size: 1.2em;
}

.masterView .actdata {
  grid-template-columns: 3fr 2fr 4ch;
}

.playerView .actdata {
  grid-template-columns: 3fr 2fr;
}

.affil-fellow {
  background-color: #0000ff;
}

.affil-friend {
  background-color: #1f991f;
}

.affil-neutral {
  background-color: #999999;
}

.affil-enemy.rank1 {
  background-color: #e6e60b;
}

.affil-enemy.rank2 {
  background-color: #e6780b;
}

.affil-enemy.rank3 {
  background-color: #cc1414;
}

.affil-enemy.rank {
  background-color: #7e17e6;
}

.areaEffect {
  position: absolute;
  border-radius: 50%;
  opacity: 70%;
}

/**** MAP arrows **** */
.hole {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  --rect-size: 75px;
  /* can cut through all this * */
  background-color: rgba(10, 161, 232, 0.3);
  backdrop-filter: blur(3px);
  justify-content: center;
}

/**** common TIMELINE styles **** */
.tick-time {
  grid-column: 1;
}

.tick-char {
  justify-self: center;
}

.tick-actor {
  display: inline-block;
  position: relative;
  grid-column: 2;
  grid-row: span 3;
}

.tick-double {
  grid-column: 3/span 2;
}

.review {
  grid-row: span 3;
}

.playerView .review {
  display: none;
}

details {
  max-width: 500px;
  padding: 16px 8px;
}

summary {
  display: flex;
  font-size: 20px;
  font-weight: bold;
}

summary + div {
  padding: 10px 0;
}

summary:hover {
  cursor: pointer;
}

summary::after {
  content: "\f059";
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.65));
  padding-left: 8px;
}

details[open] > summary::after {
  content: "\f078";
}

summary.incident::after {
  content: "\f05a";
  color: var(--color-grey-6);
}

details[open] > summary.incident::after {
  content: "\f00d";
  color: var(--color-grey-6);
}

summary.incident.dark::after {
  color: var(--color-grey-1);
}

details[open] > summary.incident.dark::after {
  color: var(--color-grey-1);
}

details .explanation {
  margin: 8px;
}

/*Info-Box* */
.infobox {
  display: flex;
  flex-flow: column nowrap;
  background-color: var(--color-primary-040-black);
  border-radius: 15px;
  padding: 20px 20px 0 20px;
  margin: 15px 0;
}

.infobox details {
  padding: 0 0 15px 0;
}

.infobox summary {
  font-size: 18px;
  font-weight: bold;
}

.tabContent,
#gearPanel,
.combatPanel {
  padding: 5px;
  background-color: var(--color-grey-1);
  /* border: 2px solid var(--color-grey-1) * */
}

.tabContent tr:nth-child(even) td,
#gearPanel tr:nth-child(even) td {
  background-color: var(--color-grey-4);
}

.tabContent tr:nth-child(odd) td,
#gearPanel tr:nth-child(odd) td {
  background-color: var(--color-grey-3);
}

.tabContent thead,
#gearPanel thead,
.combatPanel thead {
  background-color: var(--color-primary-060-black);
  font-style: italic;
}

.tabContent table, .tabContent th, .tabContent td,
#gearPanel table, #gearPanel th, #gearPanel td,
.combatPanel table, #gearPanel th, #gearPanel td {
  border: none;
  outline: none;
  border-collapse: collapse;
}

.tabContent td,
#gearPanel td,
.combatPanel td {
  padding: 5px 5px;
}

.tabContent h3,
#gearPanel h3,
.combatPanel h3 {
  background-color: var(--color-primary-040-black);
  padding: 5px 0;
  margin-bottom: 0;
  text-align: center;
  border-radius: 15px 15px 0 0;
}

.combatPanel {
  display: flex;
  flex-flow: column nowrap;
  gap: 20px;
  padding: 20px 10px;
}

.combatPanel .activityarea {
  position: relative;
  border-radius: 15px;
  border: 2px solid var(--color-primary-040-black);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  break-inside: avoid;
  background-color: var(--color-grey-4);
  padding: 0;
}

.combatPanel .activityarea-inner {
  padding: 20px 10px;
}

.combatPanel .activityarea h3 {
  margin: 0;
}