html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: TurretRoad;
  src: url(TurretRoad-ExtraLight.ttf);
}

body {
  padding: 0;
  margin: 0;
  background-color: rgba(0,0,0,0.5);
  overflow-x: hidden;

}

.black_bg{
  background-color: #0F0 !important;
  background-image:url(img/archivebay_bg.jpg);
  color:#0F0 !important;

}

.option {
  cursor: pointer;
  align-self: flex-end;
  background-color: rgba(0,0,0,0.5);
  animation: Background 1s ease infinite;
  color: #fff;
}

.option:hover {
    background-color: rgb(33, 43, 33);
  color: #ff0;
  animation: none;
  filter: drop-shadow(2px 2px 0px #ff0);
}

.option:hover:after {
    background-color: #ff0 !important;
}

.messageContainer {
    margin-top: 20px;
  display: flex;
  flex-direction: column;
  border: 2px solid #ff0;
  padding: calc(20px + 1rem) 1rem;
  position: relative;
  animation: MessageContainerBackground 5s ease infinite;

}
.messages{

  scroll-padding-top: 10%;
  scroll-padding-bottom: 10%;
  max-height: 90vh;
  overflow-y: scroll;
  scroll-behavior: smooth;
}
.messageContainer:before{
    position: absolute;
    content: "";
    width: 200px;
    max-width: 100%;
    background-color: #ff0;
    height: 20px;
    top: 0px;
    left: 0px;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}
.messageContainer:after{
    z-index: -1;
    position: absolute;
    content: "";
    width: 300px;
    max-width: 100%;
    background-color: #330;
    height: 2px;
    right: 0px;
    bottom: 8px;


    /* clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); */
}

.message {
  padding: 0.6rem 1rem 0.4rem 1rem;
  margin: 0.5rem;
  display: inline-block;
  filter: drop-shadow(2px 2px 0px #333);
  position: relative;
  font-family: monospace;
  font-weight: 300;
  font-size: clamp(10px, calc(1.5vw), 20px);
}

.message:after{
    content:"";
    position: absolute;
    height: 5px;
    width: 60px;
    max-width: 100%;
    background-color: #ccc;
    right: 0px;
    bottom: -4.5px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%);
}
.message:before{
    content:"";
    position: absolute;
    height: 2px;
    width: calc(100% - 100px);
    max-width: 100%;
    background-color: rgba(0,0,0,0.5);
    left: -0.5px;
    top: 4px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.message.player {
  background-color: rgb(33, 43, 33);
  color: #ff0;
  align-self: flex-end;
  text-align: right;
  filter: drop-shadow(2px 2px 0px #ff0);
}
.message.player:after {
    background-color: #ff0;
}

.message.npc {
  background-color: rgb(29, 19, 21);
  color: rgb(255,0,73);
  filter: drop-shadow(2px 2px 0px rgb(255,0,73));
}

.message.npc:after {
    background-color: rgb(255,0,73);
    right: unset;
    left: 0px;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}
.message.npc:before{
    background-color: #402;
}



.spacer {
  height: 1px;
  margin: 1rem;
}

.bold {
  font-weight: 900;
}

@keyframes Background {
  0% {
    filter: drop-shadow(2px 2px 0px #555);
    background-color: #333;
  }
  50% {
    filter: drop-shadow(2px 2px 0px #444);
    background-color: #222;
  }
  100% {
    filter: drop-shadow(2px 2px 0px #555);
    background-color: #333;
  }
}
@keyframes BackgroundBrightness {
  50% {
    filter: brightness(2);
  }
}

@keyframes MessageContainerBackground {
    0% {
      background-color: rgba(25, 25, 0, 0.9);
    }
    50% {
      background-color: rgba(40, 40, 0, 0.9);
    }
    100% {
      background-color: rgba(25, 25, 0, 0.9);
    }
  }


  .btnContainer{
      display:grid;
      width: 100%;
      height: 100vh;
      position: absolute;
      top: 0px;
      left: 0px;
      place-content: center;
      pointer-events: none;
  }

  #startBtn, #endBtn, #closeBtn2{
      color: rgb(255,0,73) !important;
      background-color: #303 !important;
      border-color: rgb(255,0,73) !important;
      padding: 2rem;
      pointer-events: visible;
  }

  #startBtn:hover, #endBtn:hover, #closeBtn2:hover{
      background-color: #ff0 !important;
  }


  .close-button {
    display: block;
    width: 24px;
    height: 24px;
    position: absolute;
    right: -12px;
    top: -12px;
    overflow: hidden;
    border: 2px solid #ff0;
    cursor: pointer;
    background-color: #000;
  }
  .close-button > div {
    position: relative;
  }
  .close-button-block {
    width: 20px;
    height: 10px;
    position: relative;
    overflow: hidden;
  }
  .close-button-block:before, .close-button-block:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: calc(55% - 2px);
    display: block;
    width: 2px;
    height: 25px;
    transform-origin: bottom center;
    background: #ff0;
    transition: all ease-out 280ms;
  }
  .close-button-block:last-of-type {
    transform: rotate(180deg);
  }
  .close-button .in .close-button-block:before {
    transition-delay: 280ms;
    transform: translateX(20px) translateY(-20px) rotate(45deg);
  }
  .close-button .in .close-button-block:after {
    transition-delay: 280ms;
    transform: translateX(-22px) translateY(-22px) rotate(-45deg);
  }
  .close-button .out {
    position: absolute;
    top: 0;
    left: 0;
  }
  .close-button .out .close-button-block:before {
    transform: translateX(-5px) translateY(5px) rotate(45deg);
  }
  .close-button .out .close-button-block:after {
    transform: translateX(5px) translateY(5px) rotate(-45deg);
  }
  .close-button:hover .in .close-button-block:before {
    transform: translateX(-5px) translateY(5px) rotate(45deg);
  }
  .close-button:hover .in .close-button-block:after {
    transform: translateX(5px) translateY(5px) rotate(-45deg);
  }
  .close-button:hover .out .close-button-block:before {
    transform: translateX(-20px) translateY(20px) rotate(45deg);
  }
  .close-button:hover .out .close-button-block:after {
    transform: translateX(20px) translateY(20px) rotate(-45deg);
  }

  b{
    font-weight:900;
  }

  .overwrite_bg{
    background-image: url("bg.jpg");
    background-size: cover;
    background-position: 50% 50%;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
  }

  .overwrite_bg_container{
    width: 100%;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index:1;
    left: 0px;
    top: 0px;
  }

  .bg_overlay{
    position: absolute;
    pointer-events: none;
    display: none;
    z-index:2;
    top: 0px;
    left: 0px;
    filter: brightness(1);

    animation: BackgroundBrightness 1s ease infinite;
  }

  .bg_overlay.overlay_hover, .bg_overlay.overlay_selected{
    display: block;
  }

  #bg_map{
    transform: scale(0.6, 0.6);
    position: relative;

  }

  .msgBg{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    top: 0px;
    left: 0px;
  }

  .props_container{
    position: absolute;
    width: 40ch;
    max-width: 80vw;
    min-height: 30px;
    top: -15px;
    left: -20ch;
    background-color: #000;
    border: #ff0 2px solid;
    font-size: clamp(8px, calc(1.5vw), 18px);
    padding: calc(1.5vw);

  }

  .props_container_text, .props_container, .propsCloseBtn{
    -webkit-user-select: none;  /* Chrome all / Safari all */
    -moz-user-select: none;     /* Firefox all */
    -ms-user-select: none;      /* IE 10+ */
    user-select: none;          /* Likely future */
  }

  .optionAll{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
