:root{
	--grip-gap: 8px;
}
/* Grundlayout */
body, html {
	font-family: sans-serif;
	text-align: justify;
	background-color: #f4f4f4;
	margin: 0;
	padding: 0px;
	height: 100%;
	width: 100%;
}
.text {
    max-width: 700px;      /* begrenzt die Zeilenbreite */
    margin: 40px auto;     /* Abstand oben/unten + zentriert */
    padding: 0 20px;       /* Abstand links/rechts */
    text-align: justify;   /* Blocksatz */
    line-height: 1.6;      /* bessere Lesbarkeit */
}

/* bingo gitter */
#bingo {
	display: grid;
	grid-template-columns: repeat(3, 1fr); /* 5 spalten */
	gap: 1px; /*var(--grip-gap);*/
	width: 100%;

	/*max-width: 100vh;*/
	margin: 10px auto;
/*	padding 5px; */
	box-sizing: border-box;
}
/*einzelnes feld*/
.cell {
	background: white;
	border: none; /* 2px solid #333;*/
	border-radius: 0; /*8px;*/
	box-sizing: border-box;
	position: relative;
	padding: 0;/* 10px;*/
	user-select:none;
	min-height: auto; /*120px;*/
	max-height: none; /*30vw;*/
	font-size: 16px;
	aspect-ratio: 1 / 1;
	overflow: hidden;

	/* text zentrieren */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

}

/* markiertes Feld */

.cell.marked {
	background-color:#9ccc65;
}
.cell.marked::after{
	content: '';
	position: absolute;
	width: 60px;
	height: 60px;
	border: 5px solid #006400;
	border-radius: 50%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: rgba(76,175,80,0.2);
	pointer-events: none;
}
.cell.marked img{
	opacity: 0.5;
	filter: grayscale(50%);
}
/* images */
.insect-img{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover; /*contain;*/
	margin: 0; /*5px auto;*/
/*	mix-blend-mode: multiply;		 rechnet weissen hintergrund der bilder weg */ 
}
/*
.insect-label{
	margin-top: 2px;
	font-size: 10px;
	text-align: center;
	line-height: 1;
	color: #333;
	font-family: sans-serif;
}
*/


/* dunkler Hintergrund bei Gewinn */
.overlay{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.7); /* schwarz mit 0.7 sichtbarkeit */
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000; /* ganz nach oben*/
}

/*gewinn fenster */
.modal{
	background: white;
	padding: 25px;
	border-radius: 15px;
	width: 85%;
	max-width: 400px; /* nicht zu breit auf desktop */
	text-align: center;
	box-shadow: 0 4px 15px rgba(0,0,0,0.3);
	box-sizing: border-box;
}
.modal h2{
	margin-top: 0;
	color: #2e7d32;
}
.modal input{
	width: 100%;
	padding: 12px;
	margin: 15px 0;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 16px; /* ist wichtig: IOS zoomt bei weniger als 16 px rein */
	box-sizing: border-box;
}
.modal button{
	width: 100%;
	padding: 12px;
	background-color: #2e7d32;
	color: white;
	border: none;
	border-radius: 5px;
	font-size: 16px;
	cursor: pointer;
	margin-bottom: 5px
}


#close {
	background-color: #f44336;
	margin-top: 10px;
}
