/* Aptallık Testi — genel yerleşim (eski index.php'den) + 2.00 arayüzü */
*{
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
input{ user-select: text; }
body{
	font-size:16px;
	font-family: 'Sriracha', cursive;
}
button{ font-family: inherit; }
.cerceve{
	background:#fbf97d;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow:hidden;
}
.oyun{
	position:relative;
	margin:auto;
}
.tik{ cursor:pointer; }

/* Ortak başlık (Bölüm N) */
.header{
	color: red;
	font-weight: bold;
	text-align: center;
	z-index: 1;
}
.bolum-no{ font-weight: bold; }

/* 800 x 600 */
@media (aspect-ratio: 8/6){
	.oyun{
		width:133vh !important;
		height:100vh !important;
		margin:0 !important;
	}
}

@media (min-aspect-ratio: 60/100) and (max-aspect-ratio: 1/1){
	.header{
		margin-top: -16vw !important;
	}
}
/* dik tablet (800x1280, 768x1024): -16vw'de "Bölüm N" sağ üstteki süre/düğmelerle çakışıyordu (2026-10-19); kareye yakın ekranda yer dar, eski değer kalır */
@media (min-aspect-ratio: 60/100) and (max-aspect-ratio: 80/100){
	.header{
		margin-top: -7.5vw !important;
	}
}

/* Landscape */
@media (min-aspect-ratio: 1/1){
	*{ font-family: 'Sriracha', cursive; }
	body{
		margin:0;
		background: url(../img/mobile-bg3.svg),#dfb8a1;
		background-size: 100%;
	}
	.cerceve{
		width:100vw;
		background: none;
	}
	.oyun{
		background: url(../img/lines2.svg),#fbf97d;
		background-size: 13%;
		background-repeat: repeat;
		aspect-ratio:8/6;
		height:98vh;
		margin-top: 1vh;
		box-shadow: 0px 5px 10px #936248;
	}
	.header{
		font-size: 5vh;
		background: #fbf97d;
		height: 17vh;
		line-height: 17vh;
	}
	#line-1{
		display:block; position: absolute; border: 0.1vh solid #C87D34;
		top: 15.5vh; width: 100%; z-index: 1;
	}
	#line-2, #line-3, #line-4{
		display:block; position: absolute; border: 0.1vh solid #C87D34;
		top: 48vh; width: 98vh; rotate: 90deg; z-index: 1;
		pointer-events:none;
	}
	#line-2{ left: -33vh; }
	#line-3{ left: -33.5vh; }
	#line-4{ left: -34.5vh; }
	#hole-1, #hole-2{
		display:block; position: absolute; width: 4vh; height: 4vh; left: 6vh;
		background: url(../img/hole.svg);
	}
	#hole-1{ top: 21vh; }
	#hole-2{ top: 87vh; }
	#space{
		width: 100%; height: 17vh; top: 0; position: absolute;
		background: #fbf97d; z-index: -1;
	}
}

/* Portrait */
@media (max-aspect-ratio: 1/1){
	body{
		font-size: 10px;
		background: url(../img/mobile-bg3.svg),#dfb8a1;
		background-size: 100%;
	}
	.oyun{
		width:100%;
		height: unset;
		text-align:center;
		background: url(../img/lines2.svg),#fbf97d;
		background-size: 30%;
		background-repeat: repeat;
		padding-bottom: 1vw;
	}
	.cerceve{
		width:94vw;
		overflow:hidden;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		box-shadow: 0px 5px 10px #936248;
		padding-bottom: 10vw;
		background: url(../img/bottom-line.svg),#fbf97d;
		background-size: 8%;
		background-repeat: repeat-x;
		background-position: bottom;
		max-height: 100vh;
	}
	.head{
		background: url(../img/headlines1.svg),url(../img/hole.svg),url(../img/hole.svg);
		background-position: bottom,12% 30%,88% 30%;
		background-size: 5%,6%,6%;
		background-repeat: repeat-x, no-repeat,no-repeat;
		height: 20vw;
		margin-bottom:0;
	}
	.header{
		margin-top: 5vw;
		font-size: 6vw;
		text-decoration:underline;
		background: unset;
		height: unset;
		line-height: unset;
	}
	#line-1, #line-2, #line-3, #line-4, #hole-1, #hole-2, #space{ display:none; }
}

