@font-face {
    font-family: Slackey;
    src: url(../eot/slackey-regular-2.eot);
    src: url(../woff/slackey-regular-2.woff) format('woff'), url(../ttf/slackey-regular-2.ttf) format('truetype'), url(../svg/slackey-regular-2.svg#svgFontName) format('svg')
}

#draper-left {
    float: left;
    width: 160px
}

#draper-right {
    float: left;
    width: 160px
}

.dev-ad,
.draper-frame {
    width: 100%;
    height: 600px;
    overflow: hidden
}

#draper-video {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    right: 0;
    opacity: .95;
    z-index: 5000000;
    display: none
}

#draper-video span {
    display: block;
    background: #000;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 20px;
    margin-top: 40%
}

#board-wrapper-and-ads {
    width: 100%
}

#promo-mini {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    padding-right: 8px;
    margin-bottom: 12px;
    width: 120%;
    margin-left: -10%
}

#promo-mini a {
    display: inline-block;
    padding: 4px
}

#game-link-wrapper {
    z-index: 850000;
    color: #fff;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    top: -900px;
    background: #006400;
    -webkit-transition-property: none;
    -o-transition-property: none;
    -moz-transition-property: none;
    transition-property: none;
    -webkit-transition-duration: .2s;
    -moz-transition-duration: .2s;
    -o-transition-duration: .2s;
    transition-duration: .2s;
    padding-bottom: 70px;
    -webkit-box-shadow: #000 0 0 14px;
    -moz-box-shadow: #000 0 0 14px;
    box-shadow: #000 0 0 14px;
    opacity: .97
}

#game-link-wrapper.has-transitions {
    -webkit-transition-property: top, left;
    -o-transition-property: top, left;
    -moz-transition-property: top, left;
    transition-property: top, left
}

.menu-open #game-link-wrapper {
    left: 0;
    top: 0
}

#game-link-wrapper.customize-open {
    top: 50px
}

.use-custom-links #promo-mini .default-game-link {
    display: none
}

#customize-menu {
    font-size: 12px;
    position: absolute;
    right: 5px;
    bottom: 5px;
    color: #fff
}

#customize-menu:visited {
    color: #fff
}

#close-menu {
    position: absolute;
    bottom: 20px;
    left: 50%;
    font-weight: 700;
    width: 240px;
    margin-left: -120px
}

#promo-links a input[type=checkbox] {
    display: inline-block;
    margin-left: 10px;
    position: relative;
    bottom: 2px
}

#close-menu:active:hover {
    -webkit-touch-callout: none;
    outline: 0;
    border-bottom: solid 1px #555 !important;
    position: absolute !important;
    top: auto !important;
    background: #ddd
}

#suggest-rematch {
    display: none
}

#promo-links {
    max-width: 860px;
    margin: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box
}

#promo-links div {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
    box-sizing: border-box;
    width: 33%;
    max-width: 290px;
    float: left
}

#promo-links div a {
    color: #fff;
    font-size: 18px;
    text-align: center;
    display: block;
    padding: 8px 6px;
    width: 70%;
    margin: auto
}

#promo-links div a:hover {
    background: #005400;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px
}

#promo-links div label {
    margin: 20px 50px 0 50px;
    display: block;
    font-size: 20px;
    font-weight: 700;
    padding: 5px 0;
    border-bottom: solid 1px #fff;
    border-top: solid 1px #fff;
    text-align: center
}

#promo-links div#mobile-options {
    display: none
}

#board-and-header {
    margin: 0 auto;
}

#board-and-header,
#textcontent {
    width: 716px
}

* {
    padding: 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
    -ms-touch-action: manipulation;
    touch-action: manipulation
}

html {
    min-height: 100%
}

body {
    background-color: #afcffe;
    background-image: -webkit-linear-gradient(#afcffe 400px, #fffaf0 1300px);
    background-image: -moz-linear-gradient(#afcffe 400px, #fffaf0 1300px);
    background-image: -o-linear-gradient(#afcffe 400px, #fffaf0 1300px);
    background-image: linear-gradient(#afcffe 400px, #fffaf0 1300px);
    font-family: Arial, sans-serif;
    color: #333;
    padding-bottom: 5px;
    -webkit-transition: background-color .15s ease-in;
    -o-transition: background-color .15s ease-in;
    -moz-transition: background-color .15s ease-in;
    transition: background-color .15s ease-in
}

.no-pull-refresh {
    -ms-scroll-chaining: none;
    overscroll-behavior: contain
}

#gdpr-notice {
    display: none;
    position: absolute;
    top: 100px;
    left: 10%;
    width: 80%;
    background: #fffaf0;
    color: #333;
    z-index: 111180000;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    border: solid 1px #333;
    -webkit-box-shadow: #040 0 0 3px;
    -moz-box-shadow: #040 0 0 3px;
    box-shadow: #040 0 0 3px
}

#gdpr-notice a {
    color: #ca0000 !important
}

#gdpr-notice a:hover {
    color: #00f !important
}

#gdpr-notice p {
    font-size: 14px;
    padding: 5px 15px
}

.gdpr-options {
    margin: 10px auto;
    text-align: center
}

.gdpr-options label {
    position: relative;
    height: 32px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: inline-block;
    padding: 0;
    padding-right: 40px;
    line-height: 32px
}

#gdpr-notice .gdpr-options input+span {
    top: 0;
    left: auto;
    right: 0;
    display: inline-block;
    margin-left: 0;
    margin-bottom: 0
}

.gdpr-buttons {
    text-align: center;
    padding: 10px
}

.gdpr-buttons button {
    width: 150px;
    height: 40px;
    display: inline-block;
    margin: 4px;
    font-size: 16px;
    font-weight: 700 !important
}

@media (max-width:730px) {
    #game-link-wrapper {
        min-height: 100%
    }
    #gdpr-notice {
        top: auto;
        bottom: 0;
        position: fixed;
        width: 100%;
        left: 0;
        border-style: none;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
        -webkit-box-shadow: #000 0 0 10px;
        -moz-box-shadow: #000 0 0 10px;
        box-shadow: #000 0 0 10px
    }
    #gdpr-notice p {
        font-size: 14px
    }
}

@media (max-width:730px) and (max-height:530px) {
    #gdpr-notice {
        top: 50px;
        bottom: 0;
        overflow: scroll
    }
    #require-paragraph {
        display: none
    }
}

#board {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
    -webkit-transition: background-color 150ms ease-in, opacity .5s linear;
    -o-transition: background-color 150ms ease-in, opacity .5s linear;
    -moz-transition: background-color 150ms ease-in, opacity .5s linear;
    transition: background-color 150ms ease-in, opacity .5s linear
}

#matrix {
    display: none;
    position: relative;
    width: 100%;
    margin-bottom: -621px;
    top: -631px;
    height: 616px;
    padding: 10px;
    color: #7cfc00;
    font-family: 'Courier New', monospace;
    background: #000;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    left: 0;
    border: dashed 3px #7cfc00;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    z-index: 0;
    opacity: 0;
    -webkit-transition: opacity .2s;
    -o-transition: opacity .2s;
    -moz-transition: opacity .2s;
    transition: opacity .2s
}

#app-prompt {
    background: #fffaf0;
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 50000000;
    color: #333;
    padding: 0 30px 10px 30px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-box-shadow: #333 -4px 0 10px;
    -moz-box-shadow: #333 -4px 0 10px;
    box-shadow: #333 -4px 0 10px
}

#app-prompt p {
    font-size: 16px;
    max-width: 600px;
    margin: auto
}

#app-prompt div {
    text-align: center
}

