img{border:none;}
textarea,input,button{outline:none;}
textarea:focus, input:focus, button:focus{outline:none; border:none;}
textarea:active, input:active, button:active{outline:none;border:none;}
a:hover {outline: none;}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, main {
	display: block;
}
label{margin:0px;}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
*{
	box-sizing: border-box;
	margin:0;
	padding:0;
}

body{
	font-family: 'Arial', sans-serif;
	font-size: 18px;
	background: url(../img/bg.jpg) center center repeat;
}

#container {
	width:560px;
	margin:10px auto;
	padding:5px;
}

#quiz-container button {
	cursor:pointer;
}

.rule {
	position:absolute;
	left:0;
	top:0;
	height:100vh;
	width:100%;
	background:rgba(188,212,220,0.7);
	display:none;
}
.rule .inner {
	display:flex;
	height:100%;
}

.rule .inner .img{
	margin:auto;
}

.top-panel {
	margin-top: 15px;
	font-size: 20px;
}

.counter {
	display: inline-block;
	margin: 0 30px;
}

.game-container {
	position:relative;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin: 20px auto;
}

.img-box {
	position: relative;
	border: 6px solid #fff;
	cursor: pointer;
	transition: transform 0.2s;
}

.img-box:hover {
	transform: scale(1.02);
}

.img-box img {
	width: 100%;
	height: auto;
	display: block;
}


@keyframes blink {
	0%, 50%, 100% { border-color: #ff0000; }
	25%, 75% { border-color: transparent; }
}

.highlight-wrong {
	animation: blink 1s infinite;
}


.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	z-index: 10;
	display: none;
}

.overlay .inner{
	width:100%;
	height:100%;
	display:flex;
}

.overlay img {
	width: 170px;
	height: 170px;
	margin:auto;
}

#explanation {
	position:absolute;
	left:0;
	top:0;
	display: none;
	width:100%;
	height:100%;
}

#explanation #inner {
	display:flex;
	width:100%;
	height:100%;
}

#explanationImg {
	margin:auto;
}

.bottom-buttons{
	display:flex;
	justify-content:space-around;
}


.bottom-buttons #rule-button {
	background: url(../img/rule.gif) center center no-repeat;
	width:202px;
	height:30px;
	border:none;
	margin:0 20px;
}

.bottom-buttons #next-button {
	background: url(../img/next.gif) center center no-repeat;
	width:202px;
	height:30px;
	border:none;
	margin:0 20px;
}

.top-panel {
	color:#fff;
	display:flex;
	justify-content:space-between;
	margin-bottom:15px;
}

.top-panel span{
	background: #fff;
	color:#000;
	padding:3px 10px;
	width:80px;
	text-align:center;
	display:inline-block;
}







