.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.grid-item {
    user-select: none;
    cursor: pointer;
    font-weight: bold;
    background: #ccc6;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;

    display: flex;
    justify-content: center;
    align-items: center;

    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .grid-item {
        padding: 5px;
        font-size: 0.7em;
    }
}

.grid-item:hover {
    background: #ccc2;
}

.grid-item-selected {
    background: #0009;
    color: #fffb;
}

.grid-item-selected:hover {
    background: #000c;
}

.circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-block;
    margin: 20px 0px 0px 0px;
    background-color: rgba(0, 0, 0, 0.315);
}

.group-result {
    display: none;
    font-weight: bold;
    background-color: #00ff7240;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 5px;
    margin-top: 5px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
}

.group-result-animation {
    animation: bounceIn 0.6s forwards;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

#warning-text {
    opacity: 0;
    transition: opacity 2s;
}

#warning-text.show {
    opacity: 1;
}