html,
body {
  width: 100%;
  height: 100%;
  background-color: black;
  padding: 0px;
  margin: 0px;
  user-select: none;
}

canvas#game {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: fixed;
  background-color: black;
  z-index: 1;
}

canvas#game_weather {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: fixed;
  background-color: transparent;
  /*overflow: hidden;*/
  z-index: 2;
  pointer-events: none;
}

div#log {
  display: block;
  background: rgba(0, 0, 0, 0.9);
  font-family: Arial, sans-serif;
  font-size: 12pt;
  color: white;
  text-align: left;
  padding: 5px 9px;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 3;
}

.modal-header,
.modal-title,
.modal-body,
.dialog_person_name,
.pointmenu_content {
  font-family: "Cantarell", Corbel, Arial sans-serif;
  font-weight: 400;
  font-style: normal;
}

.modal-body {
  max-height: 70vh;
  overflow-y: auto;

  /* text-align: center;*/
}

.bootbox-body IMG {
  display: block;
  max-width: 60%;

  margin: 0 auto;
}
.bootbox-body .star_image {
  display: block;
  max-width: 40%;
  height: 40%;
  max-height: 40%;
  margin: 0 auto;
}
.star_info {
  display: inline-block;
  width: 50px;
  height: 50px;
}
.star_imagetext {
  text-align: center;
  font-size: 10pt;
  font-style: italic;
  color: black;
}
.modal-footer {
  align-items: center;
}
.modal-footer .btn {
  margin: 0 auto;
}

.modal-header {
  font-weight: bold;
}

.d_item_wrap {
  padding: 0px;
  margin: 0px;
  min-height: 30vh;
  max-height: 70vh;
  overflow-y: auto;
}

.d_item_title {
  font-weight: bold;
}

.d_item_fakta {
  border-top: #00000033 1px solid;
  font-style: italic;
}

.item_fakta_tempus {
  width: 50px;
  padding: 3px 6px 0px 0px;
  float: left;
}

/* ################################# */
@font-face {
  font-family: "Onion";
  src: url("Onions.woff2") format("woff2"), url("Onions.woff") format("woff"), url("Onions.ttf") format("truetype");
  /* Add more src entries for other formats if necessary */
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "AcuminPro";
  src: url("Acumin-PC.woff2") format("woff2"), url("Acumin-PC.woff") format("woff"), url("Acumin-PC.ttf") format("truetype");
  /* Add more src entries for other formats if necessary */
  font-weight: normal;
  font-style: normal;
}

/* POINT MENU */

.game_overlay {
  position: fixed;

  top: 0px;
  left: 0px;
  width: 100%;
  height: 50px;

  z-index: 2;
}
.game_overlay_inner_wrap {
  margin: 0 auto;
  width: 864px;
  height: 50px;

  display: flex;
  justify-content: space-between;
}

.point_button {
  color: white;
  font-size: 12px;
  display: flex;
  font-weight: bold;
  padding: 5px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  filter: drop-shadow(0px 0px 10px rgba(255, 0, 0, 0.75)); /* Adjust the values for your desired shadow effect */
}

.point_text {
  width: 200px;
  margin-left: 10px;
  display: inline-block;
  font-family: "Onion", sans-serif;
  font-size: 30pt;

  letter-spacing: 5px;
}

.point_img {
  margin-top: 5px;
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
}

.menu_button {
  width: 60px;
  justify-self: flex-end;
  /* background-color: #00000033;*/
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 5px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 2;
}

@media (min-width: 870px) {
  .game_overlay {
    z-index: 1100;
  }
}

.button_img {
  filter: drop-shadow(0px 0px 20px rgba(0, 0, 0, 0.75)); /* Adjust the values for your desired shadow effect */

  max-width: 40px;
  max-height: 55px;
}
.button_text {
  text-align: center;
}

/* ################################# */

/* SCROLLBARS */

​ .styled-scrollbars {
  /* Foreground, Background */
  scrollbar-color: #333 #999;
}
.styled-scrollbars::-webkit-scrollbar {
  width: 4px; /* Mostly for vertical scrollbars */
  height: 5px; /* Mostly for horizontal scrollbars */
}
.styled-scrollbars::-webkit-scrollbar-thumb {
  /* Foreground */
  background: #333333;
}
.styled-scrollbars::-webkit-scrollbar-track {
  /* Background */
  background: #33333322;
}

/* ################################# */

/* INVENTORY */

.pointmenu_wrap,
.inventory_wrap,
.dialog_wrap {
  position: fixed;
  margin-left: auto;
  z-index: 100;
}

.dialog_btn_pulse {
  position: relative;
  display: inline-block;
}
.dialog_btn_pulse::after {
  animation: pulse_opacity 2s infinite;
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 15px; /* Adjust the width to the desired circle size */
  height: 15px; /* Adjust the height to the desired circle size */
  background-color: red;
  border-radius: 50%;
  pointer-events: none; /* Prevents the circle from interfering with mouse events */
}

