﻿@font-face {
    font-family: 'Game';
    src: url('mmzil.eot');
    src: url('mmzil.eot?#iefix') format('embedded-opentype'),
         url('mmzil.woff') format('woff'),
         url('mmzil.ttf') format('truetype'),
         url('mmzil.svg#mm_zil_right_unicoderegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

* {
    margin:0;
    padding:0;
}

a, button {
    outline:none;
}

a:active{
    background-color:inherit;
}

img {
    border:none;
}

html {
    background-color:#222;
}

#game {
    width:1024px;
    height:768px;
    margin:auto;
    position:relative;
    font-family:Segoe UI, Tahoma;
}

.layoutButton {
    background:url(../Images/buttons.png);
    display:block;
    width: 80px;
    height:80px;
    border:none;
    cursor:pointer;
}

#closeButton {
    float:right;
    margin-right:20px;
    background-position:0 0;
}

#closeButton:hover {
    background-position:-80px 0;
}

#closeButton:active {
    background-position:-160px 0;
}

#helpButton {
    float:left;
    margin-top: 4px;
    background-position:0 -160px;
}

#helpButton:hover {
    background-position:-80px -160px;
}

#helpButton:active {
    background-position:-160px -160px;
}

#menuButton {
    width:90px;
    float:left;
    margin: 0 0 10px 60px;
    background-position:0 -240px;
}

#menuButton:hover {
    background-position:-90px -240px;
}

#menuButton:active {
    background-position:-180px -240px;
}

#skipButton {
    background-position:0 -1258px;
    position:absolute;
}

#skipButton:hover {
    background-position:-80px -1258px;
}

#skipButton:active {
    background-position:-160px -1258px;
}

#resetButton {
    background-position:-240px -1258px;
    position:absolute;
}

#resetButton:hover {
    background-position:-320px -1258px;
}

#resetButton:active {
    background-position:-400px -1258px;
}

#logo {
    background:url(../Images/buttons.png);
    background-position: 0px -360px;
    height:120px;
    width:720px;
    float:left;
}

#muteButton {
    margin-top:8px;
    float:left;
    background-position:0 -80px;
}

#muteButton.active {
    background-position:-160px -80px;
}

#muteButton:hover {
    background-position:-80px -80px;
}

#muteButton:active {
    background-position:-160px -80px;
}

#headControls {
    position:absolute;
    left:0;
    top:0;
    right:0;
}

#footControls {
    position:absolute;
    left:0;
    bottom:0;
}

#mainMenuButton {
    float:left;
    width:180px;
    height:100px;
    background-position:-0px -240px;
}

#mainMenuButton:hover {
    background-position:-180px -240px;
}

#mainMenuButton:active {
    background-position:-360px -240px;
}

#lessonsMenuButton {
    float:left;
    width:180px;
    height:100px;
    background-position:-0px -340px;
}

#lessonsMenuButton:hover {
    background-position:-180px -340px;
}

#lessonsMenuButton:active {
    background-position:-360px -340px;
}

#helpMenuButton {
    float:left;
    width:270px;
    height:100px;
    background-position:-0px -440px;
}

#helpMenuButton:hover {
    background-position:-270px -440px;
}

#helpMenuButton:active {
    background-position:-540px -440px;
}

.contentWrapper {
    padding:10px 40px 30px 44px;
    position:relative;
    display:block;
    margin:auto;
}

.contentWrapper > p {
    position:absolute;
    display:block;
}

.contentWrapper > p > img {
    height:100%;
    width:100%;
    display:block;
}

.contentWrapper > div {
    background:url(../Images/content.png) repeat;
    min-height:200px;
    min-width:200px;
    overflow:hidden;
}

.contentT {
    top:0;
    left:15px;
    right:21px;
    height:10px;
}

.contentB {
    bottom:0;
    left:44px;
    right:40px;
    height:30px;
}

