.journal-wrapper {
  z-index: 2;
  position: relative;
  top: 0.75em;
  height: 100%;
  margin: 1em;
  margin-bottom: 0;
  display: flex;
  flex-direction: row;
  flex-grow: 1;
}

.journal {
  overflow: hidden;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.journal-tabs {
  display: flex;
  flex-direction: column;
  min-height: 50px;
}

.journal-tabs button {
  background-color: palegoldenrod;
  width: 3em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  flex-grow: 1;
  margin: 0;
  padding: 0;
  /* margin-bottom: 0.25em; */
  /* height: 45px; */
  border-bottom-right-radius: 1em;
  border-top-right-radius: 1em;
  transition: width, margin-right, 0.1s;
}
.journal-tabs button span {
  writing-mode: vertical-lr;
}
.journal-tabs button:hover {
  background-color: palegoldenrod;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
  width: 4em;
  margin-right: -1em;
}

.journal-page {
  border-top-left-radius: 1em;
  border-bottom-left-radius: 1em;
  background-color: white;
  display: none;
  padding: 0.5em;
  width: 100%;
  /* overflow: hidden; */
}

.journal-text {
  max-width: 550px;
  margin: 0 auto;
  padding-right: 1em;
  height: calc(100% - 45px);
  overflow-y: scroll;
}

.journal-page.active {
  display: block;
  position: absolute;
  flex-direction: column;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.journal-page h1 {
  text-align: center;
}

#journal-status,
#journal-status-button {
  background-color: rgb(236, 233, 198);
}

#journal-log,
#journal-log-button {
  background-color: palegoldenrod;
}

#journal-log p {
  color: #444;
  opacity: 1;
}

#journal-guide-button,
#journal-guide {
  background-color: rgb(224, 228, 168);
}

.guide-help-icon {
  position: absolute;
  top: 12px;
  text-align: right;
  right: 18px;
}

.map-overlay-container {
  pointer-events: none;
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 9px;
  right: 9px;
}

.map-overlay-container > img {
  position: absolute;
  /*filter: drop-shadow(0 0 2px rgba(208, 254, 0, 1));*/
}
.map-overlay-container > .icon-container {
  position: absolute;
  /*filter: drop-shadow(0 0 2px rgba(208, 254, 0, 1));*/
}

.icon-badge {
  position: absolute;
  width: 15px;
  height: 15px;
  top: -10px;
  right: -10px;
}

.map-overlay-container > svg {
  width: 100%;
  height: 100%;
}

#journal-map,
#journal-map-button {
  background-color: rgb(255, 227, 185);
}
#map-canvas {
  border-radius: 6px;
}

#journal-map {
  /* position: relative; */
}

#map-container {
  border-radius: 8px;
  border: 2px solid rgba(220, 220, 165, 0.9);
  width: 100%;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
}

#map-overlay circle {
  fill: white;
}

.icon-container.critter.svg, 
.icon-container.predator.svg{
  fill: green;
  opacity: 0.1;
}

.icon-container.cowboy{
  border:1px solid white;
}



#journal-map-buttons {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  bottom: 50px;
  pointer-events: none;
  overflow: hidden;
  border: 1px solid rgba(220, 220, 165, 1);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

#journal-map-buttons button {
  pointer-events: all;
  border: 1px solid rgba(220, 220, 165, 1);
  color: rgb(136, 136, 76);
  width: 100%;
  height: 3em;
  border-radius: 0;
  background-color: rgba(255, 227, 185, 1);
  margin: 0;
}
#journal-map-buttons button:hover {
}

#journal-map-buttons button:not(:disabled):hover {
  background-color: rgba(220, 220, 165, 1);
  color: rgb(136, 136, 76);
  transition: color, background-color, 0.2s;
}

#journal-map .guide-help-icon:hover::after {
  content: "Drag from white square to draw your course. Drag map to pan. Pinch map or click zoom controls to zoom.";
  position: absolute;
  top: 2em;
  right: 0;
  z-index: 10;
  display: inline-block;
  background-color: white;
  width: 300px;
  border-radius: 1em;
  padding: 0.3em;
  box-shadow: 1, 1, 10, 0.1;
  text-align: center;
}

.debug-container p {
  opacity: 0.15;
  margin-bottom: 2px;
  border-bottom: 1px dotted black;
}

.debug-container p:last-of-type {
  margin-bottom: none;
  border-bottom: none;
}

@media screen and (min-width: 500px) {
  .journal-wrapper {
    margin-bottom: -1em;
  }
}

@media screen and (min-width: 875px) {
  .journal-wrapper {
    margin-bottom: -2.5em;
  }
}