#app-prompt a {
    display: inline-block;
    border: solid 2px #aaa;
    background: #fff;
    color: #888 !important;
    font-weight: 700;
    padding: 6px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    width: 150px;
    margin: 6px auto;
    text-align: center
}

#app-prompt-phone {
    display: none
}

#board #app-prompt #get-app {
    color: green !important
}

#app-prompt #app-icon {
    display: block;
    width: 50px;
    height: 50px;
    margin: 5px auto;
    background-image: url(../site-icon-rounded.html);
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -o-background-size: contain;
    background-size: contain;
    border-style: none;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0
}

.matrix #matrix {
    opacity: 1;
    display: block
}

body.matrix:after {
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: -webkit-repeating-linear-gradient(bottom, #000, transparent 2px);
    background-image: -moz-repeating-linear-gradient(bottom, #000, transparent 2px);
    background-image: -o-repeating-linear-gradient(bottom, #000, transparent 2px);
    background-image: repeating-linear-gradient(0deg, #000, transparent 2px);
    opacity: .6;
    pointer-events: none;
    top: 0;
    left: 0;
    z-index: 234523452345
}

.matrix *,
.matrix a:link,
.matrix a:visited {
    color: #7cfc00 !important
}

.matrix .don-draper {
    opacity: 0
}

.matrix #board {
    opacity: 0
}

body {
    -webkit-transition: background-color 150ms ease-in;
    -o-transition: background-color 150ms ease-in;
    -moz-transition: background-color 150ms ease-in;
    transition: background-color 150ms ease-in
}

body.matrix {
    background: #000
}

#matrix textarea {
    display: block;
    width: 96%;
    margin: auto;
    background: #000;
    color: #7cfc00;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    height: 90%;
    border-style: none;
    outline: 0
}

#matrix ::-webkit-resizer,
#matrix ::-webkit-scrollbar,
#matrix ::-webkit-scrollbar-corner {
    background: #000;
    border-style: none
}

#matrix input {
    background: #000;
    outline: 0;
    font-family: 'Courier New', monospace;
    border-style: none;
    font-size: 18px
}

.matrix a:link,
.matrix h1 {
    color: #7cfc00
}

ol,
p,
ul {
    font-size: 18px;
    line-height: 23px
}

ol,
ul {
    padding: 10px 40px
}

li {
    margin-bottom: 5px
}

p {
    padding: 5px 10px
}

a:link,
a:visited {
    color: #ca0000;
    text-decoration: none;
    font-weight: 700;
    border-style: none
}

a:hover {
    color: #000
}

img {
    border-style: none
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-align: center;
    color: maroon
}

#board div h3 {
    color: maroon
}

h1 {
    margin-top: 10px;
    color: #fff;
    font-size: 50px;
    text-shadow: #444 1px 1px 2px;
    font-family: Slackey, "Lucida Grande", "Lucida Sans Unicode", Tahoma, Geneva, Arial, Verdana, sans-serif
}

h2 {
    font-size: 28px;
    margin: 0 0 10px 0
}

h3 {
    font-size: 22px;
    margin: 25px auto 10px auto
}

.game-thumbnail {
    display: inline-block;
    margin: 10px;
    height: 191px;
    border: solid 2px #fff;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px
}

#wrapper {
    width: 880px;
    margin: 0 auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box
}

#board {
    background-color: #00a000;
    border: solid 3px #fff;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px;
    color: #fff;
    padding: 5px;
    -webkit-box-shadow: #333 0 0 7px;
    -moz-box-shadow: #333 0 0 7px;
    box-shadow: #333 0 0 7px;
    margin-bottom: 15px;
    z-index: 1
}

#board h3 {
    color: #fff
}

#board a,
#board a:visited {
    color: #ff0
}

#board a:active,
#board a:hover {
    color: orange !important
}

#play-page {
    position: relative;
    height: 600px;
    margin: auto;
    width: 700px
}

.options-open .options-page {
    display: block !important
}

.options-page {
    position: absolute;
    z-index: 99999999;
    background: #fffaf0;
    display: none;
    width: 560px;
    margin-left: -280px;
    top: 50%;
    left: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-transition: background-color .15s ease-in;
    -o-transition: background-color .15s ease-in;
    -moz-transition: background-color .15s ease-in;
    transition: background-color .15s ease-in
}

.options-page .option-mobile {
    display: none !important
}

.options-page h3 {
    margin-top: 0 !important
}

.options-page h4 {
    margin-top: 10px
}

#site-options {
    border-left: solid 1px #006400;
    position: relative;
    left: -1px
}

#game-options {
    border-right: solid 1px #006400
}

.options-pane {
    width: 50%;
    float: left;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box
}

.options-page small {
    display: block;
    text-align: center;
    border-top: solid 1px #006400;
    font-size: 12px;
    width: 90%;
    margin: 8px auto;
    padding-top: 7px;
    clear: both
}

.options-page button {
    width: 100px;
    height: 30px;
    display: block;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 15px
}

.options-page h2 {
    color: maroon;
    font-size: 24px;
    margin-top: 14px;
    -webkit-transition: background-color .15s ease-in;
    -o-transition: background-color .15s ease-in;
    -moz-transition: background-color .15s ease-in;
    transition: background-color .15s ease-in
}

.options-page img {
    width: auto;
    height: 84%;
    margin-top: 3%
}

.option-row {
    position: relative;
    height: 44px;
    width: 90%;
    text-align: left
}

.option-row .label,
.option-row label {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    height: 44px;
    line-height: 44px;
    text-align: left;
    display: inline-block;
    margin: 0;
    padding-left: 13px
}

.option-row label a,
.option-row label a:visited {
    color: #ea0000 !important
}

.option-row label a:active,
.option-row label a:hover {
    color: #000 !important
}

.option-row input {
    opacity: 0
}

.option-row p {
    font-size: 14px
}

#game-options .option-row {
    margin-left: 10%
}

.option-row.radiobuttons {
    height: auto
}

.option-row.radiobuttons label {
    display: block
}

.option-row.radiobuttons input+span {
    margin-left: -8px
}

.option-row.radiobuttons input+span:before {
    top: 5px;
    left: -5px
}

.option-row.radiobuttons input+span:before,
.option-row.range input+span:before {
    content: "";
    -webkit-transition: border 150ms ease-in;
    -o-transition: border 150ms ease-in;
    -moz-transition: border 150ms ease-in;
    transition: border 150ms ease-in;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    width: 20px;
    height: 20px;
    position: relative;
    background: #fff;
    border: solid 1px #bbb;
    display: inline-block;
    cursor: pointer
}

.option-row.radiobuttons input:checked+span:before,
.option-row.range input:checked+span:before {
    border: solid 6px #67bc67
}

.option-row.range {
    padding: 0 !important
}

.option-row.range label {
    width: 20%;
    position: relative;
    font-size: 10px;
    margin: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    float: left;
    padding: 0;
    text-align: center;
    line-height: 10px
}

.option-row.range label span {
    width: 100%;
    display: inline-block;
    text-align: center;
    left: 0 !important;
    line-height: 32px
}

.option-row.range label span:before {
    position: absolute;
    left: 50%;
    margin-left: -10px;
    top: -5px
}

.option-row.check input+span {
    position: relative;
    left: -10px
}

#gdpr-edit input+span,
#gdpr-notice input+span,
.option-row.checkbox input+span {
    border: solid 1px #bbb;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    border-radius: 16px;
    background: #fff;
    height: 32px;
    width: 54px !important;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
    left: 100%;
    margin-left: -61px;
    position: absolute;
    cursor: pointer;
    -webkit-transition: background-color 150ms ease-in;
    -o-transition: background-color 150ms ease-in;
    -moz-transition: background-color 150ms ease-in;
    transition: background-color 150ms ease-in;
    top: 6px
}

