/* nice gray RGB(35, 74, 71) */
html {
  font-family: "Raleway", sans-serif !important;
}
body {
  margin: 0;
  background-color: #232323;
  font-size: 14px;
}

h1 {
  color: white;
  background-color: rgb(51, 122, 183);
  margin: 0;
  padding: 1%;
  font-size: 2rem;
  font-weight: 300;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.5s;
  -webkit-transition: background-color 0.5s;
  -moz-transition: background-color 0.5s;
}

#goalDisplay {
  text-transform: uppercase;
  display: block;
  font-size: 3rem;
}

.container {
  max-width: 600px;
  margin: 0 auto;
}
.container:before, .container:after {
  display: table;
  content: " ";
}
.container:after {
  clear: both;
}


#toolbar {
  background-color: white;
  margin-bottom: 1.5%;
  text-align: center;
}

#status {
  display: inline-block;
  width: 40%;
  margin: 0;
  text-align: center;
}
a,
a:hover,
a:active,
a:visited {
  color: aqua;
  outline: none;
  text-decoration: none;
  font-weight: 700;
}

#toolbar button, #overlay button {
  border: 0;
  padding: 0.3em 1em;
  font-weight: 700;
  font-family: inherit;
  text-transform: uppercase;
  background-color: white;
  outline: 0;
  transition: background-color 0.2s;
  -webkit-transition: background-color 0.2s;
  -moz-transition: background-color 0.2s;
}

#toolbar button:hover, #overlay button:hover {
  background-color: rgb(51, 122, 183);
  color: white;
}

#toolbar .selected {
  background-color: rgb(51, 122, 183);
  color: white;
}

#newGame {
  width: 120px;
}

#help {
  position: absolute;
  right: 0;
  height: 20px;
  width: 20px;
  color: white;
  font-size: 13px;
  font-weight: 300;
  background-color: transparent;
  border: 1px solid white;
  border-radius: 50%;
  margin: 1% 1% 0 0;
  padding: 1px 1px 0 0;
  outline: 0;
  transition: background-color 0.2s;
  -webkit-transition: background-color 0.2s;
  -moz-transition: background-color 0.2s;  
}

#help:hover {
  background-color: white;
  color: rgb(51, 122, 183);
}

.square {
  display: block;
  float: left;
  width: 30%;
  margin: 1.66%;
  padding-bottom: 30%;
  border-radius: 1rem;
  transition: background-color 0.5s;
  -webkit-transition: background-color 0.5s;
  -moz-transition: background-color 0.5s;
}

.hidden {
  display: none;
}

#dialog-about {
  display: none;
  font-family: "Raleway", sans-serif;
  line-height: 1.5em;
}

#overlay {
  position: absolute;
  background-color: rgba(155, 155, 155, 0.8);
  height: 100%;
  width: 100%;
  top: 0;
  transition: opacity 0.3s;
  -webkit-transition: opacity 0.3s;
  -moz-transition: opacity 0.3s;
  visibility: hidden;
  opacity: 0;
}

#overlay > div {
  background-color: dimgrey;
  color: white;
  max-width: 500px;
  height: 360px;
  max-height: 360px;
  margin: 5% auto;
  padding: 10px;
  border: 1px solid rgb(155, 155, 155);
  border-radius: 5px;
  overflow: hidden;
}

#overlay > div > div {
  overflow-y: scroll;
  height: 330px;
  max-height: 330px;
  border-bottom: 1px solid rgb(235, 235, 235);
}

#overlay button {
  margin-top: 5px;
}