html {
	box-sizing: border-box;
	font-family: sans-serif;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

html,
body {
	background-color: #e4ddd3;
}

header {
	color: #786d69;
}

header h1 {
	text-align: center;
	font-size: 60px;
	margin: 20px 0px 10px 0px;
}

nav {
	background-color: #d1bb7f;
	color: #333;
	max-width: 800px;
	margin: 0px auto;
}

nav ul {
	padding: 0px;
	padding-left: 20px;
	margin: 0px;
	list-style: none;
	font-size: 20px;
}

nav ul li {
	display: inline-block;
	padding: 10px;
}

nav ul li a {
	color: #000;
	text-decoration: none;
}

main {
	margin: 0px auto;
	max-width: 800px;
	background-color: #fff;
	color: #000;
	font-size: 23px;
	padding: 30px;
}

main a {
	color: #000;
}

main h1 {
	font-size: 35px;
	margin-top: 0px;
}

button[type=button][disabled] {
	opacity: 0.4 !important;
	cursor: not-allowed !important;
}

code {
	background-color: #f6f6f6;
	color: #333;
	padding: 1px 3px;
	font-weight: bold;
}

pre code {
	display: block;
	padding: 10px;
	font-size: 18px;
}

#edit-avatar-and-username {
	position: relative;
	display: inline-block;
	padding-top: 20px;
}

#edit-avatar-and-username figcaption {
	line-height: 40px;
	vertical-align: middle;
}

#edit-avatar-and-username figcaption button {
	vertical-align: middle;
}

#edit-avatar-and-username .edit-btn {
	display: inline-block;
	padding: 8px;
	background-color: transparent;
	border: none;
	cursor: pointer;
	z-index: 10;
}

#edit-avatar-and-username .edit-btn.change-avatar-btn {
	position: absolute;
	top: 0px;
	right: 0px;
}

#edit-avatar-and-username .edit-btn.edit-username-btn {
	position: relative;
}

#edit-avatar-and-username .edit-btn::after {
	content: "";
	display: block;
	width: 12px;
	height: 12px;
	background: url("/images/edit-icon.svg") 0px 0px/12px 12px no-repeat;
}

#edit-avatar-and-username .edit-btn:focus {
	outline: none;
}

#edit-avatar-and-username .edit-btn:focus::before {
	content: "";
	position: absolute;
	width: 8px;
	height: 8px;
	left: 50%;
	top: 50%;
	transform: translate(-50%,-50%);
	border-radius: 50%;
	background-color: #00f;
	box-shadow: 0px 0px 15px 10px #0000FF;
}

#edit-avatar-and-username .edit-btn:focus::after {
	/* from: https://codepen.io/sosuke/pen/Pjoqqp */
	/*#ff0 yellow*/
	filter: invert(95%) sepia(61%) saturate(2978%) hue-rotate(356deg) brightness(107%) contrast(103%);
}

.hide-offscreen {
	position: absolute;
	left: -2000px;
	font-size: 0.1px;
	width: 0px;
	overflow: hidden;
}

footer {
	background-color: #d1bb7f;
	color: #333;
	max-width: 800px;
	margin: 0px auto;
	text-align: center;
}

footer ul {
	display: inline-block;
	padding: 0px;
	padding-left: 20px;
	margin: 0px;
	list-style: none;
	font-size: 15px;
}

footer ul li {
	display: inline-block;
	padding: 10px;
}

footer ul li a {
	color: #000;
}

#page-overlay {
	position: fixed;
	z-index: 1000;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.4);
}

#page-overlay.hidden {
	display: none;
}

#modal {
	position: fixed;
	margin: 0px;
	padding: 0px;
	z-index: 1001;
	width: 90%;
	max-width: 525px;
	left: 50%;
	top: 5%;
	transform: translateX(-50%);
	border-radius: 15px;
	border: 2px solid #333;
	background-color: #fff;
}

#modal.hidden {
	display: none;
}

#modal-close-btn {
	position: absolute;
	padding: 0px;
	margin: 0px;
	top: 5px;
	right: 10px;
	color: #999;
	font-size: 14px;
	background-color: transparent;
	border: none;
	cursor: pointer;
}

#modal-close-btn.hidden {
	display: none;
}

#modal-close-btn:focus {
	outline: none;
	color: #00f;
}

#modal-content {
	position: relative;
	margin: 0px;
	padding: 20px 20px 15px 20px;
}

#modal-content > p:first-child {
	margin-top: 0px;
}
