#match_game {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    max-width: 640px;
    margin: 1rem auto 3rem auto;
    text-wrap: pretty;
}
#match_game ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#match_game li {
    margin: 1rem;
    padding: 1rem;
    border: 1px solid #bbb;
    border-radius: 4px;
}

#match_game img {
    display: table;
    width: 100%;
    max-width: 100%;
    height: auto;
}
#match_game button,
#match_game .button {
    border-radius: .25rem;
}
#match_game #card_placeholder {
    position: relative;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0;
}

.match_card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    -webkit-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
    opacity: 0;
    -webkit-transform: translate3d(50%, 0, 0) rotate(5deg);
    transform: translate3d(50%, 0, 0) rotate(5deg);
}

.matchGameReady .match_card:not(#card_placeholder) {
    position: absolute;
    opacity: 1;
}

.match_column {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    position: relative;
}

.match_image_column {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 40%;
    flex: 0 0 40%;
}

.match_sort_column {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 60%;
    flex: 0 0 60%;
    padding-left: 2rem;
}

.match_image {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    margin: 0.5rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border: 1px solid #eee;
    position: relative;
    min-height: 100px;
}

.match_image:before {
    content: attr(data-id);
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    height: 1.5rem;
    width: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    background: #900;
    color: #fff;
    border-radius: 100%;
}

.match_item {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin: 0.5rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border: 1px dashed #bbb;
    position: relative;
}

.match_item:hover {
    cursor: move;
}

.match_item:active {
    -webkit-box-shadow: 0 0 0 2px rgba(139, 195, 71, 0.5);
    box-shadow: 0 0 0 2px rgba(139, 195, 71, 0.5);
}

.sortable_items {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    z-index: 2;
}

@media screen and (max-width:639px) {
    .match_card {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        padding: 0.5rem;
    }

    .match_image_column,
    .match_sort_column {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
    }

    .match_image_column {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
    }

    .match_image {
        padding: 0.5rem;
    }

}

.list_order {
    position: absolute;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    height: 100%;
    top: 0;
    left: 0.25rem;
    width: calc(100% - 1.25rem);
}

.list_order span {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin: 0.5rem;
    background: #f5f6f7;
    padding: 0.5rem;
    width: 100%;
    border-radius: 10px;
    -webkit-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease;
}

.list_order span.correct {
    background-color: #4CAF50;
    color: #fff;
}

.list_order span.incorrect {
    background-color: #F44336;
    color: #fff;
}

.match_card_controls {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 1rem 0 0 0;
}

.match_submit {
    padding: 0.5rem 1rem;
    line-height: 1;
}

.matchGameReady .match_card[data-order="1"] {
    -webkit-transform: translate3d(0, 0, 0) rotate(0);
    transform: translate3d(0, 0, 0) rotate(0);
    z-index: 6;
}

.matchGameReady .match_card[data-order="2"] {
    -webkit-transform: translate3d(0.5%, 0.5%, 0) rotate(0.5deg) scale(1);
    transform: translate3d(0.5%, 0.5%, 0) rotate(0.5deg) scale(1);
    z-index: 5;
    -webkit-transition-delay: .1s;
    -o-transition-delay: .1s;
    transition-delay: .1s;
}

.matchGameReady .match_card[data-order="3"] {
    -webkit-transform: translate3d(1%, 1%, 0) rotate(1deg) scale(1);
    transform: translate3d(1%, 1%, 0) rotate(1deg) scale(1);
    z-index: 4;
    -webkit-transition-delay: .2s;
    -o-transition-delay: .2s;
    transition-delay: .2s;
}

.matchGameReady .match_card[data-order="4"] {
    -webkit-transform: translate3d(1.5%, 1.5%, 0) rotate(1.5deg) scale(1);
    transform: translate3d(1.5%, 1.5%, 0) rotate(1.5deg) scale(1);
    z-index: 3;
    -webkit-transition-delay: .3s;
    -o-transition-delay: .3s;
    transition-delay: .3s;
}

.matchGameReady .match_card[data-order="0"] {
    -webkit-transform: translate3d(-150%, 0px, 0) rotate(-5deg);
    transform: translate3d(-150%, 0px, 0) rotate(-5deg);
    opacity: 0;
    z-index: 8;
}

