@import url('https://fonts.googleapis.com/css2?family=Noto+Emoji&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap');

html {
  -webkit-text-size-adjust: 100%;
  min-height: -webkit-fill-available;
  /* Prevent font scaling in landscape while allowing user zoom */
  background-color: black;
}

body {
  display: absolute;
  color: #d0eaff;
  font: 0.8125em/1.5 Helvetica, 'Noto Color Emoji', Helvetica, Arial, sans-serif;
  user-select: none;
  overflow: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  height: -webkit-fill-available;
}

.fullbg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.fullbgImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg {
  z-index: -1;
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: #e5e5f7;
  opacity: 0.05;
  background-image: linear-gradient(30deg, #444cf7 12%, transparent 12.5%, transparent 87%, #444cf7 87.5%, #444cf7), linear-gradient(150deg, #444cf7 12%, transparent 12.5%, transparent 87%, #444cf7 87.5%, #444cf7), linear-gradient(30deg, #444cf7 12%, transparent 12.5%, transparent 87%, #444cf7 87.5%, #444cf7), linear-gradient(150deg, #444cf7 12%, transparent 12.5%, transparent 87%, #444cf7 87.5%, #444cf7), linear-gradient(60deg, #444cf777 25%, transparent 25.5%, transparent 75%, #444cf777 75%, #444cf777), linear-gradient(60deg, #444cf777 25%, transparent 25.5%, transparent 75%, #444cf777 75%, #444cf777);
  background-size: 20px 35px;
  background-position: 0 0, 0 0, 10px 18px, 10px 18px, 0 0, 10px 18px;
}

/* .bubble */

.bubble {
  border: solid 1px rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  box-shadow: inset 0 5px 5px rgba(255, 255, 255, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  clear: both;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0px;
  padding: 8px 30px;
  position: relative;
  /*text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);*/

  max-width: 90%;
  word-wrap: break-word;

  background-color: #0c0c0c;
  background-size: 4px 4px;
  background-image: repeating-linear-gradient(45deg, #00469c 0, #00469c 0.4px, #0c0c0c 0, #0c0c0c 50%);
}


.bubble.choice {
  opacity: 0.7;
  font-weight: bold;
  max-width: 80%;
}

.bubble.choice:hover {
  opacity: 0.9;
  transition: opacity 1s;

}

.bubble.choice.hide:hover {
  opacity: 0;
}

fn {
  display: block;
  font-size: 0.8em;
  line-height: 1em;
  font-weight: lighter;
}

.icon {
  margin: auto;
  padding:5px;
}

.optionbox {
  border-radius: 15px;
  display: none;
  z-index: 5;
  text-align: center;
  position: fixed;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
  border: solid;
  border-width: 1px;
  padding: 10px;
  background: #000000;
}

.settings {
  display: none;
  border-radius: 15px;
  z-index: 5;
  text-align: center;
  position: fixed;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
  padding: 10px;
  background-color: #000000;
  color: #93b5d7;
  flex-flow: row wrap;
  justify-content: space-around;
}

a {
  text-decoration: none;
  color: inherit;
}

a:visited,
a:focus,
a:hover,
a:active {
  color: inherit;
  text-decoration: none;
}

div.option {
  text-align: center;
}


div.option label:after {
  content: "\a";
  white-space: pre;
}

h1 {
  font-size: 30pt;
  margin-bottom: 10px;
}

h2 {
  font-size: 16pt;
  font-weight: regular;
  color: #222;
}

.header {
  position:fixed;
  z-index: 333;
  text-align: center;
  padding: 0.75vmin;
  top: 0;
  left: 0;
  right: 0;
  height: 3em;
  background-color: #585867;
  background-size: 10px 10px;
  background-image: repeating-linear-gradient(45deg, #171b5b 0, #171b5b 1px, #585867 0, #585867 15%);
  color: white;
}


.stats {
  display: flex;
  justify-content: center;
}

.stats::-webkit-scrollbar {
  display: none;
}

.skill {
  background-color: rgba(153, 177, 210, 0.5);
  padding: 0.4em;
  margin-left: 0.2em;
  margin-right: 0.2em;
  border-radius: 5em;
  transition: background-color 0.3s ease-in-out;
  font-size: 1.3em;
}

.skill:hover {
  background-color: rgba(153, 177, 210, 1);
  transition: background-color 0.6s;
}




.flash-green {
  animation: flash-green 2s infinite;
  box-shadow: 0 0 10vmax 6vmax rgba(153, 210, 177, 0.8);
  position: relative;
  z-index: 1;
  transition: box-shadow 0.3s ease-in-out;
}

@keyframes flash-green {
  0% {
    transform: scale(1);
    background-color: rgba(153, 210, 177, 0.5);
    box-shadow: 0 0 30vmax 18vmax rgba(153, 210, 177, 0.8);
  }

  50% {
    transform: scale(1.2);
    background-color: rgba(153, 210, 177, 1);
    box-shadow: 0 0 60vmax 36vmax rgba(153, 210, 177, 0.5);
  }

  100% {
    transform: scale(1);
    background-color: rgba(153, 210, 177, 0.5);
    box-shadow: 0 0 30vmax 18vmax rgba(153, 210, 177, 0);
  }
}

.flash-red {
  animation: flash-red 2s infinite;
  box-shadow: 0 0 10vmax 6vmax rgba(210, 153, 177, 0.8);
  position: relative;
  z-index: 1;
  transition: box-shadow 0.3s ease-in-out;
}

@keyframes flash-red {

  0% {
    transform: scale(1);
    background-color: rgba(210, 153, 177, 0.5);
    box-shadow: 0 0 30vmax 18vmax rgba(210, 153, 177, 0.8);

  }

  50% {
    transform: scale(1.2);
    background-color: rgba(210, 153, 177, 1);
    box-shadow: 0 0 60vmax 36vmax rgba(210, 153, 177, 0.5);
  }

  100% {
    transform: scale(1);
    background-color: rgba(210, 153, 177, 0.5);
    box-shadow: 0 0 30vmax 18vmax rgba(210, 153, 177, 0);
  }
}


.outerContainer {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  padding-bottom: 2vh;
  -webkit-overflow-scrolling: touch;
  overflow: scroll;
  overflow-x: hidden;
  top: 3em;
  left: 49vw;
  right: 1vw;
  bottom: 0;
  z-index: 1;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.outerContainer::-webkit-scrollbar {
  display: none;
}

div p:first-child {
  margin-top: 10vh;
}

@media screen and (orientation: portrait) {
  .outerContainer {
    height: 55%;
    bottom:0;
    top:auto;
    left: 0;
    right: 0;
    padding-bottom: 5vh;
  }

  div p:first-child {
    margin-top: 1vh;
  }
}


.container {
  display: block;
  height: 100%;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}



.outerPortraitBox {
  position:absolute;
  min-width:100%;
  min-height:100%;
  min-height: -webkit-fill-available;
}

.portraitbox {
  position:fixed;
  top: 5em;
  left: 5%;
  right: 50%;
  bottom: 2em;
  justify-content: bottom;
  text-align: center;
  z-index: 2;
  display: flex;
}

.portrait {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  top: 50%;
  left:50%;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  
}

@media screen and (orientation: portrait) {
  .portraitbox {
    left: 1vw;
    right: 1vw;
    top:4em;
    bottom:60%;
  }

  .portrait {
    top:100%;
    transform: translate(-50%, -100%);
    align-self: flex-end;
  }
}

#backgroundimage {
  z-index: 1;
}

#portraitimage {
  z-index: 2;
}





p {
  font-size: 13pt;
  line-height: 1.7em;
  font-weight: lighter;
}



strong {
  color: black;
  font-weight: bold;
}

.container .hide {
  opacity: 0.0;
}

.container .invisible {
  display: none;
}

.container>* {
  opacity: 1.0;
  transition: opacity 1s;
}


.choice {
  text-align: center;
  line-height: 1.7em;
}

.end {
  text-align: center;
  font-weight: bold;
  color: black;
  padding-top: 20px;
  padding-bottom: 20px;
}


#menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 3;
  display: none;
  transition: background-color 1s ease;
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
}



/* Inventory and Character Cards */
#inventory-screen,
#character-screen {
  color: #14181b;
  position: absolute;

  top: 10vh;
  left: 10vw;
  height: 80vh;
  width: 80vw;
  /*background-color: #8bb0d9;
  background-image: url("../backgrounds/wood.png");*/
  background-color: rgba(139, 176, 217, 0.5); /* Adjust the alpha value as needed */

  background-size:auto;
  overflow-y: auto;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  z-index: 5;
  display: none;
}

#inventory-screen::-webkit-scrollbar,
#character-screen::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

#menu-header {
  position: sticky;
  top: 0;
  height: 3em;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #073a6d;
  border-radius: 5px 5px 0 0;
  color: #c0cee0;
}

