#cards .loading img {
	vertical-align: middle;
}

#cards .group {
	display: none;
	padding: 2% 1%;
}
#cards .group.show {
	display: block;
}

/*
#cards .group_whole {
	background: #225588;
}

#cards .group_integer {
	background: #D2AA28;
}

#cards .group_fraction {
	background: #D25F28;
}

#cards .group_decimal {
	background: #1b8c64;
}
*/

#cards .screen {
	display: none;
}
#cards .screen.show {
	display: block;
}

#cards ul {
	margin: 0;
	padding: 0;
	margin-left: 10px;
}

#cards li {
	margin: 0;
	padding: 0;
	color: #333;
	display: inline-block;
	margin-right: 20px;
	list-style-type: none;
}

#cards h3 {
	border-bottom: 1px solid #666666;
	font-size: 24px;
}
#cards h3:before {
	content:'';
}

#cards h3 span {
	color: #333333;
}

#cards .block {
	background: rgba(249, 252, 238, 1);
	border-radius: 10px;
	padding: .5%;
	margin-bottom: 1em;

	/*
	background: #dddddd;
	*/
}

#cards input {
	margin: 0 0 10px 0;
	padding: 5px;
	border: 1px solid #666666;
	font-size: 22px;
}

#cards input[type=number] {width: 100px;}

#cards label {
	font-size: 22px;
}
.checkcontainer {display: block; position: relative; padding-left: 35px; margin-bottom: 12px; cursor: pointer; font-size: 22px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;}
.checkcontainer input {position: absolute; opacity: 0; cursor: pointer;}
.checkmark {position: absolute; top: 0; left: 0; height: 25px; width: 25px; background-color: #eee;}
.radiobutton {position: absolute; top: 0; left: 0; height: 25px; width: 25px; background-color: #eee; border-radius: 50%;}
.checkcontainer:hover input ~ .checkmark {background-color: #ccc;}
.checkcontainer:hover input ~ .radiobutton {background-color: #ccc;}
.checkcontainer input:checked ~ .checkmark {background-color: #225588;}
.checkcontainer input:checked ~ .radiobutton {background-color: #225588;}
.checkmark:after {content: ""; position: absolute; display: none;}
.radiobutton:after {content: ""; position: absolute; display: none;}
.checkcontainer input:checked ~ .checkmark:after {display: block;}
.checkcontainer input:checked ~ .radiobutton:after {display: block;}
.checkcontainer .checkmark:after {left: 9px; top: 5px; width: 5px; height: 10px; border: solid white; border-width: 0 3px 3px 0; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg);}
.container .radiobutton:after {top: 9px; left: 9px; width: 8px; height: 8px; border-radius: 50%; background: white;}

.types {display: flex; flex-wrap: wrap; justify-content: center;}
.types button {flex: 1 1 20%; color: #FFFFFF; font-size: 20px; border-radius: 5px; text-align: center; border: none; padding: 10px; margin: 10px;}
.types button:hover {opacity: 0.7;}
.fctitle {display: block; border-bottom: solid 1px #999999; font-size: 36px; color: #000000; padding:0; margin: 10px 0;}

.results p {color: #951413; font-size: 20px; font-weight: bold;}

#cards select, #cards select option {padding: 5px; min-width: 100px; font-size: 20px; font-family: Cambria, 'Times New Roman', serif;}

#cards .button {flex: 0 1 250px; margin: 5px; padding: 10px; background-color: #225588; color: #ffffff; border: solid 1px #000000;; border-radius: 5px; font-size: 1.5em;}

#cards .button:hover {opacity:0.7;}


#cards .card {
	text-align: center;
	padding-top: 16px;
}

#cards .card p {
	font-size: 24px;
	font-weight: bold;
}

#cards .card label {
	font-family: serif;
	font-size: 108px;
	margin-right: 16px;
}
#cards .card input {
	font-family: serif;
	font-size: 108px;
	border: 1px solid #ccc;
	width: 150px;
	text-align: center;
}
#cards .group_decimal .card input {
	width: 280px;
}

#cards .fraction {
	position: relative;
	font-family: serif;
	display: inline-flex;
	flex-direction: column;
	vertical-align: middle;

	height: 108px;

	height: 170px;
}
#cards .numerator {
	font-family: serif;
	display: inline-block;
	font-size: 40px;
	border-bottom: 3px solid #333;

	font-size: 60px;
}
#cards .denominator {
	font-family: serif;
	display: inline-block;
	font-size: 40px;

	font-size: 60px;
}

