*{
  box-sizing: border-box;
  font-family: 'Press Start 2P', arial, sans-serif;
  background-color: #372344;
  color: white;
}

#map div{
  width: 32px;
  height: 32px;
  float: left;
}
#map{
  width: 640px;
  height: 640px;
  background-color: #372344;
}
#map div.floor{
  background-color: #372344;
}
#map div.wall{
  background-image: url(../images/wall.png);s
}
#map div.torch{
  width: 32px;
  height: 32px;
  margin: auto;
  background: url(../images/torch.png) left center;
  animation: play 1s steps(5, end) infinite;
}
#map div.window{
  background-image: url(../images/window.png);
}

#map div.window.vertical{
  transform: rotate(90deg);
}

#map div.playerCharacter{
  width: 32px;
  height: 32px;
  margin: auto;
  background: url(../images/emilia.png) left center;
  animation: play 3s steps(5, end) infinite;
}
#map div.guard{
  width: 32px;
  height: 32px;
  margin: auto;
  background: url(../images/guard.png) left center;
  animation: play 4s steps(5, end) infinite;
}
#map div.treasure{
  width: 32px;
  height: 32px;
  margin: auto;
  background: url(../images/treasure.png) left center;
  animation: play 1s steps(5, end) infinite;
}
#map div.exit{
  background-color: rgba(0,0,0,0.3);
}
.introScreen{
  width: 640px;
  display: flex;
  justify-content: center;
  margin: auto;
}
.introLeft{
  width: 400px;
}
.introRight{
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.introRight button{
  width: 300px
  height: 100px;
}
/*
.introRight #title_theme{
  width: 30px;
  height: 30px;
  font-size: 20px;
  line-height: 20px;
  margin: 0;
  padding: 0;
} */


button{
  font-size: 20px;
  padding: 10px 30px;
}

button:hover, #submitButton:hover{
  color: #421C52;
  background-color: white;
}

.highScoreScreen{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 640px;
  margin: auto;
}
.highScoreScreen p{
    margin-left: 30px;
    text-align: left;
}

.leftHandHighScoreTable, .rightHandHighScoreTable{
  width: 320px;
  height: 400px;
  text-align: center;
}

.playScreen{
  width: 640px;
  display: flex;
  flex-wrap: wrap;
  margin: auto;
}
.playScreen #treasureScore, .playScreen #livesScore, .playScreen #turnsScore{
  width: 185px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background-color: #505050;
  border-style: ridge;
  border-color: grey;
  border-width: 7px;
}

.playScreen #mute{
  width: 85px;
  height: 50px;
  font-size: 20px;
  line-height: 24px;
  background-color: #505050;
  border-style: ridge;
  border-color: grey;
  border-width: 7px;
  text-align: center;
}

.playScreen #mute:hover{
  background-color: white;
}

.playScreen #mobileButtons{
  visibility: visible;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 10px;
  width: 640px;
  height: 150px;
}

.mobileButtons{
  width: 150px;
  height: 150px;
  background-color: grey;
  border-style: ridge;
  border-color: grey;
  border-width: 7px;
  font-size: 16px;
}

.mobileButtons:hover{
  background-color: darkGrey;
}

.endGameScreen{
  width: 640px;
  display: flex;
  flex-wrap: wrap;
  margin: auto;
  justify-content: center;
  text-align: center;
}
.endGameScreen h2, .endGameScreen p, #endScore{
  width: 640px;
}
.endGameScreen input{
  width: 320px;
}
#submitCheck, #endScore{
  margin:auto;
  font-size: 24px;
  width: 640px;
  height: 50px;
  line-height: 50px;
}

.warningScreen{
  position: absolute;
  width: 640px;
  height: 850px;
  background-color: rgba(255,0,0,0.3);
}


input{
  font-size: 20px;
}

#restart{
  margin: 10px;
}

@keyframes play {
  from { background-position:    0px; }
     to { background-position: -160px; }
}
