.limitations {
    font-size: 16px;
    font-family: "Geogtq-Md", Helvetica, Verdana, Arial, sans-serif;
    padding: 20px;
    color: #FFF;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    text-align: center;
    position: absolute;
    display: block;
    top: 60px;
    left: 20%;
    right: 20%;
}

a.button {
    font-size: 16px;
    font-family: "Geogtq-Md", Helvetica, Verdana, Arial, sans-serif;
    padding: 20px;
    background: #F90;
    color: #FFF;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    text-align: center;
    position: absolute;
    display: block;
    top: 20px;
    left: 37%;
    right: 37%;
}

#ipad {
    background: url(../img/ipad_port.png) no-repeat;
    position: absolute;
    width: 510px;
    height: 640px;
    top: 146px;
    left: 50%;
    margin: 0 0 0 -255px;
}

#gameboard, #gamewrapper, body {
    overflow: hidden
}

body, h1 {
    margin: 0;
    padding: 0
}

@font-face {
    font-family: "Doto", sans-serif;
    font-size: 10px;
}

@font-face {
    font-family: "Doto", sans-serif;
    font-size: 10px;
}

@font-face {
    font-family: "Doto", sans-serif;
    font-size: 10px;
}

* {
    -webkit-tap-highlight-color: transparent
}

body {
    -webkit-touch-callout: none;
    -webkit-text-size-adjust: none;
    -webkit-user-select: none;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #000), color-stop(27%, #111), color-stop(50%, #141414), color-stop(73%, #0f0f0f), color-stop(100%, #000));
    background: -webkit-linear-gradient(top, #000 0, #111 27%, #141414 50%, #0f0f0f 73%, #000 100%);
    background-attachment: fixed;
    font-family: Doto, sans-serif;
    font-size: 12px;
    height: 100%;
    width: 100%
}

.ball, .ball1 {
    background-color: rgba(0, 0, 0, 0)
}

#gamewrapper {
    background: url(../gamebg.png) #000;
    width: 768px;
    height: 1024px;
    display: block;
    position: absolute;
    top: -48px;
    left: 50%;
    -o-transform: translate(-50%, 0) scale(.5);
    -moz-transform: translate(-50%, 0) scale(.5);
    -webkit-transform: translate(-50%, 0) scale(.5);
    -ms-transform: translate(-50%, 0) scale(.5);
    transform: translate(-50%, 0) scale(.5)
}

h1 {
    font-size: 24px;
    font-weight: 400;
    overflow: visible;
    text-align: center
}

.event {
    color: #FFF;
    font-size: 18px;
    text-align: center;
    margin: 30px;
    padding: 10px
}

#loader {
    display: block;
    text-align: center;
    margin: 100px;
    font-size: 22px
}

.ball {
    border: 10px solid rgba(255, 255, 255, .9);
    opacity: .9;
    border-top: 10px solid transparent;
    border-left: 10px solid transparent;
    border-radius: 100px;
    box-shadow: 0 0 35px #fff;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    -webkit-animation: spin .5s infinite linear
}

.ball1 {
    border: 10px solid rgba(255, 255, 255, .9);
    opacity: .9;
    border-top: 10px solid transparent;
    border-left: 10px solid transparent;
    border-radius: 100px;
    box-shadow: 0 0 15px #fff;
    width: 60px;
    height: 60px;
    margin: 0 auto;
    position: relative;
    top: -100px;
    -webkit-animation: spinoff .5s infinite linear
}

#black, #white {
    border: 1px dashed #595858
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0)
    }
    100% {
        -webkit-transform: rotate(360deg)
    }
}

@-webkit-keyframes spinoff {
    0% {
        -webkit-transform: rotate(0)
    }
    100% {
        -webkit-transform: rotate(-360deg)
    }
}

.event.listening {
    background-color: #333;
    display: block
}

.event.received {
    background-color: #4B946A;
    display: none
}

@keyframes fade {
    from, to {
        opacity: 1
    }
    50% {
        opacity: .4
    }
}

@-webkit-keyframes fade {
    from, to {
        opacity: 1
    }
    50% {
        opacity: .4
    }
}