#gdpr-edit input+span:after,
#gdpr-notice input+span:after,
.option-row.checkbox input+span:after {
    content: "";
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border: solid 0 #aaa;
    -webkit-box-shadow: #aaa 0 0 7px;
    -moz-box-shadow: #aaa 0 0 7px;
    box-shadow: #aaa 0 0 7px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
    background: #fff;
    height: 30px !important;
    width: 30px !important;
    display: block;
    margin-left: 0 !important;
    -webkit-transition-property: margin-left;
    -o-transition-property: margin-left;
    -moz-transition-property: margin-left;
    transition-property: margin-left;
    -webkit-transition-duration: .2s;
    -moz-transition-duration: .2s;
    -o-transition-duration: .2s;
    transition-duration: .2s;
    -webkit-transition-timing-function: ease-in;
    -moz-transition-timing-function: ease-in;
    -o-transition-timing-function: ease-in;
    transition-timing-function: ease-in
}

#gdpr-edit input:checked+span,
#gdpr-notice input:checked+span,
.option-row.checkbox input:checked+span {
    background: #67bc67;
    border-color: #67bc67
}

#gdpr-edit input:checked+span:after,
#gdpr-notice input:checked+span:after,
.option-row.checkbox input:checked+span:after {
    margin-left: 22px !important
}

.option-row.colors input+span {
    display: block;
    width: 100%;
    height: 100%;
    -webkit-border-radius: 18px;
    -moz-border-radius: 18px;
    border-radius: 18px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    cursor: pointer
}

.option-row.colors label {
    display: block;
    height: 36px;
    width: 36px;
    position: absolute;
    right: 4px;
    top: 4px
}

.option-row.colors label:last-child {
    right: 44px
}

.option-row.colors input[value=red]+span {
    background-image: url(../redpiece.html);
    opacity: .5
}

.option-row.colors input[value=white]+span {
    background-image: url(../whitepiece.html);
    opacity: .5
}

.option-row.colors input[value=black]+span {
    background-image: url(../blackpiece.html);
    opacity: .5
}

.option-row.colors input:checked+span {
    opacity: 1
}

.option-row label#speed-value {
    position: absolute;
    text-align: right;
    right: 0;
    padding-right: 10px
}

#gdpr-notice #personalized-ads {
    opacity: 0
}

.dialog {
    color: #333;
    background-color: #edf35a;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: #222 0 0 5px;
    -moz-box-shadow: #222 0 0 5px;
    box-shadow: #222 0 0 5px
}

#board .dialog h3 {
    color: maroon;
    text-shadow: none
}

#beta-screen {
    display: none;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-border-radius: 26px;
    -moz-border-radius: 26px;
    border-radius: 26px;
    width: 100%;
    z-index: 500000000;
    background: green;
    height: 100%;
    padding-top: 30%
}

.beta #beta-screen {
    display: block
}

#beta-screen p {
    max-width: 500px;
    margin: auto
}

#beta-screen button,
#beta-screen input {
    display: block;
    margin: 5px auto
}

.error {
    color: red;
    font-weight: 700
}

#more-games-link {
    color: #ff0 !important;
    display: inline-block;
    font-family: Verdana, Arial;
    text-shadow: -1px -1px 0 red, 1px -1px 0 red, -1px 1px 0 red, 1px 1px 0 red
}

#more-games-link:active,
#more-games-link:hover {
    color: #000 !important;
    text-shadow: none
}

.newest-game {
    color: #ff0 !important;
    display: inline-block;
    font-family: Verdana, Arial;
    letter-spacing: 1.1px;
    text-shadow: -1px -1px 0 red, 1px -1px 0 red, -1px 1px 0 red, 1px 1px 0 red
}

#space-link {
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    border-radius: 7px;
    color: #0bedc8 !important
}

#space-link:hover {
    text-shadow: #fff 0 0 15px
}

.newest-game:hover {
    color: #000 !important;
    text-shadow: none
}

#menucontainer {
    margin-bottom: 3px;
    margin-top: -10px
}

#menu {
    padding: 2px;
    position: relative;
    margin: auto;
    text-align: center
}

#menu li {
    display: inline;
    list-style: none;
    font-size: 18px
}

.don-draper {
    width: 160px;
    height: 620px;
    margin-top: 117px;
    float: left;
    -webkit-transition: opacity 1s linear;
    -o-transition: opacity 1s linear;
    -moz-transition: opacity 1s linear;
    transition: opacity 1s linear
}

#draper-inline-video {
    display: none;
    position: absolute;
    background: #000;
    left: 0;
    width: 100%;
    top: 0;
    height: 100%;
    z-index: 99999999999
}

.don-draper label {
    display: block;
    text-align: center;
    height: 20px;
    padding: 0;
    width: 100%;
    font-size: 12px
}

.don-draper label:only-child {
    display: none
}

#draper-right {
    margin-left: 75px
}

#draper-video {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    opacity: .95;
    z-index: 5000000;
    display: none
}

#draper-left {
    margin-right: 75px;
    display: none
}

#about {
    margin-top: 20px
}

#privacy,
#version-check,
#version-info {
    text-align: center;
    margin: auto;
    font-size: 12px
}

#version-check {
    border: solid 1px #000
}

.avatar {
    position: absolute;
    height: 70px
}

.theme-hidden {
    display: none
}

.avatar small {
    position: absolute;
    display: block;
    text-align: center;
    margin-top: 5px;
    font-size: 13px;
    min-width: 100%;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap
}

#bottom-player small,
#top-player small {
    width: 210%;
    left: -55%
}

#right-player small {
    right: 0
}

#left-player small,
#right-player small {
    max-width: 75px
}

.show-after-names {
    display: none !important
}

.avatar div {
    border: solid 0 #fff;
    cursor: pointer
}

.face-thumb {
    width: 20px;
    height: 20px;
    position: relative;
    background-repeat: no-repeat;
    display: inline-block
}

.face-small {
    width: 50px;
    height: 50px;
    position: relative;
    background-repeat: no-repeat
}

.face-medium {
    width: 80px;
    height: 80px
}

.face-large {
    width: 120px;
    height: 120px
}

.face-large,
.face-medium,
.face-small,
.face-thumb {
    background-position: center !important;
    background-repeat: no-repeat
}

.bubble {
    position: absolute;
    width: 130px;
    height: 97px;
    display: none;
    z-index: 5000;
    background-repeat: no-repeat;
    background-position: center;
    -webkit-background-size: 114px 83px !important;
    -moz-background-size: 114px 83px !important;
    -o-background-size: 114px 83px !important;
    background-size: 114px 83px !important;
    pointer-events: none
}

.bubble p {
    color: #000;
    text-align: center;
    font-size: 16px;
    margin-top: 12px;
    margin-left: 18px;
    padding: 0 !important;
    width: 85px;
    height: 45px;
    line-height: 45px;
    display: block;
    font-size: 11px
}

.bubble p span {
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
    font-size: 11px
}

.new-game::after {
    content: "NEW";
    color: red;
    text-shadow: #000 1px 1px 0;
    font-size: 11px;
    font-weight: 700;
    position: relative;
    top: -8px;
    left: 4px
}

#top-player-bubble p {
    margin-top: 29px;
    margin-left: 20px
}

#right-player-bubble p {
    margin-top: 14px;
    margin-left: 20px
}

#left-player-bubble {
    background-image: url(../speech-left.html);
    top: -55px;
    left: 40px
}

#right-player-bubble {
    background-image: url(../speech-right.html);
    top: -55px;
    right: 44px
}

