html,body{
margin: 0;
padding: 0;
border: 0;
background-color: #EDEDED;
color: #fff;
font: 300 20px/26px 'Roboto', sans-serif;
width: 100%;
height: 100%;
padding: 0;
}

a{
color: #fff;
text-decoration: none;
-webkit-transition: color 0.2s;
-moz-transition: color 0.2s;
-ms-transition: color 0.2s;
-o-transition: color 0.2s;
transition: color 0.2s;
}

a:hover{
color: #ffffff;
}

a.active, li.active a{
color: #dddddd;
}

a.active:hover, li.active a:hover{
	cursor: default;
	color: inherit;
}

/* sidebar */

#sidebar{
position: fixed;
background-color: #1F1A22;
left: 0px;
top: 0;
width: 100%;
height: 150px;
z-index: 10;
-webkit-transition: color 1s;
-moz-transition: color 1s;
-ms-transition: color 1s;
-o-transition: color 1s;
transition: color 1s;
font-size: 14px;
}

#profile{
width: 24px;
height: 24px;
float: left;
margin: 35px 13px 0 17px;
}

#profile img{
	-moz-opacity: 0.8;
	-webkit-opacity: 0.8;
	opacity: 0.8;
}

.foreground{
position: absolute;
display: flex;
flex-direction: column;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 12;
}

#sidebar h1{
font: 700 28px/18px 'Roboto', sans-serif;
margin: 0;
padding: 46px 0 20px 20px;
float: left;
}
#sidebar h2{
font: 300 28px/18px 'Roboto', sans-serif;
margin: 0;
padding: 0 0 20px 20px;
}

#nav{
margin: 0;
display: none;
padding: 10px 10px 0 20px;
float: left;
clear: both;
flex-wrap: wrap;
row-gap: 10px;
column-gap: 20px;
}

#nav ul,
#mobile-nav ul{
	margin: 0;
	padding: 0 0 15px 20px;
	display: block;
}

#nav li,
#mobile-nav li{
	display: block;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	line-height: 24px;
}

#nav li.active a,
#mobile-nav li.active a{
	border-bottom: 1px solid #666;
}

#nav li a, 
#mobile-nav li a {
	font-size: 1rem;
	-webkit-transition: all 1s;
	-moz-transition: all 1s;
	-ms-transition: all 1s;
	-o-transition: all 1s;
	transition: all 1s;
}

#nav li .year{
	width: 50px;
	display: inline-block;
}
#mobile-nav {
	display: flex;
	flex-direction: column;
	row-gap: .8rem;
	position: absolute;
	width: 100%;
	top: 150px;
	left: 0;
	background-color: #EDEDED;
	margin-top: 0;
	padding: 2rem 0;
	align-items: center;
	opacity: 0;
	transform: scaleY(0);
	transform-origin: top;
	transition: all 0.4s ease-out;
	box-shadow: inset rgba(0, 0, 0, 0.2) 0px 8px 24px;
}
#mobile-nav:before {
    content: '';
    width: 100%;
    height: 0vh;
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    display: block;
    top: 100%;
    right: 0;
    z-index: -1100;
    opacity: 0;
    transition: height .5s, opacity .5s;
  }
#mobile-nav.cs-active:before {
    height: 150vh;
    opacity: 1;
  }
