﻿
﻿ * {
    -moz-user-select: none;
}

.center-inline-wrapper {
    text-align: center;
}

#shareButtonsGroup {
    position: absolute;
    right: 10px;
    bottom: 55px;
    z-index: 1;
}

    #shareButtonsGroup > div {
        vertical-align: top;
    }

.fb-like {
    width: 90px;
}

.only-chrome {
    display: none;
}

#playArea img {
    max-width: none !important;
}

.single-list {
    height: 400px;
    overflow-y: auto;
    border-radius: 10px;
    padding: 10px;
    width: 700px;
}

    .single-list a {
        display: block;
        margin: 0 auto;
    }

    .single-list .ui-btn {
        padding: 5px 0;
        border: none;
    }

.ui-btn-small {
    padding: 5px 16px;
    font-weight: normal;
}

.single-list .ui-block-a, .single-list .ui-block-b, .single-list .ui-block-c {
    text-align: center;
}

.columnButtonWrapper {
}

    .columnButtonWrapper span {
        font-size: 14px;
    }

.ui-popup.ui-content, .ui-popup .ui-content {
    overflow-y: auto;
}

.onphone.ui-popup {
    position: absolute;
}

#new-game-dialog .ui-btn {
    -webkit-transform: translateZ(0);
}

#more-buttons-dialog:not(.onphone):not(.onphone), #score-buttons-dialog:not(.onphone) {
    min-width: 330px;
}

#options-dialog:not(.onphone) .ui-field-contain {
    min-width: 400px;
    max-width: 450px;
}

.ui-field-contain {
    margin: 18px 0 !important;
}

    .ui-field-contain label.ui-slider {
        width: 70%;
    }

    .ui-field-contain div.ui-slider {
        width: 20%;
        margin-bottom: -5px;
    }

.ui-controlgroup-controls {
    margin-bottom: -1px;
}

.ui-select {
    padding-bottom: 1px !important;
}

.ui-dialog .ui-header {
    margin-top: 10px;
}

.ui-dialog-contain {
    margin-top: 50px;
}

#main-ui .ui-header .ui-btn-icon-notext, .hide-back.ui-header .ui-btn-icon-notext {
    display: none;
}

.ui-dialog[data-url^="/"] .ui-header, .ui-dialog[data-url^="/"] .ui-content, .ui-dialog[data-url^="/"] .ui-footer, .ui-dialog[data-url^="/"] .ui-dialog-contain {
    max-width: 600px;
    width: 600px;
    box-sizing: border-box;
}

#backgrounds-list a.ui-link-inherit {
    padding-left: 148px;
}

#backgrounds-list .ui-li-thumb {
    max-width: 128px;
}

#backgrounds-list .list-item-inner {
    left: 140px;
}

/*#rules-dialog-popup {
    right: 0 !important;
    left: auto !important;
    height: 100%;
}*/

#rules-dialog-popup {
    right: auto !important;
    left: 0 !important;
    height: 100%;
}

#rules-dialog:not(.onphone) {
    width: 500px;
    border: 1px solid #696969;
    border-right: none;
    background: rgba(245,255,250,.9);
    margin: 0;
    text-shadow: none !important;
    color: black;
    height: 100%;
    overflow-y: auto;
    border-top: none;
    border-bottom: none;
}

#rules-dialog.onphone {
    background: #eee;
}

.ui-corner-all.onphone {
    border-radius: 0;
}

.pieChart {
    height: 200px;
    width: 200px;
    margin: 5px auto;
    position: relative;
}

.pieBg {
    height: 100%;
    width: 100%;
    border-radius: 200px;
}

.pie, .pieCover {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    border-top-left-radius: 200px;
    border-bottom-left-radius: 200px;
}

.pieCover, .pieBg {
    background: #A2E100;
}

.pie {
    background: #E12B1E;
}

.pieLegend {
    position: absolute;
    border-bottom: 1px solid black;
    box-shadow: 0 1px 0 rgba(255,255,255,0.4);
    width: 120px;
    text-align: center;
}

    .pieLegend > span {
        position: relative;
    }

    .pieLegend.lleft > span {
        left: -50%;
    }

    .pieLegend.lright > span {
        right: -50%;
    }

.bigshadow {
    display: none;
}

.card.moving .bigshadow {
    display: block;
}

