@font-face {
    font-family: 'default';
    src: url('media/fonts/GothamBold.eot'), url('media/fonts/GothamBold.ttf'), url('media/fonts/GothamBold.woff');
}

body {
    font-family: "default", sans-serif;
    background-color: #17233E;
    height: 100%;
    width: 100%;
    background-repeat: no-repeat;
    background-size: 100% 50%;
    background-position: 0% 85%;
    -webkit-overflow-scrolling: touch;
}

p,
li {
    color: #ffffff;
    font-family: Arial;
    font-size: 0.9em;
    text-align: left;
}

a {
    color: #ff68e6;
    text-decoration: none;
}

.terms-paragraph {
    margin-top: 3vh;
    margin-bottom: 5vh;
    margin-left: 2em;
    margin-right: 2em;
}

.terms-paragraph li {
    /* text-align: justify; */
}

.terms-title {
    margin-top: 5vh;
    margin-bottom: 2vh;
    font-family: "default";
    color: #f04b25;
    font-size: 2em;
}

#terms-link {
    font-family: "default";
    color: #ff4b16;
    font-size: 1.5em;
    margin-top: 2vh;
    margin-bottom: 8vh;
    /* text-decoration: none; */
}

#terms-link:hover {
    color: #ff4b16;

}

a:hover {
    color: #ff4b16;

}


button {
    border: none;
    background-color: #007484;
    padding: 8px 16px;
    font-size: 17px;
    color: #ffffff;
    margin-bottom: 1em;
    text-align: center;
    font-family: 'default', sans-serif;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    color: #ffffff;
    background-color: #007484;
}

button:disabled {
    color: #ffffff;
    background: #007484;
}

button:focus {
    outline: none;
}

::-webkit-scrollbar {
    background: white;
}

/* Track */
::-webkit-scrollbar-track {}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #00937D;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #00937D;
}

/*TOP NAVIGATION BAR*/
.topnav {
    overflow: hidden;
    background-color: #662C90;
    padding: 0;
    border-bottom: 2px solid #065b66;
    color: white;
}

.topnav a {
    float: right;
    display: block;
    color: #065b66;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    margin: 0;
}

.topnav a:not(:first-child) {
    padding: 8px;
}

.topnav a.navi {
    cursor: pointer;
}

.topnav a.navi:hover {
    opacity: 0.8;
}


.topnav a.navi.active {
    background-color: #ffb33e;
    color: white;
}

.topnav a#brand {
    padding: 8px;
    padding-left: 36px;
    height: 37px;
    float: left;
}

.topnav a#brand img {
    display: block;
    height: 100%;
    width: auto;
}

.topnav .social-share {
    height: 37px;
}

.topnav .social-share img {
    display: block;
    height: 100%;
    width: auto;
}

.topnav .terms {
    line-height: 37px;
    color: white;
}

.social-bar {
    display: none;
    position: fixed;
    right: 6px;
    top: 50%;
    width: 38px;
    -webkit-transform: translateY(-50%);
    /* Chrome, Opera 15+, Safari 3.1+ */
    -ms-transform: translateY(-50%);
    /* IE 9 */
    transform: translateY(-50%);
    /* Firefox 16+, IE 10+, Opera */
}

.social-bar a {
    display: inline-block;
    width: 38px;
}

.social-bar a img {
    display: block;
    width: 100%;
    opacity: 0.7;
}

.social-bar a img:hover {
    opacity: 1;
}

/*CONTAINER - BANNER - STEPS*/
.container {
    text-align: center;
    margin-top: 30px;
    margin-left: 13.5%;
    margin-right: 13.5%;
}

img#ready {
    width: 80%;
    margin-top: 3vh !important;
    margin-bottom: 3vh !important;
}

img#banner {
    width: 30%;
    /*height: 20vh;*/
    margin-top: 3vh !important;
    margin-bottom: 0 !important;
}

.steps {
    margin: 30px 0;
}

.steps img {
    width: 86%;
    margin: auto;
}

/*GAME - LEADERBOARD*/

div#countdown {
    margin: 1.2em;
    text-align: center;
}

.fb-like {
    text-align: center;
}

.game {
    width: 100%;
    height: 100%;
    margin: 0;
    display: block;
    background-color: #17233E;
}

.game-wrapper,
#game-preview {
    max-width: 540px;
    max-height: 960px;
    width: 30vw;
    height: 53vw;
    background-image: url("media/images/game-preview.png");
    background-size: cover;
    margin: auto;
}

#game-preview {
    display: none;
}

img#playbutton {
    display: none;
    width: 30vw;
    padding: 8px 16px;
    margin: 0.7em auto 1em auto;
}

#leaderboard-wrapper{
    width: 100%;
}

#leaderboard-wrapper #refreshButton{
    display: inline-block;
    width: 6.5vw;
    padding-bottom: 0.85vw;
}

#leaderboard-wrapper #refreshButton:hover{
    cursor: pointer;
}

#leaderboard-bg {
    display: inline-block;
    width: 45vw;    
    position: relative;
    text-align: center;
    margin: 0.8em auto 0.3em auto;
}    

#leaderboard-bg .centered {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "default";
    color: #ffffff;
    font-size: 3.8vw;
}

button#playnow {
    display: none;
    padding: 16px 20px;
    margin: 0.7em auto 1em auto;
}

.leaderboard {
    margin-top: 1vh;
    max-width: 960px;
    max-height: 540px;
    width: 60vw;
    height: 50vh;
    /*box-sizing: border-box;*/
}