.contentLT {
    top:0;
    left:0;
    height:10px;
    width:15px;
}

.contentL {
    top:10px;
    bottom:13px;
    left:0;
    width:44px;
}

.contentR {
    top:10px;
    bottom:30px;
    right:0;
    width:40px;
}

.contentRT {
    top:0;
    right:0;
    height:10px;
    width:21px;
}

.contentLB {
    bottom:0;
    left:0;
    width:44px;
    height:13px;
}

.contentRB {
    bottom:0;
    right:0;
    width:40px;
    height:30px;
}

#playground {
    position:absolute;
    left:20px;
    right:20px;
    top:100px;
    bottom:80px;
}

.levelSelection {
    background: url(../Images/buttons.png);
    display: block;
    width: 200px;
    height: 100px;
    background-position:-0px -540px;
    font-family: 'Game';
    cursor:pointer;
    color:#fff;
    line-height:100px;
    text-align:center;
    font-size:30px;
    position:absolute;
    border:none;
}

.levelSelection:hover {
    background-position:-200px -540px;
}

.levelSelection:active, .levelSelection.inactive {
    background-position:-400px -540px;
}
.levelSelectionCircle {
    position:absolute;
    top: 30px;
    left: 100px;
    width:540px;
    height:540px;
    border-radius:270px;
    background-color:rgba(255, 255, 255, 0.8);
}

.levelSelection1 {
    top: 5px;
    left: 175px;
}
.levelSelection2 {
    top: 25px;
    left: 395px;
}
.levelSelection3 {
    top: 140px;
    left: 500px;
    
}
.levelSelection4 {
    top: 265px;
    left: 520px;
}
.levelSelection5 {
     top: 385px;
    left: 475px;
}
.levelSelection6 {
    top: 495px;
    left: 360px;
}
.levelSelection7 {
    top: 455px;
    left: 130px;
}
.levelSelection8 {
    top: 340px;
    left: 30px;
}
.levelSelection9 {
    top: 220px;
    left: 20px;
}
.levelSelection10 {
    top: 105px;
    left: 55px;
    font-size:21px;
}

.scaleButton {
    font-family: 'Game';
    display:inline-block;
    position:relative;
    cursor:pointer; 
    overflow:hidden;
    font-size:22px;
    overflow:hidden;
}

.scaleButton > img {
    display:block;
    position:absolute;
    height:300%;
    width:100%;
    top:0;
}
.scaleButton:hover > img {
    top:-100%;
}
.scaleButton:active > img, .scaleButton.active > img {
    top:-200%;
}
.scaleButton > p {
    color:#fff;
    padding:0.6em 16% 1em 10%;
    position:relative;
    z-index:1;
    white-space:nowrap;
}

#levelNameBody {
    background-image: url(../Images/buttons.png);
    display: block;
    width: 185px;
    height: 110px;
    background-position: -540px -240px;
    position:absolute;
    right:100px;
    top:20px;
}

#levelName {
    font-family: 'Game';
    color:#fff;
    font-size:26px;
    line-height:110px;
    text-align:center;
    -moz-transform:rotate(12deg);
    -webkit-transform:rotate(12deg);
    -o-transform:rotate(12deg);
    -ms-transform:rotate(12deg);
    transform:rotate(12deg);
    width: 185px;
    height: 110px;
}

/* Scrollbar */

body, body.noSelect, .scrollbar {
    user-select: none; 
    -o-user-select: none; 
    -moz-user-select: none; 
    -khtml-user-select: none; 
    -webkit-user-select: none;
    -ms-user-select:none;
}

.scrollbar {
    float:right;
    height:100%;
    position:relative;
    margin:0 3px;
}

.scrollbar.disable {
    display:none;
}

.scrollbar > .track {
    width:22px;
    border-radius:11px;
    margin:auto;
    background-color: rgba(53,53,53,0.13);
}

