﻿* {
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    color: white;
}

body {
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 100%;
    background-color: #1b7073;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Chrome/Safari/Opera */
    -khtml-user-select: none; /* Konqueror */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: transparent; /* For some Androids */
    background-color: #1b7073;
    overflow: hidden;
    -ms-touch-action: none;
    -webkit-overflow-scrolling: touch;
    background-color: #356f9e;
    background-image: url("images/grunge-img.png");
}

html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-family: 'Patrick Hand SC', Arial;

}


button, input {
    background-color: #895f8a;
    background-image: url("images/mocha-grunge.png");
    touch-action: manipulation;
}

.webp-ok button, .webp-ok input {
    background-color: #895f8a;
    background-image: url("images/mocha-grunge.webp");
}
 body.webp-ok {
        background-image: url("images/grunge-img.webp");
    } 

.header-info {
    position: absolute;
    top: 15px;
    left: 25px;
    height: 80px;
    width: calc(100% - 40px);
}

    .header-info #avatarIcon {
        position: relative;
        float: left;
        width: 60px;
        height: 60px;
        border: 2px solid #41403E;
        border-radius: 30px;
        cursor: pointer;
    }

    .header-info #username {
        position: relative;
        float: left;
        color: gold;
        height: 30px;
        margin-left: 10px;
        font-size: 28px;
        font-weight: bold;
        max-width: calc(100% - 120px);
        text-overflow: ellipsis;
        overflow: hidden;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-info .info {
        position: relative;
        float: left;
        height: 60px;
        width: calc(100% - 60px);
    }

        .header-info .info .row {
            position: relative;
            float: left;
            width: 100%;
            height: 30px;
            line-height: 30px;
        }

.homeButtons {
    position: relative;
    float: left;
    width: 100%;
    height: calc(100% - 100px);
    margin-top: 100px;
    padding: 20px;
}

    .homeButtons .topButtons, .homeButtons .bottomButtons {
        position: relative;
        float: left;
        width: 100%;
        height: calc(30% - 20px);
        margin-bottom: 20px;
    }

    .homeButtons .topButtons {
        margin-bottom: 20px;
    }

    .homeButtons .middleButtons {
        position: relative;
        float: left;
        width: 100%;
        height: 40%;
        margin-bottom: 20px;
    }

    .homeButtons .homeButton#openDailyChallenge {
        width: 100%;
        max-width: 100%;
    }

        .homeButtons .homeButton#openDailyChallenge .center {
            transform: none;
        }

        .homeButtons .homeButton#openDailyChallenge .outerCenter {
            height: 100%;
        }

    .homeButtons .homeButton {
        position: relative;
        float: left;
        height: 100%;
        width: 48%;
    }

        .homeButtons .homeButton:nth-child(2n) {
            margin-left: 4%;
        }

    .homeButtons .bottomButtons .homeButton {
        position: relative;
        float: left;
        height: 100%;
        width: 44%;
    }

        .homeButtons .bottomButtons .homeButton:nth-child(2n) {
            margin-left: 12%;
        }

.homeButton#practiceDraw .outerCenter {
    padding-right: 20px;
}

.homeButton#startQuickGuessGame .outerCenter {
    padding-left: 20px;
}

