/* Hide scrollbar for Chrome, Safari and Opera */
textarea::-webkit-scrollbar {
	display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
textarea {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

/* Style the body */
body {
	background: #eee;
	font-family: Arial, Helvetica, sans-serif;
	color: #222;
	margin: 0 auto;
	width: 900px;
	position: relative;
}

.codes {
	display: flex;
	gap: 10px;
}

.codes div {
	width: 100%;
}

textarea {
	border-radius: 10px;
	height: 150px;
	font-size: 10pt;
}

.css:after {
	content: "CSS";
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	background: black;
}


/* Items container */
.items {
	/* The minimum width of the thumbnails */
	--width: 200px;

	/* Thumbnail height */
	--height: 200px;

	/* Spacing */
	--spacing: 10px;

	/* Flexible width */
	--max-width: 1fr;

	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(var(--width), var(--max-width)));
	grid-auto-rows: var(--height);
	grid-gap: var(--spacing);
}

/* Item */
.item,
.item img {
	width: 100%;
	height: 100%;
	background-size: cover;
	object-fit: cover;
}

/* Mobile adjustments */

@media only screen and (max-width: 768px) {
	body {
		padding: 15px;
	}

	#container {
		margin: 0;
		width: 100%;
	}

	.items {
		/* The minimum width of the thumbnails */
		--width: 100px;

		/* Thumbnail height */
		--height: 100px;

		/* Flexible width */
		--max-width: 1fr;

		/* Spacing */
		--spacing: 10px;
	}

	.resizable .resizers .resizer.bottom-right {
		right: 0px;
	}

	.resizable {
		min-width: 150px;
	}
}