* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.space-background {
  background: url("/assets/global/images/animated-gifs-of-fighting-game-backgrounds-27.webp")
    no-repeat center center fixed;
  font-family: "tahoma", sans-serif;
  background-size: cover;
  color: white;
  height: 100vh;
  overflow: hidden;
}

.space-background #show-score {
  background-color: rgb(95, 136, 196);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 14px 36px;
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.space-background #show-score:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background-color: rgb(150, 70, 85);
  color: white;
}

.start-container {
  text-align: center;
  position: relative;
  top: 30%;
}
.start-title {
  font-size: 5rem;
  color: white;
}

.mybtn-start {
  background-color: rgb(95, 136, 196);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 14px 36px;
  font-size: 1.25rem;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mybtn-start:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background-color: rgb(150, 70, 85);
  color: white;
}

.mycontainer {
  background-image: url("/assets/global/images/animated-gifs-of-fighting-game-backgrounds-27.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 1rem;
  height: 100vh;
}

.visible {
  display: block;
}

.difficulty-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
  border: 2px solid white;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: white;
  background: rgba(255, 255, 255, 0.35);
}

.difficulty-card:hover {
  background-color: #000;
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.difficulty-card.active {
  border: 2px solid rgb(196, 95, 112);
  background-color: rgba(110, 72, 170, 0.1);
}

.difficulty-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.game-container {
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.game-container h2 {
  margin-top: 3rem;
}

.show {
  display: flex !important;
}

#settings-modal {
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  height: 100%;
  width: 100%;
  display: none;
  justify-content: center;
  align-items: center;
}

#settings-modal .settings-container {
  background-color: #000;
  width: 50vw;
  padding: 1rem;
  border: 2px solid orange;
  box-shadow: 5px 5px 20px orange, -5px -5px 20px orange;
}

#settings-modal .settings-container .settings-content ul {
  margin: 0;
  padding: 0;
}

#settings-modal .settings-container .settings-content p {
  margin-bottom: 1rem;
}

#settings-modal .settings-container .settings-content ul li {
  list-style: none;
  margin-bottom: 15px;
}

#settings-modal .settings-container .settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.3rem;
}

#settings-modal .settings-container .settings-header button {
  background: red;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  padding: 0.2rem;
  width: 30px;
  height: 30px;
  text-align: center;
  font-size: 1rem;
}

#settings-modal .settings-container .settings-content #unmute-button,
#settings-modal .settings-container .settings-content #mute-button {
  background: red;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  padding: 0.2rem;
  width: 30px;
  height: 30px;
  text-align: center;
  font-size: 1rem;
}

.hidden {
  display: none;
}

#end-div {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.againBtn {
  background: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 15px;
}

@media screen and (max-width: 768px) {
  .mycontainer {
    height: auto;
  }

  .start-container .start-title {
    font-size: 3rem;
  }

  .difficulty-card:hover {
    transform: scale(0.9);
  }

  #settings-modal .settings-container {
    width: 80vw;
  }
}

@media screen and (max-width: 550px) {
  .start-container .start-title {
    font-size: 1.9rem;
  }
}