.scrollbar > .thumb {
    position:absolute;
    width:22px;
    height:70px;
    background-color:#c41559;
    border-radius:11px;
    border:none;
    padding:0;
    margin:0;
    cursor:pointer;
    display:block;
}


.scrollbar > .thumb > i {
    display:block;
    width:18px;
    height:22px;
    background-image: url(../Images/buttons.png);
    background-position: -546px -348px;
    position: absolute;
    top:2px;
    left:2px;
}
.scrollbar > .thumb:hover {
    background-color:#d31f65;

}

.scrollbar > .thumb:active {
    background-color:#b11b55;
}

#goButton, .goButtonSmall {
    background:url(../Images/buttons.png);
    display:block;
    position:absolute;
    cursor:pointer;
    border:none;
}

#goButton {
    width: 210px;
    height:210px;
    background-position:0 -640px;
    left:260px;
    top:200px;
}

#goButton:hover {
    background-position:-210px -640px;
}

#goButton:active {
    background-position:-420px -640px;
}

.goButtonSmall {
    width: 142px;
    height: 140px;
    background-position:0 -850px;
}

.goButtonSmall:hover {
    background-position:-142px -850px;
}

.goButtonSmall:active {
    background-position:-284px -850px;
}

.submitButton {
    background:url(../Images/buttons.png);
    border:none;
    display:block;
    width: 380px;
    height: 58px;
    background-position:0 -990px;
    cursor:pointer;
    padding:0 20px;
    font-family:'Game';
    text-align:center;
    color:#fff;
    font-size:28px;
    margin:auto;
}

.submitButton:hover {
    background-position:0 -1048px;
}

.submitButton:active {
    background-position:0 -1106px;
}

.levelDescription {
    background-image:url(../Images/buttons.png);
    display:block;
    width: 470px;
    height: 210px;
    background-position:-250px 0px;
    position:absolute;
}

.levelDescription > .title {
    padding:20px;
    font-family:'Game';
    text-align:center;
    color:#fff;
    font-size:40px;
}

.levelDescription > .desc {
    padding:0 20px;
    font-family:'Game';
    text-align:center;
    color:#F2B300;
    font-size:36px;
}

.checkbox {
    background-image:url(../Images/buttons.png);
    width: 250px;
    height: 50px;
    padding:2px 30px 6px 54px;
    background-position:-380px -990px;
    cursor:pointer;
    display: inline-table; 
    vertical-align:top;
}

.checkbox > p {
    display: table-cell; 
    vertical-align: middle;
    font-size:13px;
}

.checkbox.checked {
    background-position:-380px -1048px;
}

.checkbox.checked.correct {
    background-position:-380px -1106px;
}
.gameTitle {
    padding:10px;
    font-family:'Game';
    text-align:center;
    color:#222;
    font-size:32px;
}
.gameTitleSmall {
    padding:5px;
    font-family:'Game';
    text-align:center;
    color:#222;
    font-size:24px;
}

.mediumHeader {
    background-image:url(../Images/buttons.png);
    background-position:0 -1164px;
    width:610px;
    padding:0px 23px 8px 23px;
    height:86px;
    font-weight:bold;
    font-size:18px;
    text-align:center;
    margin: auto;
    display: inline-table; 
}
.mediumHeader > p {
    display: table-cell; 
    vertical-align: middle;
}

.tinyHeader {
    text-align:center;
    color:#b11b55;
    font-weight:bold;
}

.baloon {
    width: 305px;    
    height: 260px;
    border:solid 3px #333;
    border-radius:20px;
    background-color:#fff;
    padding:10px;
    position:absolute;
    top:0;
}

.dragBlock {
    padding:5px 5px;
    background-color:#fff;
    border-radius:20px;
    box-shadow:0 5px 0 #ccc;
    margin-bottom: 10px;
    border: 1px solid #eee;
    font-size:12px;
    overflow:hidden;
}