.card.moving .shadow {
    visibility: none;
}

.card .light, #redeal-button-outer > .light {
    display: none;
}

.cardFront, .cardBack {
    width: 100%;
    height: 100%;
}

.card .cardFront {
    border: none;
}

.foundation.highlight, .cell.highlight, #fakeCard.highlight {
    box-shadow: 0 0 30px 10px yellow,inset 0 0 30px yellow;
    background: #FFD700;
    background: rgba(255,255,255,0.5);
}

#playArea {
    position: absolute;
    top: 32px;
    bottom: 43px;
    left: 0px;
    right: 0px;
}

.ios7-app #playArea {
    top: 47px;
}

#game-ui {
    -ms-touch-action: none;
    touch-action: none;
    background: #FFF;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    height: 100%;
    width:100%;
    filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#FFF',endColorstr='#FFF');
    perspective: 8000px;
    -webkit-perspective: 8000px;
    -moz-perspective: 8000px;
}

.bottomBar {
	display:flex;
	justify-content:center;
    position: absolute;
    left: 0;
    right: 0;
    height: 70px;
    bottom: 8px;
    z-index: 1000;
    -webkit-transition-duration: 0.2s;
}

    .bottomBar.hidden {
        -webkit-transform: translateY(50px);
    }

.barLeft, .barRight {
    position: absolute;
    top: 0;
}

.barRight {
    right: 10px;
}

.bottomButton {
	margin-bottom: 5px;
    display: inline-block;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-weight: bold;
    padding: 0.5em 0.8em 0.5em 0em;
    padding-left: 40px;
    margin-left: 8px;
    height: 35px;
    vertical-align: bottom;
    border-radius: 5px;
    background-color: rgba(0,0,0,0.5);
    /*background-color: grey;
    background-color: rgba(0,0,0,0.5);
    //background-color: rgba(53,90,119,0.8);
    //background-color: rgba(120,104,89,0.8);*/
    color: white;
    background-repeat: no-repeat,no-repeat;
    background-position: top center,10px 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5),inset 0 1px rgba(255,255,255,0.3),inset 0 -15px 30px rgba(0,0,0,0.3);
    cursor: pointer;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

    .bottomButton:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.5),inset 0 1px rgba(255,255,255,0.4),inset 0 -15px 30px rgba(0,0,0,0.2),0 0 6px rgba(255,255,255,0.7);
    }

    .bottomButton:not(.anchor):active, .bottomButton.toggled {
        box-shadow: inset 0 1px rgba(255,255,255,0.4),inset 0 10px rgba(255,255,255,0.01),inset 0 10px 20px rgba(255,255,255,0.1),inset 0 -15px 30px rgba(0,0,0,0.2);
        background-color: rgba(0,0,0,0.4);
    }

.buttonGroup {
    width: 87px;
    display: inline-block;
    vertical-align: bottom;
}

.anchor {
    margin-left: 0;
}

.subButton {
    background: url(transparent.png);
}

.buttonGroup:hover > .subButton {
    height: 120px;
    display: block;
}

#change-solitaire-but {
    background-image: url(),url(icon_buttons/change_solitaire.png);
}

#new-game-but {
    background-image: url(),url(icon_buttons/new_game.png);
}

#choose-but {
    background-image: url(),url(icon_buttons/change_solitaire.png);
}

#undo-but {
    background-image: url(),url(icon_buttons/undo.png);
}

#rules-but {
    background-image: url(),url(icon_buttons/rules.png);
}

#sound-but {
    background-image: url(),url(icon_buttons/sound.png);
}

    #sound-but.volume-off {
        background-image: url(),url(icon_buttons/sound_disabled.png);
        color: #8d8d8d;
    }

    #sound-but.disabled {
        display: none;
    }

#hint-but {
    background-image: url(),url(icon_buttons/hint.png);
}

#autoplay-but {
    background-image: url(),url(icon_buttons/autoplay.png);
}

    #autoplay-but.autoplay-off {
        background-image: url(),url(icon_buttons/autoplay_disabled.png);
        color: #8d8d8d;
    }

    #autoplay-but.disabled {
        display: none;
    }

.score-but {
    background-image: url(),url(icon_buttons/scores.png);
}

.more-but {
    background-image: url(),url(icon_buttons/more.png);
}

