/* ~/CSS/PartialViews/CardItem.css */
.form-inline {
    position: static;
}

.modal-header .icon-close {
    background-position: 0 -420px;
    background-size: 40px auto;
    width: 20px;
    height: 20px;
    vertical-align: top;
}

.icon-default-thumbs-16x16,
.icon-thumbs-up,
.icon-thumbs-down {
    background-image: url(/images/Icons/thumbs.svg);
    background-repeat: no-repeat;
    background-size: auto auto;
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

.icon-thumbs-up {
    background-position: 0 0;
}

.icon-thumbs-up:hover {
    background-position: -16px 0;
}

button:hover .icon-thumbs-up,
a:hover .icon-thumbs-up {
    background-position: -16px 0;
}

.icon-thumbs-down {
    background-position: 0 -16px;
}

.icon-thumbs-down:hover {
    background-position: -16px -16px;
}

button:hover .icon-thumbs-down,
a:hover .icon-thumbs-down {
    background-position: -16px -16px;
}

.game-cards {
    white-space: nowrap;
}

.game-cards .game-card {
    float: none;
    width: 161px;
    height: 223px;
    padding: 0 11px 0 0;
    display: inline-block;
    margin-bottom: 12px;
    vertical-align: top;
    white-space: normal;
}

@media(max-width:543px) {
    .game-cards .game-card {
        width: 102px;
        height: 143px;
        padding: 0;
    }
}

.game-card-container {
    background-color: #fff;
    position: relative;
    box-shadow: 0 1px 4px 0 rgba(25, 25, 25, 0.3);
    border-radius: 3px;
    float: left;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: left;
    width: 100%;
}

.game-card-container:hover {
    -webkit-transition: box-shadow 200ms ease;
    -o-transition: box-shadow 200ms ease;
    transition: box-shadow 200ms ease;
    box-shadow: 0 1px 6px 0 rgba(25, 25, 25, 0.75);
}

.game-card-container.card-plain {
    border: 1px solid #B8B8B8;
    box-shadow: none;
}

.game-card-container.card-plain:hover {
    box-shadow: none;
}

@media(max-width:543px) {
    .game-card-container {
        width: 90px;
        width: calc(100% - 12px);
    }
}

.game-card-container:hover {
    height: auto;
    z-index: 1000;
}

.game-card-container:hover .icon-thumbs-up {
    background-position: -16px 0;
    background-size: 32px auto;
    width: 16px;
    height: 16px;
}

@media(max-width:543px) {
    .game-card-container:hover .icon-thumbs-up {
        background-position: -12px 0;
        background-size: 24px auto;
        width: 12px;
        height: 12px;
    }
}

.game-card-container:hover .vote-thumbs-down {
    visibility: visible;
}

.game-card-container:hover .icon-thumbs-down {
    background-position: -16px -16px;
    background-size: 32px auto;
    width: 16px;
    height: 16px;
}

@media(max-width:543px) {
    .game-card-container:hover .icon-thumbs-down {
        background-position: -12px -12px;
        background-size: 24px auto;
        width: 12px;
        height: 12px;
    }
}

.game-card-container:hover .vote-container .vote-background {
    background-color: #E27676;
    opacity: .6;
}

.game-card-container:hover .vote-container .vote-background.no-votes {
    background-color: #757575;
}

.game-card-container:hover .vote-container .vote-percentage {
    background-color: #02b757;
}

.game-card-container:hover .vote-counts,
.game-card-container:hover .game-card-footer {
    display: block;
    float: left;
}

.game-card-thumb-container {
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
    position: relative;
    height: 150px;
    width: 150px;
    display: inline-block;
}

@media(max-width:543px) {
    .game-card-thumb-container {
        width: 100%;
        height: auto;
    }
}

.game-card-thumb-container .game-card-thumb {
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
    height: 150px;
    width: 150px;
    overflow: hidden;
    display: inline-block;
    margin: auto;
}

@media(max-width:543px) {
    .game-card-thumb-container .game-card-thumb {
        width: 100%;
        height: auto;
    }
}

.game-card-name,
.game-card-name-secondary,
.game-card-vote {
    width: 100%;
    padding: 0 6px;
    margin: 3px 0;
}

.game-card-name {
    margin-top: 6px;
}

@media(max-width:543px) {
    .game-card-name {
        font-size: 12px;
        font-weight: 400;
        margin-top: 3px;
        line-height: 1.1em;
    }
}

.game-card-name-secondary {
    font-size: 12px;
    font-weight: 400;
    color: #757575;
}

@media(max-width:543px) {
    .game-card-name-secondary {
        line-height: 1.1em;
    }
}

@media(max-width:543px) {
    .game-card-vote {
        line-height: 1em;
    }
}

.vote-bar {
    position: relative;
    height: 20px;
}

.vote-bar:before,
.vote-bar:after {
    content: " ";
    display: table;
}

.vote-bar:after {
    clear: both;
}

@media(max-width:543px) {
    .vote-bar {
        height: 16px;
    }
}

.vote-thumbs-up,
.vote-thumbs-down,
.vote-container {
    float: left;
}

@media(max-width:543px) {
    .vote-thumbs-up {
        line-height: 1em;
    }
}

.vote-thumbs-up .icon-thumbs-up {
    background-position: 0 0;
    background-size: 32px auto;
    width: 16px;
    height: 16px;
}

@media(max-width:543px) {
    .vote-thumbs-up .icon-thumbs-up {
        background-position: 0 0;
        background-size: 24px auto;
        width: 12px;
        height: 12px;
    }
}

.vote-thumbs-down {
    visibility: hidden;
    opacity: .6;
}

.vote-thumbs-down .icon-thumbs-down {
    background-position: 0 -16px;
    background-size: 32px auto;
    width: 16px;
    height: 16px;
}

@media(max-width:543px) {
    .vote-thumbs-down .icon-thumbs-down {
        background-position: 0 -12px;
        background-size: 24px auto;
        width: 12px;
        height: 12px;
    }
}

.vote-container {
    width: 70%;
    width: calc(99% - 32px);
    height: 6px;
    margin: 9px auto 0 1%;
    position: relative;
}

@media(max-width:543px) {
    .vote-container {
        width: 72%;
        width: calc(99% - 24px);
        height: 4px;
    }
}

.vote-background,
.vote-percentage {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

.vote-background {
    background-color: #B8B8B8;
    width: 100%;
}

.vote-percentage {
    background-color: #757575;
}

.vote-mask .segment {
    background-color: #fff;
    height: 6px;
    width: 2px;
    position: absolute;
    top: 0;
}

.vote-mask .seg-1 {
    left: 18%;
}

.vote-mask .seg-2 {
    left: 38%;
}

.vote-mask .seg-3 {
    left: 58%;
}

.vote-mask .seg-4 {
    left: 78%;
}

.vote-counts {
    position: relative;
    padding: 0 2px 5px;
    width: 100%;
    display: none;
}

.vote-counts .vote-up-count,
.vote-counts .vote-down-count {
    font-size: 12px;
}

.vote-counts .vote-up-count {
    color: #02b757;
}

.vote-counts .vote-down-count {
    float: right;
    color: #E27676;
    opacity: .6;
}

.game-card-footer {
    width: 100%;
    display: none;
    border-top: 1px solid #E3E3E3;
    padding: 5px 5px 0;
}

.game-card-footer:before,
.game-card-footer:after {
    content: " ";
    display: table;
}

.game-card-footer:after {
    clear: both;
}

.game-card-footer .text-label,
.game-card-footer .text-link {
    float: left;
}

.game-card-footer .text-link {
    width: 88%;
    width: calc(100% - 18px);
    margin-left: 3px;
}

/* The two rules above are transcribed from the 2016 dump, where the footer's children are
   siblings — <span class=text-label>By </span><a class=text-link>name</a> — so floating both
   lays them out in source order and calc(100% - 18px) is "the footer minus the width of By".
   buildGamesHtml emits the *2017* form instead (verbatim from 2017Games/moreresultscached),
   which nests the link inside the label: <span class=text-label> By <a class=text-link>…</a> </span>.

   Under the float rules that inverts the byline. The anchor floats to the left content edge of
   its parent span, and the "By" text node — which precedes it in source — gets pushed right by
   the shortened line box, so the card reads "Player1 By". calc(100% - 18px) also resolves
   against the span rather than the footer, shrinking the name to ~72% of an already shrink-to-fit
   float.

   These restore the 2017 sheet's own treatment of that markup (fetch.css: `.creator .text-label
   { display:block; width:100% }`, `.creator .text-link { display:inline; margin-left:3px }` —
   no floats), scoped to .creator so it only touches the nested form and the 2016 sibling layout
   above is left intact. Padding stays on .game-card-footer here; in the 2017 sheet it sits on
   .creator, so adding it there too would double it. */
.game-card-footer .creator .text-label {
    float: none;
    display: block;
    width: 100%;
}

.game-card-footer .creator .text-link {
    float: none;
    display: inline;
    width: auto;
    margin-left: 3px;
}

@media(max-width:970px) {

    .container-list .game-cards,
    .game-grid .game-cards {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
}

.game-cards-sm .game-card {
    width: 137px;
    height: 196px;
}

@media(max-width:543px) {
    .game-cards-sm .game-card {
        width: 102px;
        height: 150px;
        padding: 0;
    }
}

.game-cards-sm .game-card-thumb-container {
    border-bottom: 1px solid #E3E3E3;
    height: 126px;
    width: 126px;
}

@media(max-width:543px) {
    .game-cards-sm .game-card-thumb-container {
        width: 100%;
        height: auto;
    }
}

.game-cards-sm .game-card-thumb-container .game-card-thumb {
    height: 126px;
    width: 126px;
}

@media(max-width:543px) {
    .game-cards-sm .game-card-thumb-container .game-card-thumb {
        width: 100%;
        height: auto;
    }
}

.touch .game-card-container:hover {
    display: inline-block;
    z-index: auto;
    height: 100%;
}

.touch .game-card-container:hover .vote-thumbs-down {
    visibility: hidden;
}

.touch .game-card-container:hover .vote-container .vote-background {
    background-color: #B8B8B8;
}

.touch .game-card-container:hover .vote-container .vote-percentage {
    background-color: #757575;
}

.touch .game-card-container:hover .vote-counts {
    display: none;
    float: none;
}

.touch .game-card-container:hover .game-card-footer {
    display: none;
    float: none;
}

.game-cards .sponsored-game {
    display: none;
}

.sponsored-game .game-card-container:hover {
    height: 100%;
}

.sponsored-game .game-card-native-ad {
    background-color: #B8B8B8;
    bottom: 0;
    height: 28px;
    padding: 8px;
    position: absolute;
    width: 100%;
}

@media(max-width:543px) {
    .sponsored-game .game-card-native-ad {
        position: relative;
        margin-top: 10px;
        padding: 8px 0;
    }
}

.sponsored-game .game-card-native-ad .native-ad-label {
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
}