@keyframes pulse_opacity {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.dialog-btn IMG {
  max-width: 40px;
  max-height: 40px;
}

.inventory_items {
  /* a flex grid with 3x3 items */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 5px;
  padding: 5px;

  border-radius: 5px;

  user-select: none;
}

.inventory_epoke {
  grid-column: span 3;
  text-align: center;
  padding: 2px;
}

.inventory_item {
  display: inline-block;
  margin: 5px;
  padding: 5px;
  background-color: #00000011;
  color: black;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
}
.item_img {
  max-width: 50px;
  max-height: 50px;
}

.item_active {
  background-color: #f8f8f8;
  border: 2px solid #00000033;
  grid-column: span 3;
}
.item_active .item_img {
  max-width: 300px;
  max-height: 180px;
}
.item_title {
  display: none;
  text-align: center;
}
.item_desc {
  display: none;
  text-align: center;
}
.item_fakta {
  display: none;
  border-top: #00000033 1px solid;
  font-style: italic;
  text-align: center;
}

.empty_inventory {
  /* cover 3 cells in grid */
  grid-column: span 3;
}
@media (max-width: 800px) {
  .item_desc {
    font-size: 12px;
  }
}

/* ################################# */

/* POINTS */

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.5) rotate(0deg);
  }
  50% {
    transform: scale(1.5) rotate(360deg);
  }
}

.point_ani {
  animation: pulse 2s infinite;
}

/* ################################# */

/* DIALOG */

.static-hiss {
  width: 100%;
  height: auto;
}
.static-hiss:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("hiss.gif"); /* Add your static hiss gif image */
  opacity: 0.2; /* Adjust opacity for desired effect */
  pointer-events: none;
  animation: hiss 0.5s infinite;
}

@keyframes hiss {
  0% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.1;
  }
}

.modal-content {
  /*background-color: #f8f9ff;*/
  background: linear-gradient(to bottom, #dee0ec, #ffffff);
  color: black;
  border-radius: 1em !important;
  filter: drop-shadow(0px 0px 20px rgba(0, 0, 0, 0.75));
}

.dialog_wrap {
  font-family: "Cantarell", Corbel, Arial sans-serif;
  font-weight: 400;
  font-style: normal;
}

.dialog_wrap .modal-header {
  padding-bottom: 0px;
}

.dialog_people {
  /* flext with two divs, left and right aligned */
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;

  padding: 0px;
}
.dialog_person {
  justify-self: right;
}
.dialog_contents {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0px;
  min-height: 30vh;
  max-height: 30vh;
  overflow-y: auto;
}

.bootbox-body {
  min-height: 30vh;
  max-height: 80%;
  overflow-y: auto;
}

.btn {
  border: 1px solid #706f6f3d;
}
.dialog_player {
  /* justify to start */
  justify-self: left;
}

.dialog_person img,
.dialog_player img {
  max-height: 100px;
}

.dialog_person_name {
  font-weight: normal;
  font-style: italic;
  text-align: center;
}

.dialog_line_left {
  color: rgb(57, 57, 234);
  justify-self: left;
  text-align: left;
  width: 90%;
  margin-bottom: 5px;
}

.dialog_line_right {
  color: rgb(0, 0, 0);
  max-width: 90%;
  min-width: 50%;
  justify-self: right;
  text-align: left;
  margin-bottom: 5px;
  margin-right: 5px;
}

.dialog_line_center {
  color: green;
  width: 90%;
  justify-self: center;
  text-align: center;
  margin-bottom: 5px;
  margin-right: 5px;
}

.dialog_line {
  justify-self: center;
}
.dialog_image {
  max-width: 100px;
  max-height: 100px;
}

.dialog_inventory_items {
  background-color: #00000011;
  /* a flex grid with 3x3 items */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 5px;
  padding: 5px;

  overflow-y: auto;
  /* border-radius: 5px;*/
  max-height: 25vh;
  overflow-y: auto;
  user-select: none;
}

.dialog_item {
  display: inline-block;
  margin: 5px;
  padding: 5px;
  background-color: #00000011;
  color: black;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
}

.dialog_item img {
  max-width: 50px;
  max-height: 50px;
}

/* ################################# */
/*  TIDSREISE */

.epoke_tidsreise {
  position: fixed;
  background-color: black;
  pointer-events: none;
  width: 100%;
  height: 100%;
  z-index: 2000;
}
.epoke_tidsreise_inner {
  background: url("wormhole_5.jpg") no-repeat center center fixed;
  background-size: contain;
  z-index: 1;
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  flex: 1;
  /*  transform: scale(0.21);*/
  text-align: center;
}

.tidsreise_ani {
  animation: pulse 3s infinite;
}
