* {
  box-sizing: border-box;
  font-family: sans-serif;
}

#map {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

#hud {
	z-index: 100000;
	position: absolute;
	bottom: 0px;
	left: 0px;
	right: 0px;
}

#hud .bottom {
	font-size: 1.4em;
	padding: 0.2em 0.5em;
	background-color: rgba(255,255,255,1);
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  box-shadow: rgba(0,0,0,0.4) 0px 0px 20px 0px;
}

#hud .bottom > div {
  display: flex;
  justify-content: center;
  align-items: center;
}

#hud .bottom span {
  display: flex;
  justify-content: center;
  align-items: center;
	margin-right: 0.4em;
	margin-left: 0.1em;
}

#hud .bottom span img {
	height: 1em;
}

#hud .bottom span.build {
	cursor: pointer;
	background-color: orange;
	border: 4px solid #D69D60;
	height: 2.2em;
	width: 2.2em;
	border-radius: 1.4em;
  display: flex;
  justify-content: center;
  align-items: center;
}

#hud .wave-time.inbetween {
  color: #45cf75;
}

#hud .wave-time.inwave {
  color: #cb4646;
}

.infobutton {
  position: absolute;
  top: 1em;
  right: 1em;
  height: 22pt;
  width: auto;
  cursor: pointer;
  z-index: 100000;
}

.help-wrapper {
  z-index: 100001;
  display: flex;
  position: fixed;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
}

.help-wrapper .help {
  display: flex;
  position: fixed;
  justify-content: flex-start;
  align-items: center;
  flex-flow: column nowrap;
  background: #FFF;
  padding: 1.5em;
  border-radius: 8px;
  width: 80ch;
  max-width: 100vw;
  max-height: 90vh;
  overflow-y: scroll;
  overflow-x: hidden;
}

.help-wrapper .help img {
  max-width: 100%;
}

@media only screen and (max-width: 560px) {
  .help-wrapper .help {
    max-height: 100vh;
    border-radius: 0;
  }
}

form input[type=radio]:checked + label img{
    border: 2px solid blue;
}

.leaflet-map-pane:not(.leaflet-zoom-anim) .leaflet-marker-pane .leaflet-div-icon {
	transition: transform 1s;
	transition-timing-function: linear;
}

path.shoot {
	stroke: red !important;
	stroke-width: 2px;
	stroke-dasharray: 10 100;
	animation: dash 20s linear;
}

@keyframes dash {
  to {
    stroke-dashoffset: -2000;
  }
}

/* Circle classes */

path[data-level="1"]{
	stroke: #99d594;
	fill: #99d594;
}

path[data-level="2"]{
	stroke: #3288bd;
	fill: #3288bd;
}

path[data-level="3"]{
	stroke: #d53e4f;
	fill: #d53e4f;
}

path[data-level="4"]{
	stroke: #4d4d4d;
	fill: #4d4d4d;
}

path[data-friend="1"]{
	stroke: rgba(204, 204, 204, 0.8);
	fill: rgba(204, 204, 204, 0.8);
}

path[data-me="1"]{
	stroke: orange;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.leaflet-map-pane:not(.leaflet-zoom-anim) .leaflet-marker-pane img.is-attacked {
    animation: blink 1s;
    animation-iteration-count: infinite;
}

.friend-icon {
  min-width: 1px;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  transform: translate(-2px, -12px);
}

.friend-icon img {
  width: 30px;
  height: 30px;
}

.friend-icon .friend-name {
  font-size: 0.8em;
  color: rgba(0, 0, 0, 0.8);
  text-align: center;
  white-space: nowrap;
}

.status {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column nowrap;
	position: fixed;
	top: 0px;
	left: 0px;
  height: 100dvh;
  width: 100dvw;
	text-align: center;
  padding-top: 0em;
	background-color: rgba(255,255,255,0.7);
	z-index: 10000000;
}

.status h1 {
  font-size: 2.5em;
  margin: 0.25em 0;
}

.overlay-message.pause {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  text-align: center;
  z-index: 100000;
  padding: 2em;
  border-radius: 10px;
  color: #FFF;
  background-color: rgba(41, 112, 211, 0.9);
}

.overlay-message.pause h1 {
  margin: 0px;
}

.show {
  display: flex;
}

.hide {
  display: none;
}

.flex {
  display: flex;
}

.column {
  display: flex;
  flex-flow: column nowrap;
}

.column-1-2 {
  flex: 1 1 50%;
}

.row {
  display: flex;
  flex-flow: row nowrap;
}

.fullheight {
  height: 100%;
}

.fullwidth {
  width: 100%;
}

button.close {
  position: absolute;
  right: 0.6em;
  top: 0.6em;
  background: none;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  width: 1.4em;
  height: 1.4em;
  line-height: 1em;
}

button.close:hover {
  background: rgba(0,0,0,0.2);
}

a.button {
  width: 100%;
  background-color: #4caf50;
  color: white;
  padding: 1em 2em;
  margin: 8px 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: inherit;
  text-decoration: none;
  font-size: 1em;
}

img.inline {
  height: 1em;
  width: auto;
}

.sidebyside {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: calc(100% - 2em)
}

.sidebyside > img {
  width: 50%;
  object-fit: cover;
}

.preline {
  white-space: pre-line;
}

.leaflet-interactive.self {
  stroke: #683eab;
	fill: #683eab;
}

/** Enemy icon and health bar **/
.leaflet-div-icon {
  border: none;
  background: none;
}

.enemy-icon {
  width: 30px;
  height: 40px;
  display: flex;
  flex-flow: column nowrap;
  overflow: visible;
  gap: 3px;
  margin-top: -15px;
  margin-left: -15px;
}

.enemy-icon > img {
  width: 100%;
}

.enemy-icon > .hp-bar-wrapper {
  width: 100%;
  height: 5px;
  background: #F00;
}

.enemy-icon > .hp-bar-wrapper > .hp-bar {
  height: 100%;
  background: #0F0;
}

p.scoreboard {
  font-size: 30px;
  margin-top: 0em;
}

h1 {
  margin-bottom: 0.3em;
  margin-top: 0.3em;
}

img.upgradeReady {
  background-image: url('../images/towerUpgrade.svg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: 10px 0px;
  padding-top: 10px;
  margin-top: -25px !important;
  background-size: 10px 10px;
  height: 40px !important;
}
