.grouping-game {
    position: relative;
    height: 30em;
}

.clusters {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    user-select: none;
}
.clusters > .cluster {
    user-select: none;
    flex-grow: 1;
    flex-basis: 50%;
    outline: 1px solid #dcdcdc;
    display: flex;
    justify-content: center;
    align-items: center;
}
.cluster.selected {
    background: rgb(0, 177, 159);
    color: white;
}



.grouping-cards {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.grouping-card {
    cursor: grab;
    user-select: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 35%);
    border-radius: 1em;
    position: absolute;
    background: white;
    width: 20%;
    height: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.grouping-card p {
    margin: 0 1em;
}

.grouping-card.success {
    border: 5px solid rgb(0,177,159);
}
.grouping-card.error {
    border: 5px solid red;
}



form.grouping-game-form button[type="submit"]{
    display: block;
    color: white;
    padding: 8px 80px;
    background-color: rgb(0,177,159);
    outline: none;
    border: 0px solid transparent;
    border-radius: .25rem;
    float:right;
}

form.grouping-game-form button[type="submit"]:disabled{
    opacity: .3;
    cursor: not-allowed;
}

form.grouping-game-form .form-footer{
    display: inline-grid;
    grid-column-gap: 2%;
    width: 100%;
    grid-template-columns: 49% 49%;
    margin-top:1rem;
}

form.grouping-game-form .grouping-game-error {
    margin-bottom: 0px;
    color:red;
    float:left;
    width:100%;
    margin-top: 10px;
}

form.grouping-game-form .grouping-game-success {
    margin-bottom: 0px;
    color:rgb(0,177,159);
    float:left;
    width:100%;
    margin-top: 10px;
}

.grouping-game-form .finished-badge {
    display: flex;
    height: 100%;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 425px;
}

.grouping-game-form .finished-badge .question-title {
    color: rgb(0,177,159);
    margin: 0;
}