#mobile-nav.cs-active {
    transform: scaleY(1);
    opacity: 1;
}
#mobile-nav li a,
#mobile-nav li.active a {
	color: black !important;
}
.cs-toggle {
	width: clamp(2.75rem, 6vw, 3rem);
    height: clamp(2.75rem, 6vw, 3rem);
    margin: 0 0 0 auto;
    border-radius: 0.25rem;
    background-color: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cs-box {
	width: clamp(1.5rem, 2vw, 1.75rem);
    height: clamp(0.875rem, 1.5vw, 1rem);
    position: relative;
}
.cs-active .cs-line1 {
    top: 50%;
    transform: translate(-50%, -50%) rotate(225deg);
  }
.cs-active .cs-line2 {
    top: 50%;
    transform-origin: center;
    transform: translate(-50%, -50%) translateY(0) rotate(-225deg);
  }
.cs-active .cs-line3 {
    bottom: 100%;
    opacity: 0;
  }
.cs-line {
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background-color: white;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
.cs-line1 {
    top: 0;
    transform-origin: center;
    transition: transform .5s, top .3S, left .3S;
    animation-duration: .7s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
    animation-direction: normal;
  }
.cs-line2 {
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    transition: top .3s, left .3s, transform .5s;
    animation-duration: .7s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
    animation-direction: normal;
  }
.cs-line3 {
    bottom: 0;
    transition: bottom .3s, opacity .3s;
  }
#control{
	position: absolute;
	top: 39px;
	right: 17px;
	z-index: 20;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#control li{
	display: block;
	list-style: none;
	margin: 0;
	padding: 0;
	height: 28px;
	line-height: 28px;
	position: relative;
	width: max-content;
}

#control li a {
	font-size: 2rem;
}

.icon{
	display: inline;
	float: left;
	width: 18px;
	height: 16px;
	margin: 5px 20px 0 15px;
	mix-blend-mode: screen;
}


/* only webkit browsers support css masks, we will implement for webkit and browser detect */

.icon.camera{
	background: transparent url(img/camera.png) no-repeat;
}

.icon.camera.webkit{
	background-image: none;
	-webkit-mask-box-image: url(img/camera_mask.png);
}

.icon.monitor{
	background: transparent url(img/monitor.png) no-repeat;
}

.icon.monitor.webkit{
	background-image: none;
	-webkit-mask-box-image: url(img/monitor_mask.png);
}

.icon.toggle{
	background: transparent url(img/text.png) no-repeat;
}

.icon.toggle.webkit{
	background-image: none;
	-webkit-mask-box-image: url(img/text_mask.png);
}

.icon.comment{
	background: transparent url(img/comment.png) no-repeat;
}

.icon.comment.webkit{
	background-image: none;
	-webkit-mask-box-image: url(img/comment_mask.png);
}


.icon.heart{
	background: transparent url(img/heart.png) no-repeat;
}

.icon.heart.webkit{
	background-image: none;
	-webkit-mask-box-image: url(img/heart_mask.png);
}

.icon.download{
	background: transparent url(img/download.png) no-repeat;
}

.icon.download.webkit{
	background-image: none;
	-webkit-mask-box-image: url(img/download_mask.png);
}

.icon.webkit{
	background-color: #ccc;
}

#share .icon{
width: 26px;
height: 24px;
margin: 7px 10px 0 10px;
background-color: #ddd;
}

.icon.hackernews{
	background: transparent url(img/hackernews.png) no-repeat;
}

.icon.hackernews.webkit{
	background-image: none;
	-webkit-mask-box-image: url(img/hackernews_mask.png);
}

.icon.facebook{
	background: transparent url(img/facebook.png) no-repeat;
}

.icon.facebook.webkit{
	background-image: none;
	-webkit-mask-box-image: url(img/facebook_mask.png);
}

.icon.twitter{
	background: transparent url(img/twitter.png) no-repeat;
}

.icon.twitter.webkit{
	background-image: none;
	-webkit-mask-box-image: url(img/twitter_mask.png);
}

.icon.reddit{
	background: transparent url(img/reddit.png) no-repeat;
}

.icon.reddit.webkit{
	background-image: none;
	-webkit-mask-box-image: url(img/reddit_mask.png);
}

.icon.pinterest{
	background: transparent url(img/pinterest.png) no-repeat;
}

.icon.pinterest.webkit{
	background-image: none;
	-webkit-mask-box-image: url(img/pinterest_mask.png);
}

#textbutton{
cursor: pointer;
}

/* comments */
#comments{
background-color: #000;
}

#disqus_thread{
	margin: 40px 70px 70px 70px;
}

.close{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 30px;
	background: #222 url(img/close.png) no-repeat;
	background-position: 95% 50%;
}

.close:hover{
	background-color: #444;
}