.homeButton .outerCenter {
    float: right;
    right: 50%;
    position: relative;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.homeButton .center {
    z-index: 100;
    cursor: pointer;
    position: relative;
    float: left;
    height: 100%;
    border: 2px solid white;
    padding: 10px;
    box-shadow: 5px 5px 8px 5px rgba(0,0,0,0.25);
    background-color: rgba(0,0,0,0.25);
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    transform: rotate(-2deg);
    float: right;
    right: -50%;
    position: relative;
    max-width: 100%;
    max-height: 100%;
}




    .homeButton .center.pull-right {
        float: right;
        transform: rotate(2deg);
    }

.homeButton h3 {
    color: gold;
    width: 100%;
    text-align: center;
    margin-top: -10px;
    padding-top: 0px;
}

.homeButtons .homeButton img, .homeButtons .homeButton picture, .homeButtons .homeButton source, .homeButtons .homeButton video {
    position: relative;
    width: auto;
    margin: 0px auto;
    height: auto;
    max-height: calc(100% - 15px);
    max-width: 100%;
    -webkit-transition: 0.2s ease;
    transition: 0.2s ease;
}

    .homeButtons .homeButton img:hover, homeButtons .homeButton picture:hover {
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
    }

.homeButtons .middleButtons .homeButton img:hover, homeButtons .middleButtons .homeButton picture:hover {
    -webkit-transform:none;
    transform: none;
}

.screen {
    transform: none;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #2a608b;
    text-align: center;
    background-image: url("images/grunge-img.png");
    z-index: 100;
}

.webp-ok .screen {
    background-image: url("images/grunge-img.webp");
} 

.lined.thick, .lined.thick {
    border: solid 7px #41403E;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
}

.dotted.thick, .dotted.thick {
    border: dotted 5px #41403E;
}

.dashed.thick, .dashed.thick {
    border: dashed 5px #41403E;
}

.lined.thin, .lined.thin {
    border: solid 2px #41403E;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
}

.dotted.thin, .dotted.thin {
    border: dotted 2px #41403E;
}

.dashed.thin, .dashed.thin {
    border: dashed 2px #41403E;
}

.pull-right {
    float: right;
}

.pull-left {
    float: left;
}

.cssload-loader {
    position: relative;
    margin: 0px auto;
    margin-top: 40%;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    -o-border-radius: 50%;
    -ms-border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    perspective: 780px;
    overflow:hidden;
}

.cssload-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    border-radius: 50%;
    -o-border-radius: 50%;
    -ms-border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
}

    .cssload-inner.cssload-one {
        left: 0%;
        top: 0%;
        animation: cssload-rotate-one 1.15s linear infinite;
        -o-animation: cssload-rotate-one 1.15s linear infinite;
        -ms-animation: cssload-rotate-one 1.15s linear infinite;
        -webkit-animation: cssload-rotate-one 1.15s linear infinite;
        -moz-animation: cssload-rotate-one 1.15s linear infinite;
        border-bottom: 3px solid lightblue;
    }

    .cssload-inner.cssload-two {
        right: 0%;
        top: 0%;
        animation: cssload-rotate-two 1.15s linear infinite;
        -o-animation: cssload-rotate-two 1.15s linear infinite;
        -ms-animation: cssload-rotate-two 1.15s linear infinite;
        -webkit-animation: cssload-rotate-two 1.15s linear infinite;
        -moz-animation: cssload-rotate-two 1.15s linear infinite;
        border-right: 3px solid lightblue;
    }

    .cssload-inner.cssload-three {
        right: 0%;
        bottom: 0%;
        animation: cssload-rotate-three 1.15s linear infinite;
        -o-animation: cssload-rotate-three 1.15s linear infinite;
        -ms-animation: cssload-rotate-three 1.15s linear infinite;
        -webkit-animation: cssload-rotate-three 1.15s linear infinite;
        -moz-animation: cssload-rotate-three 1.15s linear infinite;
        border-top: 3px solid lightblue;
    }

.level-holder {
    position: relative;
    float: left;
    font-weight: bold;
    font-size: 18px;
    margin-left: 10px;
}

    .level-holder .level-caption {
        position: relative;
        float: left;
    }

    .level-holder #level {
        position: relative;
        float: left;
        margin-left: 5px;
        color: #2a608b;
        background-image: url(images/level_star.png);
        background-size: contain;
        width: 40px;
        height: 40px;
        margin-top: -7px;
        line-height: 45px;
        text-align: center;
    }


.xp-holder {
    position: relative;
    float: left;
    font-weight: bold;
    font-size: 18px;
    margin-left: 10px;
}

    .xp-holder .xp-caption {
        position: relative;
        float: left;
    }

    .xp-holder #xp {
        position: relative;
        float: left;
        margin-left: 5px;
        color: gold;
    }

.title-holder {
    position: relative;
    float: left;
    font-weight: bold;
    font-size: 15px;
    margin-left: 10px;
    height: 30px;
    line-height: 40px;
}

    .title-holder .title-caption {
        position: relative;
        float: left;
    }

    .title-holder #title {
        position: relative;
        float: left;
        margin-left: 5px;
        color: gold;
    }


.left-aligned {
    text-align: left;
}

.gold {
    color: gold;
}

.screenSpacer {
    position: relative;
    float: left;
    margin-left: 10%;
    width: 80%;
    height: 3px;
    background-color: rgba(0,0,0,0.3);
}

