* {
    margin: 0;
    padding: 0;
}

body {
    background-color: white;
    font-size: 24px;
    color: dimgray;
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    font-family: none;
}

img {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
}

#gameWrapper {
    border: 1px solid lightgray;
    border-radius: 20px;
    background-color: lightgray;
    max-width: 800px;
    margin: 10px auto;
    background: lightgray;
    background: -webkit-linear-gradient(lightgray, gray);
    /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(lightgray, gray);
    /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(lightgray, gray);
    /* For Firefox 3.6 to 15 */
    background: linear-gradient(whitesmoke, lightgray);
    /* Standard syntax */
}

.horizontalLine {
    width: 98%;
    height: 1px;
    background-color: gray;
    margin: 10px auto;
}

#logo {
    position: relative;
    width: 500px;
    height: 121px;
    margin: 0 auto;
    background: url("../files/mathconcept_logo2.png");
    background-size: 100%;
}

#logo2 {
    display: none;
    position: relative;
    width: 256px;
    height: 28px;
    margin: 0 auto;
    background: url("../files/mathconcept_logo3.png");
    background-size: 100%;
    margin-top: 10px;
}

#levelPage {
    width: 90%;
    margin: 0 auto;
}

#levelPage p {
    padding: 30px 50px;
    line-height: 175%;
}

#level {
    color: dimgray;
    padding: 0 30px;
    margin-right: 30px;
}

#levelPage,
#name {
    font-size: 48px;
}

#levelPage,
#level {
    font-size: 48px;
}

#coverImage {
    position: relative;
    width: 271px;
    height: auto;
    left: -100px;
    top: -150px;
}

#questionPage,
#resultPage {
    display: none;
    position: relative;
    width: 95%;
    height: auto;
    margin: 10px auto;
}

#startBtn {
    display: inline-block;
    padding: 10px 25px;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    outline: none;
    color: #fff;
    background-color: #39bde3;
    border: none;
    border-radius: 30px;
    box-shadow: 0 9px #4395b6;
}

#startBtn:hover {
    background-color: #3dcaf3
}

#startBtn:active {
    background-color: #33abcd;
    box-shadow: 0 5px #3e88a7;
    transform: translateY(4px);
}

#submitBtn {
    display: inline-block;
    padding: 10px 25px;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    outline: none;
    color: #fff;
    background-color: #f06376;
    border: none;
    border-radius: 30px;
    box-shadow: 0 9px #f6b0bc;
}

#submitBtn:hover {
    background-color: #fb647a
}

#submitBtn:active {
    background-color: #e05e70;
    box-shadow: 0 5px #e1a1ac;
    transform: translateY(4px);
}

.arrowColor {
    color: #359cbf;
}

.centering {
    text-align: center;
}

.hidden {
    width: 0;
    height: 0;
}

.grade,
#backBtn,
#nextBtn,
#questionTitle,
#progressBar {
    font-size: 30px;
    display: inline-block;
    vertical-align: middle;
}

.grade {
    width: 100px;
    height: auto;
    margin: auto;
    text-align: center;
    color: #f06376;
    font-weight: bold;
    border-radius: 30px;
    border: 5px solid #f06376;
}

#backBtn,
#nextBtn {
    margin: 0 15px;
    position: relative;
    width: 0;
    height: 0;
}

#backBtn {
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-right: 20px solid lightgray;
}

#nextBtn {
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 20px solid dimgray;
    cursor: pointer;
}

#questionTitle {}

#progressBar {
    position: relative;
    width: 230px;
    height: 20px;
    border: 2px solid gray;
}

#myProgress {
    position: relative;
    width: 95%;
    height: 50%;
    background-color: gray;
    margin: 5px;
}

#myBar {
    position: absolute;
    width: 0;
    height: 100%;
    background-color: #f06376;
}

#questionContent {
    margin: 30px;
}

#questionContent img {
    max-width: 600px;
}

