* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #f4f4f4;
    background: linear-gradient(to right, blue, red); /* Gradient from pink to white */
}

.game-container {
    text-align: center;
}

#board {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    transition: transform 1s ease;
}

.layer {
    position: absolute;
    width: 300px;
    height: 300px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    transform: translateZ(var(--z)) rotateX(90deg);
}

.layer[data-layer="1"] {
    --z: -100px;
}

.layer[data-layer="2"] {
    --z: 0px;
}

.layer[data-layer="3"] {
    --z: 100px;
}

.cell {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #333;
    font-size: 40px;
    cursor: pointer;
    background-color: #fff;
    transition: background-color 0.3s;
    color: yellow;
    background-color: yellow;
}

.cell.X {
    color: red;
}

.cell.O {
    color: blue;
}

.cell:hover {
    background-color: #f0f0f0;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    border: 2px solid #333;
    cursor: pointer;
}

.winner {
    font-weight: bold;
    transform: scale(1.1);
    background-color: yellow; /* Winner highlight */
    color: white;
}

#status {
    margin-top: 20px;
    font-size: 18px;
    color: orangered;
}

h4{
    color: lightgoldenrodyellow;
}
h5{
    color: yellowgreen;
}
button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-right: 10px;

}
