
body,
html {
    font-family: 'Roboto', sans-serif;
    color: #4d4d4f;
    font-size: 18px;
    margin: 0;
    background-color: #fff;
}

h2 {
    text-transform: uppercase;
    color: #008f86;
    font-size: 40px;
    margin: 0px;
}

.buttons {
    display: none;
    padding: 10px;
}
.login {
  font-size:25px;
}
.leader {
    margin: 25px auto;
    border: solid 1px silver;
    border-right: none;
    font-weight: 100;
    width: 100%;
}

.leader thead {
    font-weight: 100 !important;
}
.prize img{
  width: 100%;
  max-width: 300px;
}

.leader th, td {
    padding: 10px 20px;
    border-right: solid 1px silver;
}

.leader thead tr th {
    border-bottom: solid 1px silver;
}

.leader td {
    vertical-align: middle;
}

.leader img {
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 10px;
}


.firstscreen {
    background: url(../img/fon.png);
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    height: 100vh;

}

.my-container {
    max-width: 900px;
}

.controll {
    display: flex;
    width: 100%;
    max-width: 1000px;
    justify-content: space-around;
}

.controll-item {
    width: 90%;
    padding: 0 10px;

}

.logo img {
    width: 80%;
}

.logo {
    margin-top: 35px;
    text-align: center;
}

.rules p {
    font-size: 23px;
}

.rules {
    padding: 20px 0 30px;
}

.item {
    padding: 20px 0 20px 40px;
}

.left-side {
    flex: 2;
    flex-direction: column;
    justify-content: space-between;
    display: flex;
}

.left-side img {
    width: 100%;
}

.right-side {
    flex: 4;
    padding: 20px 0px 20px 0;
}

.main-color {
    color: #008f86;
}

.button {
    background: #008f86;
    padding: 25px 0;
    border: none;
    color: #fff;
    display: block;
    font-size: 25px;
    width: 100%;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
}

.scores {
    margin: 0 0 100px;
}



.im2 span, .im4 span, .im8 span, .im16 span, .im32 span, .im64 span, .im128 span, .im256 span, .im512 span, .im1024 span, .im2048 span {
  display: none;
}
.im2 {
    background: url('../img/2.png')!important;
    background-size: 100%!important;
}

.im4 {
    background: url('../img/4.png')!important;
    background-size: 100%!important;
}

.im8 {
    background: url('../img/8.png')!important;
    background-size: 100%!important;
}

.im16 {
    background: url('../img/16.png')!important;
    background-size: 100%!important;
}

.im32 {
    background: url('../img/32.png')!important;
    background-size: 100%!important;
}

.im64 {
    background: url('../img/64.png')!important;
    background-size: 100%!important;
}

.im128 {
    background: url('../img/128.png')!important;
    background-size: 100%!important;
}

.im256 {
    background: url('../img/256.png')!important;
    background-size: 100%!important;
}

.im512 {
    background: url('../img/512.png')!important;
    background-size: 100%!important;
}

.im1024 {
    background: url('../img/1024.png')!important;
    background-size: 100%!important;
}

.im2048 {
    background: url('../img/2048.png')!important;
    background-size: 100%!important;
}