@media only screen and (max-width: 400px) {
    .lang-de .homeButton h3, .lang-hr .homeButton h3, .lang-fr .homeButton h3, .lang-it .homeButton h3, .lang-es .homeButton h3, .lang-pt .homeButton h3 {
        font-size: 14px;
    }
}

@media only screen and (max-width: 320px) {
    .lang-de .homeButton h3, .lang-en .homeButton h3, .lang-hr .homeButton h3, .lang-fr .homeButton h3, .lang-it .homeButton h3, .lang-es .homeButton h3, .lang-pt .homeButton h3 {
        font-size: 13px;
    }
}


@media only screen and (max-width: 300px) {
    .header-info #username {
        font-size: 22px;
    }

    .title-holder {
        font-size: 12px;
    }

    .coin-count .count {
        font-size: 18px;
    }

    .level-holder {
        font-size: 16px;
    }

    .header-info #avatarIcon {
        width: 40px;
        height: 40px;
        border-radius: 20px;
    }

    .level-holder #level {
        margin-left: 5px;
        width: 30px;
        height: 30px;
        margin-top: -7px;
        line-height: 35px;
    }

    .level-holder .level-caption {
        margin-top: -7px;
        font-size: 14px;
    }

    .coin-count {
        margin-top: 10px;
        margin-right: -30px;
    }

    .xp-holder {
        font-size: 14px;
        clear: left;
    }
}


.coinbig {
    position: relative;
    float: left;
    width: 30px;
    height: 30px;
    background-image: url("images/coins2.png");
    background-repeat: no-repeat;
    animation: coinspinbig 1.6s stop-end infinite;
    -webkit-animation: coinspinbig 1.6s step-end infinite;
    -moz-animation: coinspinbig 1.6s step-end infinite;
    -ms-animation: coinspinbig 1.6s step-end infinite;
}

.webp-ok .coinbig {
    background-image: url("images/coins2.webp");
}
@keyframes coinspin {
    0% {
        background-position-x: -25px;
    }

    10% {
        background-position-x: -50px;
    }

    20% {
        background-position-x: -75px;
    }

    30% {
        background-position-x: -100px;
        ;
    }

    40% {
        background-position-x: -125px;
    }

    50% {
        background-position-x: -150px;
    }

    60% {
        background-position-x: -175px;
    }

    70% {
        background-position-x: -200px;
    }

    80% {
        background-position-x: -225px;
    }

    90% {
        background-position-x: -0px;
    }
}

@-webkit-keyframes coinspin {
    0% {
        background-position-x: -25px;
    }

    10% {
        background-position-x: -50px;
    }

    20% {
        background-position-x: -75px;
    }

    30% {
        background-position-x: -100px;
        ;
    }

    40% {
        background-position-x: -125px;
    }

    50% {
        background-position-x: -150px;
    }

    60% {
        background-position-x: -175px;
    }

    70% {
        background-position-x: -200px;
    }

    80% {
        background-position-x: -225px;
    }

    90% {
        background-position-x: -0px;
    }
}

@-moz-keyframes coinspin {
    0% {
        background-position-x: -25px;
    }

    10% {
        background-position-x: -50px;
    }

    20% {
        background-position-x: -75px;
    }

    30% {
        background-position-x: -100px;
        ;
    }

    40% {
        background-position-x: -125px;
    }

    50% {
        background-position-x: -150px;
    }

    60% {
        background-position-x: -175px;
    }

    70% {
        background-position-x: -200px;
    }

    80% {
        background-position-x: -225px;
    }

    90% {
        background-position-x: -0px;
    }
}

@-ms-keyframes coinspin {
    0% {
        background-position-x: -25px;
    }

    10% {
        background-position-x: -50px;
    }

    20% {
        background-position-x: -75px;
    }

    30% {
        background-position-x: -100px;
    }

    40% {
        background-position-x: -125px;
    }

    50% {
        background-position-x: -150px;
    }

    60% {
        background-position-x: -175px;
    }

    70% {
        background-position-x: -200px;
    }

    80% {
        background-position-x: -225px;
    }

    90% {
        background-position-x: -0px;
    }
}

