body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  min-width: 800px;
  min-height: 450px;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Verdana, sans-serif;
  font-size: 20px;
}

#gamecontainer {
  position: relative;
  display: block;
  width: 100vw;
  height: 100vh;
}

canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
}

.sidebar {
  position: absolute;
  top: 0;
  width: 200px;
  height: 100%;
  background-color: coral;
}

.sidebar.right {
  right: 0;
  padding-left: 15px;
  box-shadow: inset 15px 0 15px -14px black;
}

.sidebar.left {
  left: 0;
  padding-right: 15px;
  box-shadow: inset -15px 0 15px -14px black;
}

.sidebar > div > div.title {
  text-align: center;
  display: block;
  margin-top: 15px;
}

.terrainstats > div {
  display: flex;
  justify-content: start;
  margin-top: 10px;
}

.terrainstats > div > .icon {
  width: 20px;
  height: 20px;
}

.terrainstats > div > .name {
  width: 120px;
  margin-left: 5px;
}

.terrainstats > div > .count {
  width: 40px;
  text-align: right;
}

#endturn {
  position: absolute;
  width: 180px;
  text-align: center;
  bottom: 20px;
  font-size: 30px;
  font-weight: bold;
  right: 10px;
  box-shadow: inset 0 0 5px 2px black;
  background-color: burlywood;
  user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
}

#endturn:hover {
  box-shadow: inset 0 0 6px 3px black;
  background-color: aliceblue;
  cursor: pointer;
}

.powers > #energy {
  margin-top: 15px;
  margin-bottom: 35px;
  position: relative;
  width: 185px;
  height: 26px;
  background-color: black;
  box-shadow: 0 0 5px 5px ghostwhite;
}

.powers > #energy > .percentage {
  background-color: aqua;
  height: 26px;
  overflow-x: visible;
  white-space: nowrap;
}

.powers > #energy > label {
  position: absolute;
  width: 185px;
  text-align: center;
  top: 0;
  left: 0;
  color: ghostwhite;
}

.powers > #energy > .empty {
  position: absolute;
  font-size: 15px;
  left: -3px;
}

.powers > #energy > .full {
  position: absolute;
  font-size: 15px;
  right: -12px;
}

.power {
  box-shadow: inset 0 0 4px 3px black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  margin-top: 10px;
  width: 185px;
  height: 50px;
  cursor: pointer;
  user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  background-color: burlywood;
}

.power.disabled, .power.disabled:hover {
  box-shadow: inset 0 0 4px 3px gray;
  background-color: lightgray;
}

.power:hover {
  box-shadow: inset 0 0 4px 4px black;
  background-color: white;
}

.bottombar {
  position: absolute;
  bottom: 0;
  left: 215px;
  right: 215px;
  height: 150px;
  background-color: coral;
  padding-top: 15px;
  box-shadow: inset 0 15px 15px -14px black;
}

#logmessages {
  overflow-y: scroll;
  height: 100%;
}

#logmessages > div {
  font-size: 16px;
  margin-left: 5px;
}

#logmessages > div.warning {
  color: indigo;
}

.topbar {
  position: absolute;
  top: 0;
  left: 215px;
  right: 215px;
  height: 50px;
  background-color: coral;
  padding-bottom: 15px;
  box-shadow: inset 0 -15px 15px -14px black;
}

#visualconfig {
  margin-top: 15px;
  display: flex;
  justify-content: space-evenly;
}