/*!
Theme Name: concurrency
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: concurrency
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

concurrency is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/


@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

html{
	scroll-behavior: smooth;
}

#wpadminbar{
	opacity: 0;
}

#wpadminbar:hover{
	opacity: 1;
}

html {
	line-height: 1.4;
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	width: 100%;
	min-width: 320px;
	min-height: 100vh;
	line-height: 24px;
	font-size: 16px;
	font-weight: 400;
	color: #3c3c43;
	background-color: #fff;
	font-synthesis: style;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-family: "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	font-optical-sizing: auto;
	font-style: normal;
}

html{
	margin-top: 0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	line-height: 24px;
	font-size: 16px;
	font-weight: 400;
}
h1,h2,h3{
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 40px;
	font-size: 32px;
	margin-bottom: 20px;
}

h2{
	font-size: 24px;
}

h3{
	font-size: 20px;
}
p {
	margin: 0;
}
strong,
b {
	font-weight: 600;
}
a,
area,
button,
[role="button"],
input,
label,
select,
summary,
textarea {
	touch-action: manipulation;
}
a {
	color: inherit;
	text-decoration: inherit;
}
code{
	background: #f6f6f7;
	padding: 2px 5px;
	border-radius: 4px;
}
blockquote {
	margin: 0;
}
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
	display: block;
}
figure {
	margin: 0;
}
img,
video {
	max-width: 100%;
	height: auto;
}
button,
input,
optgroup,
select,
textarea {
	border: 0;
	padding: 0;
	line-height: inherit;
	color: inherit;
}
button {
	padding: 0;
	font-family: inherit;
	background-color: transparent;
	background-image: none;
}
button:enabled,
[role="button"]:enabled {
	cursor: pointer;
}
button:focus,
button:focus-visible {
	outline: 1px dotted;
	outline: 4px auto -webkit-focus-ring-color;
}
button:focus:not(:focus-visible) {
	outline: none !important;
}
input:focus,
textarea:focus,
select:focus {
	outline: none;
}
table {
	border-collapse: collapse;
}
input {
	background-color: transparent;
}
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
	color: #3c3c43;
}
input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
	color: #3c3c43;
}
input::placeholder,
textarea::placeholder {
	color: #3c3c43;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
input[type="number"] {
	-moz-appearance: textfield;
}
textarea {
	resize: vertical;
}
select {
	-webkit-appearance: none;
}
fieldset {
	margin: 0;
	padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6,
li,
p {
	overflow-wrap: break-word;
}

.container{
	display: flex;
	justify-content: space-between;
}

.content{
	width: calc(100% - 315px);
}

article a{
	font-weight: 500;
	color: #3451b2;
	text-underline-offset: 2px;
	text-decoration: underline;
	transition: color 0.25s, opacity 0.25s;
}

.sidebar{
	width: 315px;
	background: #f6f6f7;
	padding: 0 0 0 64px;
	box-sizing: border-box;
}

.sidebar-menu-container ul{
	margin: 0;
	padding: 0;
	list-style: none;
}

.sidebar-container{
	height: 100%;
}

.sidebar-container-fixed{
	position: sticky;
	top: 0px;
	height: 100vh;
	overflow-y: auto;
	padding-right: 32px;
}

.sidebar .logo{
	border-bottom: 1px solid #c2c2c491;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sidebar .logo a{

}

.sidebar .logo img{
	max-width: 50px;
}

.menu-title{
	color: rgba(60, 60, 67);
	font-weight: 700;
	padding: 4px 0;
	line-height: 24px;
	font-size: 14px;
	margin-top: 15px;
}

.sidebar-menu li .sub-menu{
	border-bottom: 1px solid #c2c2c491;
	padding-bottom: 24px;
}

.sidebar-menu li .sub-menu li{
	padding: 4px 0;
}

.sidebar-menu li:last-child .sub-menu{
	border-bottom: 0;
	padding-bottom: 0;
}

.sub-menu li a{
	color: rgba(60, 60, 67, .78);
	font-size: 14px;
	line-height: 24px;
	font-weight: 500;
	transition: all .3s ease-in-out;
}

.sub-menu li a:hover,
.sub-menu li.current_page_item a{
	color: #3451b2;
}

.content .header{
	display: flex;
	justify-content: space-between;
	border-bottom: 1px solid #c2c2c491;
	height: 64px;
	box-sizing: border-box;
	align-items: center;
	margin: 0 15px;
}

.content .header .right{
	width: 564px;
}

.content .header .left{
	display: flex;
	align-items: center;
	width: calc(100% - 574px);
	justify-content: space-between;
}

.content .header .left img{
	width: 32px;
}

.content .header .right a{
	padding: 0 12px;
	font-size: 14px;
	font-weight: 500;
	transition: all .3s ease-in-out;
}

.content .header .right a:last-child{
	padding-right: 0;
}

.content .header .right a:first-child{
	padding-left: 0;
}

.content .header .right a:hover{
	color: #3451b2;
}

.nav_article{
	margin: 0 60px;
	box-sizing: border-box;
	border-bottom: 1px solid #c2c2c491;
	padding: 40px 0;
}

.nav_article:last-child{
	border-bottom: 0;
}

:not(pre)>code[class*=language-], pre[class*=language-]{
	border-radius: 6px;
}

.nav_article p{
	margin: 15px 0;
}

.nav_article img{
	border-radius: 6px;
}

.text-container{
	display: flex;
	justify-content: space-between;
}

.text-container .text{
	width: calc(100% - 300px);
}

.text-container .toc-container{
	width: 252px;
	padding: 15px 40px 15px 15px;
	position: sticky;
	top: 0;
	height: 100%;
	margin-top: 30px;
}

.toc-title {
	font-weight: bold;
	padding-bottom: 10px;
	border-left: 1px solid #c2c2c491;
	font-size: 14px;
	padding-left: 9px;
}

.toc {
	list-style: none;
	padding: 0;
	margin: 0;
}

.toc li {
	border-left: 1px solid #c2c2c491;
	font-size: 14px;
	margin: 0;
	padding: 3px;
}

.toc li a{
	transition: all .3s ease-in-out;
}

.toc li.active {
	border-left: 2px solid #3451b2;
}

.toc li.active a,
.toc li a:hover{
	color: #3451b2;
}

.toc a {
	text-decoration: none;
	color: #666;
	font-size: 14px;
	display: block;
	padding: 5px;
	border-radius: 5px;
}

.toc a.active {
	color: #007bff;
	font-weight: bold;
	border-left: 3px solid #007bff;
	padding-left: 7px;
	background: rgba(0, 123, 255, 0.1);
}

.post-navigation{
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin: 20px 60px;
}

.post-navigation .next-post,
.post-navigation .prev-post{
	width: 48%;
}

.post-navigation .nav-button{
	border: 1px solid #c2c2c491;
	padding: 16px 15px 10px 15px;
	box-sizing: border-box;
	display: block;
	border-radius: 6px;
	transition: all .3s ease-in-out;
}

.post-navigation .nav-button:hover{
	border-color: #3451b2;
}

.post-navigation .nav-button span{
	display: block;
	font-size: 12px;
	color: rgba(60, 60, 67, .78);
	line-height: 10px;
}

.post-navigation .nav-button strong{
	font-size: 14px;
	font-weight: 500;
	color: #3451b2;
	line-height: 18px;
	display: block;
	margin-top: 6px;
}

.code-block{
	position: relative;
}



.code-block .copy-btn{
	position: absolute;
	color: #000;
	font-weight: 600;
	font-size: 12px;
	background: #d4d3d3;
	padding: 3px 10px;
	right: 5px;
	top: 5px;
	border-radius: 6px;
	transition: all .3s ease-in-out;
	opacity: 0;
	text-decoration: none;
}

.code-block:hover .copy-btn{
	opacity: 1;
}


.search-container {
	position: relative;
	width: calc(100% - 130px);
}

#search-input {
	border: 0;
	background: #f6f6f7;
	padding: 5px 15px;
	font-size: 13px;
	font-weight: 500;
	color: rgba(60, 60, 67, .78);
	font-family: 'Inter';
	border-radius: 6px;
	box-sizing: border-box;
	width: 100%;
}

#search-results {
	position: absolute;
	top: 97%;
	left: 0;
	width: 100%;
	background: #f6f6f7;
	list-style: none;
	padding: 0;
	margin: 0;
	display: none;
	max-height: 300px;
	overflow-y: auto;
	font-size: 14px;
	border-radius: 0 0 6px 6px;
	z-index: 6;
}

#search-results li {
	padding: 10px;
	cursor: pointer;
	text-align: left;
}

#search-results li:hover {
	background: #f5f5f5;
}

#search-results .no-results {
	color: #999;
	text-align: center;
}

.input-search{
	position: relative;
	width: 100%;
}

.input-search svg{
	position: absolute;
	top: 4px;
	right: 10px;
	width: 17px;
}


.subheader{
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: rgb(60, 60, 67);
	margin: 0 15px;
	padding: 10px 0;
	border-bottom: 1px solid #c2c2c491
}

.subheader .menu-toggle{
	display: flex;
	align-items: center;
	cursor: pointer;
}

.subheader .menu-toggle span{
	margin-left: 4px;
}

.subheader .menu-toggle svg{
	width: 16px;
	fill: rgb(60, 60, 67);
}

.subheader .article-nav-toggle{
	display: flex;
	align-items: center;
	cursor: pointer;
}

.subheader .article-nav-toggle span{
	margin-right: 4px;
}

.subheader .article-nav-toggle svg{
	width: 10px;
	fill: rgb(60, 60, 67);
}

.subheader,
.close-menu{
	display: none;
}


@media(max-width: 1300px){
	.text-container{
		flex-direction: column-reverse;
	}
	.text-container .text {
		width: 100%;
	}
	.text-container .toc-container {
		position: static;
		margin-left: 45px;
		margin-top: 15px;
		padding-bottom: 0;
		margin-left: 0;
		display: none;
	}

	.text-container .toc-container.active{
		display: block;
	}

	.content .header {
		height: 85px;
		justify-content: center;
		flex-direction: column;
	}
	.content .header .left{
		margin-bottom: 5px;
		width: 100%;
	}
	.sidebar .logo{
		height: 85px;
	}
	.subheader{
		display: flex;
	}

	.subheader .menu-toggle{
		display: none;
	}

}

@media(max-width: 993px){
	.subheader .menu-toggle{
		display: flex;
	}
	.sidebar-container-fixed{
		position: static;
	}
	.sidebar{
		position: fixed;
		z-index: 5;
		min-height: 110vh;
		box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
		left: -300px;
		top:0;
		transition: all .3s ease-in-out;
		width: 245px;
		padding: 0px 0 0 25px;
	}
	.sidebar.active{
		left:0;
	}
	.content {
		width: 100%;
	}
	.sidebar .logo {
		height: 65px;
		margin-top: 25px;
	}
	.close-menu{
		position: absolute;
		top: 10px;
		right: 10px;
		width: 25px;
		height: 25px;
		display: block;
	}
}

@media(max-width: 600px){
	.content .header{
		height: auto;
		padding: 10px 0 0 0;
	}
	.nav_article{
		padding: 30px 0;
	}

	.nav_article{
		margin: 0 15px;
	}
	.post-navigation{
		margin: 10px 15px;
	}
	.post-navigation .next-post, .post-navigation .prev-post{
		width: 100%;
		margin:5px 0;
	}
	.content .header .right{
		text-align: left;
		width: 100%;
	}

	.content .header .right a {
		display: block;
		margin: 5px;
		border-top: 1px solid #c2c2c491;
		padding: 9px 0 2px 0 !important;
		font-size: 14px;
	}
}