/*
 * EG Course: the colors and the button shared by the course pages (course.css) and the course
 * card under the exercises (card.css). A theme can change the colors by setting these variables.
 */

:root {
	--egc-button-bg: #3f6f23;
	--egc-button-hover-bg: #2f541a;
	--egc-button-text: #ffffff;
	--egc-button-radius: 4px;
}

.egc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 46px;
	padding: 11px 20px;
	border: 1px solid var(--egc-button-hover-bg);
	border-radius: var(--egc-button-radius);
	background: var(--egc-button-bg);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
	color: var(--egc-button-text) !important;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.egc-button:hover,
.egc-button:focus {
	border-color: var(--egc-button-hover-bg);
	background: var(--egc-button-hover-bg);
	color: var(--egc-button-text) !important;
	text-decoration: none !important;
}

.egc-button:focus-visible {
	outline: 3px solid rgba(63, 111, 35, 0.25);
	outline-offset: 2px;
}

@media (max-width: 520px) {
	.egc-button {
		width: 100%;
	}
}
