﻿div, img, ul, p, ol, li, table, tr, th, td, form, body {
	margin: 0;
	padding: 0;
	border: none;
}
div, img {
	width: 100%;
}
img {
	border: none;
}
table {
	border-collapse: collapse;
}
body {
	font-family: Arial, Helvetica, sans-serif;
	color: #000000;
	font-size: 16px;
	font-size: 1.1vw;
	background-color:#404240;
}
@font-face
{
	font-family:librecaslontext_italic;
	src: url(content/librecaslontext-italic.woff);   
}

#vw_element {
	width: 1px;
	width: 50vw;
}
#outer_wrapper {
	width: 45%;
	margin: auto;
	padding-bottom: 30px;
	padding-top: 10px;
}
.title-cnt-left-side, .title-cnt-right-side {
	width: 7%;
	min-width: 40px;
	padding-right: 3px;
}
#menu_btn {
	text-align: center;
	border-radius: 5px;
	margin: 2px;
	box-sizing: border-box;
}
#menu_btn div {
	box-sizing: border-box;
	border-radius: 5px;
	padding: 1px;
	border: none;
	border: 1px #b7b1b1 solid;
	border: 1px rgba(183,177,177,0.5) solid;
	padding: 2px;
}
#menu_btn div:hover {
	background-color: #827e7e;
	cursor: pointer;
}
/*  menu  */
#ngmnu li {
	list-style: none;
	padding: 15px 15%;
}
#ngmnu li p:hover {
	cursor: pointer;
	text-decoration: underline;
}
#ngmnu {
	padding: 0;
	margin: 0;
	display: none;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 30;
	width: 40%;
	min-width: 100px;
	background: #e8f2f2;
	-webkit-box-shadow: 0px 0px 15px #cccccc inset;
	-moz-box-shadow: 0px 0px 15px #cccccc inset;
	box-shadow: 0px 0px 15px #cccccc inset;
	font-size: 120%;
}
#ngmnu label, #ngmnu input {
	cursor: pointer;
}
/*  about page */
#about_cnt {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 50;
	font-family: Arial, Helvetica, sans-serif;
	color: #000000;
	text-align: center;
	background: #e8f2f2;
	-webkit-box-shadow: 0px 0px 15px #cccccc inset;
	-moz-box-shadow: 0px 0px 15px #cccccc inset;
	box-shadow: 0px 0px 15px #cccccc inset;
	border-radius: 15px;
	padding-bottom: 10px;
}
.about-title {
	color: #000000;
	font-size: 180%;
	font-weight: bold;
	font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
	margin: 0 auto 10px auto;
	padding: 5px 2% 10px 2%;
	text-align: center;
	width: 95%;
	text-shadow: 0 1px 0 #cccccc, 0 2px 0 #c9c9c9, rgba(0,0,0,0.1) 0 5px 5px;
	box-sizing: border-box;
}
.about-title img {
	width: 1em;
	position: relative;
	top: 0.20em;
	border: none;
}
#about_cnt .about_info {
	width: 96%;
	margin: 0 2%;
	text-align: left;
}
#about_cnt strong {
	color: #008000;
}
#about_cnt p {
	padding: 10px 0;
}
#about_cnt a, #about_cnt span {
	color: #000000;
	text-decoration: underline;
	cursor: pointer;
}
#hlpcnt input, #about_cnt input {
	font-size: 160%;
	background-color: #28bc28;
	background: -webkit-radial-gradient(#28bc28, #5dcc5c);
	background: -o-radial-gradient(#28bc28, #5dcc5c);
	background: -moz-radial-gradient(#28bc28, #5dcc5c);
	background: radial-gradient(#28bc28, #5dcc5c);
	border: none;
	box-shadow: 3px 3px 3px #686868;
	border-radius: 5px;
	color: #ffffff;
	padding: 1px 3%;
	margin-top: 10px;
	margin-bottom: 10px;
}
#hlpcnt input:hover, #about_cnt input:hover {
	background-color: #69da68;
	background: -webkit-radial-gradient(#69da68,#69da68);
	background: -o-radial-gradient(#69da68,#69da68);
	background: -moz-radial-gradient(#69da68,#69da68);
	background: radial-gradient(#69da68,#69da68);
	cursor: pointer;
	-ms-transform: scale(1.2,1.2);
	-webkit-transform: scale(1.2,1.2);
	transform: scale(1.2,1.2);
}
/*  help  */
#hlpcnt {
	position: absolute;
	left: 0;
	top: 0;
	display: none;
	background: #e8f2f2;
	-webkit-box-shadow: 0px 0px 15px #cccccc inset;
	-moz-box-shadow: 0px 0px 15px #cccccc inset;
	box-shadow: 0px 0px 15px #cccccc inset;
	color: #000000;
	border-radius: 15px;
	z-index: 50;
	padding: 5px 2%;
	box-sizing: border-box;
	font-family: "Iskoola Pota", "SinhalaSangamMN", sans-serif;
}
#hlpcnt li {
	list-style: none;
	margin: 10px 0;
}
#hlpcnt li span {
	color: #008000;
	font-size: 120%;
	font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
}
#hlpcnt li span:hover {
	text-decoration: underline;
	cursor: pointer;
}
#hlpcnt li div {
	display: none;
	margin: 10px 0;
	text-decoration: none;
}
#hlpcnt li div p {
	margin: 8px 0;
}
#hlpcnt img {
	width: 1.5em;
	position: relative;
	top: 0.25em;
}
#hlpcnt .help-sinhala-typing li {
	list-style: disc;
	width: 95%;
	margin-left: 5%;
}
#hlpcnt .help-star-unit-table {
	background-color: #ffffff;
	width: 30%;
	margin: auto;
	padding: 5px 2%;
}
#hlpcnt .help-star-unit-table li img {
	width: 15%;
	position: relative;
	top: 0.25em;
}
#hlpcnt .help-star-unit-table li:last-child img:last-child {
	width: 25%;
}
#hlpcnt .additional-preload-images img {
   width:1px;
   visibility:hidden;
}

