/* إعداد أساسي لإخفاء وإظهار الصفحات */
.page {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}
.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* أنماط صفحة التسجيل */
.iphone-frame {
  width: 90%;
  max-width: 400px;
  height: 80vh;
  max-height: 700px;
  border: 16px solid #1a1a1a;
  border-radius: 40px;
  margin: 5vh auto;
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.reg-container {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('https://i.imgur.com/J1BUXlG.jpeg') center/cover;
  height: 100%;
  padding: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.game-title {
  color: #fff;
  font-size: 3em;
  text-shadow: 3px 3px 6px #000;
  margin: 20px 0;
  font-family: 'Impact', sans-serif;
  text-align: center;
}
.id-input {
  width: 100%;
  max-width: 320px;
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  padding: 10px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.input-label {
  color: #2c3e50;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  font-size: 1em;
}
.input-field {
  width: 100%;
  padding: 12px;
  border: 2px solid #e74c3c;
  border-radius: 8px;
  font-size: 1em;
  text-align: center;
}
.start-section {
  margin-top: auto;
  width: 100%;
  text-align: center;
}
.start-box {
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  padding: 10px 20px;
  margin: 0 auto 10px;
  width: 70%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
}
.start-text {
  color: #2c3e50;
  font-size: 1.2em;
  margin: 0;
  font-weight: bold;
}
.start-btn {
  background: #27ae60;
  color: white;
  padding: 14px 50px;
  border: none;
  border-radius: 25px;
  font-size: 1.2em;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
  width: 80%;
  max-width: 300px;
}
.start-btn:hover {
  transform: scale(1.05);
  background: #219a52;
}
.warning {
  color: #e74c3c;
  font-size: 0.8em;
  text-align: center;
  padding: 10px;
  background: rgba(255,255,255,0.9);
  width: 90%;
  border-radius: 8px;
  margin-top: 10px;
}

/* أنماط صفحة التفعيل */
.phone-frame {
  width: 375px;
  height: 667px;
  border: 16px solid #1a1a1a;
  border-radius: 40px;
  margin: 30px auto;
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.act-container {
  position: relative;
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.act-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('https://i.imgur.com/J1BUXlG.jpeg') center/cover;
  z-index: 0;
}
.act-container > * {
  position: relative;
  z-index: 1;
}
.activation-title {
  font-size: 1.2em;
  color: #fff;
  margin-bottom: 10px;
  font-weight: bold;
}
.input-box {
  width: 80%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-align: center;
  margin-bottom: 15px;
}
.input-box input {
  width: 100%;
  padding: 10px;
  border: 2px solid #e74c3c;
  border-radius: 8px;
  font-size: 1.1em;
  text-align: center;
}
.done-button {
  padding: 10px 20px;
  background-color: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.done-button:hover {
  background-color: #c0392b;
}

/* أنماط صفحة اللعبة */
body.game-bg {
  background: url('https://i.imgur.com/aI4PDHf.jpeg') no-repeat center center fixed;
  background-size: cover;
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
}
.game-container {
  width: 90%;
  max-width: 400px;
  margin: auto;
  background: rgba(244, 225, 192, 0.9);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.question-box {
  background: #8b5e3b;
  color: gold;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: bold;
}
.header {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 10px;
}
.header div {
  background: #8b5e3b;
  color: white;
  padding: 10px;
  border-radius: 5px;
  font-size: 18px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 8px;
}
.grid div {
  background: #d9c5a3;
  border-radius: 5px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  overflow: hidden;
}
.grid div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.buttons {
  margin-top: 10px;
}
.button {
  background: green;
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  margin: 5px;
  width: 100px;
  font-size: 16px;
}
.restart-button {
  background: red;
}
.note {
  font-size: 12px;
  color: #555;
  margin-top: 5px;
}
