/* ====================

Table of Contents

1. UI elements
2. Side menu
3. Content elements

==================== */



/* 1. UI elements */

section {
	display: block;
	width: 100%;
	margin-bottom: 40px;
	outline: none;
}

section:last-of-type {
	margin: 0;
}

section h2 {
	display: block;
	width: 100%;
	font-size: 26px;
	font-weight: 800;
	margin: 0;
}

section h3 {
	display: block;
	width: 100%;
	font-size: 22px;
	font-weight: 800;
	margin: 40px 0 0;
}

section p {
	margin: 15px 0;
}

section > p:last-of-type {
	margin: 15px 0 0;
}

section p strong {
	font-weight: 600;
}

section > p a, section > ul li a {
	color: #147ce5;
	text-decoration: none;
}

section p a:hover, section ul li a:hover, table a:hover {
	text-decoration: underline;
}

section ul {
	margin: 0;
	padding-left: 15px;
	list-style: none;
}

section > ul {
	margin: 10px 0;
}

section ul li {
	font-weight: normal;
}

section ul li {
	position: relative;
}

section ul li:before {
	content: '';
	position: absolute;
	left: -14px;
	top: 10px;
  	display: block;
  	width: 6px;
  	height: 6px;
  	background-color: #333333;
  	border-radius: 3px;
}

table ul li:before {
	top: 8px;
	background-color: #e4e6eb;
}

section ul li strong {
	font-weight: 600;
}

#main-content.wordpress section > img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 20px auto;
	border-radius: 4px;
	box-shadow: 0 0 15px rgba(0,0,0,.1);
}

q {
	font-style: italic;
}

code {
	display: block;
	word-wrap: break-word;
	white-space: pre-wrap;
	overflow: auto;
	color: #e4e6eb;
	font-size: 14px;
	line-height: 1.5;
	padding: 20px;
	margin: 30px 0;
	background-color: #18191a;
	border-radius: 6px;
}

ul {
	margin: 0 0 20px;
	padding: 0 0 0 20px;
}

table {
	display: table;
	width: 100%;
	margin: 20px auto;
	color: #e4e6eb;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 14px;
	background-color: #18191a;
	border-radius: 6px;
	overflow: hidden;
}

thead {
	display: table-header-group;
	vertical-align: middle;
	font-size: 12px;
	color: #adb0b5;
	border-collapse: separate;
	border-spacing: 0;
	background-color: #242526;
}

thead tr th {
	display: table-cell;
	text-align: left;
	white-space: nowrap;
	font-weight: 600;
	padding: 16px 20px;
}

#main-content:not(.wordpress) thead tr th:nth-child(2),
#main-content:not(.wordpress) tbody tr td:nth-child(2) {
	padding: 16px 20px;
	white-space: nowrap;
}

#main-content.wordpress tbody tr td:nth-child(1) {
	font-weight: 500;
	white-space: nowrap;
}

#main-content.wordpress tbody tr td:nth-child(2) {
	width: 540px;
	max-width: 540px;
}

tbody {
	display: table-row-group;
	border-collapse: separate;
	border-spacing: 0;
}

tbody tr {
	display: table-row;
	border-collapse: separate;
	border-spacing: 0;
}

tbody tr:nth-child(even) {
	background-color: #242526;
}

tbody tr:nth-child(even) code {
	background-color: #18191a;
}

tbody tr td {
	padding: 16px 20px;
	text-align: left;
	vertical-align: top;
}

table .nbr {
	font-weight: 500;
}

table a {
	color: #14a0ff;
	text-decoration: none;
}

tbody tr td code {
	margin: 0;
	box-sizing: border-box;
	padding: 10px;
	font-size: 14px;
	background-color: #242526;
}

tbody tr td:last-child code {
	margin: 20px 0 0;
}

tbody tr td p:first-child {
	margin: 0 0 10px;
}

tbody tr td p:last-child {
	margin: 10px 0 0;
}

table ul {
	margin: 5px 0 15px;
}

table ul:last-child {
	margin: 5px 0 0;
}



/* 2. Side menu */

#sidebar-menu-wrapper {
	display: block;
	position: fixed;
	z-index: 2;
	left: 0;
	top: 0;
	width: 240px;
	height: 100%;
	color: #e4e6eb;
	background-color: #18191a;
}

#sidebar-menu {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	font-size: 14px;
}

#sidebar-menu h2 {
	display: block;
	box-sizing: border-box;
	width: calc(100% - 40px);
	padding: 20px 10px 10px;
	margin: 0 auto;
	font-size: 16px;
	color: #585c60;
	font-weight: 800;
	text-align: left;
	text-transform: uppercase;
}