.blink {
    animation: fade 3s infinite;
    -webkit-animation: fade 3s infinite
}

#white {
    background: #fff
}

#grey {
    background: #555;
    border: 1px dashed #909090
}

#black {
    background: #000
}

#black.selected, #grey.selected, #white.selected {
    border: 1px solid #009600
}

#alertbox, #errors, #message, #optionsmenu, #store {
    border: 2px dashed #FFF;
    text-transform: lowercase
}

#optionsmenu {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 404px;
    height: 560px;
    margin: -151px 0 0 -204px;
    display: none;
    background: #000;
    color: #fff;
    font: 30px "Doto", sans-serif;
}

#optionsmenu ul {
    display: inline-block;
    list-style: none;
    position: relative;
    padding: 0;
    margin: 0 0 30px 44px
}

#optionsmenu ul li {
    display: block;
    float: left;
    width: 80px;
    height: 80px;
    border: 1px dashed #595858;
    margin: 0 7px;
    padding: 5px
}

#optionsmenu ul div {
    display: block;
    float: left;
    width: 78px;
    height: 78px
}

#optionsmenu div.music, #optionsmenu div.sound {
    position: relative;
    width: 230px;
    margin: 0 0 40px 122px
}

#optionsgback, #overlay, #store {
    position: absolute
}

#optionsmenu p.music, #optionsmenu p.sound {
    background: url(../img/sprite-skin-simple.png) repeat-x;
    float: left;
    display: block;
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 7px 0 0 50px
}

#overlay, #qswrapper, #store {
    display: none
}

#menu, #overlay {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0
}

#optionsmenu p.sound {
    background-position: -42px -123px
}

#optionsmenu p.music {
    background-position: -3px -123px
}

#optionsgback {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 10px;
    bottom: 10px;
    left: 60px
}

#overlay {
    background: #000;
    opacity: .8
}

#alertbox, #errors, #message {
    font-family: Doto;
    width: 306px;
    height: 204px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -102px 0 0 -153px;
    background: #000;
    color: #fff;
    display: none;
    text-align: center
}

#qswrapper div {
    font-family: Doto;
    font-size: 28px;
    line-height: 50px;
    display: block;
    float: left;
    width: 50px;
    height: 50px;
    position: relative;
    text-align: center;
    background: #000;
    color: #f90;
    margin: 1px;
    border: 1px dotted #3D3D3D
}

#qswrapper div.disabled {
    color: #0c3;
    background: #333
}

#alertbox p span, #errors p, #message p span {
    color: #fc0
}

#qswrapper div, #qswrapper div.disabled {
    -webkit-transition: all 1s;
    -webkit-transform: scale3d(1, 1, 1)
}

#store {
    font-family: Doto;
    width: 614;
    left: 75px;
    top: 360px;
    background: #000;
    color: #fff
}

#store ul {
    list-style: none;
    margin: 0;
    padding: 0
}

#store ul li {
    background: #FFF;
    border-top: 2px dashed #000;
    display: block
}

#store h3 {
    font-size: 18px;
    background: grey;
    padding: 20px;
    margin: 0
}

#store ul li p {
    margin: 0;
    padding: 20px;
    font-size: 15px;
    width: 380px;
    color: #000;
    display: block;
    position: relative;
    float: left
}

#closestore, #restore, #store ul li div {
    font-family: Doto, sans-serif;
    margin: 20px;
    padding: 10px;
    width: 100px;
    display: inline-block;
    position: relative;
    text-align: center;
    cursor: pointer;
    font-size: 22px
}

#restore, #store ul li div {
    float: right;
    background: #009C00;
    border-top: 2px solid #26CF26;
    border-left: 2px solid #26CF26;
    border-right: 2px solid #006100;
    border-bottom: 2px solid #006100
}

#closestore {
    float: left;
    background: #FFF;
    color: #000;
    border: 2px solid #FFF
}

#closestore, #restore {
    font-family: Doto;
    width: auto
}

#store ul li br, .clear {
    clear: both
}

#alertbox h1, #errors h1, #message h1, #optionsmenu h1, #store h1 {
    font-family: Doto;
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    overflow: visible;
    padding: 10px 25px;
    text-align: center;
    background: #FFF;
    color: #000
}