/* share */
#share, #resolution{
	position: fixed;
	bottom: 0;
	left: 170px;
	z-index: 21;
	height: 100%;
	background-color: #333;
	width: 0;
	overflow: hidden;
	
	-webkit-transition: color 1s, background-color 1s, width 0.5s;
	-moz-transition: color 1s, background-color 1s, width 0.5s;
	-ms-transition: color 1s, background-color 1s, width 0.5s;
	-o-transition: color 1s, background-color 1s, width 0.5s;
	transition: color 1s, background-color 1s, width 0.5s;
	font-size: 14px;
}

#share.active, #resolution.active{
	width: 163px;
}

#share ul, #resolution ul{
	position: absolute;
	bottom: 33px;
	left: 15px;
	width: 155px;
	display: block;
	list-style: none;
	margin: 0;
	padding: 0;
}

#share ul li, #resolution ul li{
	display: block;
	list-style: none;
	margin: 0;
	padding: 0;
	height: 36px;
	line-height: 36px;
	position: relative;
	float: left;
	clear: both;
}

#resolution.active {
width: 120px;
}

#resolution ul{
bottom: 40px;
}

#resolution ul li{
height: 28px;
line-height: 28px;
margin-left: 10px;
}

#resolution ul li.active a{
border-bottom: 1px solid #aaa;
}

/* content */

#main{
margin: 0;
padding: 157px 0 0 0;
min-height: 100%;
overflow: hidden;
z-index: 1;
background-color: #EDEDED;
position: relative;
}

.slide, #comments{
margin: 0;
padding: 0;
width: 100%;
height: min-content;
clear: both;
overflow: hidden;
position: relative;
margin-bottom: 7px;
}
.slide{
 width: 100%;
 padding-top: 0 !important;
 background-color: #EDEDED;
}

#comments{
min-height: 400px;
}

.progress{
position: absolute;
z-index: 3;
width: 100%;
height: 6px;
top: 0;
left: 0;
-moz-opacity: 0;
-webkit-opacity: 0;
opacity: 0;
-webkit-transition: opacity 0.5s ease-in;
-moz-transition: opacity 0.5s ease-in;
-ms-transition: opacity 0.5s ease-in;
-o-transition: opacity 0.5s ease-in;
transition: opacity 0.5s ease-in;
}

.progress.active{
-moz-opacity: 1;
-webkit-opacity: 1;
opacity: 1;
}

.image{
float: none;
width: 100%;
height: auto;
top: 0;
left: 0;
z-index: 1;
}

.image.active{
visibility: visible;
}

video.image{
z-index: 2;
}

.post h1, .post h2, .post h3{
display: block;
font: 100 4em 'Roboto', sans-serif;
margin: 0;
padding: 20px 0 10px 0;
}

.post h1{
-webkit-text-stroke: 0.5px;
}

.post h2{
clear: both;
font-size: 2em;
padding: 10px 0 10px 0;
}

.post h3{
	clear: both;
	font: 300 1.2em 'Roboto', sans-serif;
	padding: 10px 0 10px 0;
}

.post h1 .sub{
display: block;
margin: 10px 0 0 0;	
font: 300 18px/22px 'Roboto', sans-serif;
}

.post h2 .sub{
float: left;
width: 16px;
height: 16px;
background: transparent url(img/comment.png) no-repeat;
margin: 10px 10px 0 0;
}

.post .pagenav{
float: left;
margin: 30px 0 0 0;
padding: 0;
overflow: hidden;
clear: both;
}

.post .pagenav li{
float: left;
list-style: none;
margin: 0 12px 0 0;
width: 25px;
height: 26px;
border: 1px solid #fff;
-webkit-border-radius: 25px;
-moz-border-radius: 25px;
border-radius: 25px;
text-align: center;
line-height: 25px;
cursor: pointer;
font-size: 14px;
-webkit-transition: background-color 0.2s;
-moz-transition: background-color 0.2s;
-ms-transition: background-color 0.2s;
-o-transition: background-color 0.2s;
transition: background-color 0.2s;
}

.post .pagenav li:hover{
background-color: #ed5a2d;
border-color: #ed5a2d;
}

.post .pagenav li.active{
background-color: #fff;
color: #333;
border-color: #fff;
cursor: default;
}

