body {
  background-color: #555555;
  font-family: 'Exo 2', sans-serif;
}

.main {
  position: absolute;
  left: 50%;
  transform: translate(-50%,0%);
  text-align: center;
}

/* Game control instructions  */

#controls-div, #map-info {
  display: none;
  position: absolute;
  top: 67px;
  z-index: 2;
  background-color: rgba(200, 200, 200, 0.99);
  border-radius: 10px;
}

#control-button {
  position: absolute;
  right: 20px;
  top: 20px;
  padding: 10px;
  background-color: #817777;
  border: none;
  cursor: pointer;
  color: #eeeeee;
  display: none;
  border-radius: 5px;
}

#control-button:hover {
  color: #413939;
  background-color: #dddddd;
}


#control-button:hover+#controls-div {
  display: block;
}

/* Screen to display on winning the game */

#win-screen {
  display: none;
}

#win-screen img {
  margin-bottom: 20px;
  width: 600px;
  display: block;
}

#win-screen button, #end-screen button {
  width: 175px;
  height: 50px;
  border: none;
  cursor: pointer;
  background-color: #cccccc;
}

/* Start or home screen */

#start-screen {
  display: none;
  position: relative;
}

#start {
  width: 296px;
  height: 100px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  left: 274px;
  top: 281px;
  background-size: cover;
}

/* Screen where the levels are displayed */

#level-screen {
  display: none;
}

.levels {
  width: 640px;
}

.levels button{
  width: 600px;
  height: 80px;
  border: none;
  cursor: pointer;
  background-color: #cccccc;
}

#maps__list {
  padding-left: 0px;
}


#maps__list li {
  list-style: none;
  float: left;
  margin: 15px 22.5px;
}

#maps__list::after {
  content: '';
  clear: both;
  display: table;
}

#level-screen canvas {
  cursor: pointer;
}

/* Screen to display for building levels(map) */

#map-builder {
  display: none;
  width: 800px;
}

#map-builder__canvas {
  float: left;
}

#input-group {
  position: absolute;
  top: 50%;
  right: 0px;
  transform: translate(0%,-50%);
}

#input-group button {
  margin-left: 30px;
  margin-bottom: 20px;
  display: block;
}

.back-button, #map-builder .back-button {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 30px;
}

.back-button i {
  color: white;
}

#map-builder button {
  width: 215px;
  height: 40px;
  background-color: #cccccc;
  cursor: pointer;
  border: none;
}

#map-builder #show-info {
  position: absolute;
  right: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 30px;
}

#show-info i{
  color: white;
}

#show-info:hover+#map-info {
  display: block;
}


/* Screen to display while playing the game */

#game-screen {
  display: none;
  position: relative;
}


#game-controls {
  position: absolute;
  left: 20px;
  top: 0px;
}

#game-controls button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 30px;
}

#game-play {
  color: #ff0000;
}

#game-pause {
  color: #2e3436;
}

#game-home {
  position: static;
  width: auto;
  height: auto;
}

#game-home i {
  color: #2e3436;
}


/* Screen to display on game over*/
#end-screen {
  display: none;
}

#game_over--img {
  display: block;
  margin: auto;
}








