html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video, button {
	margin: 0;
	padding: 0;
    vertical-align: baseline;
    -moz-user-select: none;
    -khtml-user-select: none;
    user-select: none;
}
body {
    background: #ffdf7c url('../img/Background.png') 50% 30%;
}

.header {
    position: relative;
    height: 36px;
    background-color: rgba(139, 125, 98, 0.794);
    border-bottom: 1px solid black;
    text-align: center;
    overflow: hidden;
}

@media all and (max-width: 1335px) {
    .header {
        width: 1335px;
    }
}

@media all and (max-width: 608px) {
    .header {
        width: 645px;
    }
}

.contacts {
    float: left;
    margin-left: 15px;
    margin-top: 4px;
}

.contacts>a>img {
    margin-right: 10px;
    transition: 0.4s;
}

.vk:hover img {
    background-color: #4973ab;
}

.gitHub:hover img {
    background-color: #231f20;
}

.title {
    top: 2px;
    font-size: 32px;
    color: #292202;
    font-family: 'Monotype Corsiva', serif;
    margin-right: 100px;
}

.marginLeft {
    float: left;
    width: 5%;
    font-size: 1px;
}

.leftScreen {
    float: left;
    padding-top: 15px;
    overflow: hidden;
}

.rightScreen {
    float: left;
    padding-top: 15px;
}

.gameBlock {
    position: relative;
    padding: 20px;
    width: 510px;
    height: 646px;
    background-color: rgba(253, 233, 193, 0.8);
    box-shadow: 0 0 5px #0000005e;
    border: 2px outset #31313167;
    float: right;
    z-index: 1;
    overflow: hidden;
}

#counters {
    display: none;
    width: 300px;
    height: 160px;
    background-color: #8b7d62;
    margin-left: 100px;
    margin-top: 480px;
    box-shadow: 0 0 5px #0000005e;
    padding-left: 20px;
    padding-top: 10px;
    color: #000000;
    font-size: 30px;
    line-height: 1.3;
    white-space: nowrap;
}

#counters2 {
    background-color: #8b7d62;
    margin-left: 100px;
    box-shadow: 0 0 5px #0000005e;
    padding-left: 20px;
    padding-top: 10px;
    color: #000000;
    font-size: 30px;
    line-height: 1.3;
}

.textCount {
    color: #4e3603;
}

.textCount2 {
    color: #91712c;
}

.click {
    width: 508px;
    height: 200px;
    background-color: #000000a4;
    position: absolute;
    opacity: 0.8;
    margin-left: 9px;
    margin-top: 240px;
    font-size: 38px;
    line-height: 200px;
    color: #eff1e9;
    text-align: center;
    cursor: pointer;
}


.kana {
    position: absolute;
    width: 316px;
    height: 239px;
    left: 138px;
    top: 39px;
    background: url(../img/Kana.png);
}

.omelet {
    position: absolute;
    width: 511px;
    height: 205px;
    left: 28px;
    top: 256px;
    background: url(../img/Omelet.png);
    -webkit-transition: all 0.3s ease;
    ;
    -moz-transition: all 0.3s ease;
    ;
    -o-transition: all 0.3s ease;
    ;
    transition: all 0.3s ease;
    cursor: pointer;
}