.dragBlock > p {
    overflow:hidden;
}
.dragBlock > i {
    float:left;
    width:16px;
    height:16px;
    background:#fff;
    border:solid 4px #F2B300;
    display:block;
    border-radius: 16px;
    margin:5px;
}

.compareBody {
    overflow:hidden;
}

.compareBody > .custom {
    width:50%;
    float:left;
}
.compareBody > .original {
    width:50%;
    float:right;
}

.compareHeader {
    background:url(../Images/buttons.png) -300px -240px;
    width:180px;
    color:#fff;
    text-align:center;    
    font-weight: bold;
    height: 80px;
    margin: 0 10px -60px 0;
    padding-top: 20px;
    float:right;
}

.compareBlock {
    display: inline-block;
    border-radius:30px;
    padding:20px;
    background-color:#fff;
    margin:10px;
}
.compareBlock > .scroll{
    height:370px;
}

.compareBody > .original .compareBlock {
    background-color: #ffdb45;
}

.videoTextBody {
    margin-top: 10px;
}

.videoTextBody .videoBody {
    overflow:hidden;
}

.videoTextBody .textBody {
    width:380px;
    float:right;
}

.videoTextBody .videoControl {
    display:block;
    margin:auto;
    width:600px;
    height:450px;
}

.videoTextBody .textBlock {
    display: inline-block;
    border-radius:30px;
    padding:20px;
    background-color:#fff;
    box-shadow: 0 4px 0 1px #999;
    margin:0 1px 10px;
}
.textBlock > .scroll{
    height:420px;
}

.horizontalBaloon {
    background-image:url(../Images/baloonHorizontal.png);
    width:640px;
    height:110px;
    padding:0px 13px 37px 10px; 
    color:#fff;
    text-align:center;
    display: inline-table;
    font-weight:bold;
    font-size: 14px;
}
.horizontalBaloon > p {
    display: table-cell; 
    vertical-align: middle;
}

.informationHeader {
    font-family:'Game';
    text-align:center;
    color:#b11b55;
    font-size:24px;
}

.messageBoxOverlay {
    position:absolute;
    left:0;
    right:0;
    top:0;
    bottom:0;
    background:rgba(0,0,0,0.2);
    display:none;
    z-index:500;
}

.messageBox {
    position:absolute;
    background-color:#e1b12a;
    border-radius:20px;
    border:solid 3px #e1b12a;
    display: inline-block;
    box-shadow:5px 5px 0 #555;
    z-index:100;
    overflow:hidden;
}

.messageBox .background {
    background-image:url(../Images/buttons.png);
    position:absolute;
    z-index:101;
    height:90px;
    left:0;
    right:0;
    top:0;
    background-position:0 -1332px;
}

.messageBox .close {
    background:url(../Images/buttons.png);
    position:absolute;
    right:6px;
    top:6px;
    height:20px;
    width:20px;
    z-index:103;
    background-position: 0 -1422px;
    cursor:pointer;
}

.messageBox .close:hover {
    background-position: -20px -1422px;
}

.messageBox .close:active {
    background-position: -40px -1422px;
}

.messageBox .content {
    position:relative;
    z-index:102;
    padding:20px 10px 10px 10px;
}

.messageBox > .controls {
    background-image:url(../Images/buttons.png);
    position:relative;
    z-index:103;

}

.messageBox.noClose .content {
    padding-top:10px;
}

.messageBox.noClose .close {
    display:none;
}

.messageBox .accept, .messageBox .decline {
    border:none;
    width:50%;
    padding:10px;
    text-align:center;
    float:left;
    cursor:pointer;
    color:#fff;
    font-weight:bold;
}

.messageBox .accept {
    background:#a71c58 url(../Images/buttons.png) -150px -1342px;
}

.messageBox .accept:hover {
    background-position: -150px -1338px;
}

.messageBox .accept:active {
    background-color:#850d41;
}

