/* ========== */
/* = Import = */
/* ========== */

@import url('https://fonts.googleapis.com/css?family=Raleway:100,200,300,400,500,600,700,800,900');

/* ============= */
/* = Keyframes = */
/* ============= */

@keyframes slidingBackground {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -100000px 0;
    }
}

@keyframes smokeFade {
    from {
        opacity: 1;
        margin-left: 0;
    }

    to {
        opacity: 0;
        margin-left: -20px;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        left: 0;
        right: -200%;
    }

    to {
        left: 0;
        right: 0;
    }
}

@keyframes slideOut {
    from {
        left: 0;
        right: 0;
    }

    to {
        left: -200%;
        right: 0;
    }
}

@keyframes vehicleShake {
    0% {
        padding-top: 0;
    }

    50% {
        padding-top: 2px;
    }

    100% {
        padding-top: 0;
    }
}

@keyframes vehicleShakeTwo {
    0% {
        padding-top: 2px;
    }

    50% {
        padding-top: 0;
    }

    100% {
        padding-top: 2px;
    }
}

/* =========== */
/* = General = */
/* =========== */

::-webkit-scrollbar {
    /*-webkit-appearance: none;*/
    width: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    /*-webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);*/
}

body {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.divBodyContainer {
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

p {
    margin-top: 0;
    margin-bottom: 15px;
}

button:hover {
    cursor: pointer;
}

.fraud-racer a:focus, .fraud-racer button:focus {
    outline: solid #4d90fe thick;
    outline-offset: 1px;
}

.fraud-racer .billboard a:focus, .fraud-racer .billboard button:focus, .fraud-racer .billboard .text:focus {
    outline: solid #fff thick;
    outline-offset: 5px;
}

#logo, #endlogo {
    position: absolute;
    width: 12%;
    left: 2%;
    top: 2%;
    max-width: 230px;
}

#backlink a {
    color: #000;
    font-size: 14px;
    text-decoration: none;
    padding-left: 25px;
    font-weight: 500;
    background-image: url("/ResourcePackages/Bootstrap/assets/MetroPortal/Shared/images/FraudRacer/back-arrow.png");
    background-position: left center;
    background-repeat: no-repeat;
}

.link {
    display: inline-block;
    background: #E7131A;
    text-decoration: none;
    color: #fff;
    padding: 10px 40px;
    font-size: 16px;
    text-transform: uppercase;
    border-radius: 5px;
    border: none;
}

.nowrap {
    white-space: nowrap;
}

/* ================== */
/* = Screen Control = */
/* ================== */

.screen {
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.s0 {
    z-index: 60;
}

.s1 {
    z-index: 50;
}

.s2 {
    z-index: 40;
}

.s3 {
    z-index: 30;
}

.s4 {
    z-index: 20;
}

.s5 {
    z-index: 10;
}

/* ============== */
/* ADA Controls */
/* ============== */
.link-container {
    position: absolute;
    top: 2%;
    right: 2%;
    z-index: 100;
    text-align: left;
    min-width: 213px;
}

#audioControl button, #motionControl button {
    background-color: transparent;
    padding: 0;
    margin: 0;
    color: black;
    font-weight: 500;
    text-align: left;
}

    #audioControl button img, #motionControl button img {
        height: 17px;
    }

.divBody .fraud-racer div img:first-child {
    display: inline-block;
    width: unset;
}

/* ================== */
/* = Loading Screen = */
/* ================== */

#loading-screen {
    text-align: center;
    background: #000;
    width: 100%;
    height: 100%;
    position: absolute;
}

    #loading-screen span {
        color: #fff;
        top: 50%;
        left: 0;
        width: 100%;
        transform: translateY(-50%);
        position: absolute;
    }

    #loading-screen.fadeout {
        opacity: 0;
        animation: fadeOut 0.5s linear 1;
    }

    #loading-screen.inactive {
        display: none;
    }

/* ================ */
/* = Title Screen = */
/* ================ */

#title-screen {
    /*background-image: url(/ResourcePackages/Bootstrap/assets/MetroPortal/Shared/images/FraudRacer/main-bg.png);*/
    background-repeat: repeat;
    background-position: 0 0;
    background-size: auto 110%, cover;
    animation: slidingBackground 120s linear infinite;
}

.no-motion #title-screen {
    animation: none;
}

#title-screen.fadeout {
    opacity: 0;
    animation: fadeOut 0.5s linear 1;
}

#title-screen.inactive {
    display: none;
}

