* {
	box-sizing: border-box;
	scrollbar-width: none;
}
:root {
	--window-border: #7781a1;
	--terminal-bg: #000000b2;
	--terminal-text: #d6d6d6;
}

::selection {
	color: #333;
	background-color: whitesmoke;
}

body {
	background-image: url("sky.jpg");
	color: #333;
	font-size: 16px;
	width: 99svw;
	height: 99svh;
	margin: 0;
}

input.tab {
	display: none;
}

input.tab:not(:checked) + div {
	display: none;
}

.window1 {
	grid-area: window1;
}
.window2 {
	pre {
		font-size: 0.7em;
	}
	grid-area: window2;
}
.window3 {
	grid-area: window3;
}
.window4 {
	grid-area: window4;
}

.window {
	border: 2px solid var(--window-border);
	background-color: var(--terminal-bg);
	font-family: "Courier New", Courier, monospace;
	width: 100%;
	height: 100%;
	overflow-x: scroll;
	scroll-behavior: smooth;
	&:hover {
		span.title {
			color: white;
		}
		.blink {
			animation: blink-animation 1s steps(1, start) infinite;
		}
	}
	pre {
		color: var(--terminal-text);
	}
	span.title {
		position: sticky;
		top: 0;
		padding-top: 3px;
		display: inline-block;
		background-color: var(--window-border);
		width: 100%;
		height: 1.5em;
		font-size: 0.8em;
		color: rgb(175, 175, 175);
		p {
			margin: 0;
			padding-left: 0.3em;
		}
	}
}

.content {
	p {
		font-size: 0.95em;
		margin: 0.5em 0;
		color: var(--terminal-text);
	}
	a {
		color: var(--terminal-text);
		text-decoration: none;
		&:hover {
			text-decoration: wavy underline;
		}
	}
	padding: 0 0.3em;
	padding-right: 3em;
}

@keyframes blink-animation {
	50% {
		visibility: hidden;
	}
}

.bar {
	display: flex;
	flex-direction: row;
	gap: 4px;
	background-color: black;
	color: var(--terminal-text);
	font-family: "Courier New", Courier, monospace;
	width: 100dvw;
	margin-bottom: 1em;
	.side {
		align-self: end;
		margin: 0 auto;
		margin-right: 0;
	}
	span {
		margin: 0;
		font-size: 0.9em;
	}
	label {
		cursor: pointer;
		&:first-of-type {
			padding-left: 0.5em;
		}
		&:has(input:checked) {
			color: white;
		}
	}
}

.container {
	display: grid;
	height: 95dvh;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 1em;
	margin-left: 1em;
	grid-template-areas:
		"window1  window2 "
		"window3 window4";
}
