html, body, figure, figcaption, ul, li, h1, p, h3 {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  text-align: inherit;
  font-family: 'Play', sans-serif;
}

ul {
  display: flex;
  list-style: none;
  background: white;
}

body {
  font-family: sans-serif;
  text-align: center;
  font-weight: bold;
  display: flex;
  align-items: center;
  background: #397fd8;
  justify-content: center;
}

h1 {
  font-size: 60px;
  margin: 30px;
}

figure {
  /*display: inline-block;*/
  background: #0e55a0;
  height: 100%;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-left: 20px;
  padding-right: 20px;
}

ul:after {
  content: "";
  clear: both;
  display: block;
}

li {
  border: 1px solid gray;
  float: left;
  width: calc((100vh - 100px)/20);
  height: calc((100vh - 100px)/20);
  min-width: 25px;
  min-height: 25px;
  /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#f7f7f7+37,e2e2e2+86 */
  background: #f7f7f7; /* Old browsers */
  background: -moz-linear-gradient(-45deg,  #f7f7f7 37%, #e2e2e2 86%); /* FF3.6-15 */
  background: -webkit-linear-gradient(-45deg,  #f7f7f7 37%,#e2e2e2 86%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(135deg,  #f7f7f7 37%,#e2e2e2 86%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f7f7f7', endColorstr='#e2e2e2',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}

.controls-side-panel{
  display: flex;
  flex-direction: column;
  width: 300px;
}

.z-key{
  border-radius: 5px;
}
.game-container{
  height: 100vh;
  /*width: 100vw;*/
  display: flex;
  justify-content: center;
  align-items: center;
  background: #397fd8;
  min-height: 540px;
}

.game-view{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /*min-width: 530px;*/
  height: 100%;
  min-height: 540px;
}

.game-over{
  position: absolute;
  display: none;
  left: 85px;
  top: 160px;
  padding-right: 20px;
  padding-left: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 24px;
  background-color: rgba(0,0,0,0.5);
  color: white;
}

.pause-menu, .start-menu{
  display: none;
  background-color: rgba(0,0,0,0.5);
  color: white;
  font-size: 12px;
  height: 275px;
  width: 200px;
  position: absolute;
  left: 50px;
  top: 100px;
}

.pause-menu h3{
  padding-top: 4px;
  padding-bottom: 4px;
  background-color: #80a2c8;
  font-size: 20px;
}

.start-menu h3{
  padding-top: 4px;
  padding-bottom: 4px;
  background-color: #80a2c8;

}

.start-button, .restart-button{
  cursor: pointer;
  background-color: #0078ff;
  color: white;
  padding: 7px;
  border: 0;
  border-radius: 5px;
}

.start-button:hover{
  background-color: #3caac0;
}

.control{
  display: flex;
  justify-content: space-between;;
  align-items: center;
  margin-bottom: 5px;
}

.control img{
  margin-left: 15px;
}

.control p{
  margin-right: 20px;
}

.show{
  display: block;
}

.side-view{
  /*height: calc(100vh - 40px);*/
  height:100%;
  min-height: 540px;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: calc(100vh/3);
  min-width: 200px;
  background: #0e55a0;
  padding-right: 10px;
}

.side-view img{
  margin-top: 40px;
}


.next-block-view{
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(100vh/4);
  height: calc(100vh/4);
  min-width: 150px;
  min-height: 150px;
  border: 5px solid #0086ee;
  background: #397fd8;
}

.next-block{
  background: transparent;
  /*border: 0;*/
}

.score-container{
  margin-top: 20px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 24px;
  color: #e7c026;
  font-family: 'Bangers', cursive;
  width: 100%;
}

.lines-completed-container{
  margin-top: 20px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 20px;
  color: #f7f7f7;
  width: 100%;
}

.red {
  border: 1px solid black;
  background: red;
}

.green {
  border: 1px solid black;
  background: green;
}

.blue {
  border: 1px solid black;
  background: blue;
}

.light-blue{
  border: 1px solid black;
  background: lightblue;
}

.yellow{
  border: 1px solid black;
  background: yellow;
}

.purple{
  border: 1px solid black;
  background: purple;
}

.orange{
  border: 1px solid black;
  background: orange;
}

.gray{
  border: 1px solid black;
  background: gray;
  animation: blinker 0.15s cubic-bezier(.5, 0, 1, 1) infinite alternate;
}

@keyframes blinker { to { opacity: 0; } }
