@font-face {
  font-family: 'Kalameh';
  src: url('../assets/fonts/Kalameh-Black.ttf') format('truetype');
  font-weight: 900;
}

@font-face {
  font-family: 'Kalameh';
  src: url('../assets/fonts/Kalameh-Bold.ttf') format('truetype');
  font-weight: 700;
}

@font-face {
  font-family: 'Kalameh';
  src: url('../assets/fonts/Kalameh-Medium.ttf') format('truetype');
  font-weight: 500;
}

@font-face {
  font-family: 'Kalameh';
  src: url('../assets/fonts/Kalameh-Regular.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Kalameh';
  src: url('../assets/fonts/Kalameh-Light.ttf') format('truetype');
  font-weight: 300;
}

@font-face {
  font-family: 'Kalameh';
  src: url('../assets/fonts/Kalameh-ExtraLight.ttf') format('truetype');
  font-weight: 200;
}

@font-face {
  font-family: 'Kalameh';
  src: url('../assets/fonts/Kalameh-Thin.ttf') format('truetype');
  font-weight: 100;
}

body {
  margin: 0;
  font-family: 'Kalameh', sans-serif;
  color: #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle, rgba(29, 53, 87, 1) 0%, rgb(41, 41, 41) 60%, rgba(0, 0, 0, 0.9) 100%);
}

.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  max-width: 800px;
  padding: 0.25rem 0.5rem;
  background: linear-gradient(45deg, rgba(29, 53, 87, 0.85), rgba(50, 50, 50, 0.85), rgba(29, 53, 87, 0.85));
  text-align: center;
  color: #fff;
  z-index: 10;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.header h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.background-blur {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  z-index: -1;
}

.content-box {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(50, 50, 50, 0.85);
  padding: 2rem;
  padding-top: 0;
  padding-bottom: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  max-width: 800px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 2rem;
}

.content-box h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 400;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
}

.escape-room-title {
  font-weight: 900;
}

.content-box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(29, 53, 87, 0.6) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.9) 100%);
  border-radius: 50%;
  opacity: 0.7;
  z-index: -1;
  animation: glow 4s ease-in-out infinite;
}

@keyframes glow {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

.buttons a {
  background: #1D3557;
  border: none;
  color: white;
  padding: 1rem 2rem;
  font-size: 1.25rem;
  font-family: 'Kalameh', sans-serif;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  text-align: center;
  max-width: 100%;
  width: fit-content;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.buttons a:hover {
  background: #457B9D;
}

footer {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  max-width: 320px;
  width: 90vw;
  background: none;
  box-shadow: none;
}

footer img {
  height: 50px;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 768px) {
  .header {
    width: 80%;
  }

  .content-box {
    margin: 2rem;
    padding: 1.5rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center; /* وسط چین دکمه‌ها */
  }

  .buttons a {
    font-size: 1rem;
    padding: 0.75rem 2rem;
    width: auto; /* اندازه متناسب با محتوا */
    max-width: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .header {
    width: 90%;
  }

  .content-box {
    margin: 1.5rem;
    padding: 1.2rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .buttons a {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

@media screen and (max-height: 450px) and (orientation: landscape) {
  .header {
    width: 95%;
    padding: 0.2rem;
    top: 10px;
  }

  .header h1 {
    font-size: 1rem;
  }

  .content-box {
    margin: 0.5rem;
    padding: 1rem;
    padding-top: 2.2rem;
    padding-bottom: 1.5rem;
  }

  .content-box h2 {
    font-size: 1.2rem;
  }

  .buttons a {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  footer {
    flex-direction: column;
    gap: 4px;
    bottom: 5px;
  }

  footer img {
    height: 35px;
  }
}