@CHARSET "UTF-8";
@font-face {
    font-family: 'ProximaNova-Regular';
    src: url(http://stcdn1.luxnet.ua/tv24/assets/fonts/ProximaNova/Regular/mark_simonson_-_proxima_nova_regular-webfont.eot);
    src: url(http://stcdn1.luxnet.ua/tv24/assets/fonts/ProximaNova/Regular/mark_simonson_-_proxima_nova_regular-webfont.eot?#iefix) format("embedded-opentype"), url(http://stcdn1.luxnet.ua/tv24/assets/fonts/ProximaNova/Regular/mark_simonson_-_proxima_nova_regular-webfont.woff) format("woff"), url(http://stcdn1.luxnet.ua/tv24/assets/fonts/ProximaNova/Regular/mark_simonson_-_proxima_nova_regular-webfont.ttf) format("truetype"), url(../fonts/ProximaNova/Regular/mark_simonson_-_proxima_nova_regular-webfont.svg#proximanovaregular) format("svg");
    font-weight: 400;
    font-style: normal
}


/*@font-face {*/
    /*font-family: ProximaNovaBold;*/
    /*src: url(http://stcdn1.luxnet.ua/tv24/assets/fonts/ProximaNova/Bold/mark_simonson_-_proxima_nova_bold-webfont.eot);*/
    /*src: url(http://stcdn1.luxnet.ua/tv24/assets/fonts/ProximaNova/Bold/mark_simonson_-_proxima_nova_bold-webfont.eot?#iefix) format("embedded-opentype"), url(../fonts/ProximaNova/Bold/mark_simonson_-_proxima_nova_bold-webfont.woff) format("woff"), url(../fonts/ProximaNova/Bold/mark_simonson_-_proxima_nova_bold-webfont.ttf) format("truetype"), url(../fonts/ProximaNova/Bold/mark_simonson_-_proxima_nova_bold-webfont.svg#proximanovabold) format("svg");*/
    /*font-weight: 400;*/
    /*font-style: normal*/
/*}*/


body {
    margin: 0;
    padding: 0;
    font-family: 'ProximaNova-Regular', sans-serif !important;
    -webkit-tap-highlight-color: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

ul, menu, dir {
    display: block;
    list-style-type: none;
    -webkit-margin-before: 0em;
    -webkit-margin-after: 0em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    -webkit-padding-start: 0px;
    -webkit-margin-before: 0em;
}

h1 {
    font-size: 40pt;
    display: block;
    float: right;
    padding-right: 15px;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 0px;
}

header a {
    color: black;
}

h3 {
    font-size: 26px;
    -webkit-margin-before: 1em;
    -webkit-margin-after: 15px;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    font-weight: bold;
    margin: 0px 0px 10px;
}

a {
    text-decoration: none;
}

button {
    min-width: 130px;
    margin: 4px 3px;
    padding: 12px 15px;
    border: 1px solid #D0112B;
    background: #fff;
    color: #D0112B;
    font-size: 14px;
    -webkit-transition: all, 0.2s ease-in-out;
    -moz-transition: all, 0.2s ease-in-out;
    -ms-transition: all, 0.2s ease-in-out;
    -o-transition: all, 0.2s ease-in-out;
    transition: all, 0.2s ease-in-out;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;

}

button:hover {
    background: #D0112B;
    color: #fff;
}

button:active {
    opacity: .8;
}

button:focus {
    outline: 0;
}

#wrapper {
    width: 500px;
    margin: 0px auto;
}

#menu img {
    width: 60px;
    margin-right: 15px;
    cursor: pointer;
}

#info-box {
    text-align: center;
    margin: 0 auto;
}

#options {
    clear: both;
    text-align: right;
    position: relative;
    padding: 15px;
}

#next-tile {
    width: 150px;
    height: 200px;
    /*border-radius: 5px;*/
    background-color: rgba(158, 170, 255, 0.37);
    float: left;
    margin-left: 23px;
}

#score-point, #timepoint {
    width: 100px;
    height: 42px;
    top: 10px;
    position: relative;
    background-color: #f5f5f5;
    display: inline-block;
}

.text {
    display: block;
    text-align: center;
    padding-top: 4px;
    font-weight: bold;
    font-size: 16px;
}

.num {
    display: block;
    text-align: center;
    font-size: 14px;
}

#play-box {
    clear: both;
    height: 500px;
    width: 500px;
    margin: 10px auto 40px auto;
    background: #d7d7d7;
}

#grid {
    width: 100%;
    height: 100%;
    position: relative;
}

.row {
    height: 115px;
}

#overlay-options {
    display: none;
}