#title-screen #logo-titleone {
    top: 3%;
    left: 3%;
    width: 20%;
    max-width: 250px;
    position: absolute;
    z-index: 10;
}

#title-screen #logo-fraudracer {
    top: 12%;
    right: 10%;
    width: 35%;
    height: 35%;
    max-width: 380px;
    position: absolute;
    z-index: 100;
    background-image: url(/ResourcePackages/Bootstrap/assets/MetroPortal/Shared/images/FraudRacer/logo-title.png);
    background-size: contain;
    background-color: transparent;
    background-repeat: no-repeat;
}

    #title-screen #logo-fraudracer:hover {
        cursor: pointer;
    }

#title-screen #backlink {
    width: 38%;
}

/*#title-screen button {
	top: 50%;
	right: 10vw;
	transform: translateY(-50%);
	position: absolute;
}*/

#title-screen #title-truck {
    height: auto;
    width: auto;
    max-height: 55%;
    max-width: 65%;
    left: 5%;
    bottom: 7%;
    position: absolute;
    z-index: 10;
}

    #title-screen #title-truck.pos1 {
        left: 15%;
        transition: left .5s ease-in;
    }

    #title-screen #title-truck.pos2 {
        left: 65%;
        transition: all .5s linear;
    }

    #title-screen #title-truck.pos3 {
        left: 120%;
        transition: all .5s linear;
    }


#title-screen #title-car {
    height: auto;
    width: auto;
    max-height: 31%;
    max-width: 70%;
    left: 5%;
    bottom: 1%;
    position: absolute;
    z-index: 15;
}

    #title-screen #title-car.pos1 {
        left: 20%;
        transition: left .5s ease-in;
    }

    #title-screen #title-car.pos2 {
        left: 55%;
        transition: all .5s linear;
    }

    #title-screen #title-car.pos3 {
        left: 100%;
        transition: all .5s linear;
    }

#game-screen {
    top: 0;
    left: 0;
    /*background-image: url("/ResourcePackages/Bootstrap/assets/MetroPortal/Shared/images/FraudRacer/main-bg.png");*/
    background-repeat: repeat;
    background-position: 0 0;
    background-size: auto 100%;
    animation: slidingBackground 120s linear infinite;
    opacity: 1;
}

.no-motion #game-screen {
    animation: none;
}

#game-screen.fadeout {
    opacity: 0;
    animation: fadeOut 0.5s linear 1;
}

#game-screen.inactive {
    display: none;
}

#game-screen #car {
    width: 250px;
    height: 108px;
    bottom: 9%;
    z-index: 2;
    animation: vehicleShake 0.5s linear infinite;
}

#game-screen #truck {
    width: 250px;
    height: 176px;
    bottom: 16%;
    z-index: 1;
    animation: vehicleShakeTwo 0.5s linear infinite;
}

#game-screen .vehicle {
    position: absolute;
    background-size: 100%;
    background-repeat: no-repeat;
}

    #game-screen .vehicle.pos1 {
        margin-left: auto;
        margin-right: auto;
        left: 0;
        right: -55%;
        -webkit-transition: all 1s ease-in-out;
        -moz-transition: all 1s ease-in-out;
        transition: all 1s ease-in-out;
    }

    #game-screen .vehicle.pos2 {
        margin-left: auto;
        margin-right: auto;
        left: -55%;
        right: 0;
        -webkit-transition: all 1s ease-in-out;
        -moz-transition: all 1s ease-in-out;
        transition: all 1s ease-in-out;
    }

    #game-screen .vehicle .smoke {
        width: 110px;
        position: absolute;
        left: -110px;
        opacity: 0;
        margin-left: 0;
        animation: smokeFade 1s linear 1;
        display: none;
    }

#game-screen #car .smoke {
    top: 40px;
}

#game-screen #truck .smoke {
    top: 60px;
}

#game-screen .vehicle .smoke.active {
    display: block;
}

#game-screen .billboard {
    width: 60%;
    max-width: 1000px;
    background: #2f8700;
    border-radius: 15px;
    top: 10%;
    left: 0;
    right: -200%;
    position: absolute;
    /*transform: translateY(-50%);*/
    margin-right: auto;
    margin-left: auto;
    padding: 30px;
    z-index: 100;
    text-align: left;
}

    #game-screen .billboard.current {
        left: 0;
        right: 0;
        animation: slideIn 0.5s linear 1;
    }

.no-motion #game-screen .billboard.current {
    animation: none;
}

