.calc {
	border: 2px solid #ddd;
	border-radius: 10px;
	width:300px;
	float:left;
	margin-top:0.5em;
	touch-action: manipulation;
}
.wrapper {
	width:650px;
}

.topnav {
    background-color: steelblue;
    overflow: hidden;
}

/* Style the links inside the navigation bar */
.topnav a {
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

/* Change the color of links on hover */
.topnav a:hover {
    background-color: lightskyblue;
    color: black;
}

/* Add a color to the active/current link */
.topnav a.active {
    background-color: goldenrod;
    color: white;
}



.option-panel {
	font-family: 'Mali', cursive;
	font-size: 14px;
}

body {
    font: normal 12px Verdana, Arial, sans-serif;
}

.calc-h2 {
	text-align: center;
	margin-bottom: 0px;
	margin-top: 0.5em;
	font-family: 'Mali', cursive;
}

.calc-h3 {
	margin-top: 0.2em;
	margin-bottom: 0.05em;
	font-family: 'Mali', cursive;
}

.mode-sub-text {
	float: left;
	width: 100%;
	text-align: center;
	font-size: 12px;
}

.font {
}

.blue-font {
	color: #3090C7;
}

.green-font {
	color: #4CC417;
}
.space {
	margin-top:0em;
	margin-bottom:0.5em;
}
.scoreboard {
	width: 50%;
	float: left;
	margin-left: 20px;
	margin-top:0.5em;
	font-family: 'Mali', cursive;
	font-size: 22px;
}

.left {
	width: 50%;
	float: left;
	text-align: left;
	margin: 0px;
}

.center {
	width: 50%;
	float: left;
	text-align: center;
	margin: 0px;
}

.three-col {
	width: 33%;
	float: left;
	text-align: center;
	margin: 0px;
}

.answerList {
    overflow-y: auto;
	width: 100%;
	height: 100%;
	font-size: 24px;
	border: 0px;
	font-family: 'Mali', cursive;
}

.top-container {
	display: flex;
	flex-wrap: wrap;
	height:360px;
	width:100%;
}

.bottom-container {
	display: flex;
	flex-wrap: wrap;
	width:100%;
}


.buttonRow {
  margin: 5px auto;
  text-align: center;
}

.output {
  display:block;
  margin: auto;
  margin-top: 5px;
  margin-bottom: 5px;
  width: 95%;
  height: 50px;
  
  /* Padding numbers slightly */
  padding-right: 5px;
  box-sizing: border-box;
  text-align: right;
  
  
  /* Curved border */
  background-color: #ddd;
  border: 2px solid #bbb;
  border-radius: 10px;
  
  font-size: 32px;
  color: #000000;
}

.button::-moz-focus-inner{
  border: 0;
  padding: 0;
}

.button{
  width:60px;
  display: inline-block;
  *display: inline;
  zoom: 1;
  padding: 60px 200px;
  margin: 5px 5px 5px 5px;
  cursor: pointer;
  border: 1px solid #bbb;
  overflow: visible;
  font: bold 13px arial, helvetica, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  color: #555;
  touch-action: manipulation;
  
  background-color: #ddd;
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255,255,255,1)), to(rgba(255,255,255,0)));
  background-image: -webkit-linear-gradient(top, rgba(255,255,255,1), rgba(255,255,255,0));
  background-image: -moz-linear-gradient(top, rgba(255,255,255,1), rgba(255,255,255,0));
  background-image: -ms-linear-gradient(top, rgba(255,255,255,1), rgba(255,255,255,0));
  background-image: -o-linear-gradient(top, rgba(255,255,255,1), rgba(255,255,255,0));
  background-image: linear-gradient(top, rgba(255,255,255,1), rgba(255,255,255,0));
  
  -webkit-transition: background-color .2s ease-out;
  -moz-transition: background-color .2s ease-out;
  -ms-transition: background-color .2s ease-out;
  -o-transition: background-color .2s ease-out;
  transition: background-color .2s ease-out;
  background-clip: padding-box; /* Fix bleeding */
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 2px 2px -1px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .3) inset;
  -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 2px 2px -1px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .3) inset;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 2px 2px -1px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .3) inset;
  text-shadow: 0 1px 0 rgba(255,255,255, .9);
  
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.button:hover{
  background-color: #eee;
  color: #555;
}

.button:active{
  background: #e9e9e9;
  position: relative;
  top: 1px;
  text-shadow: none;
  -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, .3) inset;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .3) inset;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .3) inset;
}

.button[disabled], .button[disabled]:hover, .button[disabled]:active{
  border-color: #eaeaea;
  background: #fafafa;
  cursor: default;
  position: static;
  color: #999;
  /* Usually, !important should be avoided but here it's really needed :) */
  -moz-box-shadow: none !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  
}

/* Smaller buttons styles */

.button.small{
  position: relative;
  padding: 2px 2px;
  font-size: 24px;
}


/* Larger buttons styles */

.button.large{
  padding: 12px 30px;
  margin-left: 5px;
  width: 140px;
  text-transform: uppercase;
}

.button.large:active{
  top: 2px;
}

/* Colored buttons styles */

.button.green, .button.red, .button.blue {
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.2);
  
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255,255,255,.3)), to(rgba(255,255,255,0)));
  background-image: -webkit-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
  background-image: -moz-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
  background-image: -ms-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
  background-image: -o-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
  background-image: linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
}