.loader {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1100000;
    background: #ffffffd4;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    font-size: 1.9rem;
}
.board .cell .chip {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: justify;
    font-weight: bold;
    background: url(../img/main.jpg);
    background-size:100%;
    z-index: 1;
    border-radius: 0;
    /* Hack to improve transition performance on mobile devices. It enables GPU rendering. */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.score {
    border: solid 8px #a7a9ac;
    background: #dedfe0;
    padding: 15px 10px;
    display: flex;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.score .label {
    flex: 4;
}

.score div {
    flex: 2;
}

.half-white {
    background-color: white;
    opacity: 0.7;
}

.main-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    margin: 0 auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.main-container .score-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-container .score-container .game-aim {
    font-weight: bold;
    font-size: 4em;
    text-align: center;
    color: white;
    background-color: #35495e;
    border-radius: 5% / 9%;
    width: 38%;
}

.main-container .score-container .game-aim-reached {
    text-shadow: 0 0 20px;
    animation: pulse 1s 3;
    -webkit-animation: pulse 1s 3;
    transition: text-shadow 3s;
    -webkit-transition: -webkit-text-shadow 3s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@-webkit-keyframes pulse {
    0% {
        -webkit-transform: scale(1)
    }

    50% {
        -webkit-transform: scale(1.1)
    }

    100% {
        -webkit-transform: scale(1)
    }
}

.main-container .score-container .scores {
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    width: 50%;
}

.main-container .score-container .scores .score {
    position: relative;
    text-align: center;
    color: white;
    background-color: #9aa4af;
    border-radius: 5%/ 8%;
    width: 50%;
    padding-top: 2%;
}

.main-container .score-container .scores .score .score-inc {
    position: absolute;
    left: 0;
    color: #2c3e50;
    width: 100%;
    animation: up-disappear 1.5s;
    -webkit-animation: up-disappear 1.5s;
}

.main-container .score-container .scores .score .label {
    color: white;
    font-size: 1rem;
}


.main-container .game-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.main-container .game-controls .button {
    background-color: #35495e;
    border: none;
    border-radius: 5% / 9%;
    width: 25%;
    height: 75%;
    color: white;
    outline: none;
    font-weight: bold;
    overflow: hidden;
    cursor: pointer;
    animation: appearing 0.5s;
    -webkit-animation: appearing 0.5s;
}

.main-container .game-controls .size-control {
    width: 75%;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: appearing 0.5s;
    -webkit-animation: appearing 0.5s;
}

.main-container .game-controls .size-control input[type=radio]:not(checked) {
    position: absolute;
    opacity: 0;
}

.main-container .game-controls .size-control input[type=radio] + label {
    cursor: pointer;
    border: 5px solid #35495e;
    height: 30px;
    width: 30px;
    display: inline-flex;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    position: relative;
    vertical-align: middle;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    -webkit-transition: -webkit-background-color 0.3s, -webkit-color 0.3s;
}

.main-container .game-controls .size-control input[type=radio]:checked + label {
    background: #41b883;
    color: white;
}

.main-container .game-container {
    position: relative;
}

.main-container .game-container .overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-container .game-awards-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 2%;
}

.main-container .game-awards-container .award {
    border-radius: 15% / 50%;
    text-align: center;
    font-size: 1.2em;
}

.main-container .game-awards-container .award .like {
    width: 25%;
    top: 2px;
    position: relative;
}

.main-container .game-awards-container .award-not-obtained {
    color: #dee8ff;
    background-color: #9aa4af;
    fill: #dee8ff;
}

.main-container .game-awards-container .award-obtained {
    color: white;
    text-shadow: 0px 0px 4px orange;
    background: linear-gradient(to top right, gold, yellow);
    box-shadow: 0 2px 4px 0 black;
    fill: white;
    filter: drop-shadow(-1px -1px 0 orange);
}

.main-container .collect-all-awards {
    text-align: center;
    width: 100%;
    opacity: 0;
    margin-top: 4px;
}

.main-container .collect-all-awards span {
    border: 1px solid #2c3e50;
    border-radius: 7% / 50%;
    padding: 0 3px 0 3px;
}

.game-over {
    font-weight: bold;
    text-align: center;
    font-size: 1.9rem;
}

.appearing {
    animation: appearing 1s;
    -webkit-animation: appearing 1s;
}

.appearing07 {
    animation: appearing07 1s;
    -webkit-animation: appearing07 1s;
}

@keyframes appearing {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-webkit-keyframes appearing {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes up-disappear {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 0;
        transform: translateY(-40px);
    }
}

@-webkit-keyframes up-disappear {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 0;
        -webkit-transform: translateY(-40px);
    }
}

@keyframes appearing07 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 0.7;
    }
}

@-webkit-keyframes appearing07 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 0.7;
    }
}

.board {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: space-around;
    background-color: #a7a9ac;
    outline: none;
    margin: 0 auto;
}

.board .cell {
    background-color: #dedfe0;
    position: relative;
    border-radius: 0;
}
.board .cell .chip span{
    font-size: 0.77em;
    bottom: 0;
    right: 5px;
    position: absolute;
    line-height: 1;
    color:#fff;
}

