@font-face{
    font-family:'default';
    src: url('media/fonts/gotham-book.ttf') format('truetype'),
        url('media/fonts/gotham-book.woff') format('woff'),
        url('media/fonts/gotham-book.eot') format('embedded-opentype'),
        url('media/fonts/gotham-book.eot?#iefix') format('embedded-opentype'),
        url('media/fonts/gotham-book.otf') format('opentype')
}

@font-face {
    font-family: 'header';
    src: url('media/fonts/gotham-bold.woff2'),url('media/fonts/gotham-bold.svg'),url('media/fonts/gotham-bold.ttf'),url('media/fonts/gotham-bold.woff')
}


body {
    font-family: -apple-system, BlinkMacSystemFont,"default", sans-serif;
    background-color: white;
    background-image: url("media/images/bg.png");    
    height: 100%;
    width: 100%;
    background-repeat: repeat;
    background-size: 100% 100%;
    -webkit-overflow-scrolling: touch;
}

p,
li {
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "default", Arial, Helvetica, sans-serif;
    font-size: 0.95em;
    text-align: left;
}

ul {
    list-style: square;
}

ol li {
    margin-top: 1.2em;
}

ul li {
    margin-left: 1.2em;
    margin-top: 0.7em;
}

a {
    color: #316198;
    text-decoration: underline;
    font-weight: bold;
    
}

a:hover {
    text-decoration: underline !important;
    text-shadow: 0 0 6px #5bc1ff;
}

.imgGame{
    border: 0.5em solid white;
    border-radius: 1.5em;
    box-shadow: 0.5em 0.5em 0.5em rgba(0,0,0,0.5);
}

.swal2-styled.swal2-confirm{
    background-color: #ff4e00;
}
.terms-paragraph {
    margin-top: 3vh;
    margin-bottom: 5vh;
    margin-left: 2em;
    margin-right: 2em;
}

.terms-paragraph li {
    /* text-align: justify; */
}

#div-game {    
    margin: 1em 0em;
}

.terms-title {
    margin-top: 7vh;
    margin-bottom: 5vh;
    font-family: -apple-system, BlinkMacSystemFont, "default";
    color: #000000;
    font-size: 2em;
}

#terms-link {
    font-family: -apple-system, BlinkMacSystemFont, "default";
    font-size: 1.2em;
    margin-bottom: 8vh;
    color: #000000;
}

/* #terms-link:hover {
    color: #f4f4d7;
} */

button {
    margin-top: 0.3em;
    margin-bottom: 0.2em;
    width: auto;
    font-size: 1.5em;    
    cursor: pointer;
    background-color: #316198;
    color: #fff;
    border: 3px solid black;
    border-bottom: 5px solid rgba(0,0,0,0.5);
    -moz-border-radius: 0.3em;
    -webkit-border-radius: 0.3em;
    border-radius: 0.3em;
    padding: 0.2em 1em;
    font-family: -apple-system, BlinkMacSystemFont, "header";    
    display: inline-block;
    text-align: center;
    text-shadow: 0px 0px rgba(0, 50, 103, 0.5);
}

button:disabled {
    color: #000000;
    background: #ddd;
}

button:focus {
    outline: none;
}

#btn_back{
    margin-left: 0.3em;
}

#btnTerms{
    cursor: pointer;
    margin: 1em 0em;
    border: none;
    color: #043d60;
    background: none;
    text-decoration: underline;
    font-family: -apple-system, BlinkMacSystemFont, "default";
}

#btnTerms:hover{
    text-decoration: underline !important;
    text-shadow: 0 0 6px #5bc1ff;
}

::-webkit-scrollbar {
    background: #fdfff2;
    border: 1px solid #dbdbdb;
}

/* Track */
::-webkit-scrollbar-track {}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #dbdbdb;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #dbdbdb;
}

/*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: 100%;
    /*height: 20vh;*/    
    margin-bottom: 0 !important;
}

.bannerGame{
    border: 0.2em dashed black;
    border-radius: 0.5em;
}

.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: #ffc45c;
}

#game-preview, .game-wrapper {
    max-width: 960px;
    max-height: 540px;
    width: 53vw;
    height: 30vw;
    /*background-image: url("media/images/game-preview.jpg");*/
    background-size: cover;
    margin: auto;
}



#game-preview {
    display: none;
}
button#playnow {
    display: none;
    padding: 8px 16px;
    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 {
    margin-top: 1em;
    margin-bottom: 1em;
    font-family: -apple-system, BlinkMacSystemFont, "default";
    color: #000000;
    -webkit-text-fill-color: #000000;
    font-size: 2em;
}