#top-player-bubble {
    background-image: url(../speech-top.html);
    top: 30px;
    right: 40px
}

#bottom-player-bubble {
    background-image: url(../speech-left.html);
    bottom: 33px;
    left: 40px
}

.bubble-emoji {
    font-size: 30px !important
}

#left-player {
    top: 50%;
    left: 2px;
    display: none
}

#right-player {
    top: 50%;
    right: 2px;
    display: none
}

#left-player,
#right-player {
    margin-top: -50px
}

#top-player {
    top: 2px;
    left: 50%
}

#bottom-player {
    bottom: 2px;
    left: 50%
}

#bottom-player,
#top-player {
    margin-left: -25px
}

#player-count {
    position: absolute;
    width: 166px;
    left: 362px;
    top: 310px
}

#release-notes ul li ul {
    padding-left: 30px;
    font-size: 12px
}

#play-page {
    text-align: center
}

#result-box {
    display: none;
    text-align: center;
    min-width: 310px;
    max-width: 96%;
    position: relative
}

#win-reason {
    font-size: 14px;
    margin-top: -20px
}

.show-results #result-box {
    display: inline-block !important;
    z-index: 50000
}

#result-box h3 {
    padding: 14px;
    font-size: 20px;
    margin: 0
}

@media (min-width:731px) {
    #result-box h3 {
        white-space: nowrap
    }
}

#result-box p img {
    float: right;
    margin-left: 5px
}

.button-panel {
    clear: both;
    text-align: center;
    padding: 10px;
    height: 30px
}

#open-player-picker {
    position: absolute;
    z-index: 5000;
    bottom: 90px;
    width: 200px;
    font-size: 12px;
    left: 50%;
    text-align: center;
    margin-left: -100px;
    font-weight: 400
}

.option-control {
    width: 23%;
    display: inline-block;
    height: 32px
}

#speed-text {
    width: 100% !important
}

#messageBox {
    position: absolute;
    width: 100%;
    top: 365px;
    left: 0;
    padding: 0
}

#messageBox p {
    width: 50%;
    height: 35px;
    font-size: 12px;
    font-family: CardSuits, Arial, sans-serif;
    line-height: 16px;
    margin: 0 auto;
    text-align: left;
    padding: 3px 6px;
    color: #333;
    background-color: #edf35a;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    text-shadow: none
}

#authorpic {
    float: left;
    padding: 10px 10px 0 10px
}

#authorpic img {
    border: solid 1px #fff
}

.winner-img {
    display: none
}

#menu li a.selected {
    text-decoration: underline
}

.playlink {
    display: block;
    text-align: center
}

button {
    color: #333 !important;
    font-family: Arial, sans-serif;
    font-weight: 400 !important;
    font-size: 14px;
    padding: 3px 9px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    border: solid 1px #555 !important;
    background: #ddd;
    background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd));
    background: -webkit-linear-gradient(#fff, #ddd);
    background: -moz-linear-gradient(#fff, #ddd);
    background: -o-linear-gradient(#fff, #ddd);
    background: linear-gradient(#fff, #ddd);
    -webkit-touch-callout: none;
    outline: 0
}

button.big {
    font-size: 20px;
    font-weight: 700;
    padding: 7px 12px;
    width: 170px
}

button.small {
    font-size: 11px;
    padding: 3px 5px
}

button:hover {
    -webkit-touch-callout: none;
    outline: 0;
    cursor: pointer;
    color: #222 !important;
    background: -webkit-gradient(linear, left top, left bottom, from(#ddd), to(#fff));
    background: -webkit-linear-gradient(#ddd, #fff);
    background: -moz-linear-gradient(#ddd, #fff);
    background: -o-linear-gradient(#ddd, #fff);
    background: linear-gradient(#ddd, #fff)
}

button:disabled {
    background: #ddd;
    opacity: .5;
    cursor: auto
}

button:active:hover {
    -webkit-touch-callout: none;
    outline: 0;
    position: relative;
    top: 1px;
    background: #ddd
}

.result-table {
    padding: 1px;
    display: inline-block;
    background-color: #fff;
    margin: 5px 10px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    border: solid 2px #333;
    font-family: Arial, sans-serif
}

.result-table table {
    border-collapse: collapse;
    border: solid 1px #000;
    width: 100%;
    min-width: 284px
}

.result-table .totals {
    font-weight: 700
}

.result-table table td,
.result-table table th {
    text-align: right;
    border: solid 1px #000;
    padding: 2px;
    white-space: nowrap
}

.result-table table th {
    font-weight: 700;
    text-align: center
}

.result-table .thick-bottom {
    border-bottom: solid 2px #000
}

.result-table .thick-top {
    border-top: solid 2px #000
}

.trophy {
    display: inline-block;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url(../trophy.html);
    width: 53px;
    height: 80px
}

.trophy.mini {
    width: 40px;
    height: 40px
}

.trophy.medium {
    width: 80px;
    height: 120px
}

.trophy.big {
    width: 240px;
    height: 360px
}

#theme-opt-in,
#theme-opt-out {
    text-align: center;
    font-family: Arial, sans-serif;
    display: none;
    padding-bottom: 10px
}

#messageBox p a,
#messageBox p a:visited {
    color: #00f
}

.underboard-message {
    text-align: center;
    font-family: Arial, sans-serif;
    margin-bottom: 30px;
    margin-top: 5px;
    font-size: 14px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px
}

.underboard-message img {
    margin: 4px 4px;
    -webkit-box-shadow: #006400 0 0 2px;
    -moz-box-shadow: #006400 0 0 2px;
    box-shadow: #006400 0 0 2px
}

.underboard-message img:hover {
    -webkit-box-shadow: #006400 0 0 6px;
    -moz-box-shadow: #006400 0 0 6px;
    box-shadow: #006400 0 0 6px
}

.adslot_1 {
    display: none
}

.fake-ad {
    width: 100%;
    height: 100%;
    background: #fff
}

#debug-console {
    font-family: 'Lucida Console', monospace;
    font-size: 16px;
    background: #000;
    color: #fff;
    width: 100%;
    overflow-y: scroll;
    padding: 5px;
    height: 300px
}

@font-face {
    font-family: CardSuits;
    font-style: normal;
    font-weight: 700;
    src: url(../eot/cardsuits-2.eot) format('embedded-opentype'), url(../woff/cardsuits-2.woff) format('woff'), url(../ttf/cardsuits-2.ttf) format('truetype')
}

@font-face {
    font-family: CardSuits;
    font-style: normal;
    font-weight: 400;
    src: url(../eot/cardsuits-2.eot) format('embedded-opentype'), url(../woff/cardsuits-2.woff) format('woff'), url(../ttf/cardsuits-2.ttf) format('truetype')
}

#mobile-menu,
#mobile-options,
.show-mobile {
    display: none
}

#title {
    position: relative;
    padding: 0
}

#title h1 {
    height: 71px;
    margin-top: 0;
    white-space: nowrap
}

.dark-theme body {
    background: #252120
}

.dark-theme body a {
    color: #f9b147
}

.dark-theme #menu a:hover,
.dark-theme body a:hover {
    color: #fff
}

.dark-theme #facebook-promo,
.dark-theme #textcontent p,
.dark-theme #theme-opt-in,
.dark-theme #theme-opt-out,
.dark-theme .don-draper,
.dark-theme body li {
    color: #dadada
}

.dark-theme #textcontent h2,
.dark-theme #textcontent h3,
.dark-theme #textcontent h4,
.dark-theme #title h1 {
    color: #fffaf0;
    text-shadow: none
}

.dark-theme #board {
    background-color: #040 !important;
    border: solid 3px #080 !important;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none
}

#oldbrowser {
    background-color: #006400;
    border: 3px solid #fff;
    position: absolute;
    top: 25%;
    left: 5%;
    z-index: 1000000;
    width: 90%;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    text-align: center;
    display: none
}

#oldbrowser .lefticon {
    display: inline-block;
    padding-left: 15%;
    padding-right: 5%;
    font-size: 12px
}