/* ---- Metin kutusu + Tamam düğmesi ---- */
.giris-kutu{ display:inline-flex; align-items:flex-end; gap:0.4em; white-space:nowrap; }
.text-box{ font-family: inherit; font-weight:bold; user-select:text; }
.tamam{
	flex:none; border:none; border-radius:50%; cursor:pointer; color:#fff; background:#2d862d;
	box-shadow:0 0.6vh 0 #1d5a1d; font-weight:bold; padding:0; line-height:1;
	width:7vh; height:7vh; font-size:4vh;
}
.tamam:active{ transform:translateY(0.4vh); box-shadow:0 0.2vh 0 #1d5a1d; }
@media (max-aspect-ratio: 1/1){
	.tamam{ width:11vw; height:11vw; font-size:6vw; box-shadow:0 1vw 0 #1d5a1d; }
}

/* ---- İlerleme çubuğu, süre, araç düğmeleri ---- */
#ilerleme{
	position:absolute; left:0; right:0; top:0; height:1vh; z-index:3; display:none; background:rgba(0,0,0,.08);
}
#ilerleme-dolu{ height:100%; width:0; background:#2d862d; transition:width .3s; }
#arac{
	position:absolute; top:1.6vh; right:1.6vh; z-index:6; display:flex; align-items:center; gap:1vh;
	font-size:3vh; color:#663333; font-weight:bold;
}
#durum{ white-space:nowrap; }
.arac-btn{
	width:5.5vh; height:5.5vh; border-radius:50%; border:0.3vh solid #663333; background:#fffbd0;
	color:#663333; font-size:3.2vh; font-weight:bold; cursor:pointer; padding:0; line-height:1;
	display:flex; align-items:center; justify-content:center;
}
.arac-btn svg{ width:62%; height:62%; }
@media (max-aspect-ratio: 1/1){
	#ilerleme{ height:1.2vw; }
	#arac{ top:-17vw; right:2vw; gap:1.5vw; font-size:4vw; }
	.arac-btn{ width:8.5vw; height:8.5vw; font-size:5vw; border-width:0.5vw; }
	.oyun{ overflow:visible; }
}

/* ---- Boş metin kutusu uyarısı ---- */
.salla{ animation:salla .35s; }
@keyframes salla{ 0%,100%{transform:translateX(0)} 25%{transform:translateX(-1.2vh)} 75%{transform:translateX(1.2vh)} }