.ready-play img{
    width: 80%;
}

.choose-play {
    margin-top: 1em;
    font-family: -apple-system, BlinkMacSystemFont, "default";
    color: #000000;
    -webkit-text-fill-color: #000000;
    font-size: 2em;
}

.choose-play img{
    width: 80%;
}

.leaderboard-header-text {
    background-color: #bdef97;
    text-align: center;
    margin-top: 5vh;
    margin-bottom: 1vh;
    font-family: -apple-system, BlinkMacSystemFont,"header";
    color: #f99c06;
    -webkit-text-fill-color: #461501;
    -webkit-text-stroke-width: 0.04em;
    -webkit-text-stroke-color: black;
    font-size: 2em;
}

.game-leaderboard * {
    box-sizing: border-box;
}

.notification {
    font-family: -apple-system, BlinkMacSystemFont, '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: 1em;
    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;
}

.box-popup-header {
    text-align: center;
    font-size: 1.5em;    
    color: #3f1f0a;
    -webkit-text-fill-color: #3f1f0a;
    font-family: -apple-system, BlinkMacSystemFont,"header";
    /* border-bottom: 1px solid #ccc; */
    margin: 0.35em;
    margin-bottom: 0.5em;
    padding-bottom: 0.3em;
}

#game-access-code{
    text-transform: uppercase;
    text-align: center;
}
input[type=text] {
    min-height: 30px;
    margin-top: 0.2em;
    margin-bottom: 0.5em;
    width: 100%;
    font-size: 1.2em;
    border: none;
    -webkit-border-radius: 0.2em;
    background: #f4f4d7;
    color: #000000;
    /* #662d90; */
    -moz-border-radius: 5px;
    border-radius: 5px;
    padding: 0.3em;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
    font-family: -apple-system, "default", Arial, Helvetica, sans-serif;    
}

#box-popup-game-access{
    font-size: 1.5em;
    margin: 1em;
}

.group-games {
    /*margin-bottom: 24%;*/      
    /*padding-top: 10px;*/
    padding-bottom: 10px;
    width: 100%;
    height:80%;
    /*margin:3% 0% 3% 25%;*/
    font-size: 2vw;
    font-family: -apple-system, "default", Arial, Helvetica, sans-serif;
    text-align: center;
}

.span_1_of_3_groupgames img{
    width: 80%;
}
.span_1_of_3_groupgames{
    width: 50%;
    margin-left: 0;
}
.span_2_of_3_groupgames{
    width: 50%;
    margin-left: 0;
}
.span_2_of_3_groupgames img{
    width: 80%;
}
.horizontal-space{
    height: 10px;
}

/*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, .form-wrapper {
        width: 80vw;
        height: 45vw;
        margin: 1em auto;
    }

    .ready-play {
        font-size: 4vw;
        line-height: 6vw;
        margin-top: 1em;
        margin-bottom: 0.5em;
    }

    .choose-play {
        font-size: 4vw;
        line-height: 6vw;
        margin-top: 1em;
        margin-bottom: 0.5em;
    }

    .leaderboard-header-text {
        margin-top: 1em;
        margin-bottom: 0.5em;
        font-size: 5vw;
        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) {
    .span_1_of_3_groupgames, .span_2_of_3_groupgames{
        width: 80%;
        margin-left: 10%;
    }
     .box-popup-header {
        font-size: 1em;
    },
    #box-popup-game-access{
        font-size: 1em !important;
    }
    .box-popup-contents{
        font-size: 1em !important;
        margin: 0em;
    }
    .horizontal-seperator{
        display: none;
    }
    #box-popup-game-access input[type=text]{
        font-size: 1em !important;
    }
    #box-popup-game-access button{
        font-size: 1em !important;
    }

    .notification {
        padding-left: 5px;
        padding-right: 5px;
    }

    .container {
        margin-left: 0;
        margin-right: 0;
        margin-top: 20px;
    }

    .game-wrapper,
    #game-preview, .form-wrapper {
        width: 90vw;
        height: 50.625vw;
    }

    .leaderboard-wrapper {
        width: 90vw;
        margin-top: 0px;
        /*height: 50.625vw;*/
    }

    .leaderboard {
        width: 90vw;
        /*height: 50.625vw;*/
    }

    .ready-play {
        font-size: 4vw;
        margin-bottom: 0.2em;
        line-height: 7vw;
        margin-top: 2.5vh;
        margin-bottom: 1.5vh;
    }
    .choose-play {
        margin-bottom: 0px;
        font-size: 4vw;
        line-height: 7vw;
        margin-top: 2.5vh;
    }

    .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;
    }*/

    .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;
    }
}