body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

#main {
    display: grid;
    border: 2px solid rgb(76, 199, 19);
    width: 700px;
    height: 700px;
    grid-template-columns: 200px 200px 200px;
    grid-template-rows: 200px 200px 200px;
    align-content: center;
    justify-content: center;
    grid-gap: 20px;
    margin-bottom: 20px;
    font-family: "Roboto", sans-serif;
}

.box {
    background-color: rgba(100, 40, 100);
    border-radius: 5%;
    font-size: 120px;
    display: grid;
    place-items: center;
}

.box:hover {
    background-color: rgba(100, 40, 100, 0.8);
}

.x {
    display: none;
}

.o {
    display: none;
    color: white;
}

#game {
    width: 700px;
    height: 50px;
    background-color: aliceblue;
    margin: 0 auto;
    text-align: center;
    font-size: 24px;
    line-height: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 20px;
    font-family: "Roboto", sans-serif;
}

#level {
    margin-bottom: 20px;
    font-size: 20px;
    padding: 5px;
    color: rgb(89, 66, 218);
    font-weight: bold;
    font-family: "Roboto", sans-serif;
}

#scoring {
    font-family: "Honk", system-ui;
    font-size: 30px;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
    font-variation-settings:
        "MORF" 15,
        "SHLN" 50;
}

button {
    padding: 10px;
    font-size: 24px;
    font-weight: 500;
    font-family: Inter, sans-serif;
    color: white;
    border-radius: 5px;
    background-image: linear-gradient(#8614f8 0, #760be0 100%);
    font-family: "Roboto", sans-serif;
}

button:hover {
    background-image: linear-gradient(#bd90eb 0, #8565a5 100%);
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    #main {
        display: grid;
        width: 300px;
        height: 300px;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        grid-gap: 10px;
        padding: 10px;
    }

    .box {
        font-size: 48px;
    }

    #game {
        width: 320px;
        height: 50px;
        font-size: 18px;
        grid-template-columns: 1fr 1fr;
    }

    #scoring {
        font-size: 20px;
    }
}