/* Color palette used -
http://www.color-hex.com/color-palette/50738 */
@import url("https://fonts.googleapis.com/css?family=Caveat+Brush|Roboto:300,400");
html {
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  background-color: #d7b28a;
}

body {
  font-family: "Roboto", sans-serif;
  padding: 40px 30px 20px;
  text-align: center;
  margin: auto;
  color: #362f29;
}
body p {
  margin: 0px;
}

h1 {
  font-size: 45px;
  margin: 0px;
  color: #745c50;
  font-family: "Caveat Brush", cursive;
}

#gameZone {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

#rules {
  width: 280px;
  margin-right: 30px;
}
#rules ol {
  text-align: left;
  background-color: #e5c5a3;
  padding: 15px;
  border-radius: 3px;
}
#rules ol li {
  list-style: none;
}
#rules ol li:first-child {
  margin-bottom: 15px;
}

#app {
  position: relative;
}

#message {
  margin-top: 20px;
}
#message span#sep {
  margin: 0px 10px;
  opacity: 0.5;
}
#message button {
  border: none;
  background-color: #745c50;
  color: #f4e5d4;
  padding: 2px 10px;
  margin-left: 15px;
  border-radius: 3px;
  font-family: "Caveat Brush", cursive;
  -webkit-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
#message button:active {
  outline: none;
}
#message button:hover {
  cursor: pointer;
  background-color: #8b6e5f;
}

#win {
  position: absolute;
  z-index: 10;
  right: 0;
  left: 0;
  margin: auto;
  font-family: "Caveat Brush", cursive;
  top: 55%;
  font-size: 30px;
  text-shadow: 2px 0 0 #d7b28a, -2px 0 0 #d7b28a, 0 2px 0 #d7b28a, 0 -2px 0 #d7b28a, 1px 1px #d7b28a, -1px -1px 0 #d7b28a, 1px -1px 0 #d7b28a, -1px 1px 0 #d7b28a;
}

#game {
  border-bottom: 7px solid #362f29;
  border-radius: 3px;
  padding: 0px 25px;
  margin: 50px 0px 0px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.tower {
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  -ms-flex-negative: 1;
  flex-shrink: 1;
  -ms-flex-preferred-size: 0%;
  flex-basis: 0%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-width: 190px;
  min-height: 180px;
  text-align: center;
  position: relative;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.tower:nth-child(2) {
  margin: 0px 25px;
}
.tower .towerMiddle {
  position: absolute;
  height: 100%;
  width: 6px;
  background-color: #362f29;
  border-radius: 3px 3px 0px 0px;
  margin: auto;
  right: 0;
  left: 0;
  z-index: -1;
}
.tower .arr {
  -ms-flex-item-align: end;
  align-self: flex-end;
}
.tower .element {
  height: 20px;
  margin: auto;
  border-radius: 2px;
  -webkit-box-shadow: inset -9px -17px 5px -15px rgba(0, 0, 0, 0.11);
  -moz-box-shadow: inset -9px -17px 5px -15px rgba(0, 0, 0, 0.11);
  box-shadow: inset -9px -17px 5px -15px rgba(0, 0, 0, 0.11);
}

@media (max-width: 800px) {
  #gameZone {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  #rules {
    width: auto;
    margin-right: 0px;
  }
}