.match_image {
    position: relative;
}

.match_img {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.match_image[data-brand="lilly"] .match_img {
    background-image: url(../content/10/logos/lilly.jpg);
}

.match_image[data-brand="converse"] .match_img {
    background-image: url(../content/10/logos/converse.jpg);
}

.match_image[data-brand="nasa"] .match_img {
    background-image: url(../content/10/logos/nasa.jpg);
}

.match_image[data-brand="google"] .match_img {
    background-image: url(../content/10/logos/google.jpg);
}

.match_image[data-brand="amazon"] .match_img {
    background-image: url(../content/10/logos/amazon.jpg);
}

.match_image[data-brand="meta"] .match_img {
    background-image: url(../content/10/logos/meta.jpg);
}

.match_image[data-brand="IUHealth"] .match_img {
    background-image: url(../content/10/logos/iuhealth.jpg);
}

.match_image[data-brand="rileys"] .match_img {
    background-image: url(../content/10/logos/rileys.jpg);
}

.match_image[data-brand="colts"] .match_img {
    background-image: url(../content/10/logos/colts.jpg);
}

.match_image[data-brand="riotgames"] .match_img {
    background-image: url(../content/10/logos/riotgames.jpg);
}

.match_image[data-brand="cat"] .match_img {
    background-image: url(../content/10/logos/cat.jpg);
}

.match_image[data-brand="tiktok"] .match_img {
    background-image: url(../content/10/logos/tiktok.jpg);
}

.match_card_modal {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    -webkit-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
    background: rgba(255, 255, 255, 0.1);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.match_card_modal_content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 1rem;
    background: #fff;
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
    opacity: 0;
    -webkit-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
    width: 80%;
    max-width: 15rem;
    min-height: 8rem;
}

.match_card_modal_content p {
    margin: 0;
}

.matchCompleted .match_card_modal {
    opacity: 1;
    visibility: visible;
}

.matchCompleted .match_card_modal_content {
    opacity: 1;
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

.match_next,
.match_submit,
#match_game_start,
#match_game_reset {
    min-height: 3rem !important;
    padding: 0.75rem 1.5rem;
    -webkit-box-shadow: none;
    box-shadow: none;
    height: auto !important;
    line-height: 1.1;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-family: 'benton-sans-medium';
    -webkit-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    background: #990000;
    border: 1px solid #990000;
    color: #fff;
    min-width: 140px;
    text-align: center;
    align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}
#match_game_reset {
    background: #fff;
    color: #990000;
}
.match_next:hover,
.match_submit:hover,
#match_game_start:hover {
    background: #fff;
    color: #990000;
    cursor: pointer;
}
#match_game_reset:hover {
    background: #990000;
    border: 1px solid #990000;
    color: #fff;
}
#match_game_start {
    margin: 1rem auto 0 auto;
}
.match_next,
.matchCompleted .match_submit {
    display: none;
}

.matchCompleted .match_next {
    display: table;
    margin: 1rem auto 0;
}

.matchCompleted .match_item {
    border-radius: 0 10px 10px 0;
}

.matchCompleted .match_item.correct {
    border: 1px solid #4CAF50;
}

.matchCompleted .match_item.incorrect {
    border: 1px solid #F44336;
}

#match_game_start_screen {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 7;
    background: rgba(255, 255, 255, 0.85);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    border-radius: 10px;
    -webkit-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
    opacity: 1;
    visibility: visible;
}
.match_game_start_screen_content {
    background: #fff;
    width: 80%;
    border-radius: 10px;
    -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}
.match_game_start_screen_content p {
    margin: 0;
    text-wrap: pretty;
}
.matchGameStarted #match_game_start_screen {
    opacity: 0;
    visibility: hidden;
}

#match_game_end_screen {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
}

#match_game .button_group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
}
#match_game .button_group li {
    border: none;
    padding: 0.5rem;
    margin: 0;
    border-radius: 0;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
}
#match_game .button_group button,
#match_game .button_group .button {
    text-align: center;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.matchGameEnded #match_game_end_screen {
    opacity: 1;
    visibility: visible;
}