
body {
  margin: 0;
  padding: 0;
  background: url('../assets/bg-pattern.webp') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Vazir', sans-serif;
      direction: rtl;
}

header {
    padding: 40px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
        gap: 20px;
}

.glass-container {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 2rem;
  margin: 2rem auto;
  width: 90%;
  max-width: 1000px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  color: #fff;
      display: flex;
    flex-direction: column;
    align-items: center;
}


.logo {
    width: 100px;
    border-radius: 400px;
    box-shadow: 0 0 12px #ff0077;
}

.logo2 {
    width: 250px;

}


    .subtitle {
      font-size: 1.2rem;
      color: #eee;
    }

    .games {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 30px;
      padding: 40px 20px;
          flex-wrap: nowrap;
    }

    .game-card {
      background: rgb(0 0 0 / 41%);
      border: 2px solid #ff0077;
      border-radius: 20px;
      width: 260px;
      padding: 25px;
      transition: transform 0.3s, box-shadow 0.3s;
      cursor: pointer;
      text-decoration: none;
      color: inherit;
    }

    .game-card:hover {
      transform: scale(1.05);
      box-shadow: 0 0 20px #ff0077;
    }

    .game-card h2 {
      color: #ff66cc;
      font-size: 1.5rem;
      margin-bottom: 10px;
    }

    .game-card p {
      color: #ddd;
      font-size: 0.95rem;
    }

    footer {
      margin-top: 40px;
      padding: 20px;
      font-size: 0.9rem;
      color: #aaa;
    }

#intro-message p{
    text-align: center;
    font-size: 1.3em;
}


#entry-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

#entry-form input {
  padding: 12px;
  width: 260px;
  border: 1px solid #888;
  border-radius: 10px;
  background: #222;
  color: #fff;
  font-family: 'Vazir', sans-serif;
  font-size: 1rem;
      text-align: center;
}

#entry-form input::placeholder {
  color: #bbb;
}

#entry-form button {
  padding: 10px 25px;
  background: linear-gradient(135deg, #330033, #ff0077);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Vazir', sans-serif;
  box-shadow: 0 0 10px #ff0077;
  font-size: 1rem;
  transition: all 0.3s ease;
      width: 100%;
}

#entry-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #ff66cc;
}

#entry-response {
  margin-top: 10px;
  font-weight: bold;
  font-size: 1rem;
  color: #ffcc00;
}
    
    #toggle-sound {
  position: fixed;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #330033, #ff0077);
  color: white;
  border: 2px solid #ff0077;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 0 15px #ff0077;
  transition: all 0.3s ease;
  z-index: 1000;
  font-family: 'Vazir', sans-serif;
}

#toggle-sound:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px #ff66cc;
}

#start-button {
  padding: 12px 30px;
  font-size: 1rem;
  background: linear-gradient(135deg, #330033, #ff0077);
  color: white;
  border: 2px solid #ff0077;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 0 12px #ff0077;
  font-family: 'Vazir', sans-serif;
  transition: transform 0.3s, box-shadow 0.3s;
}

#start-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #ff0077;
}

div#intro-message {
    display: flex;
    flex-direction: column;
        align-items: center;
}

footer{
padding: 20px;
    font-size: 0.9rem;
    color: #aaa;

    margin: 0 auto;
    text-align: center;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.games.show {
  animation: fadeInUp 0.8s ease forwards;
}

.glass-container.heading {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
}
#countdown {
  font-size: 4rem;
  font-weight: bold;
  color: #ffcc00;
  text-shadow: 0 0 10px #ff0077;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}