#game-screen .billboard.answered {
    left: -200%;
    right: 0;
    animation: slideOut 0.5s linear 1;
}

.no-motion #game-screen .billboard.answered {
    animation: none;
}

#game-screen .billboard > .inner {
    padding: 30px;
    border: 4px solid #fff;
    border-radius: 15px;
    height: 100%;
    overflow-y: scroll;
    color: #fff;
}

#game-screen .billboard .text .title {
    background-image: none !important;
}

#game-screen .billboard .inner .title {
    font-size: 40px;
    margin-bottom: 30px;
    /*background-image: url("/ResourcePackages/Bootstrap/assets/MetroPortal/Shared/images/FraudRacer/underline.jpg");*/
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: 26px 2px;
}

#game-screen .billboard .title span {
    white-space: nowrap;
    font-size: 32px;
}

#game-screen .billboard .inner .title .text-underline {
    text-decoration: underline;
    font-size: 40px;
}

#game-screen .billboard .inner .text {
    font-size: 22px;
    line-height: 34px;
}

#game-screen .billboard .inner .answers {
    font-size: 20px;
    line-height: 30px;
}

#game-screen .billboard .inner .fraud-progress {
    text-align: right;
    margin-bottom: 30px;
}

#game-screen .billboard .inner .question {
    width: 50%;
    float: left;
    font-size: 30px;
}

#game-screen .billboard .inner .answers {
    width: 50%;
    float: left;
}

    #game-screen .billboard .inner .answers .answer {
        margin-bottom: 30px;
        background-image: url("/ResourcePackages/Bootstrap/assets/MetroPortal/Shared/images/FraudRacer/checkbox.jpg");
        background-repeat: no-repeat;
        background-size: 28px;
        background-position: 0 2px;
        padding-left: 40px;
        padding-bottom: 4px;
        background-color: transparent;
        text-align: left;
        font-size: 20px;
        font-weight: normal;
        padding-top: 0;
        width: 100%;
        min-height: 32px;
        margin-top: 0;
        margin-right: 0;
    }

        #game-screen .billboard .inner .answers .answer:hover {
            cursor: pointer;
        }

        #game-screen .billboard .inner .answers .answer.correct {
            background-image: url("/ResourcePackages/Bootstrap/assets/MetroPortal/Shared/images/FraudRacer/checkbox-correct.jpg");
            background-position: 0 2px;
        }

        #game-screen .billboard .inner .answers .answer.incorrect {
            text-decoration: line-through;
            background-image: url("/ResourcePackages/Bootstrap/assets/MetroPortal/Shared/images/FraudRacer/checkbox-incorrect.jpg");
            background-position: 0 2px;
        }

        #game-screen .billboard .inner .answers .answer.gotitright {
            opacity: 0.5;
        }

            #game-screen .billboard .inner .answers .answer.gotitright:hover {
                cursor: default;
            }

    #game-screen .billboard .inner .answers .inner,
    #game-screen .billboard .inner .question .inner {
        padding: 0 15px;
    }

#game-screen .billboard .inner .button-wrapper {
    text-align: right;
    margin-top: 30px;
    clear: both;
    float: left;
    width: 100%;
}

    #game-screen .billboard .inner .button-wrapper button {
        font-size: 18px;
        color: #2F8700;
        background: #fff;
        padding: 10px 30px;
        text-transform: uppercase;
        border: none;
        border-radius: 5px;
    }

#game-screen .driver {
    position: absolute;
    left: -100%;
    bottom: -100%;
    z-index: 200;
    width: 45%;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.no-motion #game-screen .driver {
    -webkit-transition: none;
    -moz-transition: none;
    transition: none;
}

#game-screen .driver.active {
    left: 0;
    bottom: 0;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.no-motion #game-screen .driver.active {
    -webkit-transition: none;
    -moz-transition: none;
    transition: none;
}

/* ================= */
/* = Finish Screen = */
/* ================= */