.omelet:hover {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

.omelet:active {
    -webkit-transform: scale(0.95);
    -ms-transform: scale(0.95);
    transform: scale(0.95);
}

.buyButtons {
    display: none;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 50px;
    height: 200px;
    background-color: #8b7d62;
    border-radius: 10px;
}

.cheatButtons {
    display: none;
    position: absolute;
    left: 10px;
    top: 10px;
    width: 105px;
    height: 200px;
    background-color: #8b7d62;
    border-radius: 10px;
}

.buyButton,
.cheatButton {
    font-size: 16px;
    padding-right: 4px;
    width: 40px;
    height: 40px;
    margin: 5px;
    cursor: pointer;
    border-radius: 10px;
    background-color: #ece8e8;
}

.buyButton:hover,
.cheatButton:hover {
    background: #cccfbb;
    color: #353030;
}

.buyButton.buttonActive {
    background: #a9ad91;
    color: #dfd9d9;
    text-shadow: 1px 0 2px #000000;
}

.rmButton {
    background: url(../img/Rosa-Mystica-icon.png) no-repeat 50% 50% #ece8e8;
}

.yakultButton {
    background: url(../img/Yakult-icon.png) no-repeat 50% 50% #ece8e8;
}

.timeButton {
    background: url(../img/time.png) no-repeat 50% 50% #ece8e8;
}

.headline {
    margin-top: 40px;
    margin-left: 50px;
    font-size: 30px;
}

.headline2 {
    margin-top: 10px;
    margin-left: 60px;
    font-size: 20px;
}

.yakultBuff {
    float: left;
    width: 150px;
    height: 200px;
    margin: 40px 0px 20px 60px;
    border: 2px outset #31313167;
    text-align: center;
    background-color: rgba(184, 171, 129, 0.808);
}

.yakultBuff>img {
    height: 135px;
    margin: 10px 0 0;
}

.yakultBuff>p {
    font-size: 18px;
    margin-top: 3px;
}

.yakultBuff:nth-child(4)>img {
    height: 135px;
    margin: 10px 0 0 -20px;

}

.yakultBuff button {
    margin-top: 3px;
    width: 100px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
}

.innerBlock {
    margin: 30px;
}

.optionsBlock {
    margin-bottom: 30px;
}

.optionsButton {
    width: 75px;
    height: 45px;
    font-size: 18px;
}

.reset {
    margin-right: 50px;
    background-color: rgb(228, 114, 114);
}

fieldset {
    margin-top: 30px;
}

.button {
    width: 320px;
    height: 230px;
    cursor: inherit;
}

.buttonText {
    margin-top: 150px;
    font-size: 28px;
    font-family: 'Times New Roman', Times, serif;
    color: #edf5d2;
    text-shadow: 0 0 7px #000000f3;
    text-align: center;
}

.hinaButton {
    background: rgba(240, 119, 169, 0.8) url(../img/hina.png) no-repeat 50% 0%;
    background-size: 100px auto;
    margin-left: 0px;
    margin-top: 0px;
    position: absolute;
}

.desuButton {
    background: rgba(65, 179, 50, 0.8) url(../img/desu.png) no-repeat 50% 0%;
    background-size: 100px auto;
    margin-left: 0px;
    margin-top: 230px;
    position: absolute;
}

.bokuButton {
    background: rgba(54, 57, 201, 0.8) url(../img/boku.png) no-repeat 50% 0%;
    background-size: 100px auto;
    margin-left: 320px;
    margin-top: 230px;
    position: absolute;
}

.shinkuButton {
    background: rgba(194, 34, 34, 0.8) url(../img/shinku.png) no-repeat 50% 0%;
    background-size: 100px auto;
    margin-left: 320px;
    margin-top: 0px;
    position: absolute;
}

.gintaButton {
    background: rgba(64, 47, 70, 0.8) url(../img/ginta.png) no-repeat 50% 0%;
    background-size: 110px auto;
    margin-left: 0px;
    margin-top: 460px;
    position: absolute;
}

.kiraButton {
    background: rgba(202, 225, 252, 0.8) url(../img/kira.png) no-repeat 50% 0%;
    background-size: 110px auto;
    margin-left: 320px;
    margin-top: 460px;
    position: absolute;
}

.baraButton {
    background: rgba(171, 109, 207, 0.8) url(../img/bara.png) no-repeat 50% 0%;
    background-size: 100px auto;
    margin-left: 0px;
    margin-top: 690px;
    position: absolute;
}

.laprasBlock {
    background: rgba(71, 71, 71, 0.8) url(../img/laplas.png) no-repeat 90% 50%;
    background-size: 100px auto;
    margin-left: 320px;
    margin-top: 690px;
    position: absolute;
    cursor: auto;
}

.dollBlock {
    background-image: none;
    cursor: auto;
}

.doll {
    left: 1px;
    bottom: 5px;
    position: absolute;
    z-index: 10;
    pointer-events: none;
}

.rightScreen div:nth-child(2n) .doll {
    left: 165px;
}

.rightScreen div:nth-child(7) .doll {
    left: -20px;
}

.progress {
    width: 102px;
    height: 16px;
    margin-top: 150px;
    margin-left: 160px;
    z-index: 5;
}

.rightScreen div:nth-child(2n) .progress {
    margin-left: 20px;
}

.upgrade {
    display: inline-block;
    position: absolute;
    margin-top: 128px;
    z-index: 5;
}

.rightScreen div:nth-child(2n) .mult {
    margin-left: 0px;
}

.lvlUp {
    left: 160px;
    top: 170px;
    font-size: 18px;
    cursor: pointer;
    position: absolute;
    width: 140px;
    height: 50px;
    z-index: 1;
}

.lvlUpNo {
    background: #7e7d7e;
    color: #b8b3b3;
}

.rightScreen div:nth-child(2n) .lvlUp {
    left: 20px;
}

.rightScreen div:nth-child(2n) .lvlUpNo {
    left: 20px;
}

.level {
    position: absolute;
    right: 12px;
    top: 6px;
    font-size: 40px;
    opacity: 0.3;
    color: #000;
    text-shadow: 0px 0px 8px #fff;
    z-index: 1;
}

.rightScreen div:nth-child(2n) .level {
    left: 12px;
}

.gintaTimer {
    position: absolute;
    top: 10px;
    left: 180px;
    font-size: 20px;
    z-index: 5;
}

#yakultProgress {
    width: 100px;
    height: 21px;
    position: absolute;
    left: -25px;
    z-index: -1;
}

