body{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90vh;
    margin: 0;
    padding: 5vh;
}
h1,h3{
    margin:10px 0;
}
h3{
    font-size: 25px;
    font-weight: 500;
    margin: 0;
}
h1{
    text-align: center;
}
main{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.score{
    display: flex;
    justify-content: space-between;
    gap: 5%;
    flex-wrap: wrap;
    align-items: center;
}

.score div:first-child{
    text-align: left;
}

.score div:last-child{
    text-align: right;
}

#turnO{
    text-align: left;
    margin: 0;
}

.round{
    text-align: center;
}

.round h4{
    margin: 10px 0;
}

#turnX{
    text-align: right;
    margin: 0;
}

#circleScor , #croseScor{
        margin: 10px 0;
}

#gamebord{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    flex: 1;
    border: 2px solid #000;
}
.field{
    border: 2px solid #000;
    display: flex;
    font-size: 50px;
    align-items: center;
    justify-content: center;
    color: #000000;
}
.active{
    color: red;
}

.option{
    display: flex;
    justify-content: center;
    margin: 5px;
}

button , a{
    margin: 5px;
    background-color: #000;
    border: none;
    padding:5px 10px;
    color: #fff;
    text-decoration: none;
}
button:hover , a:hover{
    cursor: pointer;
}

@media (max-width:650px){
    .score{
        display: grid;
        grid-template-columns: repeat(2 , 1fr);
        gap: 0 10px ;
    }

    .option{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .score h3{
        grid-column: 1/3;
        grid-row: 1/2;
        text-align: center;
    }

    #size{
        text-align: center;
        grid-column: 1/3;
        grid-row: 1/2;
    }

    .edit_size{
        display: grid;
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:340px){
    #circleScor , #croseScor{
        display: grid;
        grid-template-columns: repeat(3,1fr);
    }
    body{
        padding: 2.5vh;
        height: 95vh;
    }
}