* {
	font-family: Roboto, Arial, sans-serif;
	font-size: 16px;
}

h1 {
	font-size: 150%;
}

body {
	background-color: #FFFFFF;
	margin: 0px 10px;
}

div.game_select {
	float: left;
    width: min(500px, 100%);
}

div.game_select:not(:last-child) {
	margin-bottom: 2rem;
}

div.game_select .heading {
	font-weight: bold;
	margin-bottom: 8px; 
}

div.game_select input {
	margin-top: 12px;
}

audio {
	margin-bottom: 20px;
	min-width: min(400px, 60vw);
	min-height: 60px;
}

#loader_div {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 400px;
	height: 150px;
	margin-top: -75px;
}

#loader_box {
	border: 1px solid #888888;
}

.loader_img {
	width: 2px;
	height: 20px;
	margin: 0px;
	border: 0px;
}

#msg_result {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -270px;
    margin-left: -125px;
	display: none;
	z-index: 100;
	text-align: center;
}

#msg_result_innerbox {
	width: 200px;
    padding: 50px 30px 45px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 8px;
    box-shadow: 1px 1px 8px 0px #555;
}

#msg_result .heading {
	font-size: 120%;
	margin-bottom: 15px;
	font-weight: bold;
}

#heading_ok {
	color: #008800;
}

#heading_fail {
	color: #AA0000;
}

#msg_result .species {
	margin-bottom: 15px;
	line-height: 16pt;
}

#container {
	display: grid;
  	height: 100vh; /* Full viewport height */
  	place-items: center; /* Center items both vertically and horizontally */
}

#box {
	max-width: 768px; /* Maximum width suitable for iPad */
 	width: 100%; /* Make the width responsive */
}

#pics_container {
	text-align: center;
}

#pics {
	height: 400px;
    display: grid;
	gap: 2px;
	align-items: end;
	justify-content: center;
	justify-items: center;
	background: linear-gradient(0deg, #ddd, #eee, #f7f7f7, transparent);
    border-radius: 8px;
}

#pics div {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
}

#pics img[src*=svg] {
	max-width: 50%;
    margin: 20px;
}

#nissetest {
	text-align: center;
}

#myanswer {
	width: min(400px, calc(100% - 20px));
	margin: 30px auto 0px;
	display: block;
	text-align: center;
	padding: 4px;
    font-size: 120%;
}

#nisseanswer {
	text-align: center;
	width: 300px;
	margin: auto;
	margin-top: 8px;
}

#skip_container {
	text-align: center;
	margin: 20px auto;
}

#skip {
	cursor: pointer;
    display: inline;
    padding: 6px 10px;
    background: #000;
    border-radius: 4px;
    color: #fff;
    font-size: 90%;
}

#millionaire {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	width: 100%;
}

.millionaire_option {
	color: #000;
	height: 20px;
	background: #f8f8f8;
	border-radius: 10px;
	padding: 15px 20px 13px;
	text-align: left;
	cursor: pointer;
    border: 0.5px solid #777;
}

#lifelines {
	grid-column: span 2;
	text-align: center;
	margin: 30px auto;

}

#proggressbar {
	margin: 10px 0px 20px;
	height: 10px;
	border-radius: 5px;
	background-color: #EEEEEE;
}

#bar {
	height: 100%;
	background-color: #008000;
	border-radius: 5px;
	transition-property: width;
	transition-timing-function: linear;
}

#fiftyfifty {
	cursor: pointer;
    display: inline;
    padding: 8px 12px;
    background: #000;
    border-radius: 4px;
    color: #fff;
    font-size: 120%;
}

#fiftyfifty:active {
	position: relative;
    right: 0.3px;
    top: 1px;
}

#counter_box {
	background-color: #eee;
	padding: 5px;
	margin: 30px auto 20px;
	width: calc(100% - 10px);
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(auto-fill, minmax(min(10px, 100%), 1fr));
    border-radius: 10px;
}

.counter_img {
	width: 10px;
    height: 10px;
    border-radius: 5px;
    background: #ccc;
}

.counter_img.correct {
	background: #27b427;
}

#stopsign_container {
	width: 100%;
	text-align: center;
	margin-top: 20px;
}

#stopsign {
	cursor: pointer;
    display: inline;
    padding: 6px 10px;
    border-radius: 4px;
    border: 0.5px solid #aaa;
    font-size: 90%;
}

#next_button {
	cursor: pointer;
    display: inline;
    padding: 6px 10px;
    background: #000;
    border-radius: 4px;
    color: #fff;
    font-size: 90%;
	border: none;
	box-shadow: none;
}

#footer {
	padding-top: 10px;
	color: #AAAAAA;
}

.results_img {
	margin: 5px;
}

fieldset {
	padding: 15px;
	margin: 10px;
}

legend {
	padding: 2px 8px 2px 8px;
	margin-bottom: 10px;
	color: #000000;
}

legend,
legend span {
	font-weight: normal;
	font-size: 12pt;
}

div.sp_sv {
	font-weight: bold;
	font-size: 120%;
	margin-bottom: 12px;
}

div.sp_fi {
	font-weight: normal;
}

div.sp_latin {
	font-weight: normal;
	font-style: italic;
	font-size: 80%;
}

fieldset.game_select legend {
	font-weight: bold;
}

.left {
	float: left;
}

.right {
	float: right;
}

.clear {
	clear: both;
}

.clickable {
	cursor: pointer;
}

.red {
	color: red;
}

@media (max-width: 768px) {
	#millionaire {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.millionaire_option {
		text-align: center;
		height: 14px;
		background: #f8f8f8;
		padding: 11px 14px 15px;
	}

	#lifelines {
		grid-column: auto;
		margin: 15px auto;
	}

	#fiftyfifty {
		padding: 5px 9px;
		font-size: 100%;
	}

	#counter_box {
		position: fixed;
		bottom: 10px;
		width: calc(100% - 30px);
		margin: 0px;
		padding: 4px;
		grid-template-columns: repeat(auto-fill, minmax(min(4px, 100%), 1fr));
		border-radius: 4px;
	}

	.counter_img {
		width: 4px;
		height: 4px;
		border-radius: 4px;
	}

	#stopsign_container {
		position: fixed;
		top: 0px;
		right: 10px;
		text-align: right;
	}
}

@media (max-height: 800px) {
	#pics {
		height: 37vh;
	}
	
	#millionaire {
		gap: 8px;
	}

	.millionaire_option {
		height: 14px;
		padding: 8px 16px 12px;
	}

	audio {
		margin-bottom: 10px;
		min-height: 55px;
	}

	#counter_box {
		bottom: 6px;
	}
}