.yakultValue {
    position: absolute;
    top: 35px;
    left: 180px;
    font-size: 20px;
    color: rgb(236, 234, 243);
}

#total {
    margin-top: 25px;
    margin-left: 15px;
    display: inline-block;
    font-size: 20px;
    font-family: 'Times New Roman', Times, serif;
    color: #edf5d2;
    text-shadow: 0 0 7px #000000f3;
    text-align: center;
}

#restartText {
    font-size: 22px;
    font-family: 'Times New Roman', Times, serif;
    color: #282925;
}

.restartButton {
    margin-top: 15px;
    margin-left: 20px;
    font-size: 22px;
    width: 150px;
    height: 100px;
    cursor: pointer;
    background-color: #f58c8c;
}

.icon {
    display: inline-block;
    margin-bottom: -2px;
}

.tab {
    display: block;
    position: absolute;
    margin-left: 6px;
    width: 50px;
    height: 688px;
}

.tabRM {
    display: inline-block;
    margin-left: 50px;
    margin-top: 31px;
    width: 400px;
    height: 145px;
    z-index: -5;
}

.tabRM>button {
    position: relative;
    display: inline-block;
    background-color: transparent;
    color: black;
    width: 130px;
    height: 100%;
    border: none;
    cursor: pointer;
    font-size: 17px;
    -moz-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    z-index: 500;
}

.tab>button {
    position: absolute;
    display: block;
    background-color: #ccb47c;
    color: black;
    padding: 22px 10px;
    width: 100%;
    height: 100px;
    box-shadow: -2px 0 2px #8d8a8a5e;
    border: 2px solid #31313167;
    cursor: pointer;
    transition: 0.3s;
    font-size: 17px;
    -moz-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    z-index: 500;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.tab button:nth-child(2) {
    top: 98px;
}

.tab button:nth-child(3) {
    top: 196px;
}

.tab button:nth-child(4) {
    bottom: -2px;
}

.tab button:hover,
.tabRM>button:hover {
    background-color: #e6ca92;
}

.tabRM>button:hover {
    border-bottom: 2px solid #31313167;
    height: 143px;
}

.tabRM>button.active:hover {
    border-bottom: none;
    height: 100%;
}

.tab>button.active {
    background-color: #fde7b3;
    border-right: none;
}

.tabRM>button.active {
    border: 2px solid #31313167;
    background-color: #ccb47c;
    border-bottom: none;
}

.tabcontent {
    width: 608px;
    height: 688px;
}

.tabcontentRM {
    margin-top: -3px;
    padding: 10px 20px;
    width: 354px;
    height: 325px;
    border: 2px solid #31313167;
    background-color: #ccb47c;
}

.active {
    display: block;
}

button:active,
button:focus {
    outline: none;
}

button::-moz-focus-inner {
    border: 0;
}

.tooltip {
    display: block;
    background: #f8f4b9;
    color: black;
    margin: 20px;
    padding: 16px;
    z-index: 1200;
    border-radius: 5px;
    border: 1px solid #312e05c0;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.25), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
    text-shadow: 2px 2px 2px 2px rgba(255, 255, 255, 0.5), 2px 2px 2px 2px rgba(255, 255, 255, 0.5);
    white-space: pre-wrap;
    line-height: 1;
    text-align: left;
    font-size: 18px;
}

#pops {
    position: absolute;
    left: 0px;
    top: 20px;
    z-index: 10000;
    pointer-events: none;
}

