
body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #8c86e6;
  }
  
  .container {
    text-align: center;
    background-color: #d8d5f7;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  
@keyframes bounce {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  
  h1 {
    background: linear-gradient(45deg, #c42fd8, #842ed5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bounce 1s infinite;
  }
  
  .scoreboard {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    animation: bounce 1.5s infinite;
  }
  
  .score {
    font-size: 1.2rem;
    color: #555;
  }
  
  #board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 5px;
    margin: 20px auto;
  }
  
  .cell {
    width: 100px;
    height: 100px;
    background-color: #9ae4e97c;
    border: 2px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 2.3s ease;
  }
  
  .cell.X {
    color: #ff4757;
  }
  
  .cell.O {
    color: #2ed573;
  }
  
  .cell.winning-cell {
    animation: glow 2s infinite;
  }
  
  @keyframes glow {
    0% { box-shadow: 0 0 5px #ff4757; }
    50% { box-shadow: 0 0 20px #ff4757; }
    100% { box-shadow: 0 0 5px #ff4757; }
  }
  
  #status {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #333;
  }
  
  #reset {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  #reset:hover {
    background-color: #555;
  }
  
  /* Responsive Design */
  @media (max-width: 600px) {
    #board {
      grid-template-columns: repeat(3, 80px);
      grid-template-rows: repeat(3, 80px);
    }
  
    .cell {
      width: 80px;
      height: 80px;
      font-size: 1.5rem;
    }
  
    h1 {
      font-size: 1.5rem;
    }
  
    .score {
      font-size: 1rem;
    }
  
    #status {
      font-size: 1rem;
    }
  }

#timer {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #333;
  }
  
  
  .controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
  }
  
  .controls button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  .controls button:hover {
    background-color: #555;
  }

  
.modal {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); 
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
  margin-bottom: 20px;
  color: #333;
}

.modal-content button {
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #333;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background-color: #555;
}