@keyframes coinspinbig {
    0% {
        background-position-x: -30px;
    }

    10% {
        background-position-x: -60px;
    }

    20% {
        background-position-x: -90px;
    }

    30% {
        background-position-x: -120px;
        ;
    }

    40% {
        background-position-x: -150px;
    }

    50% {
        background-position-x: -180px;
    }

    60% {
        background-position-x: -210px;
    }

    70% {
        background-position-x: -240px;
    }

    80% {
        background-position-x: -270px;
    }

    90% {
        background-position-x: -0px;
    }
}

@-webkit-keyframes coinspinbig {
    0% {
        background-position-x: -30px;
    }

    10% {
        background-position-x: -60px;
    }

    20% {
        background-position-x: -90px;
    }

    30% {
        background-position-x: -120px;
        ;
    }

    40% {
        background-position-x: -150px;
    }

    50% {
        background-position-x: -180px;
    }

    60% {
        background-position-x: -210px;
    }

    70% {
        background-position-x: -240px;
    }

    80% {
        background-position-x: -270px;
    }

    90% {
        background-position-x: -0px;
    }
}


.coin {
    position: relative;
    float: right;
    width: 25px;
    height: 25px;
    margin-top: 2.5px;
    background-image: url("images/coins2.png");
    background-size: 250px 25px; /* <------ */
    background-repeat: no-repeat;
    animation: coinspin 1.6s stop-end infinite;
    -webkit-animation: coinspin 1.6s step-end infinite;
    -moz-animation: coinspin 1.6s step-end infinite;
    -ms-animation: coinspin 1.6s step-end infinite;
}
.webp-ok .coin {
    background-image: url("images/coins2.webp");
}



#loaderScreen #message {
    position: relative;
    float: left;
    width: 100%;
    color: white;
    font-size: 20px;
    text-align: center;
    margin-top: 20px;
    touch-action:manipulation;
}


#loaderScreen .cssload-loader, #loaderScreen .cssload-loader .cssload-inner {
    touch-action: manipulation;
}


@keyframes cssload-rotate-one {
    0% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@-o-keyframes cssload-rotate-one {
    0% {
        -o-transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
    }

    100% {
        -o-transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@-ms-keyframes cssload-rotate-one {
    0% {
        -ms-transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
    }

    100% {
        -ms-transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@-webkit-keyframes cssload-rotate-one {
    0% {
        -webkit-transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
    }

    100% {
        -webkit-transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@-moz-keyframes cssload-rotate-one {
    0% {
        -moz-transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
    }

    100% {
        -moz-transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@keyframes cssload-rotate-two {
    0% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}

@-o-keyframes cssload-rotate-two {
    0% {
        -o-transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
    }

    100% {
        -o-transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}

@-ms-keyframes cssload-rotate-two {
    0% {
        -ms-transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
    }

    100% {
        -ms-transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}

@-webkit-keyframes cssload-rotate-two {
    0% {
        -webkit-transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
    }

    100% {
        -webkit-transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}

@-moz-keyframes cssload-rotate-two {
    0% {
        -moz-transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
    }

    100% {
        -moz-transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}

@keyframes cssload-rotate-three {
    0% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}

@-o-keyframes cssload-rotate-three {
    0% {
        -o-transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
    }

    100% {
        -o-transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}

@-ms-keyframes cssload-rotate-three {
    0% {
        -ms-transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
    }

    100% {
        -ms-transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}

@-webkit-keyframes cssload-rotate-three {
    0% {
        -webkit-transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
    }

    100% {
        -webkit-transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}

@-moz-keyframes cssload-rotate-three {
    0% {
        -moz-transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
    }

    100% {
        -moz-transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}


#chooserScreen, #loaderScreen {
    display: none;
    background: rgba(0, 0, 0, 0.47);
    overflow: hidden;
    touch-action: manipulation;
}

.header-info .avatarWrapper.dcWinner::after {
    width: 40px;
    height: 30px;
    content: "";
    left: 40px;
    top: 35px;
    position: absolute;
    float: left;
    background-size: contain;
    background-repeat: no-repeat;

    transform: rotate(5deg);
}

.header-info .avatarWrapper.dcWinner.bronze::after {
    background-image: url(images/trophy_bronze.png);
}
.header-info .avatarWrapper.dcWinner.silver::after {
    background-image: url(images/trophy_silver.png);
}
.header-info .avatarWrapper.dcWinner.gold::after {
    background-image: url(images/trophy_gold.png);
}