.row .grid-cell {
    width: 103px;
    height: 103px;
    float: left;
    margin: 6px;
    background-color: rgba(255, 255, 255, 0.3);
    /*border-radius: 10px;*/
}

#cells-container {
    padding: 20px;
}

#tiles-container {
    position: absolute;

}

#tiles-container div {
    -webkit-transition: 0.3s ease-in-out !important;
    -moz-transition: 0.3s ease-in-out !important;
    -ms-transition: 0.3s ease-in-out !important;
    -o-transition: 0.3s ease-in-out !important;
    transition: 0.3s ease-in-out !important;
}

.tile {
    position: absolute;
    background-color: #f5f5f5;
    width: 103px;
    height: 103px;
    line-height: 105px;
    text-align: center;
    font-weight: bold;
    font-size: 30pt;
    cursor: pointer;
    display: none;
    /*border-radius: 10px;*/
    /*-webkit-box-shadow:  0 0 0 rgba(0,0,0,0.3);*/
    /*-moz-box-shadow:  0 0 0 rgba(0,0,0,0.3);*/
    /*box-shadow:  0 0 0 rgba(0,0,0,0.3);*/

    transition-property: transform;
    transition-duration: 0.5s;
    -webkit-transition-property: transform;
    -webkit-transition-duration: 0.5s;
}

/*.tile:HOVER {*/
/*-webkit-box-shadow:  0 1px 5px rgba(0,0,0,0.6);*/
/*-moz-box-shadow:  0 1px 5px rgba(0,0,0,0.6);*/
/*box-shadow:  0 1px 5px rgba(0,0,0,0.6);*/
/*}*/

#overlay, #overlay-layer {
    width: 460px;
    height: 460px;
    padding: 20px;
    position: absolute;
    z-index: 100;
    background: #D0112B;
    opacity: .9;
    /*border-radius: 10px;*/
}

#overlay-play, #overlay-paused {
    color: white;
    font-size: 40px;
    margin: 193px auto;
    width: 186px;
    vertical-align: middle;
    border: 1px solid;
    padding: 5px 30px;
    text-align: center;
    cursor: pointer;
}

#overlay-message {
    color: white;
    width: 400px;
    cursor: default;
    font-size: 18px;
    margin: 140px auto 10px;
}

#overlay-submessage {
    cursor: default;
    color: white;
    font-size: 20px;
    margin-top: 40px

}

#overlay-play:HOVER, #overlay-paused:HOVER {
    opacity: 0.8;
}

#overlay-paused {
    display: none;
    width: 274px;
}

#overlay-inner {
    width: 100%;
    height: 100%;
    text-align: center;
    display: none;
}

#menu img:HOVER {
    opacity: 0.8;
}

#instructions {
    width: 500px;
    margin: 40px auto 0px auto;
    font-size: 18pt;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.23);
}

footer {
    width: 500px;
    margin: 40px auto 40px auto;
    font-size: 18pt;
    text-align: center;
}

h4 {
    font-size: 20pt;
    margin-bottom: 15px;
}

#best-scores-box, #last-challenges-box {
    width: 500px;
    margin: 30px auto 0px auto;
    font-size: 18pt;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.23);
    position: relative;
}

#best-scores li {
    position: relative;
}

#best-scores li img {
    width: 22px;
    position: absolute;
    left: -25px;
    top: 0px;
}

#play-box {
    position: relative;
}

#best-scores .name {
    margin-left: 10px;
    margin-right: 10px;
    width: 180px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.challenge-name {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    width: 80px;
    margin: 0px auto;
}

img#refresh-icon {
    position: absolute;
    width: 30px;
    top: 11px;
    right: 75px;
    cursor: pointer;
}

img#challenge-loader {
    width: 50px;
    margin-top: 15px;
}

#refresh-icon:HOVER {
    opacity: 0.7;
}

#best-scores .moves {
    margin-left: 10px;
    width: 75px;
    text-align: center;
}

input#name-input-field {
    padding: 5px;
    font-family: CeliaGarcia;
    /*border-radius: 10px;*/
    border: none;
    font-size: 20pt;
}

input {
    outline: none;
}

.input-button {
    width: 56px;
    font-size: 15pt;
    padding: 8px;
    background-color: rgba(63, 126, 5, 0.6);
    /*border-radius: 10px;*/
    color: white;
    float: left;
    margin: 15px 16px 0px 16px;
    cursor: pointer;
    text-align: center;
}

.input-button:HOVER {
    opacity: 0.7 !important;
}

#name-input-box {
    position: absolute;
    background-color: #D4D17C;
    top: 185px;
    left: 126px;
    /*border-radius: 10px;*/
    padding: 20px;
    width: 210px;
    display: none;
    z-index: 1000;
}

