
body {
  margin: 0px;
  overflow: hidden;
  font-family: Verdana;
}

* {

  box-sizing: border-box;

}

.screen {

  position: fixed;
  z-index: 999;
  display: none;
  top: 0px;
  left: 0px;
  background-color: white;
  width: 100%;
  height: 100%;

}

.fancy {
  font-size: 26px;
  padding: 7px;
  color: black;
  border: black solid 1px;
  border-radius: 4px;
}

.green {
  background-color: #7CFC00;
}

.openMatches {

  display: flex;
  flex-direction: column;
  width: 80%;
  margin-top: 20px;

}

.chooseMatchScreen {
  display: flex;
  flex-direction: column;
  justify-content: top;
  align-items: center;
  width: 100%;
  padding: 20px;

}

.matchLobbyScreen {
  display: flex;
  flex-direction: column;
  justify-content: top;
  align-items: center;
  width: 100%;
  padding: 20px;

}

.matchElementParent {

  display: flex;
  flex-direction: row;
  background-color: #aaaaee;
  padding: 10px;
  cursor: pointer;

}

.matchElementTitle {

  display: flex;
  flex-direction: column;
  flex-shrink: 3;

}

.matchElementName {

  font-size: 20px;

}

.matchElementHostName {

  font-size: 14px;

}

.matchElementPlayers {

  flex-shrink: 3;
  display: flex;
  align-items: center;

}

.matchElementSpace {

  flex-grow: 2;

}

.sidebar {

  position: fixed;
  left: 0px;
  top: 0px;
  width: 400px;
  height: 100vh;
  border-right: 8px black solid;
  background-color: white;
  z-index: 9999;
  overflow-y: auto;

}

.section{

  min-height: 20px;
  border-bottom: 8px black solid;
  position:relative;

}

.statsSection {

  padding: 20px;
  display: flex;
  font-size: 20px;
  line-height: 38px;

}

#canvas {
  position: fixed;
  left: 400px;
  top: 0px;
  width: calc(100vw - 400px);
  height: 100vh;
}

.buildAttack {

  display: flex;
  flex-direction: row;
  justify-content: space-between;

}

.action {

  height: 83px;
  line-height: 55px;
  padding: 14px;
  display: flex;
  cursor: pointer;
  border: 4px white solid;

}

.action.selected, .selectedMessage.selected {
  border: 4px black solid;
}

.action img {
  width: 55px;
  margin-right: 10px;
}

.build {

  background-color: #A9D18E;

}

.attack {

  background-color: #F4B183;

}

.actionSection {
  padding: 30px 30px;
}

.selectedMessage {
  background-color: #D9D9D9;
  text-align: center;
  padding: 5px;
  margin-top: 10px;
  border: 4px white solid;
}

.section.arrow::after {
  content: '';
  position: absolute;
  left: calc(50% - 20px);
  top: calc(100% + 8px);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid black;
  clear: both;
}

#matchScreen {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+/Edge */
  user-select: none; /* Standard */
}

.chooseBuildingSection {

  text-align: center;

}

.row {
  display: flex;
  justify-content: space-evenly;
  line-height: 38px;
}

.building {
  width: 160px;
  margin-bottom: 20px;
  cursor: pointer;
}

.building.selected {
  border: 3px solid black;
}

.buildingTitle {
  background-color: #E2F0D9;
  text-align: center;
}

.buildingBody {
  background-color: #F2F2F2;
  display: flex;
  padding: 0px 10px;
}

.buildingImage {

  flex: 1;
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 10px;

}

.buildingCost {

  flex: 1;

}

.buildInstructions {
  text-align: center;
  padding: 40px;
}
