:root{
    font-size: 10px;
    font-family: 'Bagel Fat One', cursive;
}
*{
    padding: 0;
    margin: 0;
}
body{
    padding: 0;
    margin: 0;
    background: #FFAFBD;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #ffc3a0, #FFAFBD);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #ffc3a0, #FFAFBD); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
.header{
    padding: 1.1em;
    background: black;
    color: white;
    border-bottom: 6px solid #ff0079;
}
.title{
    text-align: center;
    font-size: 7em;
    transition: 500ms;
    font-family: 'Shrikhand', cursive;
}
.mainContainer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5em;
}
.message{
    font-size: 5em;
    color: white;
    transition: 500ms;
    transition: 500ms;
}
.gameBoard{
    margin-top: -10px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.5em;
    transition: 500ms;
}
.field{
    width: 11rem;
    height: 11rem;
    border: 4px solid #ffffff;
    border-radius: 2rem;
    background-color: black;
    cursor: pointer;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.5);
    transition: 500ms;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
    font-family: 'Carter One', cursive;
}
.field:hover{
    transform: scale(1.05);
}
.white{
    color: white;
}
.pink{
    color: #ff0079;
}
.yellow{
    background: #ffd500;
}
.restartBtn{
    width: 8em;
    height: 1.6em;
    border: 2px solid black;
    border-radius:  1em;
    text-align: center;
    font-size: 3em;
    color: white;
    background-color: black;
    transition: 500ms;
    cursor: pointer;
}
.restartBtn:hover{
    color: #ffd500;
    transform: scale(1.05);
}
@media(max-width: 600px){
    .title{
        font-size: 5.5em;
    }
    .field{
        width: 9rem;
        height: 9rem;
        font-size: 6rem;
    }
    .message{
        font-size: 3.5em;
        margin-top: 18px;
    }
    .gameBoard{
        margin-top: 10px;
    }
    .restartBtn{
        margin-top: 0.8em;
    }
}