* {
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
}

body {
    -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
    -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
    /*background-color:#E4E4E4;
    background-image:linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
    background-image:-webkit-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
    background-image:-ms-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
    background-image:-webkit-gradient(
        linear,
        left top,
        left bottom,
        color-stop(0, #A7A7A7),
        color-stop(0.51, #E4E4E4)
    );
    background-attachment:fixed;*/
    font-family: 'Roboto', 'Segoe UI', 'Segoe WP', 'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    height: 100%;
    margin: 0px;
    padding: 0px;
    text-transform: uppercase;
    width: 100%;
}

/* Portrait layout (default) */
.app {
    background: url(../img/logo.png) no-repeat center top; /* 170px x 200px */
    position: absolute; /* position in the center of the screen */
    left: 50%;
    top: 50%;
    height: 50px; /* text area height */
    width: 225px; /* text area width */
    text-align: center;
    padding: 180px 0px 0px 0px; /* image height is 200px (bottom 20px are overlapped with text) */
    margin: -115px 0px 0px -112px; /* offset vertical: half of image height and text area height */
    /* offset horizontal: half of text area width */
}

/* Landscape layout (with min-width) */
@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {
    .app {
        background-position: left center;
        padding: 75px 0px 75px 170px; /* padding-top + padding-bottom + text area = image height */
        margin: -90px 0px 0px -198px; /* offset vertical: half of image height */
        /* offset horizontal: half of image width and text area width */
    }
}

button {
    -moz-appearance: none !important;
}

h1 {
    font-size: 24px;
    font-weight: normal;
    margin: 0px;
    overflow: visible;
    padding: 0px;
    text-align: center;
}

.event {
    border-radius: 4px;
    -webkit-border-radius: 4px;
    color: #FFFFFF;
    font-size: 12px;
    margin: 0px 30px;
    padding: 2px 0px;
}

    .event.listening {
        background-color: #333333;
        display: block;
    }

    .event.received {
        background-color: #4B946A;
        display: none;
    }

@keyframes fade {
    from {
        opacity: 1.0;
    }

    50% {
        opacity: 0.4;
    }

    to {
        opacity: 1.0;
    }
}

@-webkit-keyframes fade {
    from {
        opacity: 1.0;
    }

    50% {
        opacity: 0.4;
    }

    to {
        opacity: 1.0;
    }
}

.blink {
    animation: fade 3000ms infinite;
    -webkit-animation: fade 3000ms infinite;
}









/*
    
COLOURS

    BLUE
    #0CB0BA - Primary
    #05929B - Dark

    ORANGE
    #FF6E2B - Primary
    #DD591B - Dark

*/




/******************************************************
    NUMBERTAP
*******************************************************/
@font-face {
    font-family: Roboto;
    src: url('../fonts/Roboto-Regular.ttf');
}

@font-face {
    font-family: Roboto-Thin;
    src: url('../fonts/Roboto-Thin.ttf');
}

@font-face {
    font-family: Roboto-Bold;
    src: url('../fonts/Roboto-Bold.ttf');
}

html {
    height: 100%;
}

body {
    font-family: 'Roboto', 'Segoe UI', 'Segoe WP', Helvetica, Arial, sans-serif;
    text-transform: none;
    height: 100%;
}

body, h1, h2, h3, h4, h5, h6 {
    color: #535353;
}

input, button, select, textarea {
    font-family: 'Roboto', 'Segoe UI', 'Segoe WP', Helvetica, Arial, sans-serif;
    text-transform: none;
}

.blue, a.blue {
    color: #0CB0BA;
}

.blue-bg {
    background-color: #0CB0BA;
}

.blue-border {
    border-color: #05929B;
}

.orange, a.orange {
    color: #FF6E2B;
}

.orange-bg {
    background-color: #FF6E2B;
}

.orange-border {
    border-color: #DD591B;
}


.button-play {
    height: 52px;
    line-height: 50px;
    margin-top: 0;
    margin-bottom: 0;
    color: #fff;
    -moz-appearance: none !important;
    background: #FF6E2B;
    border-color: #DD591B;
    border-width: 0;
    border-bottom-width: 5px;
    border-radius: 4px;
}

.button.button-homemenu {
    color: #FFF;
    background-color: #05929B;
    border-color: #0CB0BA;
    border-width: 0 2px;
}

.button-bar > .button.button-homemenu:first-child {
    border-radius: 4px 0px 0px 4px;
    border-left-width: 0;
}