#menu-header h2 {
  color: #c0cee0;
}

#close-inventory,
#close-characterSheet {
  font-size: 24px;
  cursor: pointer;
}

#inventory-cards,
#character-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 10px;
}

.card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px;
  padding: 10px;
  background-color: #add8e6;
  border-radius: 5px;
  transition: background-color 1s ease;
}

.card:hover {
  background-color: #87cefa;
  transition: 0.2s;
}

.card-icon {
  font-size: 48px;
  margin-right: 10px;
}

.card h3 {
  margin: 0;
  color: #000000;
}

.card p {
  margin: 0;
}

.card-amount {
  background-color: #008cff8e;
  border-radius: 50%;
  color: #fff;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  margin-right: 0.2em;
  padding: 0.3em;
  min-width: 1.5em;
  display: inline-block;
}

.card-headline {
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* Map Screen Stuff */
.map-screen {
  transition: opacity 0.5s ease-in-out;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vmin;
  height: 70vmin;
  background-image: url("../backgrounds/map.PNG");
  background-size: cover;
  background-color: rgb(201, 173, 139);
  border: 1px solid rgb(210, 125, 35);
  border-radius: 10px;
  padding: 10px;
  z-index: 5;
  display: none;

}

.map-icon {
  font-size: 10vmin;
  text-align: center;
  line-height: 14vmin;
  color: white;
  text-shadow: 1px 1px 2px black, 0 0 1em black, 0 0 0.2em black;
}

.map-marker {
  position: absolute;
  font-size: 13vmin;
  color: red;
  transition: top 2s ease-out, left 2s ease-out;
  z-index: 6;
  text-shadow: 1px 1px 2px red, 0 0 1em red, 0 0 0.2em black;
  animation: bobbing 2s ease-in-out infinite;
}

@keyframes bobbing {
  0% {
    transform: translate(-50%, -50%);
  }

  50% {
    transform: translate(-50%, -70%);
  }

  100% {
    transform: translate(-50%, -50%);
  }
}