/**
 * Code Snippet styles
 */

/* --- Layout --- */

.code-snippet {
	background-color: #888;
	border-radius: 5px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 10px;
}

.code-snippet__header {
	display: flex;
}

.code-snippet__title {
	color: #00ff00;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.code-snippet__title-name {
	font-weight: bold;
}

.code-snippet__title-language {
	font-style: italic;
	font-size: 14px;
}
@media (min-width: 600px) {
	.code-snippet__title {
		flex-direction: row;
		font-size: 16px;
		gap: 10px;
	}
	.code-snippet__title-language {
		font-size: 16px;
	}
	.code-snippet__title-language::before {
		content: "("
	}

	.code-snippet__title-language::after {
		content: ")";
	}
}

.code-snippet__actions {
	display: flex;
	flex-shrink: 1;
	gap: 10px;
}

.code-snippet__theme {
	background-color: #1b1e1f;
	color: white;
	padding: 0 10px;
	outline: none;
}

.code-snippet__button {
	background-color: #1b1e1f;
	border: none;
	color: white;
	cursor: pointer;
	height: 100%;
	outline: none;
	padding: 0 10px;
	width: 70px;
}

.code-snippet__content {
	counter-reset: code;
	overflow-y: scroll;
	padding: 10px;
	width: 100%;
}

.code-snippet__code {
	min-height: 200px;
	outline: none;
	resize: vertical;
	width: 100%;
}

.code-snippet__codeblock {
	border: none;
	height: 20px;
	padding: 0 !important;
}

.code-snippet__codeblock::before {
	counter-increment: code;
	content: counter(code);
	color: #888;
	display: inline-block;
	width: 25px;
}