#clear-stats-but {
    width: 200px;
}

@media(-webkit-min-device-pixel-ratio:2) {
    .bottomButton {
        background-size: 100% 100%,24px 24px;
    }

    #change-solitaire-but {
        background-image: url(),url(icon_buttons/change_solitaire@2x.png);
    }

    #new-game-but {
        background-image: url(),url(icon_buttons/new_game@2x.png);
    }

    #choose-but {
        background-image: url(),url(icon_buttons/change_solitaire@2x.png);
    }

    #undo-but {
        background-image: url(),url(icon_buttons/undo@2x.png);
    }

    #rules-but {
        background-image: url(),url(icon_buttons/rules@2x.png);
    }

    #sound-but {
        background-image: url(),url(icon_buttons/sound@2x.png);
    }

    #sound-but.volume-off {
            background-image: url(),url(icon_buttons/sound_disabled@2x.png);
            color: #8d8d8d;
        }

    #hint-but {
        background-image: url(),url(icon_buttons/hint@2x.png);
    }

    #autoplay-but {
        background-image: url(),url(icon_buttons/autoplay@2x.png);
    }

        #autoplay-but.autoplay-off {
            background-image: url(),url(icon_buttons/autoplay_disabled@2x.png);
            color: #8d8d8d;
        }

    .score-but {
        background-image: url(),url(icon_buttons/scores@2x.png);
    }

    .more-but {
        background-image: url(),url(icon_buttons/more@2x.png);
    }
}

/*.bottomButton.winApp {
    font-family: 'Segoe UI';
    font-weight: 500;
    font-size: 14.3px;
    color: rgba(255,255,255,0.9);
    text-align: center;
    background: none;
    background-size: 100%;
    background-repeat: no-repeat;
    height: 75px;
    width: 84px;
    box-shadow: none;
    border: none;
    padding: 50px 0px 0px 0px;
    margin-top: -30px;
}

    .bottomButton.winApp:hover {
        box-shadow: none;
        border: none;
    }

    .bottomButton.winApp:active {
        box-shadow: none;
        border: none;
    }

#autoplay-but.winApp {
    background-image: url(icon_buttons/win_app/icon/autoplay.png);
}

    #autoplay-but.winApp.autoplay-off {
        background-image: url(icon_buttons/win_app/icon/autoplay_disabled.png);
    }

#new-game-but.winApp {
    background-image: url(icon_buttons/win_app/icon/new_game.png);
}

#change-solitaire-but.winApp {
    background-image: url(icon_buttons/win_app/icon/change_solitaire.png);
}

#undo-but.winApp {
    background-image: url(icon_buttons/win_app/icon/undo.png);
}

#hint-but.winApp {
    background-image: url(icon_buttons/win_app/icon/hint.png);
}

.bottomButton.score-but.winApp {
    background-image: url(icon_buttons/win_app/icon/scores.png);
}

.bottomButton.more-but.winApp {
    background-image: url(icon_buttons/win_app/icon/more.png);
}*/

.ios7-app #topBar {
    top: 15px;
}

#topBar {
    position: relative;
    height: 30px;
    width: 100%;
    z-index: 198;
    text-align: center;
}

#topBarLeftContainer {
    position: absolute;
    left: 0;
    height: 100%;
}

    #topBarLeftContainer > *, #topBarRightContainer > * {
        margin: 0;
        display: block;
        float: left;
        height: 30px;
    }

.topBarButton {
    display: inline-block;
    height: 100%;
    width: 30px;
    cursor: pointer;
    text-align: center;
}

#topBar *:hover + .buttonHint {
    display: block;
}

.topBarButton:active {
    background-color: #222;
    color: white;
    text-shadow: none;
    box-shadow: inset 0 0 10px black;
}

.topBarButtonInner {
    height: 100%;
    width: 100%;
    background-size: 87%;
    background-position: center;
    background-repeat: no-repeat;
}

    .topBarButtonInner:active {
        background-size: 70%;
    }

#gameName, .top-display {
    color: #fff;
    height: 20px;
    cursor: default;
    line-height: 22px;
}

.top-display {
    font-size: 20px;
    min-width: 150px;
    text-align: left;
    padding: 8px 15px 1px 5px;
    font-weight: bold;
}

#display-time + .buttonHint {
    margin-left: -103px;
}

