﻿#viewPortWrapper {
    clear: left;
}

#viewPort {
    background-color: #6babed;
    width: 960px;
    height: 625px;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#viewPortWrapper.fullscreen {
    display: table;
    width: 100%;
    height: 100%;
}

#viewPortWrapper.fullscreen #viewPortCell {
    background-color: #000;
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    margin: 0;
    touch-action: none;
}

.closeButton {
    position: absolute;
    top: 0.7408%;
    right: 0.4832%;
    width: 4.9458%;
    height: 7.5926%;
    cursor: pointer;
    z-index: 21; /* above splash title */
}

.closeButton img {
    display: block;
    pointer-events: none;
}


#viewPort p {
    margin: .5em 0;
}

#viewPort h2 {
    color: #222;
    font: 32px/1.3em topmarksbold,Arial,Helvetica,sans-serif;
    font-size: 32px;
    line-height: 1.3em;
    margin: 0;
    padding: 0;
}

#gameLogo {
    width: 12.425%;
    height: 5.76%;
    position: absolute;
    bottom: 2%;
    right: 5.2%;
}

#splash h1 {
    color: #FFF;
    font: 64px/1.1em topmarksbold, Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    position: absolute;
    top: 2.56%;
    z-index: 20;
    width: 100%
}

#splash h1.shadow {
    color: #D4145A;
    top: 2.88%;
    left: 0.208%;
    z-index: 10;
}

#splashFacts {
    border: 12px solid #FFF;
    border-radius: 20px;
    position: absolute;
    top: 34%;
    left: 3.5%;
    width: 37.5%;
    height: 46.44266666%
}

#guide {
    position: absolute;
    display: inline;
    top: 91%;
    left: 47%;
    padding: 0.4% 6%;
}


#options {
    color: #FFF;
    font: 36px/1.25em topmarksbook, sans-serif;
    position: absolute;
    top: 17.5%;
    left: 47%;
    width: 54%;
    text-align: center;
}

#options ul {
    float: left;
    width: 100%;
}

#options ul, #subOptions ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#options ul li {
    float: left;
    border-radius: 6px;
    margin: 0 6% 0 0;
    padding: 0;
    width: 40.2%;
    cursor: pointer;
}

#options ul li.option1.selected, #options ul li.option2.selected {
    border-color: #FFF;
}

.option1, .button.option1 {
    background-color: #D6573D;
    border: 3px solid #AD351A;
}

.hasHover li.option1:hover, .hasHover .button.option1:hover {
    background-color: #BD4128;
    border: 3px solid #922D16;
}

.option2, .button.option2 {
    background-color: #A83DD6;
    border: 3px solid #8D1CBA;
}

.hasHover li.option2:hover, .hasHover .button.option2:hover {
    background-color: #9128BD;
    border: 3px solid #7D19A4;
}

#subOptions {
    background-color: #3c88d6;
    border: 3px solid #2466A8;
    border-radius: 6px;
    position: absolute;
    top: 29%;
    left: 47%;
    width: 47.2%;
    height: 58%;
    text-align: center;
}

#subOptions > div {
    padding: 1.75%;
}

#subOptions h2 {
    color: #000;
    font-size: 23px;
}

#subOptions .subCol h2 {
    color: #FFF;
    font-size: 24px;
}

#subOptions .subCol {
    float: left;
    margin: 2%;
    width: 46%;
}

#subOptions ul {
    color: #FFF;
    font: 20px/1.1em topmarksbold, sans-serif;
    padding: 3% 0;
}

#subOptions ul li {
    border-radius: 6px;
    margin: 5% 0 1%;
    padding: 1.6% 1%;
    cursor: pointer;
}

/*** Game View ***/
#game {
    float: left;
    width: 100%;
    height: 100%;
}

.button {
    color: #FFF;
    font: 22px/1em topmarksbook, sans-serif;
    background-color: #3c88d6;
    border: 3px solid #1a62ad;
    border-radius: 6px;
    padding: 0.4% 1.5%;
    text-align: center;
    cursor: pointer;
}

.hasHover .button:hover {
    background-color: #1d4c7c;
    border: 3px solid #103358;
}

#backHome {
    position: absolute;
    display: inline;
    top: 1.28%;
    left: 0.833%;
}

#title {
    color: #222;
    background-color: #FFCB72;
    position: absolute;
    top: 1.6%;
    left: 18%;
    width: 45%;
    border-radius: 6px;
    -webkit-box-shadow: 0px 0px 21px 1px #666666;
    -moz-box-shadow: 0px 0px 21px 1px #666666;
    box-shadow: 0px 0px 21px 1px #666666;
}