#finish-screen {
    background-image: url(/ResourcePackages/Bootstrap/assets/MetroPortal/Shared/images/FraudRacer/main-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

    #finish-screen button {
        top: 50%;
        right: 10vw;
        transform: translateY(-50%);
        position: absolute;
    }

    #finish-screen #end-house {
        position: absolute;
        left: 40%;
        bottom: 20%;
        height: 75%;
    }

    #finish-screen #end-sold {
        position: absolute;
        height: 40%;
        bottom: 105%;
        right: 5%;
    }

    #finish-screen #end-key {
        position: absolute;
        height: 40%;
        bottom: 105%;
        left: 56%;
    }

    #finish-screen #end-car {
        position: absolute;
        bottom: 0;
        left: -60%;
        height: 40%;
    }

    #finish-screen .textbox {
        background: #fff;
        position: absolute;
        left: 8%;
        top: -40%;
        width: 45%;
        max-width: 600px;
    }

        #finish-screen .textbox .inner {
            padding: 40px;
        }

        #finish-screen .textbox p {
            font-size: 34px;
            margin: 0;
        }

            #finish-screen .textbox p span {
                white-space: nowrap;
                font-size: 30px;
            }

        #finish-screen .textbox a {
            margin-top: 20px;
        }

            #finish-screen .textbox a:focus, #finish-screen .textbox a:hover {
                color: white;
            }

    #finish-screen #backlink {
        width: 50%;
    }

    #finish-screen .textbox.end-state {
        top: 23%;
        transition: all 1s ease-out;
    }

.no-motion #finish-screen .textbox.end-state {
    transition: none;
}

#finish-screen #end-sold.end-state {
    bottom: 18%;
    transition: all 1s ease-out;
}

.no-motion #finish-screen #end-sold.end-state {
    transition: none;
}

#finish-screen #end-key.end-state {
    bottom: 20%;
    transition: all 1s ease-out;
}

.no-motion #finish-screen #end-key.end-state {
    transition: none;
}

#finish-screen #end-car.end-state {
    left: -10%;
    transition: all 1s ease-out;
}

.no-motion #finish-screen #end-car.end-state {
    transition: none;
}

/* ============================== */
/* = Sitefinity Specific Styles = */
/* ============================== */
.divHeaderMenu.primaryBar {
    display: none;
}

.divSpace {
    display: none;
}

.divFooter.primaryBar {
    display: none;
}

/* ============================== */
/* = Mobile Styles - Width Only = */
/* ============================== */

/* 1199px and below */
@media only screen and (max-width:1199px) {

    #title-screen #logo-fraudracer {
        top: 18%;
        width: 30%;
    }

    #game-screen {
        animation: slidingBackground 140s linear infinite;
    }

    #finish-screen #end-house {
        height: 65%;
    }

    #finish-screen #end-key {
        height: 27%;
    }

    #finish-screen #end-sold {
        height: 27%;
    }

    #finish-screen #end-car {
        height: 27%;
        bottom: 52px;
    }
    /*#game-screen .billboard {
		height: 50%;
	}*/

    /* 1199px and below, landscape */
    @media screen and (orientation:landscape) {

        #title-screen #logo-fraudracer {
            top: 16%;
            right: 5%;
        }

        #title-screen #title-truck {
            max-height: 55%;
        }
    }
}

/* 991px and below */
@media only screen and (max-width:991px) {

    #title-screen #logo-titleone {
        top: 20px;
        left: 20px;
        width: 150px;
    }

    #title-screen #backlink {
        top: 20px;
        right: 20px;
        width: 50%;
    }

    #game-screen #car {
        width: 200px;
        height: 86px;
    }

    #game-screen #truck {
        width: 200px;
        height: 142px;
    }

    #game-screen .vehicle .smoke {
        width: 100px;
        left: -105px;
    }

    #game-screen #car .smoke {
        top: 30px;
    }

    #game-screen #truck .smoke {
        top: 50px;
    }

    #game-screen {
        animation: slidingBackground 160s linear infinite;
    }

        #game-screen .billboard .inner .text,
        #game-screen .billboard .inner .answers {
            font-size: 18px;
            line-height: 28px;
        }

    #finish-screen .textbox {
    }

        #finish-screen .textbox .inner {
            padding: 20px;
        }

            #finish-screen .textbox .inner p {
                font-size: 30px;
            }

    /*#game-screen .billboard {
		height: 55%;
	}*/

}