.messageBox .decline {
    background:#f2b300 url(../Images/buttons.png) -200px -1342px;
}

.messageBox .decline:hover {
    background-position: -200px -1338px;
}

.messageBox .decline:active {
    background-color:#e89500;
}

.messageBox.noAccept .accept {
    display:none;
}

.messageBox.noAccept .decline {
    width:100%;
}

.messageBox.noDecline .decline {
    display:none;
}

.messageBox.noDecline .accept {
    width:100%;
}

.messageBox.noAccept.noDecline .controls {
    display:none;
}

.messageBox.noPadding .content {
    padding:0;
}

.baloonText {
     text-align: center; 
     color: #fff
}

.baloonFromRightBottom, .baloonFromLeftBottom, .baloonFromLeftTop, .baloonFromRightTop {
    width:418px;
    height:275px;
    color:#fff;
    font-family: Game;
    font-size: 24px;
    height: 115px;
    text-align: center;
    width: 278px;
    position:absolute;
}

.baloonFromLeftBottom {
    background-image: url(../Images/baloonFromLeftBottom.png);
    padding: 50px 80px 110px 60px;
}

.baloonFromLeftTop {
    background-image: url(../Images/baloonFromLeftTop.png);
    padding: 120px 80px 40px 60px;
}

.baloonFromRightTop {
    background-image: url(../Images/baloonFromRightTop.png);
    padding: 120px 60px 40px 80px;
}

.baloonFromRightBottom {
    background-image: url(../Images/baloonFromRightBottom.png);
    padding: 50px 60px 110px 80px;
}

/* Information Baloon */
.infoBaloonWrapper {
    position:absolute;
    display:none;
    z-index:100;
}
.infoBaloon {
    background-color:#fff;
    border: solid 3px #777;
    border-radius: 10px;
    padding:20px 10px 10px 10px;
    color:#333;
}

.infoBaloonWrapper > .arrow {
    background-image: url(../Images/arrows.png);
    position:absolute;
    display:block;
}

.infoBaloonWrapper.infoLeftBottom {
    padding-right:27px;
}

.infoBaloonWrapper.infoLeftBottom > .arrow {
    width:30px;
    height:21px;
    background-position:-72px -51px;
    right:0;
    top:10px;
}

.infoBaloonWrapper.infoRightBottom {
    padding-left:27px;
}

.infoBaloonWrapper.infoRightBottom > .arrow {
    width:30px;
    height:21px;
    background-position:-0px -51px;
    left:0;
    top:10px;
}

.infoBaloonWrapper .close {
    background:url(../Images/buttons.png);
    position:absolute;
    right:6px;
    top:6px;
    height:20px;
    width:20px;
    z-index:103;
    background-position: -20px -1422px;
    cursor:pointer;
}


.infoBaloonWrapper.infoLeftTop .close,
.infoBaloonWrapper.infoLeftBottom .close {
    right:33px;
}

.infoBaloonWrapper .close:hover {
    background-position: -60px -1422px;
}

.infoBaloonWrapper .close:active {
    background-position: -40px -1422px;
}

.infoBaloonWrapper.noClose .close {
    display:none;
}
.infoBaloonWrapper.noClose .infoBaloon {
    padding-top:10px;
}

.videoControl {
    position:relative;
    border:solid 8px #f2b300;
    border-radius:8px;
    margin:5px auto;
    display:inline-block;
    cursor:pointer;
    background:#000;
}

.videoControl.plain {
    margin:0;
    border:0;
    border-radius:0;
}

.videoControl > p {
    background:url(../Images/level6.png);
    height:64px;
    width:64px;
    background-position:0 -32px;
    left:50%;
    top:50%;
    margin-left:-32px;
    margin-top:-32px;
    position:absolute;
    display:block;
}
.videoControl.active > p {
    background-position: 0 -96px;
    display:none;
}
.videoControl.active:hover > p {
    display:block;
}