.button.placeholder{
	background-color: rgba(0,0,0,0);
	border-color: rgba(0,0,0,0);
	color: rgba(0,0,0,0);
}
.button.placeholder:hover{
	background-color: rgba(0,0,0,0);
	border-color: rgba(0,0,0,0);
	color: rgba(0,0,0,0);
}
/* */

.button.green{
  background-color: #57a957;
  border-color: #57a957;
}

.button.green:hover{
  background-color: #62c462;
}

.button.green:active{
  background: #57a957;
}

/* */

.button.red{
  background-color: #ca3535;
  border-color: #c43c35;
}

.button.red:hover{
  background-color: #ee5f5b;
}

.button.red:active{
  background: #c43c35;
}

/* */

.button.blue{
  background-color: #269CE9;
  border-color: #269CE9;
}

.button.blue:hover{
  background-color: #70B9E8;
}

.button.blue:active{
  background: #269CE9;
}

/* */

.green[disabled], .green[disabled]:hover, .green[disabled]:active{
  border-color: #57A957;
  background: #57A957;
  color: #D2FFD2;
}

.red[disabled], .red[disabled]:hover, .red[disabled]:active{
  border-color: #C43C35;
  background: #C43C35;
  color: #FFD3D3;
}

.blue[disabled], .blue[disabled]:hover, .blue[disabled]:active{
  border-color: #269CE9;
  background: #269CE9;
  color: #93D5FF;
}

/* Group buttons */

.button-group,
.button-group li{
  display: inline-block;
  *display: inline;
  zoom: 1;
}

.button-group{
  font-size: 0; /* Inline block elements gap - fix */
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, .1);
  border-bottom: 1px solid rgba(0, 0, 0, .1);
  padding: 7px;
  -moz-border-radius: 7px;
  -webkit-border-radius: 7px;
  border-radius: 7px;
}

.button-group li{
  margin-right: -1px; /* Overlap each right button border */
}

.button-group .button{
  font-size: 13px; /* Set the font size, different from inherited 0 */
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  border-radius: 0;
}

.button-group .button:active{
  -moz-box-shadow: 0 0 1px rgba(0, 0, 0, .2) inset, 5px 0 5px -3px rgba(0, 0, 0, .2) inset, -5px 0 5px -3px rgba(0, 0, 0, .2) inset;
  -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, .2) inset, 5px 0 5px -3px rgba(0, 0, 0, .2) inset, -5px 0 5px -3px rgba(0, 0, 0, .2) inset;
  box-shadow: 0 0 1px rgba(0, 0, 0, .2) inset, 5px 0 5px -3px rgba(0, 0, 0, .2) inset, -5px 0 5px -3px rgba(0, 0, 0, .2) inset;
}

.button-group li:first-child .button{
  -moz-border-radius: 3px 0 0 3px;
  -webkit-border-radius: 3px 0 0 3px;
  border-radius: 3px 0 0 3px;
}

.button-group li:first-child .button:active{
  -moz-box-shadow: 0 0 1px rgba(0, 0, 0, .2) inset, -5px 0 5px -3px rgba(0, 0, 0, .2) inset;
  -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, .2) inset, -5px 0 5px -3px rgba(0, 0, 0, .2) inset;
  box-shadow: 0 0 1px rgba(0, 0, 0, .2) inset, -5px 0 5px -3px rgba(0, 0, 0, .2) inset;
}

.button-group li:last-child .button{
  -moz-border-radius: 0 3px 3px 0;
  -webkit-border-radius: 0 3px 3px 0;
  border-radius: 0 3px 3px 0;
}

.button-group li:last-child .button:active{
  -moz-box-shadow: 0 0 1px rgba(0, 0, 0, .2) inset, 5px 0 5px -3px rgba(0, 0, 0, .2) inset;
  -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, .2) inset, 5px 0 5px -3px rgba(0, 0, 0, .2) inset;
  box-shadow: 0 0 1px rgba(0, 0, 0, .2) inset, 5px 0 5px -3px rgba(0, 0, 0, .2) inset;
}

.difficulty.active {
  border-style: 1px;
  border-radius: 50%;
  color: #008000;
  line-height: 10px;
  text-align: center;
  margin: 0px;
}

.difficulty {
	border-style: 0px;
	color: #A9A9A9;
	cursor: pointer;
	font-size: 24px;
	margin: 0px;
}

.difficulty:hover {
	color: #000000;
}

.gamemode.active {
  color: #008000;
  text-align: center;
  margin: 0px;
  display: table-cell;
}

.gamemode {
	border-style: 0px;
	color: #A9A9A9;
	cursor: pointer;
	font-size: 24px;
	margin: 0px;
}

.gamemode:hover {
	color: #000000;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 130px;
    background-color: #008B8B;
    color: #FFFFFF;
    text-align: left;
	font-size: 16px;
    padding: 5px;
    border-radius: 6px;
 
    /* Position */
    position: absolute;
	z-index: 1;
    top: 100%;
    left: 50%; 
    margin-left: -60px;
    
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

.tooltip:active .tooltiptext {
    visibility: visible;
}

.tooltip:active .tooltip:hover .tooltiptext {
    visibility: visible;
}

.tooltip-border {
	border-bottom: 1px dotted black
}