/* bottom nav */
.prev, .next{
width: 50%;
float: left;
}

.prev a, .next a{
display: block;
min-height: 100px;
font: 300 48px 'Roboto', sans-serif;
-webkit-transition: all 0.5s;
-moz-transition: all 0.5s;
-ms-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}

.content {
	display: none;
}
	.title {
		opacity: 0;
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		pointer-events: none;
		height: 100%;
		justify-content: center;
		align-items: center;
		z-index: 2;
		box-sizing: border-box;
		padding: 0 2rem;
		text-align: center;
		display: flex;		
		transition: all 0.3s ease;
	}
	.title h3 {
		font-weight: 400;
	}
	.title h3::before{
		content: '';
		pointer-events: none;
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: black;
		z-index: -1;
		opacity: 0.3;
	}
	.slide:hover .title {
		opacity: 1;
	}

.prev a{
padding: 30px 0 30px 120px;
background: transparent url(img/prev.png) no-repeat;
background-position: 50px 42px;
}

.next a{
padding: 30px 120px 30px 0;
background: transparent url(img/next.png) no-repeat;
background-position: 100% 42px;
}

.next a{
text-align: right;
}

.final.slide a .text{
-webkit-text-stroke: 0.5px;
}

.final.slide a .sub{
display: block;
font-size: 20px;
}

.prev a:hover, .next a:hover{
background-color: #222;
}

/* polygon */
.polygon{
white-space: nowrap;
}

.filler{
display: inline-block;
height: 10px;
min-width: 1px;
}
#fullpage {
	visibility: hidden;
	position: fixed;
	z-index: 100;
	top: 0;
	left: 0;
	width: 100vw;
	overflow-y: scroll;
	height: 100vh;
	transition: all 0.4s ease-in-out;
	opacity: 0;
}
#fullpage.active {
	visibility: visible;
	opacity: 1;
}
  #fullpage .wrapper {
	position: absolute;
	display: flex;
	flex-direction: column;
	justify-content: center;
	top: 0;
	left: 0;
	width: 100%;
	min-height: 100%;
  }
  #fullpage .background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.8;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); 
}
.gutter-sizer {
	width: 7px;
}
.slide img {
	cursor: pointer;
}
  #image {
	background-color: black;
	width: auto;
	height: auto;
	margin: 0 auto;
	max-width: min(80%, 1100px);
	max-height: 80%;
	object-fit: cover;
	z-index: 101;
	cursor: pointer;
	position: relative;
  }
  #text {
	width: 80%;
	padding: 2rem 5%;
	background-color: white;
	margin: 0 auto;
	font-weight: 400;
	color: black;
	max-width: 1100px;
	box-sizing: border-box;
  }
  #img-title {
	display: none;
	width: 80%;
	padding: 2rem 5%;
	margin: 0 auto -2rem;
	max-width: 1100px;
	z-index: 1;
	box-sizing: border-box;
	background-color: white;
	color: black;
  }
@media (min-width:600px) {
	.slide {
		width: calc(50% - 4px);
	}
}
@media (min-width:768px) {
	.cs-toggle {
		display: none;
	}
	#mobile-nav {
		display: none;
	}
	#sidebar{
		width: 293px;
		height: 100%;
	}
	
	#main{
		margin: 0;
		padding: 7px 7px 0 300px;
	}
	html,body{
		font: 300 18px/22px 'Roboto', sans-serif;
	}
	#control {
		position: static;
		align-items: start;
		margin: 1rem 40px;
	}
	#nav {
		display: flex;
		flex-direction: column;
		row-gap: 15px;
		padding-left: 44px;
	}
	.slide {
		width: calc((100% - 314px) / 2);
	}
	h1, h2 {
		padding-left: 44px !important;
	}
}
@media (min-width:1024px) {
	.slide {
		width: calc((100% - 321px) / 3);
	}
}
@media (min-width:1800px) {
	.slide {
		width: calc((100% - 328px) / 4);
	}
}
@media (max-height: 550px) and (max-width: 768px) {
	#sidebar {
		position: relative;
	}
	#main {
		padding-top: 7px;
	}
}