:root{
    --edge-color: rgb(41, 85, 136);
    --crosses-color: rgb(25, 52, 82);
}

button {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    color: inherit;
}

body {
    font-family: "Poppins", sans-serif;
    margin: 0px;
    background-color: rgb(188, 255, 255);
}

.top{
    margin: 0px;
    text-align: center;
    width:100%;
    color: var(--crosses-color);
}

.top h1{
    margin: 0px;
    padding-top: 10px;
    padding-bottom: 10;
    font-size: min(45px,14vw);
}

#board{
    background-color: var(--edge-color);
    border: 5px solid var(--edge-color);
}

.square{
    width: 100px;
    height: 100px;
    border: 5px solid var(--edge-color);
}

.row-container{
    display: flex;
}

.square button{
    width: 100%;
    height: 100%;
    background-color: aliceblue;
    font-size: 80px;
    border-radius: 8px;
    border-width: 0;
    color: var(--crosses-color);
}

.square button:hover{
    background-color: rgb(202, 211, 219);
    animation-duration: 0.5s;
    animation-name: textbounce;
    animation-fill-mode: forwards;
}

@keyframes textbounce{
    from{
    font-size: 80px;

    }
    to{
    font-size: 84px;
    }
}

.container{
    display: flex;
    justify-content: center;
}

.result{
    text-align: center;
    font-size: 70px;
    margin-top: 20px;
}

.restart-container {
    margin-top: 30px;
    width: 100%;
    display: flex;
    justify-content: center;   /* centers horizontally */
    align-items: center;       /* centers vertically (if height changes) */
}

.restart-btn {
    width: 150px;
    height: 60px;
    font-size: 35px;
    font-family: "Poppins", sans-serif;
    border-radius: 8px;
    background-color: aliceblue;
    border: 5px solid var(--edge-color);
    color: var(--crosses-color);
    cursor: pointer;
    font-weight: 600;
}

.restart-btn:hover {
    background-color: rgb(202, 211, 219);
}