.leaderboard-wrapper {
    width: 70vw;
    /*height: 100%;*/
    /*max-height: 400px;*/
    /*border: 3px solid #FFF;*/
    margin: auto;
    margin-bottom: 1em;
}

.content-desktop {
    display: block;
}

.content-mobile {
    display: none;
}

.ready-play {
    display: none;
    margin-top: 5vh;
    margin-bottom: 2vh;
    font-family: "default";
    color: #656569;
    font-size: 1.5em;
}

.leaderboard-header-text {
    margin-top: 5vh;
    margin-bottom: 1vh;
    font-family: "default";
    color: #f04b25;
    font-size: 2em;
}

.game-leaderboard * {
    box-sizing: border-box;
}

.notification {
    font-family: 'default', sans-serif;
    font-size: 16px;
    color: #065b66;
    text-align: center;
    padding: 8px 20px 0 20px;
    width: 90%;
    min-width: 300px;
    max-width: 600px;
    display: block;
    margin: auto;
}

.notification ol {
    color: white;
    background: rgba(0, 0, 0, 0.4);
    margin-top: 6px;
    padding: 4px;
    border-radius: 4px;
}

/*FOOTER*/
footer {
    margin-bottom: 37.5%;
    text-align: center;
}

.button-wrap {
    width: 35%;
    margin: auto;
    display: -webkit-box;
    /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box;
    /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;
    /* TWEENER - IE 10 */
    display: -webkit-flex;
    /* NEW - Chrome */
    display: flex;
    /* NEW, Spec - Opera 12.1, Firefox 20+ */
    justify-content: center;
}

.btn {
    box-sizing: border-box;
    text-decoration: none;
    margin: 1% 5%;
    padding: 0;
    border-radius: 32px;
    width: 30%;
    min-width: 40px;
}

.btn img {
    display: block;
    margin: 0;
    width: 100%;
}

.btn img:hover {
    opacity: 0.8;
}

.subfooter {
    text-align: center;
    font-size: 15px;
    background-color: #ab012c;
    color: #FFF;
    padding: 14px;
    max-width: 100%;
    box-sizing: border-box;
    margin: 40px 0px 0px 0px;
}

a#mjs {
    color: #fff200;
}

.fb-buttons {
    text-align: center;
    margin: 0.9em auto 0.6em auto;
}

/*MEDIA QUERIES*/
@media screen and (max-width: 950px) {
    .container {
        margin-left: 5%;
        margin-right: 5%;
    }

    img#intro {
        margin-top: 0 !important;
    }

    .leaderboard-wrapper {
        width: 70%;
        /* height: 36vw; */
    }

    .game-wrapper {
        width: 45vw;
        height: 80vw;
        margin: auto;
    }

    .ready-play {
        font-size: 3.5vw;
        line-height: 6vw;
        margin-top: 1em;
        margin-bottom: 0.5em;
        margin-left: 2.5vw;
        margin-right: 2.5vw;
    }

    .leaderboard-header-text {
        margin-top: 1em;
        margin-bottom: 0.5em;
        font-size: 25px;
        line-height: 6vw;
    }

    .leaderboard {
        width: 80vw;
        height: 58vh;
    }

    .leaderboard-wrapper {
        width: 90vw;
    }

    .notification {
        font-size: 14px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .shown-buttons,
    div#countdown {
        display: none;
    }
}

@media only screen and (max-width: 612px) {
    .steps img {
        width: 50%;
    }

    .notification {
        font-size: 11px;
    }

    .mjs-copyright {
        font-size: 11px;
    }
}

@media only screen and (max-width: 555px) {
    .notification {
        padding-left: 5px;
        padding-right: 5px;
    }

    .container {
        margin-left: 0;
        margin-right: 0;
        margin-top: 20px;
    }

    .game-wrapper,
    #game-preview {
        width: 90vw;
        height: 50.625vw;
    }

    img#playbutton {
        width: 36vw;
    }   

    .leaderboard-wrapper {
        width: 90vw;
        margin-top: 0px;
        /*height: 50.625vw;*/
    }

    .leaderboard {
        width: 90vw;
        /*height: 50.625vw;*/
    }

    .ready-play {
        display: block;
        font-size: 3.5vw;
        margin-bottom: 0.2em;
        line-height: 5.4vw;
        margin-top: 2.5vh;
        margin-bottom: 1.5vh;
        margin-left: 1.5vw;
        margin-right: 1.5vw;
    }

    .leaderboard-header-text {
        font-size: 25px;
        margin-bottom: 0.2em;
        line-height: 7vw;
        margin-top: 2.5vh;
        margin-bottom: 1.5vh;
    }

    .game {
        display: none;
    }

    button#playnow,
    #game-preview {
        display: block;
    }

    .game-wrapper {
      position: relative;
      width: 100%;
    }
    .game-wrapper button{
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
    }


    /* Make the image responsive */
    .game-wrapper img {
      width: 100%;
      height: auto;
    }

    img#playbutton {
        display: block;
    }    

    .button-wrap {
        width: 46%;
    }

    .topnav .social-share {
        display: none;
    }

    .social-bar {
        display: block;
    }

    #intro {
        width: 98% !important;
    }
}

@media only screen and (max-width: 446px) {
    .topnav a.terms {
        font-size: 13px;
        margin: 0;
        width: 30%;
        padding: 10px;
        line-height: 16px;
    }
}

