:root {
    --bg: #111;
	--fg: #ddd;
	--white: white;
	--lighterbg: deeppink;
	--highlight: greenyellow;
	--codebg: #333;
	--squaresize: 8rem;
}
body {
	background-color: var(--bg);
	color: var(--fg);
	font-family: Georgia, Serif;
	font-size: 1.2rem;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}
main, nav {
	width :60%;
	max-width: 51.5rem;
	margin: auto;
}
main#index {
	color: #000;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--squaresize), var(--squaresize)));
    gap: 0.7rem;
	align-content: start;
}
main#index a {
	box-sizing: border-box;
	position: relative;
	text-transform: uppercase;
	font-size: 4.5rem;
	line-height: 3rem;
	word-spacing: -0.5rem;
	letter-spacing: -0.6rem;
	text-decoration: none;
	overflow: hidden; 
	word-break: break-all;
	border: 0.3rem solid var(--white);
	text-align: center;
	background-color: var(--lighterbg);
	color: var(--white);
	width: var(--squaresize);
	height: var(--squaresize);
}
main#index a div {
	position: absolute;
	top: -0.4rem;
	left: -1rem;
	width: 9rem;
	height: 15rem;
}
main#index a:visited {
	color: var(--white);
}
main#index a:hover {
	color: var(--highlight);
	border-color: var(--highlight);
}
main#index a img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
b, strong {
	color: var(--white);
}
a {
	color: var(--highlight);
	text-decoration: none;
}
a:hover {
	text-decoration-line: underline;
	text-decoration-style: wavy;
	text-decoration-color: var(--highlight);
}
h1 {
	margin-top: 5rem;
	margin-bottom: 3rem;
}
h2 {
	margin-top: 5rem;
}
main p {
	line-height: 1.var(--squaresize);
	text-align: justify;
	text-justify: inter-word;
}
main img, main video {
	display: block;
	max-width: 100%;
	margin: auto;
}
main li {
	margin-bottom: 0.5rem;
}
pre {
	padding: 0.8rem 0 0.8rem 1rem;
	white-space: pre-wrap;
}
main code {
	font-size: 1rem;
	color: var(-white);
}
main p code, main li code {
	padding: 0 0.4rem 0 0.4rem;
}
main code, main pre {
	background-color: var(--codebg);
}
nav {
	margin-top: 2rem;
	margin-bottom: 5rem;
}
nav a {
	margin-right: 0.7em;
}
table#rat {
	border-collapse: collapse;
	margin-top: 30px;
}
table#rat td {
	padding: 10px 10px 10px 0;
}
table#rat tr {
	border-bottom: 1px solid lightgrey;
}