#sidebar-menu a {
	display: block;
	box-sizing: border-box;
	position: relative;
	width: calc(100% - 40px);
	padding: 10px;
	margin: 0 auto;
	font-size: 12px;
	font-weight: 500;
	color: #585c60;
	text-decoration: none;
	transition: color .2s ease-in-out;
}

#sidebar-menu a:before {
	content: '';
 	position: absolute;
 	z-index: 1;
 	bottom: 0;
 	left: 0;
 	width: 100%;
 	height: 2px;
 	background-color: #3a3b3c;
 	transition: background-color .2s ease-in-out;
}

#sidebar-menu a:after  {
	content: '';
 	position: absolute;
 	z-index: 2;
 	bottom: 0;
 	left: 0;
 	width: 100%;
 	height: 2px;
 	opacity: 0;
 	background-image: linear-gradient(40deg, #ffa745 0%, #fe869f 30%, #ef7ac8 45%, #a083ed 70%, #43aeff 85%);
 	transition: opacity .2s ease-in-out;
}

#sidebar-menu a.active,
#sidebar-menu a:hover {
	color: #e4e6eb;
}

#sidebar-menu a:hover:before {
	background-color: #585c60;
}

#sidebar-menu a.active:after {
 	opacity: 100%;
}

#sidebar-menu > a:last-child {
	margin-bottom: 30px;
}



/* 3. Content elements */

#main-content-wrapper {
	display: block;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
	width: calc(100% - 240px);
	margin-left: 240px;
}

#main-content {
	display: block;
	position: relative;
	width: calc(100% - 40px);
	max-width: 1200px;
	margin: 0 auto;
}

.breakpoints code {
	min-width: 400px;
}

.comment {
	font-style: italic;
	color: #666;
}

.tag {
	color: #f92472;
}

.atn {
	color: #a6e22c;
}

.atv {
	color: #e7db74;
}

.ftn {
	color: #67d8ef;
}

.vrl {
	color: #fd9621;
}

.nbr {
	color: #a083ed;
}

.table-note {
	white-space: normal;
	font-size: 14px;
}

.mockup-img {
	display: block;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
	width: 100%;
	height: auto;
	padding: 40px 20px 16px;
	margin: 20px 0 -6px;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	background-color: #18191a;
}

.mockup-img img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	margin: 0 auto;
}

.mockup-img + table {
	position: relative;
	z-index: 2;
	margin: 0 auto 20px;
	border-top-left-radius: 0px;
	border-top-right-radius: 0px;
}

.options-graphic-examples,
#aspect-ratios {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	width: 100%;
	text-align: center;
}

.options-graphic-examples div {
	display: inline-block;
	width: 44%;
	margin: 15px auto 0 0;
}

.options-graphic-examples img {
	display: block;
	width: 100%;
	margin: 0 auto;
	height: auto;
	margin-bottom: 10px;
}

.nav-arrows {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 20px 0 5px;
}

.nav-arrows img {
	display: block;
	width: auto;
	max-width: 24%;
	height: auto;
	margin: 0 auto 0 0;
}

#aspect-ratios div {
	display: inline-block;
	width: 30%;
	margin: 5px auto 5px 0;
}

#aspect-ratios div img {
	display: block;
	width: 100%;
	max-width: 90px;
	margin: 0 auto;
	height: auto;
	margin-bottom: 10px;
}

#breakpoints-table thead tr th:nth-child(2), 
#breakpoints-table tbody tr td:nth-child(2) {
	width: 48%;
}

.easing-func-wpr-exmpls {
	display: block;
	width: 100%;
	margin: 20px 0;
}

.easing-func-wpr-exmpls > div {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	padding: 10px 20px 10px 10px;
	color: #e4e6eb;
	font-size: 14px;
	background-color: #242526;
	margin-bottom: 10px;
	border-radius: 6px;
}

.easing-func-wpr-exmpls > div:last-of-type {
	margin: 0;
}

.easing-func-wpr-exmpls > div > div {
	display: block;
	background-color: #18191a;
	width: 135px;
	min-width: 135px;
	margin-right: 10px;
	padding: 10px 0;
	font-size: 14px;
	text-align: center;
	border-radius: 6px;
}

.easing-func-wpr-exmpls > div > p {
	margin: 0;
}

.easing-func-wpr {
	display: flex;
	justify-content: space-between;
	box-sizing: border-box;
	padding: 10px 10px 0;
	flex-wrap: wrap;
	margin: 20px 0 0;
	background-color: #242526;
	border-radius: 6px;
}