#title h3 {
    font: 20px/1.2em topmarksbook,sans-serif;
    padding: 0.2em 0;
    margin: 0;
    text-align: center;
}

#heading {
    position: absolute;
    top: 9%;
    left: 3%;
    width: 67%;
    color: #FFF;
    font: 20px/1.2em topmarksbold,sans-serif;
    padding: 0;
    margin: 0;
    text-align: center;    
}

#rightPanel {
    background-color: #3c88d6;
    position: absolute;
    top: 0;
    left: 78%;
    width: 22%;
    height: 100%;
    margin: 0;
    padding: 0;
    border-left: 2px solid #ddf;
}

#score {
    color: #FFF;
    font: 24px/1.4em topmarksbold,sans-serif;
    position: absolute;
    top: 1.9%;
    left: 4%;
    right: 24%;
    text-align: center;
}

#factRows {
    line-height: 1.7em;
    list-style: none;
    position: absolute;
    top: 14%;
    left: 4.7%;
    width: 70%;
    height: 60%;
    margin: 0;
    padding: 0;
    transition: transform 400ms ease;
}

#factRows.factRows--offscreen {
    transform: translateX(-107%);
}

#factRows > li {
    background-color: #59A1EA;
    border: 5px solid #4796E5;
    border-radius: 6px;
    width: 85%;
    margin: 0 0 2.5% 0;
    padding: 1.5% 0 1.5% 4%;
    float: left;
    position: relative;
}

#factRows > li.correct {
    background-color: #79c928;
    border-color: #1AAD48;
}

#factRows > li.wrong, #factRows > li.unrelated {
    background-color: #CC3546;
    border-color: #CC1E32;
}

#factRows > li.same {
    background-color: #D16C40;
    border-color: #AA5034;
}

#factRows > li.current {
    background-color: #4495E5;
    border-color: #3484D3;
}

.factRow {
    float: left;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

.factRow li {
    float: left;
    width: 16%;
    height: 100%;
    margin: 0 5% 0 0;
    position: relative;
}

.factRow .operatorLi {
    width: 13.07775%;
}

.factRow li:last-child, #opButtons .factRow li:last-child {
    margin-right: 0;
}

.number {
    border-width: 3px;
    border-style: solid;
    color: #FFF;
    font: 60px/1em topmarksbold;
    min-height: 1em;
    height: 100%;
    width: 100%;
    padding: 0.2em 0 0.1em;
    text-align: center;
    border-radius: 6px;
}

.smallFont .number {
    font: 48px/1.25em topmarksbold;
    min-height: 1.25em;
}

.operatorLi div {
    border-width: 3px;
    border-style: solid;
    color: #FFF;
    font: 55px/0.9933em topmarksbold;
    min-height: 0.9933em;
    width: 79.8%;
    margin: 10%;
    padding: 0.05em 0.05em 0;
    text-align: center;
    border-radius: 50%;
}

.factRow li.equals {
    color: #FFF;
    font: 60px/1em topmarksbold;
    height: 100%;
    width: 11%;
    padding: 0.2em 0 0.1em;
    text-align: center;
}

#factRows > li.current div.current {
    color: #000;
    border-color: #3272b3 !important;
    background-color: #FFF !important;
    text-shadow: none !important;
    -moz-box-shadow:    inset 0 0 15px #3272b3;
    -webkit-box-shadow: inset 0 0 15px #3272b3;
    box-shadow:         inset 0 0 15px #3272b3;
}

.tick {
    background: transparent url(/media/games/common/tick@2.png) no-repeat;
    -webkit-background-size: 100% !important;
    -moz-background-size: 100% !important;
    background-size: 100% !important;
    position: absolute;
    top: 30%;
    right: -12%;
    width: 6.69116044%;
    height: 36.48834%;
}

.cross {
    background: transparent url(/media/games/common/cross@2.png) no-repeat;
    -webkit-background-size: 100% !important;
    -moz-background-size: 100% !important;
    background-size: 100% !important;
    position: absolute;
    top: 30%;
    right: -12%;
    width: 6.69116044%;
    height: 36.48834%;
}

div.same {
    color: #900;
    font: 20px/1.3em topmarksbold, sans-serif;
    position: absolute;
    top: 26%;
    right: -16.3%;
    width: 15%;
    height: 55%;
    text-align: center;
}

div.unrelated {
    color: #900;
    font: 20px/1.3em topmarksbold, sans-serif;
    position: absolute;
    top: 13%;
    right: -16.3%;
    width: 15%;
    height: 55%;
    text-align: center;
}