@keyframes chip-value-changed {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@-webkit-keyframes chip-value-changed {
    0% {
        -webkit-transform: scale(1);
    }

    50% {
        -webkit-transform: scale(1.2);
    }

    100% {
        -webkit-transform: scale(1);
    }
}

@keyframes chip-appear {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@-webkit-keyframes chip-appear {
    0% {
        -webkit-transform: scale(0);
    }

    100% {
        -webkit-transform: scale(1);
    }
}

@keyframes collect-all-awards {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    60% {
        transform: translateY(20px);
        opacity: 0;
    }

    65% {
        opacity: 1;
        transform: translateY(0);
    }

    78% {
        transform: translateX(0);
        opacity: 1;
    }

    79% {
        transform: translateX(5px);
        opacity: 1;
    }

    80% {
        transform: translateX(-5px);
        opacity: 1;
    }

    81% {
        transform: translateX(5px);
        opacity: 1;
    }

    82% {
        transform: translateX(-5px);
        opacity: 1;
    }

    83% {
        transform: translateX(5px);
        opacity: 1;
    }

    84% {
        transform: translateX(-5px);
        opacity: 1;
    }

    85% {
        transform: translateX(5px);
        opacity: 1;
    }

    86% {
        transform: translateX(-5px);
        opacity: 1;
    }

    87% {
        transform: translateX(5px);
        opacity: 1;
    }

    88% {
        transform: translateX(-5px);
        opacity: 1;
    }

    89% {
        transform: translateX(0);
        opacity: 1;
    }

    99% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateY(20px);
        opacity: 0
    }
}

@-webkit-keyframes collect-all-awards {
    0% {
        opacity: 0;
        -webkit-transform: translateY(20px);
    }

    60% {
        -webkit-transform: translateY(20px);
        opacity: 0;
    }

    65% {
        opacity: 1;
        -webkit-transform: translateY(0);
    }

    78% {
        -webkit-transform: translateX(0);
        opacity: 1;
    }

    79% {
        transform: translateX(5px);
        opacity: 1;
    }

    80% {
        -webkit-transform: translateX(-5px);
        opacity: 1;
    }

    81% {
        -webkit-transform: translateX(5px);
        opacity: 1;
    }

    82% {
        -webkit-transform: translateX(-5px);
        opacity: 1;
    }

    83% {
        -webkit-transform: translateX(5px);
        opacity: 1;
    }

    84% {
        -webkit-transform: translateX(-5px);
        opacity: 1;
    }

    85% {
        transform: translateX(5px);
        opacity: 1;
    }

    86% {
        -webkit-transform: translateX(-5px);
        opacity: 1;
    }

    87% {
        -webkit-transform: translateX(5px);
        opacity: 1;
    }

    88% {
        -webkit-transform: translateX(-5px);
        opacity: 1;
    }

    89% {
        -webkit-transform: translateX(0);
        opacity: 1;
    }

    99% {
        -webkit-transform: translateX(0);
        opacity: 1;
    }

    100% {
        -webkit-transform: translateY(20px);
        opacity: 0
    }
}

.gobut {
    display: flex;
}

.gobut .button{
    margin-right: 15px;
}

@media screen and (max-width: 950px) {
    /* ÑÑ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ð±Ð¾Ð»ÑŒÑˆÐ¸Ñ… Ð¿Ð»Ð°Ð½ÑˆÐµÑ‚Ð¾Ð² - Ð½Ð°Ñ‡Ð°Ð»Ð¾ */
    .main-container {
        flex-direction: column;
    }
    .item {
        padding: 0 10px !important;
    }

    .right-side {
        padding: 0 0 20px!important;
        /*padding: 0 20px 20px !important;*/
    }

    .scores {
        display: flex;
        margin: 10px 0px 0px !important;
    }

    .score {
        width: 100%;
    }

    .login {
        display: none;
    }

    .left-side button {
        display: none;
    }
    .buttons {
        display: block!important;
    }
}

@media screen and (max-width: 767px) {
    /* ÑÑ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ ÑÑ€ÐµÐ´Ð½Ð¸Ñ… Ð¿Ð»Ð°Ð½ÑˆÐµÑ‚Ð¾Ð² - Ð½Ð°Ñ‡Ð°Ð»Ð¾ */
    .firstscreen {
        background: none;
    }
    .firstscreen .controll {
        flex-wrap: wrap;
    }
    .firstscreen .controll .button {
        margin-bottom: 15px;
    }

    .firstscreen .controll .controll-item {
        width: 100%;
        padding: 0;
    }

    .rules p {
        font-size: 20px;
    }
    .rules {
        padding: 0;
    }
    .logo {
        margin-top: 0;
    }

}

@media screen and (max-width: 479px) {
    /* ÑÑ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ñ‚ÐµÐ»ÐµÑ„Ð¾Ð½Ð¾Ð² - Ð½Ð°Ñ‡Ð°Ð»Ð¾ */
    .mdesc {
        font-size: 19px!important;
        margin: 15px 10px;
    }
    .score {
        border: solid 5px #a7a9ac;
        padding: 7px 5px;
        margin-bottom:0;

    }

    .score:first-child {
        margin-right: 5px;
    }

    .gobut {
        display: block;
    }

    .gobut .button{
        margin-bottom: 15px;
    }
    .button {
        padding: 15px 0;
    }
    .table {
        padding: 15px 10px!important;
        font-size: 15px;
    }

    .leader th, td {
        padding: 5px 15px;
    }

    .table h2 {
        margin-bottom: 25px;
    }

    .logo img {
    width: 100%;
    }

  }