#oldbrowser .righticon {
    display: inline-block;
    padding-left: 5%;
    padding-right: 15%;
    font-size: 12px
}

#oldbrowser .caption {
    display: block
}

#hidebutton {
    display: inline-block;
    margin-left: 80%;
    color: #fff !important;
    padding-bottom: 5px;
    cursor: pointer
}

.paused {
    -webkit-filter: blur(15px);
    filter: blur(15px);
    pointer-events: none
}

.pause-dialog {
    text-align: center;
    position: absolute;
    top: 250px;
    z-index: 50000;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: #000 0 0 5px;
    -moz-box-shadow: #000 0 0 5px;
    box-shadow: #000 0 0 5px;
    display: none;
    left: 50%;
    width: 310px;
    margin-left: -155px;
    height: 100px;
    margin-top: -100px
}

.pause-dialog h3 {
    margin: 15px auto
}

.pause-dialog button {
    width: 180px
}

.confetti-container {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000000
}

.confetti #menu,
.confetti #promo-mini {
    z-index: 10000001 !important;
    position: relative
}

.confetti #mobile-menu,
.confetti #result-box,
.confetti #results-div,
.confetti #win-screen {
    z-index: 10000001 !important
}

#google-play {
    width: 120px
}

.dealer .face-small:after {
    background: url(../dealerhat.html) !important;
    background-repeat: no-repeat;
    width: 100% !important;
    height: 66% !important;
    content: "";
    z-index: 50000;
    top: -36% !important;
    left: 0 !important;
    position: absolute
}

.dealer .face-small.hair-3:after {
    top: -33% !important
}

.dealer .face-small.hair-10:after,
.dealer .face-small.hair-4:after {
    top: -40% !important
}

.dealer .face-small.hair-11:after {
    top: -34% !important
}

.dealer .face-small.hair-5:after {
    top: -25% !important
}

@media (min-width:1116px) and (max-width:1205px) {
    #wrapper {
        width: 1100px
    }
    #draper-right {
        width: 300px
    }
}

@media (min-width:960px) and (max-width:1115px) {
    #wrapper {
        width: 960px
    }
    #draper-right {
        width: 160px
    }
}

@media (min-width:1206px) {
    #wrapper {
        width: 1190px
    }
    #draper-left {
        display: block
    }
    #textcontent {
        margin-left: 235px
    }
    .adslot_1 {
        display: block
    }
}

@media (min-width:1347px) {
    #wrapper {
        width: 1330px
    }
    #draper-right {
        width: 300px
    }
}

@media (max-width:1044px) {
    #wrapper {
        width: 961px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box
    }
    #board {
        width: 700px
    }
    #board-and-header {
        width: 716px;
        margin-left: 5px
    }
}

@media (max-width:975px) {
    #wrapper {
        width: 716px
    }
    .dev-ad,
    .draper-frame {
        height: 110px
    }
    #draper-right {
        width: 716px;
        margin: 0 auto;
        height: 110px;
        float: none
    }
    #textcontent {
        margin-top: 40px
    }
    .underboard-message {
        height: 130px;
        margin: 0 0;
        font-size: 16px;
        display: table-cell;
        vertical-align: middle
    }
    .theme-hidden {
        display: none
    }
    #board {
        margin-bottom: 0
    }
    #board-and-header {
        margin: 0 auto;
        width: 100%;
        float: none
    }
    .don-draper {
        float: none
    }
}

#mobile-menu {
    z-index: 990000;
    width: 40px;
    cursor: pointer;
    border-style: none !important;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    background: 0 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    padding: 0;
    position: absolute;
    left: 2px;
    top: 10px !important
}

#mobile-menu:active {
    top: 10px;
    position: absolute !important
}

.menu-open #mobile-menu,
.menu-open #mobile-menu:active {
    position: fixed !important
}

.appmode .rules-open .menu-row-1,
.appmode .subview-open .menu-row-1,
.menu-open #mobile-menu .menu-row-1,
.options-open #mobile-menu .menu-row-1 {
    -webkit-transform: translateY(9px) rotate(45deg);
    -moz-transform: translateY(9px) rotate(45deg);
    -ms-transform: translateY(9px) rotate(45deg);
    -o-transform: translateY(9px) rotate(45deg);
    transform: translateY(9px) rotate(45deg)
}

.appmode .rules-open .menu-row-2,
.appmode .subview-open .menu-row-2,
.menu-open #mobile-menu .menu-row-2,
.options-open #mobile-menu .menu-row-2 {
    opacity: 0
}

.appmode .rules-open .menu-row-3,
.appmode .subview-open .menu-row-3,
.menu-open #mobile-menu .menu-row-3,
.options-open #mobile-menu .menu-row-3 {
    -webkit-transform: translateY(-9px) rotate(-45deg);
    -moz-transform: translateY(-9px) rotate(-45deg);
    -ms-transform: translateY(-9px) rotate(-45deg);
    -o-transform: translateY(-9px) rotate(-45deg);
    transform: translateY(-9px) rotate(-45deg)
}

#mobile-menu span {
    transition-property: transform, opacity, -webkit-transform;
    -webkit-transition-duration: 250ms;
    -moz-transition-duration: 250ms;
    -o-transition-duration: 250ms;
    transition-duration: 250ms;
    display: block;
    width: 80%;
    height: 4px;
    margin: 5px auto;
    background: #fff;
    -webkit-border-radius: 1px;
    -moz-border-radius: 1px;
    border-radius: 1px
}

@media (min-width:600px) and (max-device-height:450px) and (orientation:landscape) {
    .appmode #mobile-menu {
        display: none !important
    }
}