#numButtons {
    position: absolute;
    left: 84%;
    top: 13%;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 50%;
    width: 9.5196%;
}

#numButtons .factRow li {
    cursor: pointer;
    width: 100%;
    height: 19%;
    margin-bottom: 42%;
}

#opButtons {
    position: absolute;
    left: 80%;
    top: 60%;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 8.7%;
    width: 18%;
}

.opBtnOne, .opBtnTwo {
    cursor: pointer;
    border-width: 3px;
    border-style: solid;
    color: #fff;
    font: 55px/.9933em topmarksbold;
    min-height: .9933em;
    width: 34.722222%;
    height: 100%;
    margin: 0;
    padding: .066em 0 .033em;
    text-align: center;
    border-radius: 50%;
}

.opBtnOne {
    float: left;
    margin: 5% 0 0 5%;
}

.opBtnTwo {
    float: right;
    margin: 5% 3% 0 0;
}

.col1 {
    background-color: #A83DD6;
    border-color: #8D1CBA;
}

.hasHover #numButtons .col1:hover, .hasHover #opbuttons .col1:hover {
    background-color: #9128BD;
    border-color: #7D19A4;
}

.col2 {
    background-color: #e1c32a;
    border-color: #AD971A;
}

.hasHover #numButtons .col2:hover, .hasHover #opButtons .col2:hover {
    background-color: #c5a815;
    border-color: #9B8717;
}

.sideBtn {
    color: #FFF;
    background-color: #82c3ff;
    border: 5px solid #3272b3;
    border-radius: 6px;
    font: 32px/1.4em topmarksbold, Arial, Helvetica, sans-serif;
    text-align: center;
    cursor: pointer;
    opacity: 0.4;
    position: absolute;
    width: 75%;
    padding: 2% 0 1%;
    right: 10%;
}

.sideBtn.ready {
    color: #000;
    opacity: 1;
}

#undoButton {
    top: 75%;
}

#checkButton {
    top: 87%;
}

#tryAgainButton {
    top: 63%;
    font-size: 29.0909px;
    line-height: 1.54em;
}

#tryAgainPanel, #wellDonePanel {
    display: none;    
}

#tryAgainMsg, #wellDonePanel {
    color: #000;
    font: 24px/1.5em topmarksbold, Arial, Helvetica, sans-serif;
    position: absolute;
    left: 10%;
    top: 15%;
    margin: 0;
    padding: 1em 0.4em;
    height: 35%;
    width: 68%;
    text-align: center;
    border: 1px solid #FFF;
    border-radius: 6px;
    -webkit-box-shadow: 0px 0px 21px 1px #666666;
    -moz-box-shadow: 0px 0px 21px 1px #666666;
    box-shadow: 0px 0px 21px 1px #666666;
}

#tryAgainMsg {
    background-color: #FFCB72;
}

#wellDonePanel {
    background-color: #79c928;
}

#demo .dialog {
    background-color: #D3FF80;
    color: #000;
    font: 26px/1.6em topmarksbold, Arial, Helvetica, sans-serif;
    position: absolute;
    margin: 0;
    padding: 0;
    border: 1px solid #FFF;
    border-radius: 6px;
    -webkit-box-shadow: 0px 0px 21px 1px #666666;
    -moz-box-shadow: 0px 0px 21px 1px #666666;
    box-shadow: 0px 0px 21px 1px #666666;
}

#demo .dialog h3 {
    color: #006400;
    padding: 0;
    margin: 0.6em 0 0;
    font: 32px/1.2em topmarksbold, sans-serif;
    line-height: 1.2em;
    text-align: center;
}

.dialog ul {
    margin: 0 1em;
    padding: 0 0 0 5%;
}


.dialog li {
    padding: 0.4em 0 0.4em;
    margin: 0;
}

.dialog em {
    color: #006400;
}

.demo1 {
    left: 4%;
    top: 16%;
    height: 75%;
    width: 69%;
}

.demo2 {
    left: 73%;
    top: 21%;
    height: 46%;
    width: 24%;
    text-align: center;
}

.demoBtn1 {
    width: 38%;
    margin: 1em 2em 0 1.1em;
    float: left;
}

.demoBtn2 {
    width: 38%;
    margin: 1em 1.1em 0 0;
    float: right;
}

.demoBtn3 {
    line-height: 1.5em;
    width: 85%;
    margin: 6% 0 0 5%;
    float: none;
}

.example {
    color: #006400;
    font: 32px/1.2em topmarksbold, sans-serif;
}
