html{
    scroll-behavior: smooth;
    box-sizing: border-box; 
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
body{
    margin: 0;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
    max-width: 1280px;
    background-color: #FFE4C4
 }

.main{
    height: 800px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
}
.buttons-block{
    width: 100%;
    height: 10%;
    display: flex;
    justify-content:space-around;
    align-items:center;
}
.buttons-block button:hover, .second-line b:hover{
    background-color:white;
    color:#00cccc;
}
.counter-block{
    width: 100%;
    height: 10%;
    display: flex;
    justify-content:space-around;
    align-items:center;
    color: #00cccc;

    font-size:large;
}
.game-block{
    width: calc(100%-20px);
    height: 70%;
    box-sizing: border-box; 
    margin-left: 10px;
    margin-right: 10px;
}
.size-block{
    width: 100%;
    height: 10%;
    display: flex;
    flex-direction: column;
    align-items:center;
    color: #00cccc;
    font-size:large;
}
.button{
    height: 35px;
    width: 120px;
    color:white;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: medium;
    border: 0;
    border-radius: 0;
    background: #ccc;
    background-color: #00cccc;
}
.button-start{
    width: 150px;
}

.first-line{
    display: block;
}
.second-line{
    display: flex;
    justify-content:space-evenly;
    flex-direction: row;
    align-items:center;
}
.link{
    padding-left: 4px;
    padding-right: 4px;
}
.sizes{
    padding-right: 4px;
}
p{
    margin: 10px;
}
.game-container, .table{
    height: 100%;
    width: 100%;
    border: 2px solid #00cccc;
    justify-content: center;
    align-content: center;
}
.square{
    border: 1px solid #00cccc;
    border-radius: 5px
}
td{
    text-align: center;
}
.game-container button{
    background:rgb(207, 211, 155);
    color:#00cccc;
    font-weight: bold;
}
button, a, b {
    cursor: pointer;
}




@media screen and (max-width: 540px) {

    .main{
        height: 500px;
    }
    .button{
        height: 35px;
        width: 70px;
        font-size: small;
    }
    .button-start{
        width: 75px;
    }
    .game-container{
        height: 100%;
    }
    .second-line{
        flex-wrap: wrap;
        justify-content: right;
    }
}