#store h1 {
    width: 564px;
    display: block
}

#alertbox p, #errors p, #message p, #optionsmenu p, #store h1 {
    text-align: center;
    line-height: 40px;
    font-size: 32px;
    padding: 0 10px
}

#errors p {
    font-family: "Doto", sans-serif;;
    font-size: 24px;
    line-height: initial
}

#alertbox p span.number {
    color: red;
    font-family: "Doto", sans-serif;
    font-size: 40px
}

#menu .ultimate p, #menu ul.menu p, #overlay p {
    font-family: "Doto", sans-serif;
    text-transform: uppercase;
    letter-spacing: -20px;
    font-weight: bold;
}

#menu ul.menu li {
    padding:0 0 12px 0;
}

#alertbox div, #errors div.btn, #msgok {
    position: absolute;
    padding: 10px;
    display: inline-block;
    bottom: 10px;
    font-size: 20px
}

#buy {
    left: 10px;
    font-weight: 700;
    background: #03860B;
    color: #FFF
}

#errors div.btn, #msgok, #ok {
    color: #000;
    background: #fff;
    font-weight: 400
}

#ok {
    right: 10px
}

#errors div.btn, #msgok {
    position: relative;
    margin: 0 auto
}

#menu, #overlay p {
    position: absolute
}

#overlay p {
    font-size: 30px;
    padding: 10px;
    color: #0C3;
    bottom: 20px;
    left: 128px
}

#menu {
    background: url(../img/menubg.png) top center no-repeat;
    background-size: cover;
    display: block;
    opacity: 1
}

#menu .title {
    width: 410px;
    margin: 12px auto 0;
    position: relative;
    height: 101px;
    display: block
}

#menu .ultimate {
    width: 500px;
    position: relative;
    height: 30px;
    display: block;
    margin: 164px 0 0 166px
}

#menu ul.menu {
    margin: 0 0 0 164px;
    padding: 0
}

#menu ul.menu li {
    display: block;
    margin-top: 61px
}

#menu ul.menu li:first-child {
    margin-top: 113px
}

#menu .ultimate p {
    margin: 1px 0 0 30px;
    font-size: 68px;
    color: #99f;
    float: left;
    display: inline-block
}

#menu ul.menu p {
    margin: 1px 0 0 26px;
    font-size: 50px;
    color: #FFF;
    float: left;
    display: inline-block
}

#menu ul.menu #ultimate p {
    color: #0c3
}

#menu ul.menu #shop p {
    color: #c00
}

#classic, #extended, #options, #shop, #ultimate {
    padding: 0;
    position: relative;
    display: block;
    height: 30px;
    -webkit-transition: all 1s;
    -webkit-transform: scale3d(1, 1, 1)
}

#classic.animated, #extended.animated, #options.animated, #qswrapper div.animated, #shop.animated, #ultimate.animated {
    -webkit-transform: scale3d(2.5, 2.5, 2.5) !important;
    opacity: 0;
    color: red;
    z-index: 1
}

#gameboard {
    width: 768px;
    height: 1024px
}

#gameCanvas {
    width: 1280px;
    height: 2560px
}

#score {
    font-family: "Doto", sans-serif;
    font-size: 28px;
    text-transform: uppercase;
    background: #000;
    color: #FFF;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%
}

#score .left {
    text-align: left
}

#level, #lines, #lives {
    font-family: "Doto", sans-serif;
    text-transform: uppercase;
    font-size:35px;
}

#lines {
    color: #f90
}

#level {
    color: #0c3
}

#lives {
    color: #c00
}

#score .center {
    text-align: center
}

#score .right {
    text-align: right
}

#device {
    display: none;
    content: "ipad"
}