.button-bar > .button.button-homemenu:last-child {
    border-radius: 0px 4px 4px 0px;
    border-right-width: 0;
}

.title {
    font-family: 'Roboto','Segoe UI', 'Segoe WP',, Helvetica, Arial, sans-serif;
    text-transform: none;
}

.thin {
    font-family: 'Roboto-Thin';
}

#title-logo {
    height: 30px;
    vertical-align: middle;
}

#play-wrap {
    margin-top: 0;
    padding-bottom: 0;
}

.col-update {
    width: 80px !important;
}

    .col-update a {
        height: 52px;
    }


.playersonline {
    padding-top: 0;
    color: #444;
}

.hometitle {
    margin: 0 auto;
    display: inline-block;
    font-weight: bold;
    font-size: 32px;
}

    .hometitle span {
        margin-top: 4px;
        vertical-align: middle;
    }

    .hometitle #title-logo {
        height: 48px;
    }

.homecard {
    margin-top: 0;
    margin-bottom: 6px;
    height: 100%;
    color: #FFF;
    font-size: 20px;
}

    .homecard h3 {
        margin-top: 0;
        margin-bottom: 0;
    }

    .homecard .linerow {
        border-top: 1px solid #FFF;
    }

.contact-footer {
    float: left;
}

.home-loading {
    font-size: 32px;
    margin: 24px;
    text-align: center;
    color: #666;
}

a.sociallink, a.sociallink:hover {
    text-decoration: none;
}

.button-social {
    line-height: 16px;
    min-height: 42px;
}


.card.no-margin {
    margin: 0;
}



.badgeitem.even {
    /*background-color: #F3F3F3;*/
}

.tabs-blue > .tabs, .tabs.tabs-blue {
    border-color: #0CB0BA;
    background-color: #0CB0BA;
    color: #fff;
}
.tabs-blue .active {
    color: #000;
    font-weight: bold;
}
.tabs-blue .normal {
    font-weight: bold;
}


.main-numbers {
    background-image: url('../img/xhdpi/bg_plain.png');
    background-size: cover;
}

.blue-numbers {
    background-image: url('../img/xhdpi/bg_blue.png');
    background-size: cover;
}

@media (max-width: 240px) {
    .main-numbers div.scroll-content {
        background-image: url('../img/ldpi/bg_plain.png');
        background-size: cover;
    }

    .blue-numbers div.scroll-content {
        background-image: url('../img/ldpi/bg_blue.png');
        background-size: cover;
    }
}

@media (max-width: 320px) {
    .main-numbers div.scroll-content {
        background-image: url('../img/mdpi/bg_plain.png');
        background-size: cover;
    }

    .blue-numbers div.scroll-content {
        background-image: url('../img/mdpi/bg_blue.png');
        background-size: cover;
    }
}

@media (max-width: 480px) {
    .main-numbers div.scroll-content {
        background-image: url('../img/hdpi/bg_plain.png');
        background-size: cover;
    }

    .blue-numbers div.scroll-content {
        background-image: url('../img/hdpi/bg_blue.png');
        background-size: cover;
    }
}



/******************************************************
    LEADERBOARDS
*******************************************************/
.scoreitem {
    position: relative;
    font-size: 16px;
    border-bottom: 1px solid #F3F3F3;
    margin: 4px;
    max-height: 42px;
}

    .scoreitem.even {
        /*background-color: #F3F3F3;*/
    }

    .scoreitem .username {
    }

    .scoreitem .score {
    }


.stats {
    font-size: 22px;
}
    .stats .stat-item {
	    border-top: 1px solid #F3F3F3;
    }


.badges {
    font-size: 22px;
}
    .badges .badge-item {
        padding-top: 10px;
        padding-bottom: 10px;
	    border-top: 1px solid #F3F3F3;
    }
.badge-icon {
    margin-right: 10px;
    width: 22px;
    height: 24px;
    display: inline-block;
    background-image: url(../img/xhdpi/ic_badge_small_grey.png);
    background-size: cover;
}
    .badge-icon.Achieved {
        background-image: url(../img/xhdpi/ic_badge_small_gold.png);
    }
    
@media (max-width: 240px) {
    .badge-icon {
        background-image: url('../img/ldpi/ic_badge_small_grey.png');
    }

    .badge-icon.Achieved {
        background-image: url('../img/ldpi/ic_badge_small_gold.png');
    }
}

@media (max-width: 320px) {
    .badge-icon {
        background-image: url('../img/mdpi/ic_badge_small_grey.png');
    }

    .badge-icon.Achieved {
        background-image: url('../img/mdpi/ic_badge_small_gold.png');
    }
}