#bkBtn {
    position: relative;
    display: inline-block;
    border-radius: 50px 50px 3px 3px;
    background: #f06376;
    padding: 5px 0;
    text-decoration: none;
    width: 180px;
    height: 50px;
    outline: none;
    border: none;
    color: #fff;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 -5px #f6b0bc;
    xmargin: 0 20%;
    bottom: -15px;
    cursor: pointer;
    font-weight: bold;
}

#bkBtn:hover {
    background-color: #fb647a
}

#bkBtn:active {
    background-color: #e05e70;
    box-shadow: 0 -5px #e1a1ac;
    transform: translateY(-4px);
}

#nxBtn {
    position: relative;
    display: inline-block;
    border-radius: 50px 50px 3px 3px;
    background: #f06376;
    padding: 5px 0;
    text-decoration: none;
    width: 180px;
    height: 50px;
    outline: none;
    border: none;
    color: #fff;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 -5px #f6b0bc;
    xmargin: 0 20%;
    bottom: -15px;
    cursor: pointer;
    font-weight: bold;
}

#nxBtn:hover {
    background-color: #fb647a
}

#nxBtn:active {
    background-color: #e05e70;
    box-shadow: 0 -5px #e1a1ac;
    transform: translateY(-4px);
}

#doneBtn {
    position: relative;
    display: block;
    border-radius: 50px 50px 3px 3px;
    background: #f06376;
    padding: 5px 0;
    text-decoration: none;
    width: 200px;
    height: 50px;
    outline: none;
    border: none;
    color: #fff;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 -5px #f6b0bc;
    margin: 0 20% 0 60%;
    bottom: -15px;
    cursor: pointer;
    font-weight: bold;
}

#doneBtn:hover {
    background-color: #fb647a
}

#doneBtn:active {
    background-color: #e05e70;
    box-shadow: 0 -5px #e1a1ac;
    transform: translateY(-4px);
}

#quitBtn {
    position: relative;
    display: block;
    border-radius: 50px 50px 3px 3px;
    background: #f06376;
    padding: 5px 0;
    text-decoration: none;
    width: 400px;
    height: 50px;
    outline: none;
    border: none;
    color: #fff;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 -5px #f6b0bc;
    margin: 0 auto;
    bottom: 55px;
    cursor: pointer;
    font-weight: bold;
}

#quitBtn:hover {
    background-color: #fb647a
}

#quitBtn:active {
    background-color: #e05e70;
    box-shadow: 0 -5px #e1a1ac;
    transform: translateY(-4px);
}

#multipleChoice {
    list-style: none;
    width: 700px;
    margin: 0 auto;
    display: block;
}

#multipleChoice>li {
    clear: left;
    vertical-align: middle;
    margin: 10px 10%;
    position: relative;
}

.mcBtn {
    width: 60px;
    cursor: pointer;
}

.mcBtn,
.mcContent {
    display: inline-block;
}

.mcContent {
    position: absolute;
    padding: 0 10px;
}

.mcContent img {
    max-height: 50px;
}

#resultTitle {
    display: inline-block;
    margin-left: 20%;
}

.tableHeader {
    color: #f06376;
}

#scoreMsg {
    margin-top: 20px;
    text-align: center;
}

.commentBubble {
    position: relative;
    width: 300px;
    height: auto;
    left: 420px;
    top: -200px;
}

table,
th,
td {
    border: 2px solid dimgray;
    margin: 10px;
    text-align: center;
}

table {
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
    background-color: transparent;
}

th,
td {
    padding: 5px 15px;
}

th {
    background-color: transparent;
    color: white;
    border-color: #f06376;
}

td {
    background-color: transparent;
}

.correct {
    background-color: #66ff99;
}

#tnc {
    color: black;
    font-size: 12px;
}

ol {
    padding-left: 48px;
    padding-top: 10px;
}

ol li {
    padding-left: 20px;
}

ol.c {
    list-style-type: upper-roman;
}

button,
input,
optgroup,
select,
textarea {
    line-height: normal;
}

#submitContact {
    padding-bottom: 100px;
}