@media (max-width:730px),
(min-width:500px) and (max-height:450px) and (orientation:landscape) and (max-device-width:450px) {
    body {
        background: #fffaf0 !important;
        padding-top: 0 !important
    }
    #game-link-wrapper {
        top: 0;
        left: -100%;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
        opacity: 1
    }
    .menu-open #game-link-wrapper {
        left: 0
    }
    #promo-links {
        width: 100%;
        max-width: 100%
    }
    #promo-links div {
        width: 100%;
        max-width: 100%
    }
    #promo-links div a {
        font-size: 24px
    }
    #promo-links div label {
        font-size: 28px
    }
    #mobile-menu {
        display: block !important;
        z-index: 9999999999
    }
    #board-and-ads-wrapper,
    #header,
    #title {
        /*background: #00a000*/
    }
    #title h1 {
        height: 100%;
        font-weight: 400
    }
    #header {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }
    h1 {
        padding-top: 7px;
        font-size: 28px
    }
    .kingsinthecorners h1 {
        padding-top: 7px;
        font-size: 26px
    }
    .hide-mobile {
        display: none !important
    }
    #menucontainer{
        display: block!important;
    }
    #menucontainer ul li{
        font-size: 16px;
    }
    .show-mobile {
        display: block !important
    }
    #board {
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
        border-style: none;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
        padding: 0
    }
    #board,
    #play-page,
    #wrapper {
        width: 100%
    }
    #draper-right {
        display: none
    }
    #wrapper {
        overflow-y: hidden
    }
    #beta-screen {
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0
    }
    .underboard-message p {
        width: 100%
    }
    #mobile-options label {
        margin-top: 10px !important
    }
    #promo-links div#mobile-options {
        display: block
    }
    #textcontent {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        width: 100%;
        margin-top: 0;
        padding: 4px
    }
    .pause-dialog {
        margin-top: 150px
    }
    .pause-dialog button {
        width: 180px !important
    }
    #deal {
        left: 50% !important;
        top: 50% !important;
        margin-left: -85px
    }
    #site-options {
        border-left: none;
        margin-top: 30px
    }
    #game-options {
        border-right: none
    }
    #site-options h3 {
        margin-top: 25px !important
    }
    .options-page {
        position: absolute;
        width: 96%;
        margin: 0 !important;
        left: 2%;
        top: 3px;
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
        transform: none;
        background: #fffaf0
    }
    .options-page button {
        max-width: 140px
    }
    #game-options h3 {
        display: none
    }
    .options-page .option-desktop {
        display: none !important
    }
    .options-page .option-mobile {
        display: block !important
    }
    .option-row {
        border-top: solid 1px #bbb;
        width: 100%
    }
    #speed-option {
        border-top: none
    }
    #game-options .option-row {
        margin-left: 0
    }
    .option-row:last-child {
        border-bottom: solid 1px #bbb
    }
    .options-page small {
        border-top: none
    }
    .options-pane {
        width: 100%
    }
    .options-pane {
        float: none
    }
    .dark-theme body {
        background: #252120 !important
    }
    .dark-theme #board {
        border: none !important;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0
    }
    .dark-theme #promo-links {
        background-color: #040 !important;
        color: #f2f2de
    }
    .dark-theme #title {
        background-color: #040 !important
    }
    .dark-theme #title h1 {
        color: #f2f2de
    }
    #open-player-picker {
        font-size: 16px
    }
    .avatar {
        height: 65px
    }
    .avatar small {
        font-size: 12px
    }
    .avatar .face-small {
        height: 45px;
        width: 45px
    }
    #left-player,
    #right-player {
        top: 38%;
        margin-top: -22px
    }
    #bottom-player,
    #top-player {
        margin-left: -22px
    }
    #cookie-banner div {
        display: block
    }
    #app-prompt {
        padding: 0
    }
    #app-prompt-tablet {
        display: none
    }
    #app-prompt-phone {
        display: inline
    }
    #app-prompt a {
        display: block
    }
}

@media(max-width:630px) {
    #oldbrowser .lefticon {
        padding-left: 1%;
        padding-right: 1%;
        font-size: 10px
    }
    #oldbrowser .righticon {
        padding-left: 1%;
        padding-right: 1%;
        font-size: 10px
    }
}

@media(max-width:450px) {
    #result-box {
        max-width: 96% !important
    }
}

.appmode #textcontent,
.appmode #wrapper {
    width: 100%
}

#appmode #title,
#appmode.dark-theme #title,
.appmode #board,
.appmode #board-and-header,
.appmode #header,
.appmode.dark-theme #board,
.appmode.dark-theme #board-and-header,
.appmode.dark-theme #header {
    background: 0 0 !important
}

#promo-links div #ad-settings {
    display: none
}

.appmode #mobile-menu {
    position: fixed
}

.appmode h1 {
    overflow: hidden
}

.appmode .appmode-hide,
.appmode .appmode-remove {
    display: none !important
}

.appmode body {
    background: #00a000 !important;
    padding-bottom: 0
}

.appmode #textcontent {
    background: #fffaf0;
    margin: auto
}

.appmode #rules {
    max-width: 700px;
    margin: auto
}

.appmode.dark-theme #textcontent {
    background: #111
}

.appmode.dark-theme body {
    background-color: #040 !important
}

.appmode #mobile-menu,
.appmode #mobile-options,
.appmode body {
    padding-top: env(safe-area-inset-top, 20px) !important
}

.appmode :not(input), .appmode :not(textarea), .appmode :not(p) {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important
}

.appmode * {
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important
}

.appmode .options-page {
    background: #fffaf0
}

.appmode .rules-open #textcontent {
    display: block !important
}

.appmode .rules-open #menucontainer {
    visibility: hidden
}

.appmode #textcontent {
    background: #fffaf0
}

.appmode #rules {
    padding-top: 10px;
    padding-bottom: 20px
}

.appmode .rules-open #play-page {
    display: none !important
}

.appmode #textcontent {
    position: absolute;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    left: 0;
    width: 100%
}

.appmode .subview {
    display: none;
    position: absolute;
    border-style: none;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background: #00a000;
    left: 0;
    width: 100%;
    top: 47px;
    top: -webkit-calc(env(safe-area-inset-top) + 47px);
    top: -moz-calc(env(safe-area-inset-top) + 47px);
    top: calc(env(safe-area-inset-top) + 47px);
    height: -webkit-calc(100vh - 47px);
    height: -moz-calc(100vh - 47px);
    height: calc(100vh - 47px);
    height: -webkit-calc(100vh - env(safe-area-inset-top) - 47px);
    height: -moz-calc(100vh - env(safe-area-inset-top) - 47px);
    height: calc(100vh - env(safe-area-inset-top) - 47px);
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    overflow-x: hidden
}

.appmode .avatars-subview-open #avatars-subview {
    display: block
}

.appmode .statistics-subview-open #statistics-subview {
    display: block
}

.appmode .subview-open #play-page {
    display: none
}

.appmode.dark-theme .subview {
    background: #040
}

.appmode.statistics {
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch
}

.appmode.opponents {
    overflow-y: hidden
}

.appmode.statistics #wrapper {
    max-height: none !important
}

.appmode.statistics #body {
    padding-top: 0 !important
}

.appmode.statistics #header,
.appmode.statistics #mobile-menu {
    display: none !important
}

.appmode.avatars #header,
.appmode.avatars #mobile-menu {
    display: none !important
}

.appmode.avatars body {
    padding-top: 0 !important
}

.appmode.statistics #wrapper {
    overflow-y: scroll
}

.appmode.statistics body {
    overflow: scroll
}

.appmode #result-box {
    max-height: 98%;
    overflow-y: auto
}

.appmode #promo-links div label {
    font-family: Slackey;
    text-shadow: #030 1px 1px 0
}

.appmode .growboard #play-page {
    max-height: none
}

.appmode #game-nr-options,
.appmode #loser-screen,
.appmode .pause-dialog {
    background: #fffaf0
}

@media (max-width:730px),
(min-width:500px) and (max-height:450px) and (orientation:landscape) {
    .appmode #wrapper {
        max-height: 100vh;
        max-height: -webkit-calc(100vh - env(safe-area-inset-top));
        max-height: -moz-calc(100vh - env(safe-area-inset-top));
        max-height: calc(100vh - env(safe-area-inset-top))
    }
    .appmode .board.growboard {
        overflow-y: auto;
        height: -webkit-calc(100vh - 47px) !important;
        height: -moz-calc(100vh - 47px) !important;
        height: calc(100vh - 47px) !important;
        height: -webkit-calc(100vh - env(safe-area-inset-top) - 47px) !important;
        height: -moz-calc(100vh - env(safe-area-inset-top) - 47px) !important;
        height: calc(100vh - env(safe-area-inset-top) - 47px) !important
    }
    .appmode #textcontent {
        top: 47px;
        top: -webkit-calc(env(safe-area-inset-top) + 47px);
        top: -moz-calc(env(safe-area-inset-top) + 47px);
        top: calc(env(safe-area-inset-top) + 47px);
        height: -webkit-calc(100vh - 47px);
        height: -moz-calc(100vh - 47px);
        height: calc(100vh - 47px);
        height: -webkit-calc(100vh - env(safe-area-inset-top) - 47px);
        height: -moz-calc(100vh - env(safe-area-inset-top) - 47px);
        height: calc(100vh - env(safe-area-inset-top) - 47px)
    }
    .appmode #game-link-wrapper {
        height: 100vh;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch
    }
    .appmode #play-page {
        height: -webkit-calc(100vh - 47px) !important;
        height: -moz-calc(100vh - 47px) !important;
        height: calc(100vh - 47px) !important;
        height: -webkit-calc(100vh - env(safe-area-inset-top) - 47px) !important;
        height: -moz-calc(100vh - env(safe-area-inset-top) - 47px) !important;
        height: calc(100vh - env(safe-area-inset-top) - 47px) !important;
        max-height: 650px
    }
    .appmode.frontpage #play-page {
        max-height: 20650px
    }
    .appmode .options-page {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        position: fixed;
        top: 47px !important;
        top: -webkit-calc(env(safe-area-inset-top) + 47px) !important;
        top: -moz-calc(env(safe-area-inset-top) + 47px) !important;
        top: calc(env(safe-area-inset-top) + 47px) !important;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
        bottom: unset;
        height: 100%;
        overflow: scroll;
        -webkit-overflow-scrolling: touch
    }
}