@media only screen and (min-device-width: 414px) and (max-device-width: 736px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 3) {
    #device {
        content: "iphone6p"
    }

    #gameCanvas {
        width: 640px;
        height: 1280px
    }

    #gameboard {
        position: absolute;
        bottom: 0;
        left: 50%
    }

    #menu {
        background: url(../img/menubg.png) top center no-repeat;
        background-size: 152%
    }

    #menu .title {
        width: 335px;
        margin: 8px auto 0;
        position: relative;
        height: 82px;
        display: block
    }

    #menu .ultimate {
        width: 343px;
        margin: 91px auto 0;
        height: 28px;
        display: block
    }

    #menu ul.menu li, #optionsgback, #restore {
        display: inline-block
    }

    #menu .ultimate p {
        margin: 1px 9px 0 13px
    }

    #menu ul.menu {
        margin: 0 0 0 40px;
        padding: 0
    }

    #menu ul.menu li:first-child {
        margin-top: 94px
    }

    #menu ul.menu p {
        margin: 1px 10px 0 11px;
        font-size: 29px
    }

    #menu ul.menu li {
        margin-top: 50px
    }

    table#score {
        font-size: 16px
    }

    table#score td {
        padding: 3px 5px
    }

    #level, #lines, #lives {
        font-size: 22px
    }

    #classic, #extended, #options, #shop, #ultimate {
        padding: 0;
        position: relative;
        display: block;
        height: 22px
    }

    #alertbox div, #errors div.btn, #msgok {
        padding: 10px;
        position: static;
        display: inline-block;
        font-size: 20px;
        margin: 0 0 15px;
        bottom: 0
    }

    #optionsmenu, #store {
        bottom: 1px;
        right: 1px;
        border: 1px dashed #FFF;
        position: absolute
    }

    #msgok {
        position: relative
    }

    #alertbox p, #errors p, #message p, #store h1 {
        line-height: 30px;
        font-size: 19px;
        padding: 0 10px
    }

    #optionsmenu p {
        line-height: 50px;
        font-size: 29px;
        padding: 0 10px
    }

    #alertbox h1, #errors h1, #message h1 {
        font-size: 26px
    }

    #optionsmenu h1 {
        font-size: 32px
    }

    #overlay p {
        font-size: 22px;
        left: 18px
    }

    #store {
        left: 1px;
        top: 1px
    }

    #store h1 {
        width: 390px;
        font-size: 32px;
        padding: 10px
    }

    #menu #store ul, #menu #store ul li, #menu #store ul li:first-child {
        margin: 0
    }

    #store ul li {
        border-top: 1px dashed #000;
        display: block
    }

    #store h3 {
        font-size: 22px;
        height: 46px;
        padding: 10px
    }

    #store ul li p {
        margin: 0;
        padding: 15px 10px;
        font-size: 17px;
        line-height: 30px;
        width: 270px
    }

    #restore, #store ul li div {
        float: right;
        background: #009C00;
        border-top: 1px solid #26CF26;
        border-left: 1px solid #26CF26;
        border-right: 1px solid #006100;
        border-bottom: 1px solid #006100
    }

    #store ul li div {
        width: 70px;
        font-size: 24px
    }

    #closestore, #restore, #store ul li div {
        margin: 10px;
        padding: 10px;
        top: 20px
    }

    #loader {
        margin: 230px 0 0;
        font-size: 18px
    }

    #alertbox, #errors, #message {
        margin: -152px 0 0 -151px;
        border: 1px dashed #FFF
    }

    #closestore {
        border: 1px solid #FFF
    }

    #optionsmenu {
        top: 0;
        left: 0;
        width: auto;
        height: auto;
        margin: 0;
        text-transform: lowercase;
        background: #000;
        color: #fff;
        font-family: "Doto", sans-serif;
        font-size: 22px;
    }

    #optionsmenu ul {
        margin: 0 0 75px 20px
    }

    #optionsmenu ul li {
        margin: 0 6px;
        padding: 5px;
        width: 100px;
        height: 100px
    }

    #optionsmenu ul div {
        width: 98px;
        height: 98px
    }

    #optionsmenu p.music, #optionsmenu p.sound {
        margin: 7px 0 0 50px
    }

    #optionsmenu div.music, #optionsmenu div.sound {
        margin: 0 0 80px 118px
    }

    #optionsgback {
        background: #fff;
        color: #000;
        padding: 10px;
        bottom: 20px;
        left: 110px;
        position: absolute
    }

    #qswrapper {
        width: 162px;
        height: 162px;
        margin: 15px auto 0
    }

    #qswrapper div.pages {
        display: none;
        width: 162px;
        height: 162px
    }

    #qswrapper div#page1.pages {
        display: block
    }

    #qswrapper div#back, #qswrapper div#forward {
        position: absolute;
        background: url(../img/sprite-skin-simple.png) repeat-x #009C00;
        top: 113px
    }

    #qswrapper div#back {
        left: 10px;
        background-position: -77px -119px
    }

    #qswrapper div#forward {
        right: 10px;
        background-position: -77px -119px;
        -webkit-transform: scaleX(-1)
    }
}