.easing-func-wpr > div {
	display: block;
	box-sizing: border-box;
	padding: 10px 0px;
	width: calc(16.66% - 8px);
	background-color: #18191a;
	margin-bottom: 10px;
	text-align: center;
	font-size: 14px;
	color: #e4e6eb;
	border-radius: 6px;
}

.easing-func-wpr:first-of-type > div {
	width: calc(33.33% - 6px);
}

.easing-func-wpr > div img,
.easing-func-wpr-exmpls > div > div img {
	display: block;
	width: calc(100% - 10px);
	max-width: 122px;
	height: auto;
	margin: 0 auto 5px;
}


@media screen and (max-width: 1440px) {

	#main-content,
	section {
		max-width: 800px;
	}
}

@media screen and (max-width: 1160px) {

	#sidebar-menu-wrapper {
		display: none;
	}

	#main-content-wrapper, #hardcode-link {
		width: 100%;
		margin: 0 auto;
	}

}

@media screen and (max-width: 920px) {

	thead tr th:nth-child(2),
	tbody tr td:nth-child(2) {
		padding: 16px 0px;
	}

	.easing-func-wpr > div {
		width: calc(33.33% - 6px);
	}

}

@media screen and (max-width: 768px) {

	#main-header h1 {
		font-size: 40px;
	}

	#main-header img {
		width: 28%;
		max-width: 140px;
	}

	code, table {
		font-size: 14px;
	}

	thead {
		display: none;
	}

	tbody tr {
		display: block;
		box-sizing: border-box;
		padding: 5px 20px;
		border-top: 1px solid #e4e6eb;
	}

	tbody tr:nth-child(even) {
		background-color: inherit;
	}

	tbody tr td, 
	tbody tr td:nth-child(2) {
		display: block;
		position: relative;
		padding: 10px 0 10px 80px;
		white-space: normal;
		text-align: left;
		word-break: break-word;
		border-bottom: 1px dotted #444;
	}

	#main-content.wordpress tbody tr td:nth-child(2),
	#breakpoints-table thead tr th:nth-child(2), 
	#breakpoints-table tbody tr td:nth-child(2) {
		width: auto;
	}

	tbody tr td:last-child {
		border: none;
	}

	tbody tr td:before {
		position: absolute;
		top: 10px;
		left: 0;
		width: 80px;
		white-space: normal;
		text-align: left;
		font-size: 11px;
		font-weight: 600;
		color: #adb0b5;
	}

	tbody tr td:nth-child(1):before {
		content: 'Option';
	}

	tbody tr td:nth-child(2):before {
		content: 'Default';
	}

	tbody tr td:nth-child(3):before {
		content: 'Description';
	}

	#methods-table tbody tr td:nth-child(1):before {
		content: 'Method';
	}

	#properties-table tbody tr td:nth-child(1):before {
		content: 'Property';	
	}

	#events-table tbody tr td:nth-child(1):before {
		content: 'Event';
	}

	#methods-table tbody tr td:nth-child(2):before,
	#properties-table tbody tr td:nth-child(2):before,
	#events-table tbody tr td:nth-child(2):before {
		content: 'Argument';
	}

}

@media screen and (max-width: 450px) {

	#main-content {
		margin: 30px auto;
	}

	#main-header {
		margin-bottom: 30px;
	}

	#main-header h1 {
		font-size: 28px;
	}

	section {
		margin-bottom: 20px;
	}

	code {
		font-size: 12px;
		margin: 20px 0;
	}

	section > code:last-of-type {
		margin: 20px 0 0;
	}

	section h2 {
		font-size: 24px;
	}

	section h3 {
		font-size: 20px;
		margin: 20px 0 0;
	}

	table {
		font-size: 12px;
	}

	.easing-func-wpr-exmpls > div {
		display: block;
		padding: 20px;
	}

	.easing-func-wpr-exmpls > div > div {
		margin: 0 auto 20px;
	}

	.easing-func-wpr {
		padding: 5px 5px 0;
	}

	.easing-func-wpr > div {
		width: calc(33.33% - 3px);
		font-size: 10px;
		padding: 5px 0px;
		margin-bottom: 5px;
	}

	.easing-func-wpr > div img {
		margin: 0 auto;
	}

}

@media screen and (max-width: 350px) {

	#main-header h1 {
		font-size: 22px;
	}

	section h2 {
		font-size: 20px;
	}

	section h3 {
		font-size: 18px;
	}

	.easing-func-wpr-exmpls,
	.easing-func-wpr > div {
		font-size: 9px;
	}

}

