#pop-up-endgame {
  color: #f5f5f5;
  background: rgba(15, 10, 10, 0.96);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(139, 0, 0, 0.4);
  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(139, 0, 0, 0.15);
  padding: 40px;
  border-radius: 6px;
  min-width: 290px;
  text-align: center;
  display: none;
}
#pop-up-endgame h2 {
  font-family: "Merriweather", serif;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 10px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 8px rgba(218, 44, 44, 0.4);
}
#pop-up-endgame p {
  margin-bottom: 10px;
}
.close-pop-up-buttons {
  padding: 12px 24px;
  margin-bottom: 5px;
  font-family: "Merriweather", serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  background-color: rgba(20, 10, 10, 0.6);
  color: #d5c5c5;
  border: 1px solid rgba(139, 0, 0, 0.5);
  border-radius: 4px;
  transition: all 0.25s ease-in-out;
}
.close-pop-up-buttons:hover {
  background-color: #8b0000;
  color: #ffffff;
  border-color: #ff3333;
  box-shadow: 0 0 15px rgba(139, 0, 0, 0.6);
}
#close-pop-up-button {
  padding: 12px 24px;
  margin: 0;
  font-family: "Merriweather", serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  background-color: rgba(20, 10, 10, 0.6);
  color: #d5c5c5;
  border: 1px solid rgba(139, 0, 0, 0.5);
  border-radius: 4px;
  transition: all 0.25s ease-in-out;
}
#close-pop-up-button:hover {
  background-color: #8b0000;
  color: #ffffff;
  border-color: #ff3333;
  box-shadow: 0 0 15px rgba(139, 0, 0, 0.6);
}
.pop-up {
  background: rgb(10, 0, 5);
  border-radius: 4px;
  border: 1px solid rgba(139, 0, 0, 0.4);
  padding: 15px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 90%;
  font-size: 1.2em;
  max-width: 600px;
  text-align: center;
  display: none;
  z-index: 1000;
}
.pop-up p {
  letter-spacing: 1px;
  margin: 20px;
  text-align: justify;
}

.pop-up a {
  color: #ff4d4d;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: bold;
}

.pop-up a:hover {
  color: #ffffff;
  text-shadow: 0 0 5px rgba(255, 77, 77, 0.6);
}

.pop-up button {
  margin-top: 15px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(49, 0, 0, 0.3);
  color: white;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: 1rem;
}

.pop-up button:hover {
  color: #ffffff;
  border: 1px solid #8b0000;
  background: rgb(90, 0, 0);
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.8),
    0 0 15px rgba(139, 0, 0, 0.4);
}

#pop-up-pick-dif {
  display: block;
}
#difficulty-picker-container {
  z-index: 1000;
  display: block;
  width: 100vw;
  height: 100vh;
  background-color: black;
}
