body {
  margin: 0;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.948);
  color: rgba(255, 255, 0, 0.926);
}

/* landing page */
#logo {
  width: 50vw;
}

.landing-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 90vh;
  width: 100vw;
}

.p1 p {
  color: rgba(255, 255, 0, 0.926);
  font-size: 1.5em;
  text-align: center;
  width: 65vw;
}

.play-game {
  background-color: rgb(57, 57, 232);
  width: 33vw;
  font-size: 2em;
  padding: 0.3em;
  color: rgba(255, 255, 0, 0.926);
  border-radius: 20px;
  border: 4px solid rgba(255, 255, 0, 0.926);
  cursor: pointer;
}
/*  ––––––––––––––––––––––––––––– */
/* gamePage */
.hide {
  display: none;
}

.game-page-visible {
  display: flex;
  width: 100vw;
}

/* left side */
.left,
.right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 90vh;
  width: 25vw;
  margin: 1em;
}

.life-score-box,
.levels-container {
  border: 1px solid rgba(255, 255, 0, 0.926);
  border-radius: 10px;
  text-align: center;
}

.lives-box {
  display: flex;
  justify-content: center;
}

.life {
  border: 1px solid rgba(255, 255, 0, 0.926);
  border-radius: 50px;
  width: 30px;
  height: 30px;
  text-align: center;
  margin: 1em;
  padding: 12px 5px 0 5px;
  flex-shrink: 1;
}

.levels-container {
  text-align: start;
  padding-left: 20px;
}
/* ––––––––––––––––––––––––––––– */
/* center  */
.game-container {
  margin: auto;
}

.grid-box {
  display: flex;
  flex-wrap: wrap;
  height: 100%;
  width: 616px;
  height: 682px;
}

.game-result {
  background-color: rgba(255, 255, 0, 1);
  color: rgb(57, 57, 232);
  border: 5px solid rgb(57, 57, 232);
  animation: font-color 1s infinite;
  font-weight: bold;
  text-align: center;
  position: relative;
  top: -50%;
  transform: translateX(47%);
  min-width: 309px;
  min-height: 105px;
  font-size: 2em;
}

@keyframes font-color {
  from {
    color: rgb(57, 57, 232, 1);
  }
  to {
    color: rgb(57, 57, 232, 0);
  }
}

.grid-box div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}
/*  ––––––––––––––––––––––––––––– */
/* right side */
.game-btns {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 18vh;
}

button {
  background-color: rgb(57, 57, 232);
  color: rgba(255, 255, 0, 0.926);
  border-radius: 5px;
  width: 25vw;
  height: 7.5vh;
  border: 2px solid rgba(255, 255, 0, 0.926);
  font-size: 20px;
  cursor: pointer;
}

#audio-container {
  display: flex;
  justify-content: end;
  gap: 20px;
}

.audio-btns {
  cursor: pointer;
  font-size: 2em;
}

#pause-sound {
  margin-right: 10px;
}

.wall {
  background-color: rgb(57, 57, 232);
}

.pokemon {
  background-image: url("/images/Pikachu.png");
  background-size: cover;
  background-repeat: no-repeat;
}

.energiser {
  background-color: rgba(255, 255, 0, 0.926);
  border-radius: 10px;
}

.flash {
  animation: flash 1s infinite;
}

@keyframes flash {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.g-home,
.cut-outs {
  border-color: black;
}

.pokeball {
  background-color: red;
  background-image: url("/images/pokeball.jpeg");
  background-size: cover;
}

.meowth {
  background-image: url("images/Meowth.png");
  background-size: cover;
}

.jessie {
  background-image: url("images/JessieUpdated.png");
  background-size: cover;
}

.james {
  background-image: url("images/JamesUpdated.png");
  background-size: cover;
}

.blue {
  background-image: url("images/Wobbuffet.png");
  background-size: cover;
}

.scared-baddies {
  background-color: #4cc9f0;
}

@media only screen and (max-width: 980px) {
  .play-game {
    font-size: 1.5em;
  }
}

@media only screen and (max-width: 700px) {
  .play-game {
    font-size: 1.2em;
  }
  .p1 p {
    font-size: 1em;
  }
}

@media only screen and (max-width: 450px) {
  .play-game {
    font-size: 0.9em;
  }
  .p1 p {
    font-size: 1em;
  }
}
