.grid {
    display: grid;
    border: 2px solid black;
    width: fit-content;
    margin: 0 auto;
}

canvas {
    box-sizing: border-box;
    border: 2px solid transparent;
}

#colorPicker {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.color-box {
    width: 30px;
    height: 30px;
    cursor: pointer;
    border: 2px solid black;
}

.color-box:hover {
    opacity: 0.8;
}

.form {
    display: flex;  
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sign {
    width: 125px;
    padding: 10px;
    margin: 5px 10px;
}
input[type="text"],
input[type="password"],
.logout {
    width: 250px;
    padding: 10px;
    margin: 5px 0;
}
.game{
    margin: 1em;
}
.button{
    width: 250px;
    padding: 10px;
    margin: 5px 35px;
}

.general{
    display: flex;
}

#messageForm{
    display: contents;
    margin: 10px;
}

@media screen and (max-width: 600px) {
    .general{
        flex-direction: column;
        align-items: center;
    }
}