.pairing-game {
    position: relative;
    height: 60em;
}

.pairing-cards {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    z-index: 0;
}
.pairing-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: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding:15px 5px;
}
.pairing-card.ui-draggable-dragging{
    cursor: grabbing;
}

.pairing-card::before {
    content: "";
    display: inline-block;
    position: absolute;
    width: 1.5em;
    height: 1.5em;
    border-radius: 5em;
    top: -0.5em;
    left:50%;
    transform: translateX(-50%);
    box-shadow: inset 2px 8px 6px -6px rgba(255,255,255,0.5), 0 3px 6px rgba(0,0,0,0.35)

}
.pairing-card.pair-type-1::before {
    background: var(--cyan);

}
.pairing-card.pair-type-2::before {
    background: var(--orange);
}

.pairing-card.pair-type-2{
  z-index: 9 !important;
}

.pairing-card p {
    margin: 0 1em;
}

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

.pairing-card img{
  max-height: 90%;
}


form.pairing-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.pairing-game-form button[type="submit"]:disabled{
    opacity: .3;
    cursor: not-allowed;
}

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

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

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

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

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