/**
 * Font Stlyles
 */

body{
	font-family: 'Trebuchet MS', sans-serif;
}

 @font-face{
	font-family: 'Middle Class Script';
	src: url('Middle-Class-Script.otf') format('opentype'),
		url('Middle-Class-Script.ttf') format('truetype');
}

.fancy{
	font-family: 'Middle Class Script', script;
}

header h1{
	font-size: 3em;
}

/**
 * Layout
 */

html, body{
	width: 100%;
	margin: 0;
	padding: 0;
	text-align: center;
	color: #1E2023;
}

body{
	position: relative;
}

.flexer{
	width: 100%;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
}

.flexer > div{
	flex-basis: 100%;
	flex-grow: 1;
	min-width: 170px;
}

.speed-test{
	flex-direction: column;
	height: 100%;
}

header{
	flex-basis: 25%;
	flex-grow: 0;
	background: #FFCC00;
	padding: 1.5em;
}

@media screen and (max-width: 420px){
	.test-running{ flex-wrap: wrap; }
}
@media screen and (min-height: 500px){
	html, body{ height: 100%; }
}

/**
 * Layout Design Treatment
 * Lt Grey #E2E2E2 
 * Yellow #FFCC00
 * Not black #1E2023
 */

.top-corner{
	position: absolute;
	top: -5px;
	right: .4em;
}

#numruns{
	background: none;
	border: none;
	border-bottom: 2px solid #1E2023;
	text-align: center;
	width: 40px;
}

input{
	outline: none !important;
}

input[type='number'] {
    -moz-appearance:textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

 #instructions{
 	display: inline;
 	padding: .5em;
 	margin: .5em;
 }

 #instructions:hover{
 	border-left: 1em solid white;
 	border-right: 1em solid white;
 }

.test-wrap{
	padding: .7em;
	border: 6px solid #1E2023;
}
.test-wrap:nth-child(even){
	border-left-width: 3px;
}
.test-wrap:nth-child(odd){
	border-right-width: 3px;
}

button, .modal-actions a{
	padding: .7em 1em;
	margin: .2em;
	border: 4px solid #FFCC00;
	background: none;
	outline: none;
	font-size: 1em;
	font-weight: bold;
	transition: 1s;
	text-align: left;
}

button:before{
	content: "Smash Me For...";
	display: block;
	font-size: .8em;
	font-weight: normal;
	line-height: 1.5em;
}

button:after{
	content: "➔";
	opacity: 0;
}

button:hover{
	background: #FFCC00;
}
button:hover::after{
	opacity: 1;
}

/** 
 * Modal Treatments
 */

.hideme{
	display: none;
}

.trimme{
	overflow: hidden;
}

.modal-screen{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #ffffff;
	background: rgba(255,255,255,.98);
}

.modal-contents{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;

}
.instruct-img{
	width: 75%;
	max-width: 500px;
	border: 2px solid #1E2023;
	box-shadow: 8px 8px 0 #1E2023;
}
.modal-instructions{
	padding: .25em;
	margin: .25em;
}

.modal-actions{
	position: fixed;
	top: 1.5em;
	left: 1.5em;
}
.modal-actions a{
	background: white;
}