#toggle-fullscreen {
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-top: 2px;
    background-image: url(),url(icons/full-screen-on.png);
    background-size: 18px 18px;
    background-repeat: no-repeat,no-repeat;
    background-position: center center;
    cursor: pointer;
    display: none;
}

#autoplay-status-screen {
    display: none;
}

#autoplay-status-popup.ui-popup-active {
    margin-top: -15px;
}

#gameName {
    display: inline-block;
    font-size: 26px;
    padding: 3px 10px;
    line-height: 30px;
    height: 30px;
    font-weight: bold;
}

.win8 #gameName {
    font-size: 28px;
    font-weight: normal;
}

.win8 .top-display {
    font-weight: normal;
}

    .win8 .top-display > span.display-content {
        font-size: 28px;
    }

#topBarRightContainer {
    position: absolute;
    right: 0;
    top: 0;
    margin-bottom: 0;
    height: 100%;
}

#stats-dialog:not(.onphone) table {
    border-collapse: collapse;
    margin: 20px auto;
    width: 380px;
}

#stats-dialog:not(.onphone) td {
    padding: 8px;
    text-align: left;
}

#stats-dialog:not(.onphone) {
    min-width: 460px;
}

#darkenArea {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    z-index: 2000;
    background: transparent;
    background: url(transparent.png);
    -webkit-transition-duration: 0.5s;
    -moz-transition-duration: 0.5s;
    text-align: center;
}

    #darkenArea.hidden {
        visibility: hidden;
    }

.content-holder {
    margin-bottom: 40px;
}

button {
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #303030;
    box-shadow: inset 0px 0px 3px #bbb,0px 0px 3px #202020;
    background: #808080;
    background-image: -moz-linear-gradient(#A0A0A0,#606060);
    background-image: -o-linear-gradient(#A0A0A0,#606060);
    background-image: -webkit-linear-gradient(#A0A0A0,#606060);
    cursor: pointer;
    font-size: 13px;
    margin-left: 3px;
    margin-right: 3px;
    min-width: 50px;
    display: inline-block;
}

    button:hover {
        background-image: -moz-linear-gradient(#b0bbb0,#707b70);
        background-image: -o-linear-gradient(#b0bbb0,#707b70);
        background-image: -webkit-linear-gradient(#b0bbb0,#707b70);
    }

    button:active {
        background-image: -moz-linear-gradient(#909090,#707070);
        background-image: -o-linear-gradient(#909090,#707070);
        background-image: -webkit-linear-gradient(#909090,#707070);
        box-shadow: inset 0 0 3px #333;
        border-color: #333;
    }

.buttonHolder {
    text-align: center;
}

#gameName + .buttonHint + .helpText {
    left: 50%;
    margin-left: -150px;
}

#topBarRightContainer + .helpText {
    right: 0;
}

#shareButtonsHolder + .helpText {
    bottom: 20px;
    left: 50%;
    margin-left: -150px;
}

#loadingBox {
    position: relative;
    padding: 12px 20px 20px 20px;
    background: rgba(0,0,0,0.9);
    color: white;
    border-radius: 6px;
    border: 1px solid black;
    box-shadow: 0 0 20px black;
    font-weight: bold;
    font-size: 18pt;
    text-align: center;
    width: 150px;
    height: 60px;
    top: 50%;
    display: inline-block;
    margin-top: -31px;
    z-index: 10000;
}

    #loadingBox img {
        position: relative;
        top: -20px;
    }

html {
    max-height: 100%;
    height: 100% !important;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 0 !important;
}

    html.ios7 {
        height: 671px !important;
    }

body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin: 0;
    position: relative;
    height: 100% !important;
    max-height: 100%;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    font-family: Helvetica,Arial,sans-serif;
    background-color: white !important;
    font-size: 100%;
    overflow: hidden;
}

html.with-phone-popup {
}

    html.with-phone-popup body {
        overflow: auto;
    }

.ui-body-c, .ui-body-c input, .ui-body-c select, .ui-body-c textarea, .ui-body-c button, .ui-bar-a, .ui-bar-a input, .ui-bar-a select, .ui-bar-a textarea, .ui-bar-a button, .ui-btn-up-a, .ui-btn-hover-a, .ui-btn-down-a, .ui-btn-up-c, .ui-btn-hover-c, .ui-btn-down-c {
    font-family: Helvetica,Arial,sans-serif;
}

.box, #loadingBox, button, #main-nav li, .title, #group-games span {
    text-shadow: 0 -1px 0 rgba(0,0,0,0.9),0 1px 0 rgba(255,255,255,0.3);
}

#gameName, .top-display, .bottomButton {
    text-shadow: 0 -1px 0 rgba(70,70,70,0.9),0 1px 0 rgba(195,195,195,0.3);
    -webkit-transform: translateZ(0);
}

#games-content {
    overflow-x: hidden;
    padding: 0 15px;
}