@media (max-width:730px) and (min-height:700px) {
    .appmode:not(.frontpage) #board:not(.growboard) {
        padding-top: -webkit-calc((100vh - 700px)/ 2);
        padding-top: -moz-calc((100vh - 700px)/ 2);
        padding-top: calc((100vh - 700px)/ 2);
        padding-top: -webkit-calc((100vh - 700px - env(safe-area-inset-top) - env(safe-area-inset-bottom))/ 2);
        padding-top: -moz-calc((100vh - 700px - env(safe-area-inset-top) - env(safe-area-inset-bottom))/ 2);
        padding-top: calc((100vh - 700px - env(safe-area-inset-top) - env(safe-area-inset-bottom))/ 2)
    }
}

@media (min-width:731px) and (min-height:451px) {
    .appmode body {
        height: 100vh;
        height: -webkit-calc(100vh - env(safe-area-inset-top));
        height: -moz-calc(100vh - env(safe-area-inset-top));
        height: calc(100vh - env(safe-area-inset-top))
    }
    .appmode #board {
        border-style: none !important;
        -webkit-box-shadow: none !important;
        -moz-box-shadow: none !important;
        box-shadow: none !important;
        margin: auto;
        -webkit-border-radius: 0 !important;
        -moz-border-radius: 0 !important;
        border-radius: 0 !important;
        padding: 0 !important
    }
    .appmode #title h1 {
        font-size: 38px;
        line-height: 66px
    }
    .appmode .frontpage #play-page {
        margin-top: -20px
    }
    .appmode #game-link-wrapper {
        width: 375px;
        top: 0;
        left: -400px;
        height: 100%;
        height: 100vh;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        overflow: auto;
        -webkit-overflow-scrolling: touch
    }
    .appmode.frontpage #menucontainer,
    .appmode.opponents #menucontainer {
        visibility: hidden
    }
    .appmode .growboard {
        margin-top: 0 !important
    }
    .appmode .growboard #play-page {
        height: -webkit-calc(100vh - 100px) !important;
        height: -moz-calc(100vh - 100px) !important;
        height: calc(100vh - 100px) !important;
        height: -webkit-calc(100vh - env(safe-area-inset-top) - 100px) !important;
        height: -moz-calc(100vh - env(safe-area-inset-top) - 100px) !important;
        height: calc(100vh - env(safe-area-inset-top) - 100px) !important;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box
    }
    .appmode .options-page {
        top: 40%
    }
    .appmode .menu-open #game-link-wrapper {
        left: 0;
        top: 0
    }
    .appmode #promo-links {
        margin-top: -8px
    }
    .appmode #promo-links div {
        width: 100%;
        max-width: none;
        float: none
    }
    .appmode #promo-links div a {
        font-size: 20px
    }
    .appmode #promo-links div label {
        font-size: 24px
    }
    .appmode #menu a,
    .appmode #menu li {
        color: #fff;
        text-shadow: #006400 1px 1px 0
    }
    .appmode #mobile-menu {
        width: 50px
    }
    .appmode #mobile-menu span {
        height: 5px;
        margin: 7px auto;
        -webkit-border-radius: 2px;
        -moz-border-radius: 2px;
        border-radius: 2px
    }
    .appmode .menu-open #mobile-menu .menu-row-1,
    .appmode .options-open #mobile-menu .menu-row-1,
    .appmode .rules-open .menu-row-1,
    .appmode .subview-open .menu-row-1 {
        -webkit-transform: translateY(12px) rotate(45deg);
        -moz-transform: translateY(12px) rotate(45deg);
        -ms-transform: translateY(12px) rotate(45deg);
        -o-transform: translateY(12px) rotate(45deg);
        transform: translateY(12px) rotate(45deg)
    }
    .appmode .menu-open #mobile-menu .menu-row-2,
    .appmode .options-open #mobile-menu .menu-row-2,
    .appmode .rules-open .menu-row-2,
    .appmode .subview-open .menu-row-2 {
        opacity: 0
    }
    .appmode .menu-open #mobile-menu .menu-row-3,
    .appmode .options-open #mobile-menu .menu-row-3,
    .appmode .rules-open .menu-row-3,
    .appmode .subview-open .menu-row-3 {
        -webkit-transform: translateY(-12px) rotate(-45deg);
        -moz-transform: translateY(-12px) rotate(-45deg);
        -ms-transform: translateY(-12px) rotate(-45deg);
        -o-transform: translateY(-12px) rotate(-45deg);
        transform: translateY(-12px) rotate(-45deg)
    }
    .appmode #mobile-options {
        display: block !important
    }
    .appmode #board-and-header {
        margin: auto;
        float: none
    }
    .appmode #mobile-menu {
        display: block
    }
    .appmode #textcontent {
        top: 67px;
        top: -webkit-calc(env(safe-area-inset-top) + 67px);
        top: -moz-calc(env(safe-area-inset-top) + 67px);
        top: calc(env(safe-area-inset-top) + 67px);
        height: -webkit-calc(100vh - 67px);
        height: -moz-calc(100vh - 67px);
        height: calc(100vh - 67px);
        height: -webkit-calc(100vh - env(safe-area-inset-top) - 67px);
        height: -moz-calc(100vh - env(safe-area-inset-top) - 67px);
        height: calc(100vh - env(safe-area-inset-top) - 67px)
    }
    .appmode .subview {
        top: 60px;
        top: -webkit-calc(env(safe-area-inset-top) + 60px);
        top: -moz-calc(env(safe-area-inset-top) + 60px);
        top: calc(env(safe-area-inset-top) + 60px);
        height: -webkit-calc(100vh - 60px);
        height: -moz-calc(100vh - 60px);
        height: calc(100vh - 60px);
        height: -webkit-calc(100vh - env(safe-area-inset-top) - 60px);
        height: -moz-calc(100vh - env(safe-area-inset-top) - 60px);
        height: calc(100vh - env(safe-area-inset-top) - 60px)
    }
}

@media (min-width:731px) and (min-height:700px) {
    .appmode #board:not(.growboard):not(.frontpage) #play-page {
        margin-top: 20px
    }
}

@media (min-width:1080px) and (min-height:810px) {
    .appmode #board:not(.growboard):not(.frontpage) #play-page {
        margin-top: 50px
    }
}

.glow {
    -webkit-box-shadow: #fff 0 0 35px;
    -moz-box-shadow: #fff 0 0 35px;
    box-shadow: #fff 0 0 35px
}

#play-page #messageBox {
    display: none !important
}

#win-screen {
    display: none;
    top: 130px;
    left: 0;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    text-align: center;
    z-index: 9000
}