#best-scores .position {
    width: 20px;
    text-align: center;
    font-weight: bold;
}

#best-scores .time {
    width: 80px;
    text-align: center;
}

#best-scores li {
    position: relative;
    height: 25px;
    margin-bottom: 10px;
    margin-left: 26px;
}

#best-scores li div {
    float: left;
}

#overlay-buttons .input-button {
    margin: 30px 20px 0px 97px;
    background-color: #C0CA4C;
    color: #161616;
    font-weight: bold;
    padding: 10px;
}

#overlay-layer {
    display: none;
    top: 0px;
    left: 0px;
    background-color: rgba(0, 0, 0, 0.66);
}

#best-scores, #last-challenges {
    margin-top: 60px;
    padding-left: 0px;
    overflow: auto;
    height: 180px;
}

#last-challenges li {
    height: 40px;
    position: relative;
}

#last-challenges {
    height: auto;
    max-height: 180px;
    margin-top: 25px;
}

#view-all-challenges {
    display: block;
    position: absolute;
    top: 56px;
    right: 70px;
    font-size: 15pt;
    cursor: pointer;
    color: #068023;
}

#view-all-challenges:HOVER {
    color: rgba(6, 128, 35, 0.72);
}

.player-1, .player-2 {
    float: left;
    width: 47%;
}

.player-2 #medal {
    top: 2px;
    right: 5px;
}

.player-1 #medal {
    top: 2px;
    left: 5px;
}

#last-challenges .challenge-score {
    float: left;
    font-size: 18pt;
    width: 32px;
}

.player-2 .challenge-score {
    margin-left: 37px;
}

#last-challenges #medal {
    width: 23px;
    position: absolute;
}

#last-challenges #versus {
    margin: 0px;
    font-weight: bold;
}

#last-challenges .challenge-name {
    margin: 0px 0px 0px 37px;
    float: left;
    width: 127px;
    text-align: center;
}

#last-challenges .player-2 .challenge-name {
    margin: 0px;
}

#loader, #clg-loader {
    display: block;
    width: 50px;
    margin: 25px auto;
}

#time-label {
    position: absolute;
    top: -30px;
    left: 268px;
    font-weight: bold;
    font-size: 13pt;
}

#score-label {
    position: absolute;
    top: -30px;
    left: 420px;
    font-weight: bold;
    font-size: 13pt;
}

#best-scores .score {
    width: 60px;
    text-align: center;
}

#moves-label {
    position: absolute;
    top: -30px;
    left: 348px;
    font-weight: bold;
    font-size: 13pt;
}

#view-all-scores {
    display: block;
    position: absolute;
    top: 90px;
    left: 20px;
    font-size: 15pt;
    cursor: pointer;
    color: #068023;
}

#view-all-scores:HOVER {
    color: rgba(6, 128, 35, 0.72);
}

.scrollable {
    position: relative;
}

#options-inner {
    display: none;
    height: 150px;
    text-align: center;
    font-size: 20pt;
    margin: 15px auto 0px auto;
}

div#match-row {
    font-size: 18pt;
}

#new-challenge:HOVER, #resume-challenge-button:HOVER {
    opacity: 0.8;
}

#challenge-details {
    display: none;
    height: 120px;
    text-align: center;
    font-size: 20pt;
    position: relative;
    width: 480px;
    margin: 15px auto 0px auto;
    padding: 10px;
    /*border-radius: 10px;*/
}

#game-mode {
    position: absolute;
    font-size: 14pt;
    padding: 8px;
    top: 20px;
    left: 270px;
}

#buttons-error-message {
    position: absolute;
    top: 38px;
    left: 40px;
    color: white;
    width: 164px;
    height: 40px;
    display: none;
    background-color: rgba(0, 41, 68, 1);
    border-radius: 5px;
    font-weight: bold;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    font-size: 18pt;
}

#game-mode b {
    font-size: 20pt;
}

.disabled {
    opacity: 0.2;
}

#new-challenge-box {
    display: none;
    width: 500px;
    margin: 15px auto;
    height: 127px;
}

#challenge-intro {
    font-size: 18pt;
    margin-bottom: 20px;
}

#options-inner h3 {
    -webkit-margin-before: 0px;
}

/* Directions */
.move-left {
    transform: translate(-115px, 0px);
    -webkit-transform: translate(-115px, 0px);
}

.move-right {
    transform: translate(115px, 0px);
    -webkit-transform: translate(115px, 0px);
}

.move-up {
    transform: translate(0px, -115px);
    -webkit-transform: translate(0px, -115px);
}