.form-content-success {
    display: none;
    color: #088249;
    padding-top: 74px;
    padding-bottom: 35px;
}

@media only screen and (max-width: 840px) {
    #gameWrapper {
        margin: 20px;
    }
    #levelPage p {
        padding: 10px 15px;
    }
    #coverImage {
        width: 200px;
        left: -100px;
        top: -100px;
    }
    #quitBtn {
        bottom: 65px;
    }
}

@media only screen and (max-width: 740px) {
    body {
        font-size: 22px;
    }
    #progressBar {
        display: block;
        width: 95%;
        margin: 0 auto;
        margin-top: 10px;
    }
    #myProgress {
        width: 98%;
        margin: 5px auto;
    }
    #doneBtn {
        display: block;
        margin: 0 auto;
    }
    #resultTitle {
        margin-left: 10%;
    }
    .commentBubble {
        width: 250px;
        left: 300px;
        top: -170px;
    }
    #multipleChoice {
        width: auto;
        max-width: 700px;
    }
}

@media only screen and (max-width: 667px) {
    #multipleChoice>li {
        margin: 10px;
    }
    #logo {
        width: 370px;
        height: 90px;
    }
    #levelPage,
    #level {
        font-size: 36px;
    }
    #startBtn {
        font-size: 40px;
    }
    #questionContent img {
        max-width: 400px;
    }
}

@media only screen and (max-width: 500px) {
    body {
        font-size: 18px;
    }
    #questionPage,
    #resultPage {
        width: 98%;
    }
    #questionContent {
        margin: 30px 10px;
    }
    .commentBubble {
        width: 200px;
        left: 200px;
        top: -150px;
    }
    #gameWrapper {
        margin: 5px;
    }
    #logo {
        width: 250px;
        height: 60px;
    }
    #levelPage,
    #level,
    #name {
        font-size: 24px;
    }
    #levelPage p {
        padding: 30px 10px;
    }
    #coverImage {
        width: 120px;
        left: -30px;
        top: -80px;
    }
    #startBtn {
        font-size: 30px;
    }
    #myProgress {
        width: 96%;
    }
    .grade,
    #backBtn,
    #nextBtn,
    #questionTitle,
    #progressBar,
    #bkBtn,
    #nxBtn,
    #quitBtn,
    #resultTitle {
        font-size: 24px;
    }
    #bkBtn,
    #nxBtn {
        width: 160px;
        height: 45px;
    }
    .grade {
        width: 70px;
    }
    #backBtn,
    #nextBtn {
        margin: 0 5px;
    }
    #questionContent img {
        max-width: 390px;
    }
    #quitBtn {
        bottom: 50px;
    }
    #quitBtn {
        border-radius: 50px 50px 3px 3px;
        padding: 3px 0;
        width: 300px;
        height: 40px;
        font-size: 25px;
        box-shadow: 0 -5px #f6b0bc;
        bottom: 40px;
    }
}

@media only screen and (max-width: 375px) {
    #levelPage,
    #level,
    #name {
        font-size: 24px;
    }
    #levelPage p {
        padding: 20px 5px;
    }
    #questionContent img {
        max-width: 325px;
    }
    th,
    td {
        padding: 5px;
    }
    /*
	#coverImage {
		width: 80px;
	}
	#startBtn {font-size: 30px;}
	table, th, td {
		margin:5px;
	}
	.commentBubble {left:150px;top:-150px;}
	.mcContent, .mcContent img {
		max-width: 250px;
	}
*/
}

@media only screen and (max-width: 320px) {
    .mcContent,
    .mcContent img {
        max-width: 220px;
    }
    #levelPage p {
        padding: 10px 5px;
    }
    #startBtn {
        font-size: 20px;
    }
    #questionContent img {
        width: 100%;
    }
    .commentBubble {
        left: 100px;
        top: -150px;
    }
    #quitBtn {
        padding: 2px 0;
        width: 250px;
        height: 35px;
        font-size: 20px;
        bottom: 35px;
    }
}