#group-games {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 12px;
}

    #group-games > span {
        display: inline-block;
        vertical-align: top;
        height: 151px;
        width: 260px;
        margin: 15px;
        line-height: 20px;
        position: relative;
        cursor: pointer;
        border-radius: 0;
        font-weight: bold;
        text-shadow: none;
        text-align: center;
    }

        #group-games > span span {
            text-shadow: none;
            display: inline-block;
            width: 100%;
        }

    #group-games img {
        height: 141px;
        width: 250px;
        border-radius: 0;
        box-shadow: 3px 3px 3px rgba(0,0,0,0.6);
    }

    #group-games span.onphone {
        height: 72px;
        width: 120px;
        margin: 10px;
        line-height: 15px;
        font-size: 0.8em;
    }

        #group-games span.onphone > img {
            height: 62px;
            width: 110px;
        }

#group-feedback.posted textarea, #group-feedback.posted button {
    display: none;
}

a {
    color: #ccc;
}

header, nav, section, article, aside, footer, hgroup {
    display: block;
}

#win-dialog:not(.onphone) {
    width: 400px;
}

#rateapp-dialog:not(.onphone) {
    width: 350px;
}

#appearance-dialog {
    font-size: 13px;
}

#settings-dialog:not(.onphone) {
    width: 300px;
}

.cell, .foundation, .tableau-holder, .card, .waste-holder {
    width: 146px;
    height: 198px;
}

.use-pixelated .cell, .use-pixelated .foundation, .use-pixelated .tableau-holder, .use-pixelated .card, .use-pixelated .waste-holder {
    width: 145px;
    height: 197px;
}

    .use-pixelated .card img {
        image-rendering: pixelated;
    }

.card {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

.card, .cardFront, .cardBack {
    border-radius: 10px;
}

.mobilePhone #gameName, .mobilePhone .top-display {
    height: 17px;
    line-height: 17px;
}

.mobilePhone .top-display {
    font-size: 8px;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
    padding: 1px 1px 1px 1px;
}

.mobilePhone #gameName {
    font-size: 10px;
    padding: 1px 5px;
    line-height: 15px;
    height: 15px;
}

.mobilePhone .barLeft {
    left: 5px;
}

.mobilePhone .barRight {
    right: 2px;
}

.mobilePhone .bottomButton {
    padding: 10px 5px 5px 5px;
    padding-left: 5px;
    margin: 0;
    margin-left: -0.37em;
    height: 20px;
    box-sizing: content-box;
    vertical-align: bottom;
    border-radius: 0;
    background-position: top center,bottom right;
    background-size: 100%,0;
    font-size: 11px;
    line-height: normal;
}

.mobilePhone #appearance-dialog .ui-radio .ui-btn-text {
    font-size: 11px;
}

.onlyphone {
    display: none !important;
}

.mobilePhone .onlyphone {
    display: block !important;
}

#winAdContainer {
    position: absolute;
    background: black;
    overflow-y: hidden;
    z-index: 1;
}

    #winAdContainer.portrait {
        bottom: 0;
        height: 90px;
        width: 728px;
        left: 50%;
        margin-left: -364px;
    }

    #winAdContainer.landscape {
        top: 50%;
        right: 0px;
        width: 160px;
        height: 600px;
        margin-top: -300px;
    }

#newGameAdDiv {
    height: 75px;
    display: none;
}

#bookmark-button {
    background: url(icons/bookmark.png) no-repeat center;
    border: none;
    min-width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 2px;
    margin-right: 10px;
    outline: none;
    display: inline-block;
}

@media (max-width:1280px) {
    /*#topBar {
        text-align: left;
    }*/
}