/* 768px and below */
@media only screen and (max-width:768px) {

    #logo, #endlogo {
        width: 16%;
    }

    #title-screen #logo-titleone {
        top: 15px;
        left: 15px;
        width: 120px;
    }

    #title-screen #backlink {
        top: 15px;
        right: 15px;
        width: 50%;
    }

        #title-screen #backlink a,
        #game-screen #backlink a,
        #finish-screen #backlink a {
            background-size: 10px;
            font-size: 10px;
            padding-left: 14px;
        }

    #game-screen {
        animation: slidingBackground 180s linear infinite;
    }

        #game-screen #backlink,
        #finish-screen #backlink {
            width: 50%;
        }

        #game-screen #car {
            width: 150px;
            height: 65px;
        }

        #game-screen #truck {
            width: 150px;
            height: 105px;
        }

        #game-screen .vehicle .smoke {
            width: 80px;
            left: -80px;
        }

        #game-screen #car .smoke {
            top: 20px;
        }

        #game-screen #truck .smoke {
            top: 30px;
        }

        #game-screen .billboard {
            /*height: 50%;*/
            padding: 20px;
            width: 100%;
        }

            #game-screen .billboard > .inner {
                padding: 20px;
                border: 2px solid #fff;
                height: calc(100% - 44px);
                max-height: 450px;
                overflow: scroll;
                overflow-x: hidden;
            }

            #game-screen .billboard .inner .text,
            #game-screen .billboard .inner .answers .answer {
                font-size: 16px;
                line-height: 26px;
            }

            #game-screen .billboard .inner .button-wrapper button {
                font-size: 16px;
            }

            #game-screen .billboard .inner .title {
                font-size: 34px;
                line-height: 40px;
                margin-bottom: 20px;
            }

            #game-screen .billboard .inner .button-wrapper {
                margin-top: 5px;
            }

            #game-screen .billboard .inner .question {
                width: 100%;
                font-size: 24px;
                margin-bottom: 20px;
            }

                #game-screen .billboard .inner .answers .inner,
                #game-screen .billboard .inner .question .inner {
                    padding: 0;
                }

            #game-screen .billboard .inner .answers {
                width: 100%;
            }

                #game-screen .billboard .inner .answers .answer {
                    margin-bottom: 20px;
                }

            #game-screen .billboard .inner .fraud-progress {
                margin-bottom: 20px;
            }

    #finish-screen .textbox {
        top: 22%;
        width: 56%;
    }

        #finish-screen .textbox .inner {
            padding: 20px;
        }

            #finish-screen .textbox .inner p {
                font-size: 20px;
            }

    #finish-screen #end-house {
        height: 35%;
    }

    #finish-screen #end-key {
        height: 12%;
    }

    #finish-screen #end-sold {
        height: 10%;
    }

    #finish-screen #end-car {
        height: 14%;
        bottom: 52px;
    }
    /* 768px and below, portrait */
    @media screen and (orientation:portrait) {

        #title-screen #title-car {
            max-height: 20%;
            max-width: 80%;
        }

        #title-screen #logo-fraudracer {
            top: 22%;
            left: 0;
            right: 0;
            width: 60%;
            max-width: 60%;
            margin-left: auto;
            margin-right: auto;
        }

        #game-screen .driver {
            width: 65%;
        }

        #game-screen .billboard {
            max-height: 500px;
            top: 15%;
        }
    }

    /* 768px and below, landscape */
    @media screen and (orientation:landscape) {

        #title-screen #logo-fraudracer {
            top: 18%;
            width: 32%;
            left: auto;
            right: 5%;
            margin: 0;
        }

        #title-screen #title-car {
            max-width: 55%;
        }
    }

    /* User would like animations to be disabled*/
    @media screen and (prefers-reduced-motion: reduce) {
        #title-screen {
            animation: none;
        }

        #game-screen {
            animation: none;
        }

            #game-screen .billboard.current {
                animation: none;
            }

            #game-screen .billboard.answered {
                animation: none;
            }

        #finish-screen .textbox.end-state {
            transition: none;
        }

        #finish-screen #end-sold.end-state {
            transition: none;
        }

        #finish-screen #end-key.end-state {
            transition: none;
        }

        #finish-screen #end-car.end-state {
            transition: none;
        }
    }
}

/* 500px high and below */
@media only screen and (max-height:500px) {
    /* 500px and below, landscape */
    @media screen and (orientation:landscape) {

        p {
            margin-bottom: 7px;
        }

        #game-screen .billboard .inner .text,
        #game-screen .billboard .inner .answers .answer {
            font-size: 14px;
            line-height: 19px;
        }

        #game-screen .billboard .inner .title {
            font-size: 24px;
            line-height: 30px;
            margin-bottom: 10px;
        }

        #game-screen .billboard .inner .question {
            font-size: 20px;
        }

        #game-screen .billboard > .inner {
            padding: 10px;
        }

        #game-screen .billboard .inner .fraud-progress {
            margin-bottom: 2px;
        }
    }
}
