@import url("./colors.css");

body {
	position: relative;
	min-height: 98vh;
	background-color: var(--bg-color);
	color: var(--text-color);
}

footer {
	text-align: center;
	position: absolute;
	bottom: 0;
	width: 100%;

	* {
		margin-bottom: 0;
	}
}

#content {
	padding-bottom: 2.5rem;
}

table {
	width: 100%;
	text-align: center;
	vertical-align: middle;
	border-collapse: collapse;
	margin-top: 10px;

	thead th {
		background-color: var(--bg-dark-color);
	}
}

ul {
	line-height: 1.5;
}

a {
	color: var(--link-color);
	text-decoration: none;

	&:visited {
		color: var(--link-visited-color);
	}

	&:hover {
		color: var(--link-hover-color);
	}
}

button {
	margin-left: 16px;
	background: var(--button-bg-color);
	color: var(--text-color);
	padding: 8px;
	border-color: var(--button-border-color);
	border-style: groove;
	border-bottom-color: var(--primary-color);
	transition-duration: 0.1s;

	&:hover {
		background: var(--button-hover-bg-color);
	}

	&:active {
		background: var(--button-active-bg-color);
		transform: translateY(1px);
	}

	&.disabled {
		opacity: 0.6;
		cursor: not-allowed;
	}
}

input[type="checkbox"] {
	appearance: none;
	position: relative;
	cursor: pointer;
	width: 24px;
	height: 24px;
	padding-top: 8px;

	& + label {
		cursor: pointer;
	}

	&::before {
		position: absolute;
		width: 100%;
		height: 100%;
		content: "";
		background-color: var(--bg-dark-color);
		border: 1px solid var(--button-border-color);
		border-radius: 5px;
	}

	&:hover::before {
		background-color: var(--bg-light-color);
	}

	&:checked::after {
		position: absolute;
		content: "\2713";
		color: var(--primary-color);
		font-size: 48px;
		top: -10px;
		left: -4px;
		align-content: center;
		text-align: center;
		white-space: pre;
	}

	&:checked:hover::after {
		color: var(--primary-light-color);
	}
}
