@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: "Press Start 2P", Arial, Helvetica, sans-serif;
}

body {
  background: #0a0a0a;
  color: white;
  display: flex;
  height: 100vh;
  justify-content: center;
  overflow: hidden;
}

a {
  cursor: pointer;
}

#header {
  align-items: center;
  column-gap: 10px;
  column-gap: 20px;
  display: grid;
  font-size: 25px;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 5%;
  text-transform: uppercase;
  width: 100%;
}

#control-btns {
  display: flex;
}
#control-btns button:not(:first-child) {
  margin-left: 5px;
}

#canvas {
  border: 2px solid #26c6da;
  margin-top: 5px;
}

#stats {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  height: 100%;
  justify-content: space-between;
}

#score-count {
  color: #26c6da;
  display: inline-block;
  margin-left: 10px;
  text-align: center;
}

#time-left {
  color: #26c6da;
  margin-left: 10px;
}

#lives {
  display: flex;
  flex: 1;
}

#lives-list {
  align-items: center;
  display: flex;
}

.life {
  background: url("https://i.postimg.cc/X7n5n7px/player.png") center center;
  background-repeat: no-repeat;
  background-size: contain;
  display: block;
  height: 30px;
  margin-left: 10px;
  transform: translateY(-5px);
  width: 30px;
}

#btn-group {
  column-gap: 10px;
  display: grid;
  flex: 1;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 0 10px;
}

.btn {
  background: 0;
  border: 2px solid #26c6da;
  border-radius: 3px;
  color: #26c6da;
  cursor: pointer;
  font-weight: 600;
  height: 50px;
  min-width: 100px;
  text-transform: uppercase;
  width: 100%;
}
.btn:hover {
  background: #26c6da;
  color: #0a0a0a;
}

#menu {
  align-self: center;
  text-align: center;
}

.menu__gif {
  background: url("https://i.postimg.cc/NjQ4VKPY/invader.gif") center center/contain no-repeat;
  height: 150px;
  margin: 0 auto;
}
@media (max-width: 375px) {
  .menu__gif {
    height: 75px;
  }
}

.menu__title {
  color: #26c6da;
  font-size: 6.5vw;
  text-shadow: 5px 5px white;
  text-transform: uppercase;
}

.difficulty__title {
  color: #26c6da;
  font-size: 2vw;
  margin: 40px 0;
  text-transform: uppercase;
}

.menu__difficulty-container {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.menu__difficulty-list {
  display: flex;
  flex-direction: column;
}

.menu__difficulty {
  display: inline-block;
  font-size: 1.5vw;
  margin: 10px 0;
  text-transform: uppercase;
}
.menu__difficulty:hover {
  color: #26c6da;
}

#modal {
  background: rgba(0, 0, 0, 0.8);
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 99;
}

#modal__inner {
  align-items: center;
  border: 2px solid #26c6da;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  margin: 20% auto;
  padding: 25px;
  text-align: center;
  width: 375px;
}
#modal__inner h1 {
  line-height: 50px;
}
#modal__inner button {
  margin-top: 15px;
  width: 100px;
}

#guide-list {
  list-style-type: none;
  margin-top: 40px;
}
#guide-list li {
  display: flex;
  line-height: 30px;
  text-transform: uppercase;
}
#guide-list li span {
  display: inline-block;
  flex: 1;
  min-width: 162px;
  text-align: right;
}
#guide-list li span:nth-child(1) {
  color: #26c6da;
  margin-right: 18px;
}
#guide-list li span:nth-child(2) {
  text-align: left;
}