body {
    margin: 0;
    max-width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    background-color: #3D036D;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: goldman, arial, sans-serif;
}
.game {
    background-color: #6E0CF9;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    width: 85%;
    height: 75%;
    min-height: 35rem;
    max-width: 25rem;
    border-radius: 2rem;
}
.game h1 {
    margin: .5rem 1rem .25rem 1rem;
    color: white;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
}

/*screen section*/
.screen {
    background-color: #EFB2F8;
    border-radius: 2rem;
    margin: .25rem 0;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: .25rem solid #3D036D;
    flex-grow: 1;
}
.screen h5 {
    margin: 1rem 1rem .5rem 1rem;
    font-size: 1.5rem;
    color: #2E3244;
    font-weight: 400;
}
/*grid section*/
.grid {
    width: 90%;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    padding: 0 1rem 1rem 1rem;
    gap: 0.75rem;
}
.grid button {
    width: calc(33.33% - 0.75rem);
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 2rem;
    border: 0.2rem solid #3D036D;
    cursor: pointer;
    transition: .2s;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.grid img {
    height: 60%;
    width: auto;
    max-width: 60%;
    opacity: 0.8;
    transition: 0.2s;
    display: block;
}
.grid img[src=""],
.grid img:not([src]) {
    display: none;
}
/*state section*/
.state {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 12rem;
    padding: .25rem 1rem .25rem 1rem;
    gap: 1.5rem;
}
.state h4 {
    margin: 1.5rem 0;
    text-align: center;
    font-size: 1.5rem
}
h4#win{
    color: #21B493;
}
h4#tie{
    color: #D4B7FD;
}
h4#lose{
    color: #CB08AE;
}
/*restart section*/
.restart {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.restart button {
    width: 40%;
    background-color: #3D036D;
    font-size: 1.5rem;
    font-weight: 400;
    color: white;
    border: .15rem solid white;
    border-radius: 2rem;
    padding: .25rem .5rem;
    margin: .25rem 3%;
    transition: .2s;
    cursor: pointer;
}
.restart button:hover {
    background-color: #EFB2F8;
    border-color: #3D036D;
    color: #3D036D;
}

.restart h6 {
    font-size: 1.2rem;
    text-align: center;
    margin: 1.25rem 1rem .5rem 1rem;
    color: rgba(255, 255, 255, 0.419);
    font-weight: 400;
    flex-shrink: 0;
    width: 100%;
}