@media (max-width:800px) {
    .single-list {
        width: auto;
        height: auto;
    }

    .columnButtonWrapper {
        width: 50% !important;
        clear: none !important;
    }
}

@media (max-width:400px) {
    .columnButtonWrapper {
        width: 100% !important;
    }
}

.wrap-shadow {
    display: none;
}

@-moz-document url-prefix() {
    .wrap-shadow {
        position: fixed;
        top: 0;
        z-index: 99999;
        pointer-events: none;
        width: 100%;
        height: 100%;
        border: 1px solid transparent;
        display: block;
    }
}

@-ms-viewport {
    width: device-width;
}

.achievement {
    display: inline-block;
    padding: 5px 10px;
}

    .achievement img {
        width: 80px;
    }

    .achievement p, .achievement h4 {
        margin: 0;
        line-height: 1.5em;
        font-size: .9em;
        text-align: center;
    }

    .achievement.achievement-unlocked .achievement-currentCount {
        text-indent: -10000px;
        background: url(../images/achievements/check.png) no-repeat center;
    }

.spacer {
    display: inline-block;
    padding: 0 10px;
    height: 0;
}

    .spacer span {
        width: 80px;
        display: inline-block;
    }

#achievements-dialog {
    max-width: 600px;
    max-height: 580px;
    overflow: hidden;
}

#info-dialog {
    min-width: 300px;
}

#info-title {
    margin: 0 10px;
}

#achievement-unlocked-dialog {
    width: 600px;
    text-align: center;
}

    #achievement-unlocked-dialog .achievement {
        padding: 20px 10px;
    }

    #achievement-unlocked-dialog .last-unlocked {
        background: url(../images/achievements/achievement_reached.png) no-repeat center;
        background-size: 100%;
    }

#achievements-list {
    text-align: center;
    height: 450px;
    overflow-y: scroll;
}

    #achievements-list > h4:first-child {
        margin-top: 0;
    }

    #achievements-list h4 {
        margin-bottom: 10px;
    }

.mobilePhone #achievements-list {
    height: calc(100vh - 125px);
}

body.loading #progress-bar {
    visibility: visible !important;
    position: absolute;
    box-sizing: border-box;
    width: 240px;
    left: 50%;
    top: 50%;
    margin-left: -120px;
    margin-top: 185px;
    background: rgba(25,25,25,0.5);
    z-index: 10000;
    overflow: hidden;
    padding: 4px;
    border-radius: 0px;
}

body.loading #progress {
    visibility: visible !important;
    box-sizing: border-box;
    border-radius: 0px;
    width: 0%;
    background: rgba(255,255,255,0.9);
    padding: 12px 0;
    transition: width .3s ease-in;
}

#new-highscore-dialog label {
    margin-top: 10px;
}

.latest-hiscore {
    background: powderblue;
}

.hiscore-1, .hiscore-2, .hiscore-3 {
    font-weight: bold;
}

    .hiscore-1 td:first-child, .hiscore-2 td:first-child, .hiscore-3 td:first-child {
        text-indent: -10000px;
        background-position: center;
        background-repeat: no-repeat;
    }

    .hiscore-1 td:first-child {
        background-image: url(../images/others/hiscores-1.png);
    }

    .hiscore-2 td:first-child {
        background-image: url(../images/others/hiscores-2.png);
    }

    .hiscore-3 td:first-child {
        background-image: url(../images/others/hiscores-3.png);
    }

#hiscore-table-body tr td:first-child {
    font-weight: bold;
}

#hiscore-table-body tr td:nth-child(2) {
    min-width: 100px;
}

#hiscores-dialog tr td:nth-child(1), #hiscores-dialog tr td:nth-child(4), #hiscores-dialog tr td:nth-child(5), #hiscores-dialog tr th:nth-child(1), #hiscores-dialog tr th:nth-child(4), #hiscores-dialog tr th:nth-child(5) {
    text-align: center;
}

#highscore-dialog-message {
    text-align: center;
    line-height: 1.6em;
    padding-bottom: 110px;
    background: url(../images/others/hiscores_icon.png) no-repeat center bottom;
    margin-bottom: 20px;
}

    #highscore-dialog-message b {
        display: block;
    }