.move-down {
    transform: translate(0px, 115px);
    -webkit-transform: translate(0px, 115px);
}

#tile-1 {
    background-image: url("../img/premiers-15/01_premier.png");
    background-size: contain;
    color: transparent;
}

#tile-2 {
    background-image: url("../img/premiers-15/02_premier.png");
    background-size: contain;
    color: transparent;
}

#tile-3 {
    background-image: url("../img/premiers-15/03_premier.png");
    background-size: contain;
    color: transparent;
}

#tile-4 {
    background-image: url("../img/premiers-15/04_premier.png");
    background-size: contain;
    color: transparent;
}

#tile-5 {
    background-image: url("../img/premiers-15/05_premier.png");
    background-size: contain;
    color: transparent;
}

#tile-6 {
    background-image: url("../img/premiers-15/06_premier.png");
    background-size: contain;
    color: transparent;
}

#tile-7 {
    background-image: url("../img/premiers-15/07_premier.png");
    background-size: contain;
    color: transparent;
}

#tile-8 {
    background-image: url("../img/premiers-15/08_premier.png");
    background-size: contain;
    color: transparent;
}

#tile-9 {
    background-image: url("../img/premiers-15/09_premier.png");
    background-size: contain;
    color: transparent;
}

#tile-10 {
    background-image: url("../img/premiers-15/10_premier.png");
    background-size: contain;
    color: transparent;
}

#tile-11 {
    background-image: url("../img/premiers-15/11_premier.png");
    background-size: contain;
    color: transparent;
}

#tile-12 {
    background-image: url("../img/premiers-15/12_premier.png");
    background-size: contain;
    color: transparent;
}

#tile-13 {
    background-image: url("../img/premiers-15/13_premier.png");
    background-size: contain;
    color: transparent;
}

#tile-14 {
    background-image: url("../img/premiers-15/14_premier.png");
    background-size: contain;
    color: transparent;
}

#tile-15 {
    background-image: url("../img/premiers-15/15_premier.png");
    background-size: contain;
    color: transparent;
}

@media screen and (max-width: 500px) {
    body {
        padding: 20px;
        margin: 0px;
    }

    #wrapper {
        width: 280px;
        margin: 0 auto;
    }

    #info-box {
        float: left;
        margin: 0 0 21px 0;
        position: relative;
    }

    #score-point, #timepoint {
        width: 85px;
        margin: -20px 10px 18px 30px;
    }

    #start-button {

    }

    #reset-button {

    }

    h1 {
        font-size: 30pt;
        margin-top: 0px;
        padding-right: 0px;
        float: none;
        display: inline-block;
        margin-bottom: 15px;
    }

    header {
        text-align: center;
    }

    #play-box {
        height: 280px;
        width: 280px;
    }

    #cells-container {
        padding: 10px;
    }

    .row {
        height: 65px;
    }

    .row .grid-cell {
        width: 53px;
        height: 53px;
    }

    .tile {
        width: 53px;
        height: 53px;
        line-height: 53px;
        font-size: 20pt;
    }

    #overlay, #overlay-layer {
        width: 240px;
        height: 240px;
    }

    #overlay-play, #overlay-paused, #overlay-message {
        font-size: 24px;
        margin: 75px auto;
        width: 145px;
    }

    #overlay-paused {

    }

    #best-scores-box, #instructions, footer, #last-challenges-box {
        width: 280px;
        clear: both;
    }

    #view-all-scores {
        top: 104px;
        left: initial;
        right: 20px;
    }

    #best-scores .name {
        width: 54px;
    }

    #best-scores .time {
        width: 55px;
    }

    #best-scores .score {
        width: 42px;
    }

    #best-scores .moves {
        width: 42px;
    }

    #time-label {
        left: 130px;
        top: -25px;
    }

    #moves-label {
        left: 180px;
        top: -25px;
    }

    #score-label {
        left: 227px;
        top: -25px;
    }

    #score-label, #moves-label, #time-label {
        font-size: 10pt;
    }

    #best-scores li img {
        width: 15px;
        top: 5px;
        left: -15px;
    }

    #best-scores li, #best-challenges li {
        margin-left: 20px;
    }

    h3 {
        font-size: 22pt;
    }

    #instructions {
        text-align: justify;
        margin-top: 20px;
    }

    #overlay-message {
        width: 238px;
        font-size: 20px;
        margin: 20px auto;
    }

    #overlay-submessage {
        font-size: 14px;
    }

    #overlay-buttons .input-button {
        margin: 30px 20px 0px 23px;
    }

    #name-input-box {
        top: 70px;
        left: 16px;
    }

    #options, #last-challenges-box {
        display: none;
    }
}