.perspective {
    position: relative;
    width: 100%;
    height: 100%;
    -webkit-perspective: 800px;
    -moz-perspective: 800px;
    perspective: 800px;
}

.page {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.scroller {
    position: absolute;
    z-index: 1;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    -o-text-size-adjust: none;
    text-size-adjust: none;
    padding-bottom: 84px;
}

#board {
    background: linear-gradient(rgba(0, 191, 243, 1), rgba(141, 198, 63, 1));
    background: -webkit-linear-gradient(rgba(0, 191, 243, 1), rgba(141, 198, 63, 1));
}

#rules {
    background: linear-gradient(rgba(30, 130, 241, 1), rgba(255, 253, 194, 1));
    background: -webkit-linear-gradient(rgba(30, 130, 241, 1), rgba(255, 253, 194, 1));
    padding: 48px 10px;
    color: #333;
    overflow: auto;
}
#rules h3 {
    margin: 0 10px 0 0px;
    text-align: center;
    color: #fff;
    font-size: 140%;
}
#rules h3, #rules h4 {
    font-weight: normal;
}
#rules a {
    text-decoration-style: dashed;
    -moz-text-decoration-style: dashed;
    -webkit-text-decoration-style: dashed;
    color: #333;
}

#options {
    background: linear-gradient(rgba(254, 213, 131, 1), rgba(244, 111, 20, 1));
    background: -webkit-linear-gradient(rgba(254, 213, 131, 1), rgba(244, 111, 20, 1));
    padding: 40px 20px 10px 20px;
}
#options form > label {
    display: block;
    color: #fff;
    margin: 10px 0;
    text-align: center;
}

header {
    position: absolute;
    width: 100%;
    height: 38px;
    z-index: 1000;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    background: #ED1C24;
    color: #fff;
    border-bottom: 1px solid #9E0B0F;
}
header > h2 {
    text-align: center;
    margin: 0;
}
header > span {
    position: absolute;
    font-size: 0.5em;
    margin: 6px 0 0 0;
    padding: 2px 10px;
    color: #fff;
    line-height: 21px;
    cursor: pointer;
}
header #btn-install {
    background: #8DC63F;
    color: #fff;
    left: 0;
}
header #btn-new-game {
    background: orange;
    right: 0;
}

footer {
    position: absolute;
    width: 100%;
    height: 38px;
    z-index: 1000;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 0;
    background: #ED1C24;
    border-top: 1px solid #9E0B0F;
}
footer ul#nav {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow: auto;
}
footer ul#nav li {
    display: inline;
}
footer ul#nav li span {
    text-decoration: none;
    display: block;
    width: 33.33%;
    color: #fff;
    line-height: 37px;
    float: left;
    text-align: center;
    cursor: pointer;
}

.switch-toggle {
    height: 34px !important;
}
.switch-isolmoa {
    background-color: #fff;
}
.switch-isolmoa.switch-isolmoa-gray a {
    background-color: #95A5A5;
}
.switch-isolmoa.switch-isolmoa-blue a {
    background-color: #16B6F0;
}
.switch-isolmoa.switch-isolmoa-pink a {
    background-color: #F53791;
}
.switch-isolmoa input:checked + label {
    color: #FED583;
}

#message-0, #message-1 {
    position: absolute;
    width: 100%;
    z-index: 1000;
    font-size: 1.1em;
    text-align: center;
    line-height: 0.2;
}
#message-1 {
    -moz-transform: rotate(-180deg);
    -webkit-transform: rotate(-180deg);
    -o-transform: rotate(-180deg);
    transform: rotate(-180deg);
}
.piece {
    display: inline-block;
    background-image: url(../img/sprite-pieces.png);
    height: 53px;
    width: 53px;
}
