@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #1bb295;
}
.Game {
  width: 430px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.Game input {
  opacity: 0;
  z-index: -999;
  position: absolute;
  pointer-events: none;
}
.Game h1 {
  font-size: 25px;
  font-weight: 500;
  padding: 20px 25px;
  border-bottom: 1px solid #ccc;
}
.Game .content {
  margin: 25px 25px 35px;
}
.Game .content .words {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.Game .content .words span {
  height: 57px;
  width: 56px;
  margin: 4px;
  font-size: 24px;
  font-weight: 500;
  color: #1ba98c;
  line-height: 57px;
  text-align: center;
  border-radius: 5px;
  background: none;
  pointer-events: none;
  text-transform: uppercase;
  border: 1px solid #b5b5b5;
}
.Game .content .details {
  margin: 20px 0 25px;
}
.Game .content .details p {
  font-size: 19px;
  margin-bottom: 10px;
}
.Game .content p span {
  text-transform: capitalize;
}
button {
  width: 100%;
  border: none;
  cursor: pointer;
  color: #fff;
  outline: none;
  padding: 15px 0;
  font-size: 17px;
  border-radius: 5px;
  background: #1bb295;
  transition: all 0.3s ease;
}
button:hover {
  background: #18a589;
}
@media screen and (max-width: 460px) {
  .Game {
    width: 100%;
  }
  .Game h1 {
    font-size: 22px;
    padding: 16px 20px;
  }
  .Game .content {
    margin: 25px 20px 35px;
  }
  .words span {
    height: 51px;
    width: 50px;
    margin: 3px;
    font-size: 22px;
  }
  .details p {
    font-size: 17px;
  }
  .content button {
    padding: 14px 0;
    font-size: 16px;
  }
}
/* ... باقي كود الـ CSS ... */

/* Styling for the popup */
.popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none; /* يمنع التفاعل مع الـ Pop-up عندما يكون مخفياً */
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.popup-container.show {
  opacity: 1;
  pointer-events: auto; /* يسمح بالتفاعل عند ظهوره */
}

.popup {
  background: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 380px;
  width: 90%;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.popup-container.show .popup {
  transform: scale(1);
}

.popup h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.popup p {
  font-size: 18px;
  color: #555;
}

.popup p b {
  font-weight: 600;
  color: #1bb295;
  text-transform: uppercase;
}
