@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@200&display=swap');

html, body {
    margin: 0;
    padding: 0;
    border: 0;
    background-color: #ffffff;
    color: #808080; /* Medium Gray */
    font: 200 14px/22px 'Barlow Condensed', sans-serif; /* Updated Font */
    width: 100%;
    height: 100%;
    padding: 0;
}

a {
    color: #808080;
    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: #404040; /* Darker gray on hover */
}

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

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

/* marker */
#marker {
    position: fixed;
    left: 0;
    top: 0;
    width: 7px;
    height: 100%;
    margin: 0;
    padding: 0;
    z-index: 13;
    background-color: #ffffff; /* Blend with background */
}

#marker li {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}

#marker li a {
    display: block;
    width: 100%;
    height: 100%;
    -moz-opacity: 0;
    -webkit-opacity: 0;
    opacity: 0;
    -webkit-transition: opacity 0.3s;
    -moz-transition: opacity 0.3s;
    -ms-transition: opacity 0.3s;
    -o-transition: opacity 0.3s;
    transition: opacity 0.3s;
    background-color: #808080; /* Marker color */
}

#marker li:hover a, #marker li.active a {
    -moz-opacity: 1;
    -webkit-opacity: 1;
    opacity: 1;
}

/* sidebar */

#sidebar {
    position: fixed;
    left: 7px;
    top: 0;
    width: 163px;
    height: 100%;
    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;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 12;
}

.background {
    width: 100%;
    height: 100%;
    background-color: transparent; /* Removed dark background */
    -moz-opacity: 0; /* Removed overlay opacity */
    -webkit-opacity: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 11;
    -webkit-transition: background-color 1s;
    -moz-transition: background-color 1s;
    -ms-transition: background-color 1s;
    -o-transition: background-color 1s;
    transition: background-color 1s;
}

#sidebar h1 {
    font: 200 24px/28px 'Barlow Condensed', sans-serif; /* Larger, lighter title */
    margin: 0;
    padding: 32px 0 20px 5px;
    float: left;
    width: 100%;
    color: #808080;
}

#nav {
    margin: 0;
    padding: 20px 10px 0 20px;
    float: left;
    clear: both;
}

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

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

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

#nav li a {
    -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;
}

#control {
    position: absolute;
    bottom: 40px;
    left: 15px;
    z-index: 20;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.icon {
    display: inline;
    float: left;
    width: 18px;
    height: 16px;
    margin: 5px 20px 0 15px;
    mix-blend-mode: normal; /* Changed from screen for white bg */
}

/* Icons */
.icon.camera {
    background: #808080 url(img/camera.png) no-repeat;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.icon.pinterest {
    background: #808080 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: #ffffff;
}

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

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

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

/* share */
#share, #resolution {
    position: fixed;
    bottom: 0;
    left: 170px;
    z-index: 21;
    height: 100%;
    background-color: #f9f9f9; /* Light gray panel */
    width: 0;
    overflow: hidden;
    border-right: 1px solid #e0e0e0;

    -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 #808080;
}

/* content */

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

.slide, #comments {
    float: left;
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto;
    clear: both;
    overflow: hidden;
    position: relative;
}

#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;
}

.bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #808080;
    -webkit-transition: width 0.5s ease-in;
    -moz-transition: width 0.5s ease-in;
    -ms-transition: width 0.5s ease-in;
    -o-transition: width 0.5s ease-in;
    transition: width 0.5s ease-in;
}

a.internal {
    position: absolute;
    top: 0;
    left: 0;
}

.post {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font: 200 1em/1.6em 'Barlow Condensed', sans-serif;
    z-index: 5;
    -moz-opacity: 1;
    -webkit-opacity: 1;
    opacity: 1;
    -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;
}

.post a:hover {
    text-decoration: underline;
}

.post.hidden {
    -moz-opacity: 0;
    -webkit-opacity: 0;
    opacity: 0;
}

.post .content {
    clear: both;
    position: absolute;
    width: 100%;
    height: 100%;
}

.image {
    float: none;
    width: 100%;
    height: auto;
    visibility: hidden;
    position: absolute;
    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: 200 4em 'Barlow Condensed', sans-serif;
    margin: 0;
    padding: 20px 0 10px 0;
    color: #808080;
}

.post h1 {
    -webkit-text-stroke: 0;
}

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

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

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

.post h2 .sub {
    float: left;
    width: 16px;
    height: 16px;
    background: #808080 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 #808080;
    -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: #e0e0e0;
    border-color: #e0e0e0;
}

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

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

.prev a, .next a {
    display: block;
    min-height: 100px;
    font: 200 48px 'Barlow Condensed', 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;
}

.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;
}

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

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

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

.filler {
    display: inline-block;
    height: 10px;
    min-width: 1px;
}