.pop {
    font-weight: bold;
    color: #46381b;
    width: 200px;
    height: 20px;
    font-size: 28px;
    text-align: center;
}

.crit {
    color: #8d1d1d;
    font-size: 38px;
}

.popSave {
    display: none;
    position: fixed;
    bottom: 50px;
    left: 50px;
    width: 150px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    font-size: 24px;
    background-color: #8b7d62;
    z-index: 1000;
    border-radius: 10px;
    transition: 1s;
    opacity: 0.9;
}

.upgradeRM {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 10px;
    border-radius: 35px;
    border: none;
}

.upgradeRM>span>img {
    position: absolute;
    top: 40px;
    left: 3px;
}

.wrapperH3 {
    text-align: center;
    width: 379px;
    height: 90px;
    margin-top: -23px;
}

.headline3 {
    font-size: 18px;
}

.rmCost {
    display: block;
    font-size: 18px;
    margin-left: 28px;
    margin-top: 6px;
}

.rmCostWrap {
    background-color: #63b45c;
    border: 1px solid #31313167;
    border-radius: 3px;
    height: 29px;
    width: 66px;
    position: absolute;
}

.upgradeRM:hover .rmCostWrap {
    background-color: #7ed177;
    margin-left: -1px;
}

.upgradeRM:hover {
    border: 1px solid #31313167;
}

.rmCostWrap:hover {
    background-color: #9feb98;
}

.rmCostWrap.rmLvlUpNo,
.rmCostWrap.rmLvlUpNo:hover,
.upgradeRM:hover .rmCostWrap.rmLvlUpNo {
    background-color: #b46e5c;
}

.upgradeRM:after {
    background-color: #1ca527;
}

.lvlUpMax,
.rmCostWrap.lvlUpMax,
.rmCostWrap.lvlUpMax:hover,
.upgradeRM:hover .rmCostWrap.lvlUpMax {
    background-color: #a38f4c;
    color: #312905;
}

.upgradeMax {
    background-color: #8d872fa9;
}

.rmCostMax {
    margin-left: 0px;
    margin-top: 3px;
}

.rmPic {
    position: absolute;
    left: 5px;
    background: url(../img/Rosa-Mystica-icon.png) no-repeat 50% 50%;
    width: 27px;
    height: 28px;
}

.titleBuff {
    font-size: 22px;
    font-weight: bold;
    color: #7a6905;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #6846073a;
}

.levelBuff {
    font-size: 20px;
    font-weight: bold;
}

#darkFon {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: #0000009d;
    z-index: 1000;
}

#alertWindow {
    display: none;
    position: fixed;
    left: 40%;
    top: 30%;
    width: 350px;
    height: 200px;
    border: 3px groove #f7fcb3;
    background-color: rgba(44, 33, 11, 0.815);
    z-index: 10000;
}

.alertWrapper {
    position: relative;
    text-align: center;
    padding: 20px;
}

#titleAlert {
    font-size: 28px;
    color: #c2c18b;
}

#textAlert {
    font-size: 20px;
    color: #e9e8c8;
    margin-top: 20px;
}

#alertButtons {
    margin-top: 20px;
}

#alertButtons>button {
    font-size: 18px;
    margin-left: 20px;
    margin-right: 20px;
    width: 45px;
    height: 35px;
    color: #eedb8f;
    background-color: #3f3406;
    border: 1px solid #eedb8f;
}

#alertButtons>button:hover {
    color: #f8f6ef;
    background-color: #574d29;
    border: 1px solid #f8f6ef;
}

#alertButtons>button:active {
    color: #c7c5bf;
    background-color: #443c21;
    border: 1px solid #c7c5bf;
}

#alertButtons.windUp>button {
    width: 115px;
    margin-left: 10px;
    margin-right: 10px;
}