/* General page styling */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f9f9f9;
}

h1 {
    margin-top: 20px;
}

#main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
    max-width: 600px;
    margin: 20px auto;
}

.big-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    background-color: #e1e1e1;
    border: 2px solid #333;
    height: 200px;
    width: 200px;
    position: relative;
}

.mini-box {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    border: 1px solid #666;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 100%;
    width: 100%;
}

.mini-box:hover {
    background-color: #d3d3d3;
}

.winner {
    background-color: #90ee90; /* Highlight a big box when won */
}

/* Optional: highlight the active big box where the next move must go */
.active {
    outline: 3px solid #ff9800;
}

.big-box.winner::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 200px;
    height: 200px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
  
  .big-box.winner.X::before {
    background-image: url("./images/x.png"); /* replace with your own X image */
  }
  
  .big-box.winner.O::before {
    background-image: url("./images/o.png"); /* replace with your own O image */
  }