body {
  font-family: 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  background: linear-gradient(45deg, #0d0812, #0a1a37,rgb(43, 5, 94),rgb(79, 3, 79),rgb(4, 4, 134),rgb(86, 86, 248)
  );
  background-size: 400% 400%;
  animation: gradientAnimation 5s ease infinite;
  color: #fff;
  cursor: none;
}
/* Navbar styles */
.navbar {
  width: 100%;
  background-color: #29242b;
  padding: 1px ;
  position: fixed;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
}

.navbar-menu {
  list-style: none;
  display: flex;
  gap: 15px;
}

.navbar-menu li {
  display: inline;
}

.navbar-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

.navbar-menu a:hover {
  text-decoration: underline;
}

/* Adjust the game container to accommodate the navbar */
.game-container {
  margin-top: 60px; /* Adjust based on the height of the navbar */
  text-align: center;
}

#custom-cursor{
   
    width: 20px;
    height: 20px;
    border: 2px solid #e8dce4;
    border-radius: 50%;
    position: absolute;
    pointer-events: none;
    transition: transform 0.1s ease-out, background-color 0.2s ease;
    z-index: 10000;
    animation: cursorAnimation 0.3s infinite alternate;
}
@keyframes cursorAnimation {
  0% { transform: scale(1); background-color: black,; }
  100% { transform: scale(1.5); background-color: white; }
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes backgroundAnimation {
    0% { background-color: #f44336; }
    20% { background-color: #e91e63; }
    40% { background-color: #9c27b0; }
    60% { background-color: #673ab7; }
    80% { background-color: #3f51b5; }
    100% { background-color: #2196f3; }
}

h1 {
  margin-top: 20px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: titleAnimation 1s ease-out infinite alternate;
}

@keyframes titleAnimation {
  0% { color: #fff; transform: scale(1); }
  100% { color: #f3f3f3; transform: scale(1.1); }
}

#game-container {
  display: grid;
  grid-template-columns: repeat(4, 100px);
  grid-template-rows: repeat(4, 100px);
  gap: 10px;
  margin-top: 20px;
  perspective: 1000px;
  animation: fadeIn 2s ease-out;
}

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

@keyframes backgroundAnimation {
  0% { background-color: #f44336; }
  20% { background-color: #e91e63; }
  40% { background-color: #9c27b0; }
  60% { background-color: #673ab7; }
  80% { background-color: #3f51b5; }
  100% { background-color: #2196f3; }
}

.card {
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.5s ease, box-shadow 0.3s ease, transform 0.3s ease;
  animation: backgroundAnimation 5s infinite alternate, cardEntry 0.5s ease;
}

@keyframes cardEntry {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}

.card:hover {
  transform: scale(1.1) rotateZ(5deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.card.flipped {
  transform: rotateY(180deg);
  background-color: #fff; /* Fixed color for flipped cards */
  color: #000;
}

#game-info {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
}

#game-info p {
  margin-right: 20px;
  animation: fadeIn 1.5s ease-out;
}

button {
  padding: 10px 20px;
  background-color: #4caf50;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  animation: buttonBounce 2s infinite;
}

button:hover {
  background-color: #45a049;
  transform: scale(1.1);
}

@keyframes buttonBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.chat-container {
  position: fixed;
  bottom: 0;
  right: 20px;
  width: 300px;
  background-color: #2c2c2c;
  border: 1px solid #444;
  border-radius: 10px;
  overflow: hidden;
}

.chat-box {
  height: 200px;
  overflow-y: auto;
  padding: 10px;
  color: #fff;
}

.chat-message {
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 5px;
}

.chat-message.bot {
  background-color: #444;
  text-align: left;
}

.chat-message.user {
  background-color: #0084ff;
  text-align: right;
}

#chat-input {
  width: 80%;
  padding: 10px;
  border: none;
  border-radius: 0 0 0 10px;
  background-color: #333;
  color: #fff;
}

#send-btn {
  width: 10%;
  padding: 5px;
  border: none;
  border-radius: 0 0 10px 0;
  background-color: #444;
  color: #fff;
  cursor: pointer;
  display: inline-block;
}