#cards .answer {
	display: inline-block;
	vertical-align: top;
}

#cards .group_fraction .answer {
	padding-top: 10px;
	vertical-align: text-bottom;
	vertical-align: super;
}

#cards .answer.whole input.response_whole {
	display: inline-block;
}
#cards .answer.whole .fraction {
	display: none;
}
#cards .answer.mixed input.response_whole {
	display: inline-block;
}
#cards .answer.mixed .fraction {
	display: inline-flex;
}
#cards .answer.basic input.response_whole {
	display: none;
}
#cards .answer.basic .fraction {
	display: inline-flex;
}

#cards .card input.response_whole {
	font-size: 56px;
	width: 70px;
	/*
	vertical-align: middle;
	*/
	margin-bottom: 0;

	font-size: 70px;
}

#cards .answer .fraction {
	vertical-align: bottom;
	margin-top: -50px;
	padding-top: 43px;
}

#cards .answer .fraction .numerator {
	margin-bottom: 10px;
}

#cards .answer .fraction input {
	height: 40px;
	width: 80px;
	font-size: 32px;

	height: auto;
	font-size: 60px;
}

#cards .screen_cards ul {
	text-align: center;
}

#cards .time {
	display: inline-block;
	min-width: 80px;
	text-align: left;
}

#cards .bricks {display: flex; flex-wrap: wrap; justify-content: space-around;}

#cards .bricks .brick {flex: 0 0 23%;	border: 1px solid #000000; padding: 0 10px; margin: 10px 0; display: flex; justify-content: space-between;}
#cards .bricks .brick p {color: #000000; margin: 5px; padding: 0; flex: 0 1 auto; font-size: 14px;}
#cards .bricks .brick p:first-of-type {font-size: 24px;}

#cards .day .brick:nth-child(1n) {background-color: #FFEEDD;}
#cards .day .brick:nth-child(2n) {background-color: #EFEEDD;}
#cards .day .brick:nth-child(3n) {background-color: #EFDEDD;}
#cards .day .brick:nth-child(4n) {background-color: #EFDECD;}
#cards .day .brick:nth-child(5n) {background-color: #DFDECD;}
#cards .day .brick:nth-child(6n) {background-color: #DFCECD;}
#cards .day .brick:nth-child(7n) {background-color: #DFCEBD;}
#cards .day .brick:nth-child(8n) {background-color: #CFCEBD;}
#cards .day .brick:nth-child(9n) {background-color: #CFBEBD;}
#cards .day .brick:nth-child(10n) {background-color: #CFBEAD;}
#cards .day .brick:nth-child(11n) {background-color: #BFBEAD;}
#cards .day .brick:nth-child(12n) {background-color: #BFAEAD;}

#cards .month .brick:nth-child(1n) {background-color: #DDEEFF;}
#cards .month .brick:nth-child(2n) {background-color: #DDEEEF;}
#cards .month .brick:nth-child(3n) {background-color: #DDDEEF;}
#cards .month .brick:nth-child(4n) {background-color: #CDDEEF;}
#cards .month .brick:nth-child(5n) {background-color: #CDDEDF;}
#cards .month .brick:nth-child(6n) {background-color: #CDCEDF;}
#cards .month .brick:nth-child(7n) {background-color: #BDCEDF;}
#cards .month .brick:nth-child(8n) {background-color: #BDCECF;}
#cards .month .brick:nth-child(9n) {background-color: #BDBECF;}
#cards .month .brick:nth-child(10n) {background-color: #ADBECF;}
#cards .month .brick:nth-child(11n) {background-color: #ADBEBF;}
#cards .month .brick:nth-child(12n) {background-color: #ADAEBF;}