/* ---- Katman: yardım, sonuç, cevaplar ---- */
#katman{
	position:fixed; inset:0; z-index:1000; display:none; align-items:center; justify-content:center;
	background:rgba(70,40,20,.35);
}
#katman.acik{ display:flex; }
.panel{
	max-width:110vh;
	background:#fffbd0; border:0.5vh solid #663333; border-radius:2.5vh; box-shadow:0 1vh 0 rgba(0,0,0,.2);
	width:82%; max-height:90%; display:flex; flex-direction:column; box-sizing:border-box;
	padding:2.5vh 3vh; color:#333; text-align:center; position:relative;
}
.panel h2{ margin:0 0 1.5vh; color:#0102a0; font-size:5vh; line-height:1.15; }
.panel p{ margin:0.8vh 0; font-size:3vh; line-height:1.35; }
.panel .kaydir{ overflow-y:auto; text-align:left; flex:1 1 auto; min-height:0; padding-right:1vh; }
.kapat{
	position:absolute; top:1vh; right:1.2vh; width:5vh; height:5vh; border:none; background:none;
	font-size:4.5vh; line-height:1; color:#663333; cursor:pointer; padding:0;
}
.dugmeler{ display:flex; flex-wrap:wrap; justify-content:center; gap:1.5vh; margin-top:2vh; flex:none; }
.dugme{
	border:none; border-radius:1.5vh; padding:1.2vh 2.6vh; font-size:3.4vh; font-weight:bold; cursor:pointer;
	color:#fff; background:#2d862d; box-shadow:0 0.7vh 0 #1d5a1d; white-space:nowrap;
}
.dugme.mavi{ background:#3657c9; box-shadow:0 0.7vh 0 #233c8f; }
.dugme.kahve{ background:#a0522d; box-shadow:0 0.7vh 0 #6d3518; }
.dugme:active{ transform:translateY(0.4vh); box-shadow:0 0.3vh 0 rgba(0,0,0,.3); }
.sonuc-puan{ font-size:9vh; font-weight:bold; color:#a0522d; line-height:1.1; }
.sonuc-puan small{ font-size:4vh; color:#663333; }
.sonuc-ek{ font-size:3vh; color:#663333; }
.sonuc-rekor{ color:#2d862d; font-weight:bold; }
.liste-satir{ border-bottom:0.2vh dashed #c9b25a; padding:1vh 0; font-size:2.7vh; line-height:1.35; }
.liste-satir b{ color:#0102a0; }
.liste-satir .durum-d{ color:#2d862d; font-weight:bold; }
.liste-satir .durum-y{ color:#d42020; font-weight:bold; }
.liste-satir .acik{ color:#555; font-size:2.4vh; }
.yardim-metin{ text-align:left; }
.yardim-metin li{ font-size:2.9vh; line-height:1.35; margin:0.6vh 0; }
.yardim-metin ul{ margin:0; padding-left:3.5vh; }
.en-iyi{ font-size:3vh; color:#663333; font-weight:bold; }
.uyari{ font-size:2.6vh; color:#2d862d; min-height:3vh; }
@media (max-aspect-ratio: 1/1){
	.panel{ width:92%; max-height:92%; border-width:0.8vw; border-radius:4vw; padding:4vw; }
	.panel h2{ font-size:7.5vw; margin-bottom:2vw; }
	.panel p{ font-size:4.6vw; }
	.kapat{ width:9vw; height:9vw; font-size:8vw; }
	.dugmeler{ gap:2.5vw; margin-top:3vw; flex-direction:column; align-items:center; }
	.dugmeler .dugme{ min-width:60%; }
	.dugme{ font-size:5vw; padding:2vw 4vw; border-radius:2.5vw; box-shadow:0 1vw 0 rgba(0,0,0,.3); }
	.sonuc-puan{ font-size:14vw; }
	.sonuc-puan small{ font-size:6vw; }
	.sonuc-ek{ font-size:4.6vw; }
	.liste-satir{ font-size:4.2vw; padding:2vw 0; }
	.liste-satir .acik{ font-size:3.8vw; }
	.yardim-metin li{ font-size:4.4vw; }
	.yardim-metin ul{ padding-left:5vw; }
	.en-iyi{ font-size:4.5vw; }
	.uyari{ font-size:4vw; }
}
@media (prefers-reduced-motion: reduce){
	.salla{ animation-duration:.01s; }
}

/* ---- SWF kare makinesi bölümleri (orijinal SWF'den çizilmiş saydam görsel + tıklama alanları) ---- */
.ekran-baslik{
	position:relative; z-index:3; font-size:4.6vh; font-weight:bold; text-align:center; color:#0102a0;
	margin:2.5vh 4vh 0 9vh; line-height:6vh; min-height:6vh;
}
.baslik-alan{ cursor:pointer; }
.ekran-sahne{ position:absolute; inset:0; z-index:2; container-type:size; }
.ekran-ic{ position:absolute; left:0; top:0; width:100%; height:100%; }
.ekran-img{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none; -webkit-user-drag:none; }
.ekran-alan{ position:absolute; -webkit-tap-highlight-color:transparent; }
.ekran-alan.tik{ cursor:pointer; }
.ekran-alan.bos{ cursor:pointer; }
.ekran-giris{ position:absolute; display:flex; align-items:center; gap:1cqw; }
.ekran-giris .text-box{
	flex:1 1 auto; min-width:0; width:100%; height:100%; box-sizing:border-box; padding:0 .5cqw;
	background:transparent; border:none; outline:none; color:#000; text-align:center;
	font-size:5cqw; font-weight:bold;
}
.ekran-giris .text-box:focus{ background:rgba(255,255,255,.35); }
.ekran-giris .tamam{ width:7cqw; height:7cqw; font-size:4cqw; flex:none; }
@media (max-aspect-ratio: 1/1){
	/* dikeyde başlık akışta; sahne görselin üst bandını (başlık alanı) kırpıp oranı korur */
	.ekran-baslik{ position:static; font-size:6vw; line-height:8vw; margin:5vw 3vw 0; min-height:0; }
	.ekran-sahne{ position:relative; inset:auto; width:100%; aspect-ratio:var(--oran); overflow:hidden; margin-top:2vw; }
	.ekran-ic{ top:var(--ust); height:var(--boy); }
	.ekran-giris .tamam{ width:9cqw; height:9cqw; font-size:5cqw; }
}
