* {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
}

body {
  position: fixed;
  width: 100%;
  height: 100%;
}
.box {
  border: 0.2rem solid black;
  top: 0;
}

.game-details {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

.levelandlife {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

span {
  font-size: 3rem;
  color: red;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  z-index: -1;
}

.box-container {
  z-index: -1;
  position: relative;
}

.game-over-modal {
  z-index: 2;
  background-color: black;
  opacity: 85%;

  width: fit-content;
  height: fit-content;
  margin: auto;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  font-size: 1.5rem;
  color: white;
}

.hidden {
  display: none;
}

#play-again-btn {
  font-size: 2rem;
  border: none;
  background-color: black;
  color: white;
  border: 0.2rem solid white;
  padding: 1rem;
  font-weight: bold;
}

#play-again-btn:hover {
  color: black;
  background-color: white;
  font-weight: bold;
  border: 0.2rem solid black;
}

.overlay {
  position: fixed;
  top: 0;
  z-index: 2;
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(5px);
  backdrop-filter: blur(5px);
  -webkit-filter: blur(5px);
}

.start-game-modal {
  z-index: 2;
  background-color: black;
  opacity: 85%;
  height: fit-content;
  overflow: auto;
  margin: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  font-size: 1.5rem;
  color: white;
}

.difficulty-btn {
  font-size: 1.5rem;
  border: none;
  background-color: black;
  color: white;
  border: 0.2rem solid white;
  padding: 1rem;
  font-weight: bold;
}

.difficulty-btn:hover {
  color: black;
  background-color: white;
  font-weight: bold;
  border: 0.2rem solid black;
}

.buttons {
  display: flex;
  gap: 2rem;
}

@media (max-width: 768px) {
  .game-details {
    gap: 1rem;
  }
  .levelandlife {
    flex-direction: row;
  }

  .box-container {
    position: relative;
  }

  .game-over-modal {
    font-size: 1rem;

    width: 80%;
  }

  .start-game-modal {
    width: 80%;
    font-size: 1rem;
  }

  .difficulty-btn {
    font-size: 1rem;
  }
  #play-again-btn {
    font-size: 1rem;
  }
}