.progress-bar {
    padding: 0px;
    margin-top: 12px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background: #7e7e7e;
}

    .progress-bar #progress {
        padding: 8px 0px;
        background: white;
        width: 0%;
        box-sizing: border-box;
    }

.chrome .cardFront, .chrome .cardBack {
    backface-visibility: hidden;
}

.chrome #playArea {
    perspective: 8000px;
}

.chrome .card {
    transform-style: preserve-3d;
}

.desktop-browser .ui-popup-container {
    max-height: 100%;
}

.desktop-browser .ui-popup {
    height: 100%;
}

.desktop-browser .ui-content {
    box-sizing: border-box;
}

.calendar {
    font-family: Helvetica,Arial,sans-serif;
    font-size: 1.1em;
    color: #333;
    display: inline-block;
    position: relative;
}

    .calendar * {
        padding: 0;
        margin: 0;
    }

.calendar__wrapper {
    display: flex;
    justify-content: center;
}

.calendar__body {
    border-collapse: collapse;
}

.calendar__header {
    position: relative;
    margin: 0 0 15px 0;
    line-height: 30px;
    border: 1px solid #ddd;
    background: #fff;
}

.calendar__title {
    text-align: center;
    font-size: 1em;
    color: #333;
}

.calendar__nav {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: white;
    text-decoration: none;
    text-align: center;
    line-height: 30px;
    position: absolute;
    top: 0;
    color: #333;
    font-weight: bold;
    z-index: 100;
    border: none;
    cursor: pointer;
    outline: none;
}

    .calendar__nav:hover {
        background: #ccc;
    }

.calendar__nav--left {
    left: 0;
    border-right: 1px solid #ddd;
}

.calendar__nav--right {
    right: 0;
    border-left: 1px solid #ddd;
}

.calendar .calendar__body .calendar__day {
    text-align: right;
    text-decoration: none;
    color: #333;
    display: inline-block;
    padding: 5px 10px 5px 5px;
    width: 30px;
    border: 1px solid #fff;
    background: #eee;
    user-select: none;
    font-weight: normal;
}

.calendar .calendar__body .calendar__day--today {
    font-weight: bold;
    background: #ddd;
}

.calendar .calendar__body .calendar__day:hover {
    background: #ccc;
    color: #333;
}

.calendar .calendar__body .calendar__day--disabled, .calendar .calendar__body .calendar__day--disabled:hover, .calendar .calendar__body .calendar__day.disabled, .calendar .calendar__body .calendar__day.disabled:hover {
    color: #aaa;
    background: white;
    pointer-events: none;
}

.calendar__body .calendar__day-of-week {
    text-align: right;
    font-weight: bold;
    display: inline-block;
    padding: 5px 10px 5px 5px;
    width: 30px;
    border: 1px solid transparent;
    padding-bottom: 5px;
}

.calendar__body .calendar__day.won {
    background: #a2e100;
    text-shadow: none !important;
}

.calendar__body .calendar__day.lose {
    background: #e12b1e;
    color: #fff;
    text-shadow: none;
}

.freecell-of-the-day {
    background-size: 70px;
    float: right;
    padding: 0 0 0 20px;
    width: 220px;
}

.freecell-of-day-winnable {
    display: block;
    width: 100%;
    margin-top: 15px;
    text-align: center;
    font-size: 11px;
}

.freecell__state-icon {
    background-image: url(../images/others/game_day_not_played.png);
    background-repeat: no-repeat;
    background-position: center 0;
    height: 80px;
}

    .freecell__state-icon.state-won {
        background-image: url(../images/others/game_day_won.png);
    }

    .freecell__state-icon.state-not-yet-won {
        background-image: url(../images/others/game_day_lost.png);
    }

.freecell-of-the-day p, .freecell-of-the-day h4 {
    margin: 0;
    line-height: 1.6em;
    padding: 4px 10px;
    margin: 3px;
    text-align: center;
    text-shadow: none;
}

p.freecell__total-played, p.freecell__total-won, p.freecell__current-streak {
    margin-left: 50px;
    text-align: left;
    text-shadow: none;
}

p.freecell__total-won, p.freecell__current-streak {
    background: #a2e100;
    color: #333;
}

@media (max-width:640px) {
    .freecell-of-the-day {
        width: 100%;
        box-sizing: border-box;
    }

    #game-calendar-dialog .ui-content {
        text-align: center;
    }
}