@media only screen and (max-device-width: 667px) and (-webkit-device-pixel-ratio: 2) {
    #device {
        content: "iphone6"
    }

    #menu .ultimate p {
        margin: 1px 0 0 17px;
        font-size: 19px
    }

    #menu ul.menu {
        margin: 0 0 0 29px;
        padding: 0
    }

    #menu ul.menu li:first-child {
        margin-top: 68px
    }

    #menu ul.menu p {
        margin: 1px 0 0 17px;
        font-size: 19px
    }

    #menu ul.menu li {
        display: inline-block;
        margin-top: 38px
    }

    #menu .ultimate {
        width: 261px;
        margin: 0 auto
    }

    table#score {
        font-size: 12px
    }

    table#score td {
        padding: 5px
    }

    #level, #lines, #lives {
        font-size: 16px
    }

    #gameCanvas {
        width: 640px;
        height: 1280px
    }

    #gameboard {
        position: absolute;
        bottom: 0;
        left: 50%
    }

    #menu ul {
        margin: 0 0 0 50px
    }

    #menu {
        background: url(../img/menubg.png) top center no-repeat;
        background-size: 148%
    }

    #menu .title {
        width: 295px;
        margin: 8px auto 0;
        position: relative;
        height: 73px;
        display: block
    }

    #menu ul li, #menu ul li:first-child, #optionsgback, #restore {
        display: inline-block
    }

    #menu ul li:first-child {
        padding: 0;
        margin-top: 45px
    }

    #menu ul li {
        padding: 0;
        margin-top: 49px
    }

    #classic, #extended, #options, #shop, #ultimate {
        padding: 0;
        position: relative;
        display: block;
        height: 22px
    }

    #alertbox div, #errors div.btn, #msgok {
        padding: 10px;
        position: static;
        display: inline-block;
        font-size: 20px;
        margin: 0 0 15px;
        bottom: 0
    }

    #optionsmenu, #store {
        bottom: 1px;
        right: 1px;
        border: 1px dashed #FFF;
        position: absolute
    }

    #msgok {
        position: relative
    }

    #alertbox p, #errors p, #message p, #optionsmenu p, #store h1 {
        line-height: 30px;
        font-size: 19px;
        padding: 0 10px
    }

    #alertbox h1, #errors h1, #message h1, #optionsmenu h1, #store h1 {
        font-size: 22px
    }

    #overlay p {
        font-size: 17px;
        left: 11px
    }

    #store {
        left: 1px;
        top: 1px
    }

    #store h1 {
        width: 296px;
        font-size: 22px;
        padding: 4px 10px
    }

    #menu #store ul, #menu #store ul li, #menu #store ul li:first-child {
        margin: 0
    }

    #store ul li {
        border-top: 1px dashed #000;
        display: block
    }

    #store h3 {
        font-size: 18px;
        height: 38px;
        background: grey;
        padding: 7px 10px;
        margin: 0
    }

    #store ul li p {
        margin: 0;
        padding: 10px;
        font-size: 14px;
        line-height: 24px;
        width: 204px
    }

    #restore, #store ul li div {
        float: right;
        background: #009C00;
        border-top: 1px solid #26CF26;
        border-left: 1px solid #26CF26;
        border-right: 1px solid #006100;
        border-bottom: 1px solid #006100
    }

    #store ul li div {
        width: 50px;
        font-size: 18px
    }

    #closestore, #restore, #store ul li div {
        margin: 10px;
        padding: 10px
    }

    #loader {
        margin: 160px 0 0;
        font-size: 18px
    }

    #alertbox, #errors, #message {
        margin: -152px 0 0 -151px;
        border: 1px dashed #FFF
    }

    #closestore {
        border: 1px solid #FFF
    }

    #optionsmenu {
        top: 0;
        left: 0;
        width: auto;
        height: auto;
        margin: 0;
        text-transform: lowercase;
        background: #000;
        color: #fff;
        font-family: "Doto", sans-serif;
        font-size: 22px;
    }

    #optionsmenu ul {
        margin: 0 0 45px 3px
    }

    #optionsmenu ul li {
        margin: 0 6px;
        padding: 5px
    }

    #optionsmenu p.music, #optionsmenu p.sound {
        margin: 7px 0 0 10px
    }

    #optionsmenu div.music, #optionsmenu div.sound {
        margin: 0 0 60px 68px
    }

    #optionsgback {
        background: #fff;
        color: #000;
        padding: 10px;
        bottom: 10px;
        left: 60px;
        position: absolute
    }

    #qswrapper {
        width: 162px;
        height: 162px;
        margin: 15px auto 0
    }

    #qswrapper div.pages {
        display: none;
        width: 162px;
        height: 162px
    }

    #qswrapper div#page1.pages {
        display: block
    }

    #qswrapper div#back, #qswrapper div#forward {
        position: absolute;
        background: url(../img/sprite-skin-simple.png) repeat-x #009C00;
        top: 113px
    }

    #qswrapper div#back {
        left: 10px;
        background-position: -77px -119px
    }

    #qswrapper div#forward {
        right: 10px;
        background-position: -77px -119px;
        -webkit-transform: scaleX(-1)
    }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (-webkit-device-pixel-ratio: 2) and (device-aspect-ratio: 40/71) and (orientation: portrait) {
    #gameCanvas, #gameboard {
        width: 320px;
        height: 640px
    }

    #menu .title, #menu .ultimate {
        position: relative;
        display: block
    }

    #device {
        content: "iphone5"
    }

    #gameboard {
        position: absolute;
        bottom: 0;
        left: 50%;
        margin-left: -160px
    }

    #menu ul {
        margin: 0 0 0 40px
    }

    #menu {
        background: url(../img/menubg.png) top center no-repeat;
        background-size: 146%
    }

    #menu .title {
        width: 249px;
        margin: 7px auto 0;
        height: 61px
    }

    #menu .ultimate {
        width: 261px;
        margin: 69px auto 0;
        height: 20px
    }

    #menu ul li:first-child {
        display: inline-block;
        padding: 0;
        margin-top: 69px
    }

    #menu ul li {
        display: inline-block;
        padding: 0;
        margin-top: 39px
    }

    #classic, #extended, #options, #shop, #ultimate {
        padding: 0;
        position: relative;
        display: block;
        height: 19px
    }
}

@media only screen and (min-width: 320px) and (max-device-width: 480px) and (device-aspect-ratio: 2/3) and (orientation: portrait) {
    #gameCanvas, #gameboard {
        width: 320px;
        height: 640px
    }

    #menu .title, #menu .ultimate {
        display: block;
        position: relative
    }

    #device {
        content: "iphone4"
    }

    table#score td {
        padding: 7px
    }

    #gameboard {
        position: absolute;
        bottom: 0;
        left: 50%;
        margin-left: -160px
    }

    #menu ul {
        margin: 0 0 0 40px
    }

    #menu {
        background: url(../img/menubg.png) top center no-repeat;
        background-size: 146%
    }

    #menu .title {
        width: 249px;
        margin: 7px auto 0;
        height: 61px
    }

    #menu .ultimate {
        width: 261px;
        margin: 37px auto 0;
        height: 20px
    }

    #menu ul.menu li:first-child {
        display: inline-block;
        margin-top: 38px
    }

    #menu ul li {
        display: inline-block;
        margin-top: 39px
    }

    #classic, #extended, #options, #shop, #ultimate {
        padding: 0;
        position: relative;
        display: block;
        height: 19px
    }

    #store ul li p {
        line-height: 15px
    }
}
