*{
    padding: 0;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
body{
    background: linear-gradient(135deg, gray, white);
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.title{
    background-color:blue;
    margin-bottom: 20px;
    font-weight: 600px;
    font-size: 3.9rem;
    color: white;
    border-radius: 10px;
    width: 15em;
    text-align: center;
    position: relative;
}
.title span{
    letter-spacing: 30px;
    color: yellow;
}
 .title .win {
    position: absolute;
}
 .title .win span {
    color: yellow;
    font-size:0.7em;
}
.title .o {
    right: 30px;
    top: -10px;
}
.title .x {
    left: 30px;
    top: -10px;
}

.game{
    text-align: center;
    font-size: 3vw;
    width: 700px;
}
/* boxes */
.boxes{
    display: grid;
    grid-template-columns: repeat(3,1fr);
}
.boxes .item{
    background-color:blue;
    height: auto; 
    aspect-ratio: 1/1;
    margin: 4px;
    font-size: 140px;    
    color: white;
    font-weight: 700;

    transition: 0.3s ease;
}
.boxes .item:hover{
    background-color:black;
    color: white;
    cursor: pointer;
}
button{
    padding: 10px 50px;
    font-weight: 600;
    background-color: blue;
    font-size: 30px;
    color: #fff;
    border: none;
    border-radius: 15px;
    transition: 0.3s ease;
    cursor: pointer;
}
button:hover{
    background-color:black;
    color: white;
}

@media (max-width:941px) {
    .title {
        width: 12em;
    }
    .game {
        width: 600px;
    }
    .game .boxes .item {
        font-size: 125px;
    }
    .game #btn {
        font-size: 24px;
        margin-top: 20px;
    }
}

@media (max-width:744px) {
    body{
        margin: 0 px;
    }
    .title{
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 12px;
        width: 10em;
    }
    .title .title-name {
        font-size: 40px;
        padding-top: -900px;
    }
    .title .win {
        top:-12px;

    }
}

@media (max-width:651px) {
    .title {
        width:9em;
    }
}


@media (max-width:587px) {
    .title {
       width: 500px;
       padding:10px;
    }
    .title .win {
        font-size: 40px;
        top: 6px;
    }
    .title span {
        letter-spacing: 10px;
    }
     .game .boxes .item {
        font-size: 125px;
    }
}

@media (max-width:519px) {
    .game {
        width: 400px;
    }
    .title {
        width: 380px;
    }
    .game .boxes .item {
        font-size: 80px;
    }
    .title .title-name {
        font-size: 25px;
    }
    .title .win {
        font-size: 29px;
    }
    .game #btn {
        font-size: 20px;
        margin-top: 20px;
    }
}

@media (max-width:390px) {
    .title {
        width:360px;
    }
    .game {
        width: 356px;
    }
    .game .boxes .item {
        font-size:76px;
    }

}
