* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--dark-bg: #111;
	--light-bg: #333;
	--dim-bg: #222;
	--dim-bg-light: #272727;
	--shadow: #00000080;
	--normal-txt: #f4f4f4;
	--link-normal: #f44;
	--link-hover: #f66;
	--link-active: #faa;
	--code-color: #37c8ff;
}

html {
	background-color: var(--dark-bg);
	color: var(--normal-txt);
	font-family: "Trebuchet MS", "Helvetica", sans-serif;
	text-align: justify;
}

main {
	width: 95%;
	max-width: 960px;
	margin: auto;
}

section, .text-block, #points {
	background-color: var(--light-bg);
	padding: 0.63em 1.56em;
	margin-bottom: 1em;
	border-radius: 1em;
	box-shadow: 3px 3px var(--shadow);
}

header {
	margin: 0.67em 0;
}
header, footer {
	text-align: center;
}
footer {
	margin-bottom: 0.5em;
}

p {
	margin: 1em 0;
}

a {
	text-decoration: none;
	color: var(--link-normal);
}
a:hover {
	color: var(--link-hover);
	text-decoration: underline;
}
a:active {
	color: var(--link-active);
}

section header, li {
	text-align: left;
}

h1 {
	font-style: italic;
	font-size: 2.25rem;
}

h2 {
	font-size: 1.5rem;
}

ul {
	list-style-type: none;
}

#points ul {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 5px;
	justify-content: space-between;
	margin-bottom: 5px;
}

#points li:first-of-type {
	grid-column: 1 / 3;
}
#points a:hover {
	text-decoration: none;
}

.click-box {
	background-color: var(--dim-bg);
	border-radius: 0.5em;
	box-shadow: 0 3px var(--shadow);
	font-size: 1.5em;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 10px 5px;
	font-weight: bold;
}
.click-box:hover {
	background-color: var(--dim-bg-light);
}

.inline-image {
	display: inline-block;
	height: 1em;
}

#article-list {
	column-count: 2;
}
#article-list li {
	break-inside: avoid-column;
	overflow: hidden;
}

#bottom-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1em;
}
#bottom-container section {
	padding-bottom: 1em;
}

code {
	color: var(--code-color);
	background-color: var(--dim-bg);
	word-break: break-all;
}

/* For about me page */
#selfie {
	margin-left: 1em;
	margin-bottom: 1em;
	max-width: 50%;
	float: right;
}

blockquote {
	padding: 0 1em;
}

/* For other webs page */
dl a {
	font-size: 1.5em;
}

dt {
	text-align: left;
}

dd {
	padding-left: 1em;
	margin-bottom: 0.5em;
}


/* Mobile fix */
@media only screen and (max-width:768px) {
	#points ul, #bottom-container {
		display: block;
		margin-bottom: 0;
	}
	#points li, #bottom-container section {
		width: 100%;
	}
	.click-box {
		margin-bottom: 8px;
	}
	.last-box {
		margin-bottom: 5px;
	}
	#article-list {
		column-count: 1;
	}
	#selfie, #selfie-text {
		display: none;
	}
}