#win-screen h1 {
    padding: 0 !important;
    font-size: 95px
}

.marker {
    text-align: left;
    padding-left: 18px;
    color: #000;
    font-family: CardSuits, Arial, sans-serif;
    font-size: 23px;
    position: absolute;
    top: -1px
}

.cell {
    width: 70px;
    height: 95px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    border: solid 2px green;
    -webkit-border-radius: 14%/10.4%;
    -moz-border-radius: 14%/10.4%;
    border-radius: 14%/10.4%
}

.cell p {
    padding: 0 !important
}

.vtext div {
    width: 100%;
    height: 100%;
    display: table
}

.vtext div p {
    width: 100%;
    height: 100%;
    display: table-cell;
    vertical-align: middle;
    text-align: center
}

.foundation {
    background-position: center;
    -webkit-background-size: 46% 46%;
    -moz-background-size: 46%;
    -o-background-size: 46%;
    background-size: 46%;
    background-repeat: no-repeat
}

.foundation.h {
    background-image: url(../hearts.html)
}

.foundation.s {
    background-image: url(../spades.html)
}

.foundation.d {
    background-image: url(../diamonds.html)
}

.foundation.c {
    background-image: url(../clubs.html)
}

.stock {
    cursor: pointer;
    text-align: center
}

.stock div p {
    font-size: 16px
}

.card {
    width: 69px;
    height: 94px;
    position: absolute;
    cursor: pointer;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-border-radius: 10%;
    -moz-border-radius: 10%;
    border-radius: 10%
}

.card div {
    background-repeat: no-repeat;
    width: 100%;
    height: 100%
}

.faceup {
    display: none
}

.simpledeck .faceup {
    -webkit-border-radius: 13%/10%;
    -moz-border-radius: 13%/10%;
    border-radius: 13%/10%;
    background: #fff;
    border: solid 1px gray;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background-position: -1px -1px;
    -webkit-background-size: 69px 94px;
    -moz-background-size: 69px 94px;
    -o-background-size: 69px 94px;
    background-size: 69px 94px
}

.facedown {
    display: block;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -o-background-size: contain;
    background-size: contain
}

.card.up .faceup {
    display: block;
    height: 100%
}

.card.up .facedown {
    display: none
}

#undo {
    position: absolute
}

#info-bar {
    text-align: center;
    width: 90%;
    margin-left: 5%
}

#play-page {
    text-align: left
}

#play-page #messageBox {
    text-align: center;
    width: 100%;
    top: 104px;
    display: table
}

#play-page #messageBox p {
    color: #fff;
    background: 0 0;
    width: 100%;
    display: table-cell;
    vertical-align: middle;
    height: 30px;
    font-size: 14px;
    font-weight: 400;
    text-align: center
}

#game-nr {
    position: absolute;
    bottom: 0;
    text-align: center;
    width: 100%;
    font-size: 12px
}

#has-played-before {
    text-align: center;
    font-size: 12px;
    height: 14px;
    margin-top: 5px
}

#game-nr-options {
    width: 300px;
    position: absolute;
    z-index: 50000;
    display: none;
    top: 100px;
    font-size: 18px
}

#game-nr-options p {
    font-size: 14px;
    margin-bottom: 10px
}

.game-nr-input {
    font-size: 14px;
    text-align: center
}

.game-nr-input input {
    width: 50px
}

.button-container {
    text-align: center;
    padding: 12px
}

#loser-screen {
    display: none;
    top: 100px;
    width: 60%;
    z-index: 40000;
    position: absolute;
    left: 50%;
    margin-left: -30%
}

#loser-screen p {
    text-align: center;
    padding: 10px
}

#loser-screen button:active {
    margin-bottom: 1px
}

#loser-screen button {
    margin-right: 5px;
    margin-left: 5px
}

@-webkit-keyframes winAnimation {
    0% {
        color: #fff
    }
    25% {
        color: red
    }
    50% {
        color: #0f0
    }
    75% {
        color: #00f
    }
}

@-moz-keyframes winAnimation {
    0% {
        color: #fff
    }
    25% {
        color: red
    }
    50% {
        color: #0f0
    }
    75% {
        color: #00f
    }
}

@-o-keyframes winAnimation {
    0% {
        color: #fff
    }
    25% {
        color: red
    }
    50% {
        color: #0f0
    }
    75% {
        color: #00f
    }
}

@keyframes winAnimation {
    0% {
        color: #fff
    }
    25% {
        color: red
    }
    50% {
        color: #0f0
    }
    75% {
        color: #00f
    }
}

.blink {
    -webkit-animation-name: winAnimation;
    -moz-animation-name: winAnimation;
    -o-animation-name: winAnimation;
    animation-name: winAnimation;
    -webkit-animation-duration: 1s;
    -moz-animation-duration: 1s;
    -o-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-iteration-count: 4;
    -moz-animation-iteration-count: 4;
    -o-animation-iteration-count: 4;
    animation-iteration-count: 4
}

@media (max-width:730px),
(max-width:1000px) and (max-device-height:450px) and (orientation:landscape) {
    #game-nr {
        bottom: 10px;
        font-size: 20px
    }
    #undo {
        top: auto !important;
        bottom: 40px !important;
        left: 50% !important;
        width: 130px;
        margin-left: -65px !important;
        height: 40px
    }
    #undo button {
        width: 100% !important;
        height: 40px;
        font-size: 20px
    }
    #info-bar {
        font-size: 18px
    }
    .dialog {
        width: 94% !important;
        position: fixed !important;
        top: 10%;
        left: 3% !important;
        margin-left: 0 !important
    }
    .dialog button,
    .dialog input,
    .dialog p,
    .game-nr-input {
        font-size: 18px !important
    }
    .dialog button {
        border-bottom-width: 1px !important;
        width: 80%;
        display: block;
        margin: 5px auto !important
    }
    .dialog button:active {
        position: static !important;
        margin-bottom: 5px !important
    }
    #play-page #messageBox p {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        padding: 3px;
        font-size: 13px;
        line-height: 15px
    }
    #start-game-nr {
        width: 60px;
        text-align: right;
        margin-left: 6px
    }
    #win-screen h1 {
        font-size: 80px
    }
    #win-screen a {
        font-size: 20px
    }
    #win-record {
        font-size: 15px;
        padding-top: 0
    }
}

@media (max-width:550px) {
    .stock div p {
        font-size: 13px
    }
    #win-screen h1 {
        font-size: 70px
    }
}

@media (max-width:480px) {
    .foundation div p {
        font-size: 40px
    }
    .stock div p {
        font-size: 10px
    }
    #win-screen h1 {
        font-size: 55px
    }
}

@media (max-width:374px) {
    #win-screen h1 {
        font-size: 46px
    }
}

@media (max-width:1000px) and (max-device-height:450px) and (orientation:landscape) {
    #game-nr-options {
        width: 340px !important;
        left: 50% !important;
        margin-left: -170px !important
    }
    #game-nr-options p {
        font-size: 14px !important
    }
}

#undo {
    left: 315px;
    bottom: 30px
}

#undo button {
    width: 70px
}

.brick {
    border-style: none !important
}

.selected {
    -webkit-box-shadow: #fff 0 0 15px;
    -moz-box-shadow: #fff 0 0 15px;
    box-shadow: #fff 0 0 15px
}

@media (max-width:436px) {
    #title h1 {
        padding-left: 42px;
        text-align: left
    }
}

@media (max-width:396px) {
    #title h1 {
        font-size: 24px;
        padding-top: 10px
    }
}

@media (max-width:350px) {
    #title h1 {
        font-size: 21px;
        padding-top: 11px
    }
}
