@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap');

body, html {
	padding: 0;
	margin: 0;
	font-size: 25px;
	/*background: #a7d6d4;*/
	background-image: url('images/bg6.jpg');
	color: rgb(148, 59, 43);
	font-family: 'Source Code Pro', monospace;
	font-size: 25px;
}

img {
	max-width: 100%;
-ms-interpolation-mode: nearest-neighbor;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-pixelated;
    image-rendering: pixelated;
}
.page {
	padding: 24px;
	background-color: black;
}

.page h1:first-child {
	margin-top: 0;
}

.header-image {
	height: auto;
	max-height: 200px;
	margin: 10px auto;
	display: block;
}

.wrapper {
	margin: auto;
	margin-top: 0px;
	width: 752px;
	max-width:100%;
}

.body1 {
	background-color: black
}


.menu {
	text-align: center;
	margin-bottom: 24px;
	margin-top: 10px;
	display: flex;
	justify-content: center;
	gap: 6px;
}

.menu a {
	color: lime;
} 

.menu img {
	width: 128px;
	height: 48px;
}

.main {
	width: 100%;
	max-width: 752px;
	aspect-ratio: 752 / 480;
	height: auto;
	background-size: 100% 100%;
	background-image: url('images/bg5-body.png');
	position: relative;
	image-rendering: pixelated;
}

.titlebar {
	height: 34px;
	background-image: url('images/bg5-top.png');
	background-size: 100% 100%;   /* נמתח לרוחב בלבד, כי הגובה קבוע */
}

.main iframe {
	border: none;
	position: absolute;
	top: 34px;
	left: 7px;
	width: calc(100% - 14px);
	height: calc(100% - 41px);
	background-color: black;
}

h1, h2, h3, h4, h5 {
	font-size: 25px;
}

h1 {
	border-bottom: 1px solid lime;
}

h2 {
	border-bottom: 1px dotted lime;
}

a {
	color: red;
}

table {
	border-collapse: collapse;
}

td, th {
	vertical-align: top;
	border: 1px solid lime;
	padding: 3px 6px;
}

th {
	background: lime;
	color: black;
}

.width-50 {
	max-width: 50%;
}

.border {
	padding: 3px;
	border: 1px solid lime;
}

table.border-0 th, table.border-0 td {
    border: 0;
}

.border-0 {
    border: none;
}

@media (max-width: 768px) {
	.main {
		height: 70dvh;   /* גובה גדול יותר בנייד */
	}
	body, html { font-size: 16px; }
	h1, h2, h3, h4, h5 { font-size: 18px; }
	.page { padding: 12px; }
	.header-image { height: auto; max-height: 100px; }
	.menu img {
		width: 22vw;   /* 4 כפתורים בשורה אחת */
		height: auto;
	}
}