body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
  }
  
  .container {
    text-align: center;
    background-color: #78e741;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  h1 {
    color: #333;
    margin-bottom: 20px;
  }

   section {
    /* display: flex; */
    justify-content: center;
    align-items: center;
    position: relative;
    /* height: 100vh; */
    /* width: 100%; */
}

.close {
    background-color: transparent;
    text-decoration: none;
    color: transparent;
    cursor: pointer;
    font-size: 10px;
    position: absolute;
    top: -12px; /* Adjust as needed */
    right: -8px; /* Adjust as needed */
    padding: 5px 10px;
    overflow: hidden;
    /* position: relative; */
    transition: 0.2s all ease-in-out;
}

.close::before,
.close::after {
    position: absolute;
    content: '';
    background-color: #871a1a;
    left: 0;
    width: 100%;
    height: 2px;
    transform-origin: center left;
    transition: 0.2s all ease-in-out;
}

.close::before {
    top: 0;
    transform: rotate(45deg);
}

.close::after {
    bottom: 0;
    transform: rotate(-45deg);
}

.close:hover {
  background-color: #78e741;
  color: #000;
}

.close:hover::before,
.close:hover::after {
    transform: rotate(0deg);
}

  .score-board {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
  }
  
  .player-score {
    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  }
  
  .player-score h2 {
    margin: 0 0 10px 0;
    color: #444;
  }
  
  .player-score p {
    margin: 5px 0;
    font-size: 14px;
  }
  
  .board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-gap: 5px;
    margin: 20px auto;
  }
  
  .cell {
    width: 100px;
    height: 100px;
    background-color: #fff;
    border: 2px solid #333;
    font-size: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .cell:hover {
    background-color: #f0f0f0;
  }
  
  #status {
    margin: 20px 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
  }
  
  button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4caf50;
    color: white;
    border: none;
    cursor: pointer;
    margin: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  button:hover {
    background-color: #45a049;
  }
  
  #reset-scores {
    background-color: #f44336;
  }
  
  #reset-scores:hover {
    background-color: #d32f2f;
  }
  
  .celebration {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    animation: fadeIn 0.5s ease-in-out;
  }
  
  .celebration h2 {
    font-size: 48px;
    margin-bottom: 20px;
  }
  
  .celebration p {
    font-size: 24px;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes confetti {
    0% {
      transform: translateY(0) rotate(0deg);
    }
    100% {
      transform: translateY(100vh) rotate(720deg);
    }
  }
  
  .confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f0f0f0;
    animation: confetti 4s ease-in-out infinite;
  }
  
  .game-over {
          display: none;
          position: fixed;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background-color: rgba(0, 0, 0, 0.8);
          color: #fff;
          justify-content: center;
          align-items: center;
          flex-direction: column;
          z-index: 1000;
          animation: fadeIn 0.5s ease-in-out;
      }
  
      .game-over h2 {
          font-size: 48px;
          margin-bottom: 20px;
      }
  
      .game-over p {
          font-size: 24px;
          margin-bottom: 20px;
      }
  
      #new-tournament {
          font-size: 18px;
          padding: 10px 20px;
          background-color: #4CAF50;
          color: white;
          border: none;
          cursor: pointer;
          border-radius: 5px;
          transition: background-color 0.3s ease;
      }
  
      #new-tournament:hover {
          background-color: #45a049;
      }
  
  