.grid
{
    border-spacing: 8px;
}
.grid td
{
    width: 60px;
    height: 60px;
    border: 1px solid #000;
    text-align: center;
    font-size: 2em;
    line-height: 100%;
}
.correct
{
    color: #fff;
    background: #090;
}
.present
{
    color: #fff;
    background: #cc0;
}
.absent
{
    color: #fff;
    background: #666;
}
#message
{
    margin: 3px 0 10px;
    text-align: center;
}
.keys
{
    display: flex;
    /*align-items: center;*/
    justify-content: center;
}
.key
{
    width: 25px;
    height: 30px;
    padding: 5px;
    margin: 3px;
    border: 1px solid #000;
    text-align: center;
    font-size: 1.5em;
    line-height: 30px;
    user-select: none;
}
.key:hover
{
    background: #aaa;
}
#delkey
{
    width: 30px;
}

#sets
{
    list-style-position: inside;
}
.mw80
{
    max-width: 80%;
}
#sets li:nth-child(even)
{
    list-style: none;
    margin-left: 1.5em;
}
@media (max-width: 546px)
{
    #customsetform
    {
        margin-top: 10px;
    }
    #customsetform label
    {
        display: block;
    }
    #customsetform input
    {
        margin-top: 5px;
    }
    #customsetform input[type="submit"]
    {
        display: block;
        margin: 5px auto 0;
    }
}
@media (max-width: 425px)
{
    .key
    {
        font-size: 1.1em;
        width: 20px;
        height: 25px;
        line-height: 25px;
        font-weight: bold;
    }
}
@media (max-width: 399px)
{
    .grid td
    {
        width: 15vw;
        height: 15vw;
    }
    .key
    {
        font-size: 1em;
        width: 15px;
        height: 20px;
        line-height: 20px;
    }
}
@media (max-width: 368px)
{
    #delkey
    {
        width: 25px;
    }
}
@media (max-width: 345px)
{
    .key
    {
        margin: 3px 2px;
    }
}
@media (max-width: 328px)
{
    .key
    {
        margin: 3px 1px;
    }
}