* {
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: start;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
}

.wrapper{
    display:flex;
    flex-direction:column;
    align-items: center;
    gap:15px;
    border-color:red;
}

h1{
    font-size: 50px;
}

#winner {
    font-size: 24px;
    font-weight: bold;
    color: green;
    margin-top: 10px;
    text-align: center;

}



#turn{
    font-size: 20px;
    font-weight:bold;
    margin-bottom:10px;
    color:red;
}

#board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    background-color: #000;
    padding: 5px;
}

.cell {
    width: 150px;
    height: 150px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inner-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr); /* <-- Add this line */
    width: 100%;
    height: 100%;
    gap: 2px;
    background-color: #000;
}

.inner-cell {
    width: 100%;
    height: 100%;
}

.inner-cell button {
    width: 100%;
    height: 100%;
    font-size: 1.5em;
    background-color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inner-cell button:hover {
    background-color: #ddd;
}

.last-move{
    color:green;
}

#error{
    color:red;
    font-weight:bold;
    text-align: center;
}

.sidebyside{
    display:flex;
    gap:10px;

}

.button{
    padding: 10px 20px;
    font-size: 1em;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover{
    background-color:#0056b3
}

.hidden{
    display:none !important;
}