#cards .processing img {
	vertical-align: middle;
}

#cards .print_summary_contents {
	display: none;
}

.button_whole,
.button_integer,
.button_decimal,
.button_fraction {
	position: relative;
}

.button_whole.active:after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -10px;
	display: inline-block;
	border-bottom: 2px solid #314159;
	width: 100%;
}
.button_integer.active:after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -10px;
	display: inline-block;
	border-bottom: 2px solid #951413;
	width: 100%;
}
.button_decimal.active:after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -10px;
	display: inline-block;
	border-bottom: 2px solid #235813;
	width: 100%;
}
.button_fraction.active:after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -10px;
	display: inline-block;
	border-bottom: 2px solid #271828;
	width: 100%;
}

@media only screen and (max-width: 650px)  {
	#cards .card label {
		font-family: serif;
		font-size: 68px;
	}
	#cards .card input {
		font-size: 68px;
	}
}

.print_summary_contents {
	display: none;
}

	div.print_summary_contents .fraction {
		position: relative;
		font-family: serif;
		display: inline-flex;
		flex-direction: column;
		vertical-align: middle;

	}
	div.print_summary_contents .numerator {
		font-family: serif;
		display: inline-block;
		border-bottom: 3px solid #333;
		text-align: center;

	}
	div.print_summary_contents .denominator {
		font-family: serif;
		display: inline-block;
		text-align: center;

	}
	/*
	div.print_summary_contents li {
	color: #fff;
	}
	*/

@media print {
	.header, .navmenu, .content, .sidenav, .tableofcontents, .footer {display: none;}
	body.print_summary {
		display: block;
		background: transparent;
		margin: 0 0 0 0;
	}

	body.print_summary div.print_summary_contents {
		display: block;
	}
	body.print_summary div.print_summary_contents h1 {
		text-align: left;
		display: block;
		color: #333333;
	}

	body.print_summary div.print_summary_contents ul {
		margin: 0;
		padding: 0;
	}

	body.print_summary div.print_summary_contents li {
		margin: 0;
		padding: 0;
		position: relative;
		font-size: 32px;
		list-style-type: none;
		padding-left: 50px;
		line-height: 1.5em;

		font-size: 18px;
	}
	body.print_summary div.print_summary_contents li.right:before {
		content: '\2714';
		position: absolute;
		left: 0px;
		font-weight: bold;
	}
	body.print_summary div.print_summary_contents.fractions li.right:before {
		top: 10px;
	}
	body.print_summary div.print_summary_contents li.wrong:before {
		content: '\2716';
		position: absolute;
		left: 0px;
		font-weight: bold;
	}
	body.print_summary div.print_summary_contents.fractions li.wrong:before {
		top: 10px;
	}

	body.print_summary div.print_summary_contents .fraction {
		position: relative;
		font-family: serif;
		display: inline-flex;
		flex-direction: column;
		vertical-align: middle;

	}
	body.print_summary div.print_summary_contents .numerator {
		font-family: serif;
		display: inline-block;
		border-bottom: 3px solid #333;
		text-align: center;
	}
	body.print_summary div.print_summary_contents .denominator {
		font-family: serif;
		display: inline-block;
		text-align: center;
	}
	body.print_summary div.print_summary_contents li {
	}

	/*
	body.print_summary_10 div.print_summary_contents li {
		font-size: 18px;
		float: left;
		padding-left: 24px;
		width: 50%;
	}
	*/

	body.print_summary_25 div.print_summary_contents li {
		font-size: 18px;
	}

	body.print_summary_50 div.print_summary_contents li {
		font-size: 18px;
		float: left;
		padding-left: 24px;
		width: 50%;
		line-height: 1.5em;
	}

	body.print_summary_100 div.print_summary_contents li {
		font-size: 16px;
		float: left;
		padding-left: 20px;
		width: 33%;
		line-height: 1.5em;
	}

}
