* {
    padding: 0;
    margin: 0;
}

/* важное: тело и html на всю высоту окна */
html, body {
    width: 100%;
    height: 100%;
}

body {
    color: #fff;
    overflow: hidden;
    -ms-touch-action: none;
}

.loader {
    position: absolute;
    top: 50%;                 /* вместо 350px — середина по вертикали */
    left: 50%;
    margin-left: -80px;
    transform: translateY(-50%); /* поднимаем на половину высоты элемента */

    line-height: 25px;
    color: #7129a7;
    font-family: "MainFont";
    font-size: 22px;
    font-weight: 700;
    display: none;
    z-index: -1000;
    /*overflow: hidden;*/
}


.click-me {
    position: absolute;
    top: 350px;
    left: 50%;
    margin-left: -130px;
    line-height: 25px;
    color: #7129a7;
    font-family: "MainFont";
    font-size: 25px;
    font-weight: 700;
    z-index: 10;
    text-decoration: underline;
    -webkit-animation-name: thumb;
    -webkit-animation-duration: 700ms;
    -webkit-transform-origin:50% 50%;
    -webkit-animation-iteration-count: 999;
    -webkit-animation-timing-function: linear;
    display: none;
    cursor: pointer;
}

@-webkit-keyframes thumb {
    0% { -webkit-transform: scale(1); }
    50% { -webkit-transform: scale(0.9); }
    100% { -webkit-transform: scale(1); }
}

.loader:after {
    line-height: 20px;
    padding: 1px 0 0 3px;
    content: ".......................";
    display: none;
    overflow: hidden;
    color: #7129a7;
    font-family: "MainFont";
    font-size: 22px;
    font-weight: 700;
    width: 0;
    -webkit-animation: loading 1s linear infinite;
}

.loader.loading {
    display: inline-block;
}

.loader.loading:after {
    display: inline-block;
}

@-webkit-keyframes loading {
    0% { width: 0;}
    100% { width: 3em;}
}

html {
    /* background: rgb(249, 242, 185); */ 
}

html.vk {
    /*background: rgb(249, 242, 185) url("assets/sprites/BackTextureSmall.jpg");*/
}

html.ok {
    /*background: rgb(249, 242, 185) url("assets/sprites/BackTextureSmall.jpg");*/
}

#gameDiv {
    border-bottom: 1px solid #ccc;
    z-index: 10;
}

canvas {
    touch-action-delay: none;
    touch-action: none;
    -ms-touch-action: none;
}

@font-face {
    font-family: 'MainFont';
    src: url('assets/fonts/main.eot');
    src: url('assets/fonts/main.eot?#iefix') format('embedded-opentype'),
         url('assets/fonts/main.woff2') format('woff2'),
         url('assets/fonts/main.woff') format('woff'),
         url('assets/fonts/main.ttf') format('truetype'),
         url('assets/fonts/main.svg#CooperBlackCBT') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* тут главное изменение: div под игру растягиваем на всё окно */
#gameDiv {
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: default;
    margin: 0 auto;
    z-index: 10;
}

/* "техработы" — тоже на всё окно, картинка центр, с сохранением пропорций */
#technicalWorks {
    display: none;
    top: 0;
    left: 0;
    position: fixed;
    background: url("assets/sprites/TechnicalWorks.jpg") center center no-repeat;
    background-size: contain;
    width: 100%;
    height: 100%;
    cursor: default;
    margin: 0;
    z-index: 5;
}

#bottomMenu {
    padding: 5px 0 0 0;
}

.fb .bottomMenuGroup {
    margin-left: 110px;
}

.bottomMenuHelp,
.bottomMenuGroup {
    background: url('assets/sprites/bottom_menu/2ButtonMenuSmall.png') no-repeat;
    width: 129px;
    height: 47px;
    line-height: 38px;
    float: left;
    font-family: 'MainFont';
    font-size: 13px;
    color: #f6f6f6;
    text-align: center;
    font-weight: bold;
    text-shadow:
        2px 2px 0 #4b7b1d,
       -1px -1px 0 #4b7b1d,
        1px -1px 0 #4b7b1d,
       -1px  1px 0 #4b7b1d,
        1px  1px 0 #4b7b1d;
    background-position: 0 -47px;
}

.bottomMenuHelp:hover,
.bottomMenuGroup:hover {
    background-position: 0 0;
}

.bottomMenuHelp:active,
.bottomMenuGroup:active {
    background-position: 0 -94px;
}

.bottomMenuAddMenu {
    background: url('assets/sprites/bottom_menu/2ButtonMenuBig.png') no-repeat;
    width: 201px;
    height: 47px;
    line-height: 38px;
    text-align: center;
    float: left;
    font-family: 'MainFont';
    font-size: 13px;
    color: #f6f6f6;
    text-shadow:
        2px 2px 0 #4b7b1d,
       -1px -1px 0 #4b7b1d,
        1px -1px 0 #4b7b1d,
       -1px  1px 0 #4b7b1d,
        1px  1px 0 #4b7b1d;
    font-weight: bold;
    background-position: 0 -47px;
}

.bottomMenuAddMenu:hover {
    background-position: 0 0;
}

.bottomMenuAddMenu:active {
    background-position: 0 -94px;
}

.bottomMenuLike {
    width: 180px;
    height: 30px;
    padding-top: 7px;
    float: left;
}

.bottomMenuShare {
    width: 180px;
    height: 30px;
    padding-top: 8px;
    float: left;
}

.bottomMenu {
    margin: 0 10px;
}

.bottomMenu:hover {
    cursor: pointer;
}

.bottomMenu:target {
    cursor: pointer;
}

#ok_shareWidget {
    margin: -4px;
}