@media (max-width: 480px) {
    .badge-icon {
        background-image: url('../img/hdpi/ic_badge_small_grey.png');
    }

    .badge-icon.Achieved {
        background-image: url('../img/hdpi/ic_badge_small_gold.png');
    }
}

/******************************************************
    BADGE TOAST
*******************************************************/
.toast-wrap {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 4px;
}
    .toast-wrap .badgetoast {
        background-color: #0CB0BA;
        background-image: url(../img/xhdpi/ic_badge_small_gold.png);
        background-position: 4px center;
        background-repeat: no-repeat;
        background-size: 38px;
        border: 2px solid #05929B;
        padding: 4px 0;
    }
        .toast-wrap .badgetoast a {
            text-decoration: none;
        }
        .toast-wrap .badgetoast h1 {
            font-size: 20px;
            text-align: left;
            color: #FFC735;
            margin-left: 65px;
        }
        .toast-wrap .badgetoast h2 {
            text-align: left;
            margin: 0;
            margin-left: 65px;
            font-size: 20px;
            font-weight: bold;
        }

.toastinout {
    animation: toastinout 6s;
    -webkit-animation: toastinout 6s;
    opacity: 0;
}
@-webkit-keyframes toastinout {
    from {
        -webkit-transform: translateX(200%);
        opacity: 1;
        z-index: 8;
    }
    20% {
        -webkit-transform: translateX(0%);
        opacity: 1;
        z-index: 8;
    }
    80% {
        -webkit-transform: translateX(0%);
        opacity: 1;
        z-index: 8;
    }
    to {
        -webkit-transform: translateX(200%);
        opacity: 0;
        display: none;
    }
}
@keyframes toastinout {
    from {
        -webkit-transform: translateX(200%);
        opacity: 1;
        z-index: 8;
    }
    20% {
        -webkit-transform: translateX(0%);
        opacity: 1;
        z-index: 8;
    }
    80% {
        -webkit-transform: translateX(0%);
        opacity: 1;
        z-index: 8;
    }
    to {
        -webkit-transform: translateX(200%);
        opacity: 0;
        display: none;
    }
}

/******************************************************
    RESPONSIVE
*******************************************************/
@media (max-width: 460px) {

    .homemenu a.button {
        padding: 0 !important;
    }

    .bar-header .title-right span {
        display: none;
    }
}


/******************************************************
    ANIMATIONS
*******************************************************/
.spinner {
    margin: 40px auto;
    width: 50px;
    height: 30px;
    text-align: center;
    font-size: 10px;
}

    .spinner > div {
        background-color: #333;
        height: 100%;
        width: 6px;
        display: inline-block;
        -webkit-animation: stretchdelay 1.2s infinite ease-in-out;
        animation: stretchdelay 1.2s infinite ease-in-out;
    }

    .spinner .rect2 {
        -webkit-animation-delay: -1.1s;
        animation-delay: -1.1s;
    }

    .spinner .rect3 {
        -webkit-animation-delay: -1.0s;
        animation-delay: -1.0s;
    }

    .spinner .rect4 {
        -webkit-animation-delay: -0.9s;
        animation-delay: -0.9s;
    }

    .spinner .rect5 {
        -webkit-animation-delay: -0.8s;
        animation-delay: -0.8s;
    }
    
@-webkit-keyframes stretchdelay {
    0%, 40%, 100% {
        -webkit-transform: scaleY(0.4);
    }
    20% {
        -webkit-transform: scaleY(1.0);
    }
}

@keyframes stretchdelay {
    0%, 40%, 100% {
        transform: scaleY(0.4);
        -webkit-transform: scaleY(0.4);
    }
    20% {
        transform: scaleY(1.0);
        -webkit-transform: scaleY(1.0);
    }
}



.timeranimate {
    animation: timeranimation 1s infinite;
    -webkit-animation: timeranimation 1s infinite;
}


@-webkit-keyframes timeranimation {
    from {
        transform: scale(1);
        -webkit-transform: scale(1);
    }
    50% {
        transform: scale(1.5);
        -webkit-transform: scale(1.5);
    }
    to {
        transform: scale(1);
        -webkit-transform: scale(1);
    }
}
@keyframes timeranimation {
    from {
        transform: scale(1);
        -webkit-transform: scale(1);
    }
    50% {
        transform: scale(1.5);
        -webkit-transform: scale(1.5);
    }
    to {
        transform: scale(1);
        -webkit-transform: scale(1);
    }
}