/* game settings */

#gameModeList li input, #gameSignsList li input{
	visibility: hidden;
}
#gameModeList li:nth-child(1), #gameModeList li:nth-child(3), #gameSignsList li:nth-child(2){
 display:none;
}
#audio_cnt {
	position: absolute;
	left: 0;
	top: -300px;
}



/* screen  */
#cnt1, #cnt2, #cnt3 {
	width: 100%;
	height: 100%;
	-webkit-transition: opacity 2s ease;
	-moz-transition: opacity 2s ease;
	-o-transition: opacity 2s ease;
	transition: opacity 2s ease;
	position: absolute;
	left: 0;
	top: 0;
	border: 0px rgba(159, 168, 195, 0.8) solid;
	box-sizing: border-box;	
}


/* front page */
#cnt3 {
	-webkit-transition: all 2s ease;
	-moz-transition: all 2s ease;
	-o-transition: all 2s ease;
	transition: all 2s ease;	
	position: relative;
	background-color:#726d3e
}
.title {
	color: #ffffff;
	font-size: 180%;
	font-weight: bold;
	font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
	margin: 0 auto 10px auto;
	padding: 5px 2% 10px 2%;
	text-align: center;
	width: 95%;
	text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, rgba(0,0,0,0.1) 0 5px 5px;
	box-sizing: border-box;
}
.title a {
	color: #ffffff;
	text-decoration: none;
}
.title img {
	width: 1em;
	position: relative;
	top: 0.20em;
}
/* front screen animation */
.animation-container {
	width: 100%;
}
.animation-container td {
	position: relative;
}
.template-size-image {
	width: 40%;
	opacity: 0;
	visibility: hidden;
}
#wincrd {
	position: relative;
	transform-style: preserve-3d;
	perspective: 1000px;
	width: 40%;
	margin: 0 auto;
	background-color: #000000;
}
#wincrd img {
	width: 100%;
	position: absolute;
	left: 0;
	top: 0;
}
#wincrd img:first-child {
	-webkit-transform:translate3D(0,0,-100px) rotateY(0deg);
	transform:translate3D(0,0,-100px) rotateY(0deg);
	-webkit-animation: image_flip 10s linear 0s infinite;
	animation: image_flip 10s linear 0s infinite;
}
#wincrd img:nth-child(2) {
	-webkit-transform:translate3D(0,0,-100px) rotateY(90deg);
	transform:translate3D(0,0,-100px) rotateY(90deg);
	-webkit-animation: image_flip 10s linear 5s infinite;
	animation: image_flip 10s linear 5s infinite;
}
#wincrd img:nth-child(3) {
	-webkit-transition: all 1.5s ease;
	-moz-transition: all 1.5s ease;
	-o-transition: all 1.5s ease;
	transition: all 1.5s ease;
	opacity: 0;
	-webkit-transform:translate3D(0,0,-100px) rotateY(0deg);
	transform:translate3D(0,0,-100px) rotateY(0deg);
} 
@-webkit-keyframes image_flip
{
0% {
-webkit-transform: translate3D(0,0,-100px) rotateY(-90deg);
 transform:translate3D(0,0,-100px) rotateY(-90deg);
}
25% {
-webkit-transform:translate3D(0,0,-100px) rotateY(-90deg);
transform:translate3D(0,0,-100px) rotateY(-90deg);
}
35%  {
-webkit-transform:translate3D(0,0,-100px) rotateY(0deg);
  transform:translate3D(0,0,-100px) rotateY(0deg);
}
65% {
-webkit-transform:translate3D(0,0,-100px) rotateY(0deg);
transform:translate3D(0,0,-100px) rotateY(0deg);
}
75% {
-webkit-transform:translate3D(0,0,-100px) rotateY(90deg);
transform:translate3D(0,0,-100px) rotateY(90deg);
}
100% {
-webkit-transform:translate3D(0,0,-100px) rotateY(90deg);
transform:translate3D(0,0,-100px) rotateY(90deg);
}
}
@keyframes image_flip {
0% {
-webkit-transform:translate3D(0,0,-100px) rotateY(-90deg);
 transform:translate3D(0,0,-100px) rotateY(-90deg);
}
25% {
-webkit-transform:translate3D(0,0,-100px) rotateY(-90deg);
transform:translate3D(0,0,-100px) rotateY(-90deg);
}
35%  {
-webkit-transform:translate3D(0,0,-100px) rotateY(0deg);
  transform:translate3D(0,0,-100px) rotateY(0deg);
}
65% {
-webkit-transform:translate3D(0,0,-100px) rotateY(0deg);
transform:translate3D(0,0,-100px) rotateY(0deg);
}
75% {
-webkit-transform:translate3D(0,0,-100px) rotateY(90deg);
transform:translate3D(0,0,-100px) rotateY(90deg);
}
100% {
-webkit-transform:translate3D(0,0,-100px) rotateY(90deg);
transform:translate3D(0,0,-100px) rotateY(90deg);
}
}
.intro-screen-button-cnt {
	width: 90%;
	margin: 0.5em 5% 5px 5%;
	text-align: center;
}
.intro-screen-button-cnt input {
	font-size: 200%;	
	background-color: #d2691e;
	background: -webkit-radial-gradient(#d2691e, #d2610e);
	background: -o-radial-gradient(#d2691e, #d2610e);
	background: -moz-radial-gradient(#d2691e, #d2610e);
	background: radial-gradient(#d2691e, #d2610e); 
	border: none;
	box-shadow: 3px 3px 3px #224c22;
	border-radius: 5px;
	color: #ffffff;
	padding: 1px 3%;
	margin-top: 0.5em;
}
.intro-screen-button-cnt input:hover {
	background-color: #f08638;
	background: -webkit-radial-gradient(#f08638,#f08638);
	background: -o-radial-gradient(#f08638,#f08638);
	background: -moz-radial-gradient(#f08638,#f08638);
	background: radial-gradient(#f08638,#f08638);
	cursor: pointer;
	-ms-transform: scale(1.2,1.2);
	-webkit-transform: scale(1.2,1.2);
	transform: scale(1.2,1.2);
}
.intro-screen-button-cnt p span {
	font-size: 130%;
	color: #ffffff;
	padding: 2px 5%;
}
.intro-screen-button-cnt p span:hover {
	background-color: #726d3e;
	background-color: rgba(114,109,62,0.3);
	border: #4f4b2d 1px solid;
	border: rgba(79,75,45,0.2) 1px solid;
	box-shadow: 0px 0px 15px #4f4b2d inset;
	cursor: pointer;
	
}
.copyright-notice {
	color: #ffffff;
	font-size: 90%;
	text-align: center;
	position: absolute;
	bottom: 10px;
	left: 0;
}
.copyright-notice a {
	color: #ffffff;
}
/* final screen  */
.final-screen {
	padding: 10px 0;
	color: #ffffff;
	width: 96%;
	margin-left: 2%;
}
.final-screen p {
	text-align: center;
}
.final-intro {
	color: #ffffff;
	font-size: 130%;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	margin: 0 0 20px 0;
	color: #f0f0f0;
}
.final-intro img {
	width: 1em;
	position: relative;
	top: 0.15em;
}
.final-screen p:nth-child(2) {
	font-size:130%;
	padding-bottom:5px;
	font-family:Verdana, Geneva, Tahoma, sans-serif; 
	background-color:#ffffff;
	color:#000000;
    width:80%;
   margin:auto;
}
.final-score img {
	width: 15%;
}
.final-score .final-comet-star {
	width: 25%;
}
.final-screen table {
	width: 80%;
	margin: auto;
}
.final-screen table tr td {
	padding: 10px 2%;
	color: #000000;
}
.final-screen table tr td:first-child {
	width: 40%;
	font-size: 130%;
	color: #777777;
}
.final-screen table tr {
	background-color: #f9f9eb;
	border-bottom: 1px #ffffff solid;
}
.overall-result {
	font-size: 170%;
	font-weight: bold;
}
.final-screen input {
	margin-top: 30px;
	margin-top: 10px;
	font-size: 200%;
	background-color: #d2691e;
	background: -webkit-radial-gradient(#d2691e, #d2610e);
	background: -o-radial-gradient(#d2691e, #d2610e);
	background: -moz-radial-gradient(#d2691e, #d2610e);
	background: radial-gradient(#d2691e, #d2610e); 
	border: none;
	box-shadow: 3px 3px 3px #224c22;
	border-radius: 5px;
	color: #ffffff;
	padding: 1px 3%;
}
.final-screen input:hover {
	background-color: #f08638;
	background: -webkit-radial-gradient(#f08638,#f08638);
	background: -o-radial-gradient(#f08638,#f08638);
	background: -moz-radial-gradient(#f08638,#f08638);
	background: radial-gradient(#f08638,#f08638);
	cursor: pointer;
	-ms-transform: scale(1.2,1.2);
	-webkit-transform: scale(1.2,1.2);
	transform: scale(1.2,1.2);
}
.stats-screen {
	padding: 5px 0;
	color: #ffffff;
	width: 96%;
	margin-left: 2%;
}
.stats-screen p {
	text-align: center;
}
.stats-title {
	color: #ffffff;
	font-size: 130%;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	margin: 0 0 1vw 0;
	color: #f0f0f0;
}
.stats-screen table:first-child {
	width: 100%;
	margin: 0 auto 5px auto;
	background-color: #f9f9eb;
}
.stats-screen table:first-child td:first-child {
	width: 50%;
}
.stats-screen table:first-child td {
	border-bottom: 1px solid #ffffff;
	padding: 3px 2%;
}
.stats-screen div {
	background-color: #ffffff;
	color: #000000;
	margin: auto;
	padding: 10px 2%;
	width: 95%;
}
.stats-screen table:nth-child(2){
	width:100%;
	margin:10px auto;
}
.stats-screen table img {
	width: 25%;
}
.stats-screen table:nth-child(2) {
	background-color:#ffffff;
	color:#000000;
}
.stats-screen table:nth-child(2) tr:first-child {
  border-bottom:1px #000000 solid;
}
.stats-screen table:nth-child(2) tr:nth-child(even) {
    background-color:#f9f9eb;
}
.stats-screen table:nth-child(2) tr:last-child {
   border-top:2px #000000 solid;
   border-bottom:2px #000 solid;
}
.stats-screen table:nth-child(2) tr td:nth-child(1) {
  width:30%;
}
.stats-screen table:nth-child(2) tr td:nth-child(2), .stats-screen table:nth-child(2) tr td:nth-child(3){
  width:20%;
  text-align:center;
}
.stats-screen table:nth-child(2) tr td:nth-child(4) {
  text-align:center;
}
.stats-screen input {
	margin-top: 10px;
	font-size: 150%;
	background-color: #d2691e;
	background: -webkit-radial-gradient(#d2691e, #d2610e);
	background: -o-radial-gradient(#d2691e, #d2610e);
	background: -moz-radial-gradient(#d2691e, #d2610e);
	background: radial-gradient(#d2691e, #d2610e); 
	border: none;
	box-shadow: 3px 3px 3px #224c22;
	border-radius: 5px;
	color: #ffffff;
	padding: 1px 3%;
}
.stats-screen input:hover {
	background-color: #f08638;
	background: -webkit-radial-gradient(#f08638,#f08638);
	background: -o-radial-gradient(#f08638,#f08638);
	background: -moz-radial-gradient(#f08638,#f08638);
	background: radial-gradient(#f08638,#f08638);
	cursor: pointer;
	-ms-transform: scale(1.2,1.2);
	-webkit-transform: scale(1.2,1.2);
	transform: scale(1.2,1.2);
}
/* game screen */
.image_wrapper {
	width: 36.75vw;
	height: 24.5vw;
	margin: auto;	
	background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(255, 255, 255, 1) 70%, rgba(0, 0, 0, 0.5) 100%);
	background: -o-linear-gradient(right, rgba(0, 0, 0, 0.5) 0%, rgba(255, 255, 255, 1) 70%, rgba(0, 0, 0, 0.5) 100%);
	background: -moz-linear-gradient(right, rgba(0, 0, 0, 0.5) 0%, rgba(255, 255, 255, 1) 70%, rgba(0, 0, 0, 0.5) 100%);
	background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(255, 255, 255, 1) 70%, rgba(0, 0, 0, 0.5) 100%);
	box-shadow: 5px 5px 5px #2e302e;
	border-left: 15px solid rgba(107, 115, 137, 0.3);
	border-top: 15px solid rgba(122, 132, 160, 0.5);
	border-bottom: 15px solid rgba(137, 151, 191, 0.3);
	border-right: 15px solid rgba(159, 168, 195, 0.8);
}
.image_wrapper_small {
	height: 12.25vw;
} 
#cnt2, #cnt1  {
	font-size: 350%;
	font-size: 4vw;  
	background:#ffffff;	
}
.equationWrapper{
   padding-top:0.3em;
}
#cnt1 table, #cnt2 table{  
	margin:auto;
	text-align:right;
}
#cnt1 table:nth-child(2) tr td , #cnt2 table:nth-child(2) tr td {
  vertical-align:top; 
}
#cnt1 table:nth-child(2) tr td:first-child div, #cnt2 table:nth-child(2) tr td:first-child div {
    position:relative;
}
#cnt1 table:nth-child(2) tr td:first-child em, #cnt2 table:nth-child(2) tr td:first-child em {
     position:absolute;
   right:0;
   top:-0.15em;
}
.num3, .den3, .reduced_terms, .answer_sign {
	opacity: 0;
   	-webkit-transition: opacity 2s ease;
	-moz-transition: opacity 2s ease;
	-o-transition: opacity 2s ease;
	transition: opacity 2s ease;
}
.num1, .num2, .num3, .num4  {
	border-bottom:0.075em #000000 solid;
text-align:center;	
}
.den1, .den2, .den3, .den4  {
	text-align:center;	
}
.num3 {
	border-bottom-color:#ffffff;
}
.opacity_transition_on {
   	-webkit-transition: opacity 2s ease;
	-moz-transition: opacity 2s ease;
	-o-transition: opacity 2s ease;
	transition: opacity 2s ease;
}
.opacity_transition_off {
    -webkit-transition-property: none;
	-moz-transition-property: none;
	-o-transition-property: none;
    transition-property: none;
}
.fnOperator, .equal-sign {
  padding:0 0.15em;
}


/* input text box */
.input-container {
	width: 80%;
	margin-top: 10px;
	margin-left: 10%;
	display: none;
}
.text-input-container {
	background-color: #f7f6e7;
}
#sritext1, #sritext2,#sritext3 {
	border: none; 
  height: 1.4em;
	color: #000000;
	background-color: #f7f6e7;
	box-sizing: border-box;
	 width:2em;
	font-size: 350%;
	font-size: 4vw;  
  text-align:center;
}
#sritext1 {
  height: 2.8em;
  text-align:right;
  padding-right:0.15em;
    width:2em;
	background-color: #f9f9f1;
}
#sritext1:hover, #sritext2:hover, #sritext3:hover,#sritext1:focus, #sritext2:focus, #sritext3:focus {
  background-color:#ffffff;
}

.input-underline{
   width:60%;
   margin-left:20%;
  border-bottom:5px solid #000000;
}


.input-result-container {
	width: 10%;
	margin-left: 10px;
	min-width: 50px;
	max-width: 3.5em;
}
.input-result-container div {
	position: relative;
}
.input-result-container img {
	width: 100%;
}
.button-size-template-image {
	opacity: 0;
	visibility: hidden;
}
#inputTextButton, .input-result-button {
	position: absolute;
	left: 0;
	top: 0;
	background-color: #c7d0d5;
	background: -webkit-linear-gradient(#c7d0d5,#e5ecef,#c7d0d5);
	background: -o-linear-gradient(#c7d0d5,#e5ecef,#c7d0d5);
	background: -moz-linear-gradient(#c7d0d5,#e5ecef,#c7d0d5);
	background: linear-gradient(#c7d0d5,#e5ecef,#c7d0d5);
	-webkit-box-shadow: 0px 0px 8px rgba(176,189,198,0.5) inset;
	-moz-box-shadow: 0px 0px 8px rgba(176,189,198,0.5) inset;
	box-shadow: 0px 0px 8px rgba(176,189,198,0.5) inset; 
	border-radius:5px;
}
#inputTextButton {
	z-index: 20;
}
.input-result-button {
	-webkit-transition: opacity 2s ease;
	-moz-transition: opacity 2s ease;
	-o-transition: opacity 2s ease;
	transition: opacity 2s ease;
	z-index: 10;
	opacity: 0;
}
#inputTextButton:hover {
	background-color: #f5f9f9;
	background: -webkit-linear-gradient(#f5f9f9,#f5f9f9,#f5f9f9);
	background: -o-linear-gradient(#f5f9f9,#f5f9f9,#f5f9f9);
	background: -moz-linear-gradient(#f5f9f9,#f5f9f9,#f5f9f9);
	background: linear-gradient(#f5f9f9,#f5f9f9,#f5f9f9);
	cursor: pointer;
	-ms-transform: scale(1.1,1.1);
	-webkit-transform: scale(1.1,1.1);
	transform: scale(1.1,1.1);
}
.next-button-container {
	width: 20%;
	max-width: 6em;
	min-width: 70px;
	margin-left: 10px;
}
#nxtradbtn {
	width: 84%;
	padding: 0 8%;
	-webkit-box-shadow: 0px 0px 8px rgba(176,189,198,0.5) inset;
	-moz-box-shadow: 0px 0px 8px rgba(176,189,198,0.5) inset;
	box-shadow: 0px 0px 8px rgba(176,189,198,0.5) inset;
	display: none;
	border-radius: 5px;
	background-color:#a1cbcb;
}
#nxtradbtn:hover {
	cursor: pointer;
	background-color: #bfe1e0;
	-ms-transform: scale(1.1,1.1);
	-webkit-transform: scale(1.1,1.1);
	transform: scale(1.1,1.1);
}
/* scoreboard */
#scoreBoard {
	color: #ffffff;
	font-size: 130%;
}
#scoreBoard table {
	width: 100%;
}
#scoreBoard table td:last-child {
	width: 25%;
}
#starScore img {
	width: 8%;
	min-width: 20px;
}
#starScore .comet-star {
	width: 12%;
	min-width: 30px;
}
/* keyboard */
.letters-wrapper {
	padding: 0 20px;
	box-sizing: border-box;
	width: 100%;
	margin: auto;
}
#keyboardcontainer {
   margin-top:0.5em;
}

.segment-cnt {
	margin: 2px 1px;
}
.segment-cnt td .keyboard-btns, #clearbtn {
	color: #cccccc;
	font-size:250%;
	background-color: #404240;
	border: #838181 1px solid;
	-webkit-transition: background-color 1s ease;
	-moz-transition: background-color 1s ease;
	-o-transition: background-color 1s ease;
	transition: background-color 1s ease;
	cursor:default;
	padding-left:0.45em;
	padding-right:0.45em;
	border-radius:0.45em;
	min-width:40px;	
	text-align:center;
}
.segment-cnt td .keyboard-btns:hover {
	background-color: #ecf0f2;
	color: #333333;
}
#keyboardcontainer table:nth-child(50) td .keyboard-btns {
  overflow:hidden;
}
#clearbtn {
	background-image: url(images/clear.png);
	background-size: 30%;
	background-repeat: no-repeat;
	background-position: center center;
}
#clearbtn:hover {
	background-color: #ecf0f2;
}

.segment-cnt td  .input-select-button1,.segment-cnt td  .input-select-button2,.segment-cnt td   .input-select-button3 {
	background-size: 60%;
	background-repeat: no-repeat;
	background-position: center center;
	padding-left:0.15em;
	padding-right:0.15em;
} 
.segment-cnt td .input-select-button1:hover,.segment-cnt td .input-select-button2:hover,.segment-cnt td .input-select-button3:hover {
	background-color: #ecf0f2;
}
.input-select-button1{
	background-image: url(images/whole.png);
}
.input-select-button1:hover {
	background-image: url(images/whole2.png);
}
.input-select-button2{
	background-image: url(images/num.png);
}
.input-select-button2:hover {
	background-image: url(images/num2.png);
}
.input-select-button3{
	background-image: url(images/den.png);

}
.input-select-button3:hover {
	background-image: url(images/den2.png);
}



/*  query styles */
@media only screen and (max-width: 1400px) {
body {
	font-size: 16px;
}
#outer_wrapper {
	width: 60%;
}
.image_wrapper {
	width: 45vw;
	height: 30vw;
}
.image_wrapper_small {
	height:15vw;
}

#cnt2, #cnt1  {
	font-size: 350%;
	font-size: 4.5vw;

}
#hlpcnt li div {
	font-size: 110%;
}
.title {
	font-size: 150%;
}
.animation-container p {
	font-size: 250%;
}
.final-screen {
	font-size: 90%;
}
.final-screen input {
	margin-top: 20px;
}
.stats-screen {
	font-size: 90%;
}
}
@media only screen and (max-width: 1000px) {
#outer_wrapper {
	width: 80%;
}
.title p {
	font-size: 150%;
}
.image_wrapper {
	width: 60vw;
	height: 40vw;
}
.image_wrapper_small {
	height:20vw;
}

#cnt2,  #cnt1  {
	font-size: 400%;
	font-size: 6vw;
}
#sritext1, #sritext2,#sritext3 {
    font-size:300%;
	font-size: 5vw; 
}
}
@media only screen and (max-width: 800px), (max-width: 900px) and (min-resolution: 115dpi), (max-width: 1025px) and (min-resolution: 128dpi), (max-width: 1150px) and (min-resolution: 146dpi), (max-width: 1300px) and (min-resolution: 165dpi), (max-width: 1500px) and (min-resolution: 185dpi), (min-resolution: 215dpi) {
#outer_wrapper {
	width: 100%;
}
.image_wrapper {
	width: 75vw;
	height: 50vw;
}
.image_wrapper_small {
	height:25vw;
}
.letters-wrapper {
	padding: 0 2vw;
}
#cnt2, #cnt1  {
	font-size: 350%;
	font-size: 8vw; 
}
#sritext1, #sritext2,#sritext3 {
	font-size:250%;
	font-size: 6vw;
}
#ngmnu {
	width: 55%;
}
#ngmnu li {
	list-style: none;
	padding: 10px 15%;
}
.about-title {
	font-size: 130%;
}
#about_cnt p {
	padding: 5px 0;
	padding: 1vw 0;
}
.title {
	font-size: 130%;
	padding: 5px 2% 0 2%;
}
.animation-container p {
	font-size: 200%;
	bottom: 10px;
}
.intro-screen-button-cnt {
	margin-top:0.3em;
}
.intro-screen-button-cnt input {
	font-size: 170%;
}
.intro-screen-button-cnt p span {
	font-size: 130%;
}
.copyright-notice {
	font-size: 80%;
	bottom: 5px;
}
#scoreBoard {
	font-size: 130%;
}
#scoreBoard table td:last-child {
	width: 35%;
}
.final-intro {
	font-size: 120%;
	margin-bottom: 10px;
	margin-bottom: 1vw;
}
.final-screen table {
	font-size: 85%;
}
.final-screen table tr td:first-child {
	width: 35%;
}
.final-screen p:nth-child(2), .final-screen table {
  width:95%;
}
.final-score img {
	width: 12.5%;
}
.final-score .final-comet-star {
	width: 20%;
}
.final-screen input {
	margin-top: 10px;
	margin-top: 2vw;
	font-size: 150%;
}
.stats-screen table {
	font-size: 85%;
}
.stats-screen table:first-child td {
	padding: 2px 2%;
	padding: 0.5vw 2%;
}
.stats-screen div {
	padding: 5px 2%;
	padding: 2vw 2%;
}
.stats-screen input {
	margin-top: 5px;
	margin-top: 1vw;
	font-size: 130%;
}
}
/*  small screen */
@media (max-width: 500px), (max-width: 600px) and (min-resolution: 100dpi), (max-width: 700px) and (min-resolution: 120dpi), (max-width: 850px) and (min-resolution: 140dpi),(max-width: 1000px) and (min-resolution: 170dpi), (max-width: 1200px) and (min-resolution: 200dpi) {
#outer_wrapper {
	width: 100%;
	min-width: 350px;
}
.title {
	font-size: 100%;
	padding: 2px 2% 5px 2%;
}
.title-cnt-left-side {
	width: 0;
	min-width: 0;
	padding-right: 0;
}
.image_wrapper {
	border-width: 5px;
	min-width: 300px;
	min-height: 200px;
}
.image_wrapper_small {
	min-height: 100px;
}
#cnt2, #cnt1 {
	font-size: 200%;
    font-size: 2em; 
}
#sritext1, #sritext2,#sritext3 {
	font-size: 2em;
}
.segment-cnt td .keyboard-btns, #clearbtn {
	font-size: 200%;	
}
#ngmnu {
	width: 80%;
}
#hlpcnt .help-star-unit-table {
	width: 40%;
}
#hlpcnt .help-star-unit-table li img {
	top: 0.2em;
}
.animation-container p {
	font-size: 150%;
}
.intro-screen-button-cnt input {
	font-size: 120%;
}
.intro-screen-button-cnt p span {
	font-size: 100%;
}
.copyright-notice {
	font-size: 60%;
	bottom: 5px;
}
.next-button-container {
	width: 22.5%;
}

.final-intro {
	font-size: 100%;
}
.final-screen p:nth-child(2) {
   font-size:110%;
}
.final-screen table {
	font-size: 70%;
}
.final-screen table tr td {
	padding: 5px 2%;
}
.final-screen input {
	font-size: 130%;
}
.stats-screen {
	padding: 2px 0;
}
.stats-title {
	font-size: 120%;
}
.stats-screen table {
	font-size: 75%;
}
.stats-screen div {
	padding: 1px 2% 1px 2%;
}
.stats-screen input {
	margin-top: 2px;
	margin-top: 1vw;
	font-size: 120%;
}
}

