:root{
  --main-color: #6e316d;
  --text-color-light: #333;
  --text-color-dark: #eee;
  --main-bg-light: #fff;
  --main-bg-dark: #000;
  --link-color: #6e316d;
  --accent-color: #fffd6c;
}

.container .mid-col .mid-col-container #content article .entry-content {
  line-height: unset;
}

.container .mid-col .mid-col-container #content article .entry-content p {
  margin-top: 10px;
/*  line-height: 2rem;*/
  margin-bottom: 2rem;
}

.entry-content p > img {
  text-align: center;
  margin: 0 auto;
  display: block;
}

body {
  background: var(--main-color);
}

article:nth-of-type(even), 
.entry-content p:nth-of-type(even):has(:not(img)),
.entry-content li:nth-of-type(even) {
  background-color: rgba(100, 100, 100, 0.04);
}

#header .subtitle {
  color: #d9d9d9;
}

.container .left-col #header a {
  color: var(--accent-color);
}

.container .left-col #header h1 a {
  line-height: 3rem;
  font-weight: bold;
}

.container .left-col #header #main-nav a {
  border-radius: 5px;
}

.container .left-col #header a:hover {
  color: var(--main-bg-light);
}

.container .left-col #header #main-nav a:active {
  background-color: var(--accent-color);
  color: var(--main-color);
}

.container .left-col #header #main-nav a:hover::before {
  content: " ";
  width: 0.8rem;
  height: 100%;
  display: block;
  background: var(--accent-color);
  position: absolute;
  left: -1.2rem;
}

.container .left-col #header #main-nav ul li a {
  display: inline-block;
  width: 100%;
}

h2::after {
  content: " ";
  display: block;
  vertical-align: baseline;
  width: 100%;
  height: 0.25rem;
  background-color: var(--main-color);
}

h2.title::after {
  display:none;
}

.container .mid-col .mid-col-container #content article h1.title a, 
.container .mid-col .mid-col-container #content article h2.title a 
{
  text-decoration: none;
  color:#333;
}

#header #main-nav ul li {
  line-height: 2.5rem;
}

#sub-nav .social a {
  padding: 2px;
  height: 40px;
  width: 40px;
  background-size: 60%;
  opacity: 1;
}

div.entry-content {
  overflow: hidden;
}

article a,  
#pagenavi a {
  text-decoration: underline;
  color: var(--link-color);
}

article .entry-content .more-link {
  background: var(--main-bg-light);
  display: block;
  text-align: right;
  padding: 3px 1rem;
  box-shadow: 0px -12px 10px 0px rgba(0, 0, 0, 0.25);
  margin-top: -2.5rem;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--main-color);
  border-top: none;
  border-radius: 0px 0px 10px 10px;
}

#sub-nav .social a.github {
}

#sub-nav .social a.rss {
  background: url('../images/social/rss.png?1419407210') center no-repeat #EF7522;
  border: 1px solid #EF7522;
}

.secret {
  opacity: 0;
}

.container .mid-col {
  max-height: 100vh;
  overflow: auto;
  border-top-left-radius: 47px;
}

.container .mid-col .mid-col-container #content article .entry-content {
  margin-left: 2rem;
}

@media (prefers-color-scheme:dark) {
  body {
    background: #422041;
  }

  .container .mid-col {
    background: black;
    color: #e9eadb;
  }

  article .entry-content .more-link {
    background-color: var(--main-bg-dark);
  }

  article:nth-of-type(even), .entry-content p:nth-of-type(even) {
    background-color: rgba(100, 100, 100, 0.4);
  }

  .container .mid-col .mid-col-container #content article h2.title a {
    color: var(--text-color-dark);
  }

  .container .mid-col .mid-col-container #content article .entry-content h2 {
    color: var(--text-color-dark);
  }

  a {
    color: #4ec4fa;
  }

  .container .mid-col .mid-col-container #content article .meta {
    color: #eee;
  }

  .container .mid-col .mid-col-container #content article .meta .date::before {
    color: #eee;
  }

  article code, article pre {
    background: #3d4349;
    padding: 5px;
    border-radius: 2px;
  }

  img {
    opacity: 0.75;
  }

  img:hover {
    opacity: 1;
  }

}

/* Scrollbar Style */
html {
  scrollbar-color: unset;
}

/* Scroll Bar Styles */
::-webkit-scrollbar {
  width: 20px !important;
  height: 20px !important;
}

::-webkit-scrollbar-track {
  background-color: #000000;
  background-image: repeating-linear-gradient(45deg, #ffffff 25%, transparent 25%, transparent 75%, #ffffff 75%, #ffffff), repeating-linear-gradient(45deg, #ffffff 25%, #000000 25%, #000000 75%, #ffffff 75%, #ffffff);
  background-position: 0 0, 4px 4px;
  background-size: 1px 1px;
  border-left: 2px solid black;
  border-right: 2px solid black;
}

::-webkit-scrollbar-track:has(:not(-webkit-scrollbar-thumb)) {
  background-color: grey;
}

::-webkit-scrollbar-track-piece:active {
  background: black;
}

::-webkit-scrollbar-thumb {
  background: #fff;
  border: 2px solid black;
  background-position: center center;
/*  background-image: url("data:image/svg+xml,%3Csvg width='volume200' height='150' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='13' height='2' x='2' y='55' fill='black' /%3E%3Crect width='13' height='2' x='2' y='60' fill='black' /%3E%3Crect width='13' height='2' x='2' y='65' fill='black' /%3E%3C/svg%3E");*/
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='13' height='2' x='2' y='0' fill='black' /%3E%3Crect width='13' height='2' x='2' y='5' fill='black' /%3E%3Crect width='13' height='2' x='2' y='10' fill='black' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

::-webkit-scrollbar-thumb:horizontal {
  background: #fff;
  border: 2px solid black;
  background-position: center center;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='16' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='2' height='13' x='0' y='2' fill='black' /%3E%3Crect width='2' height='13' x='5' y='2' fill='black' /%3E%3Crect width='2' height='13' x='10' y='2' fill='black' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

::-webkit-scrollbar-thumb:active {
  background: black;
  background-position: center center;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='13' height='2' x='2' y='0' fill='white' /%3E%3Crect width='13' height='2' x='2' y='5' fill='white' /%3E%3Crect width='13' height='2' x='2' y='10' fill='white' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

::-webkit-scrollbar-thumb:horizontal:active {
  background: black;
  background-position: center center;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='16' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='2' height='13' x='0' y='2' fill='white' /%3E%3Crect width='2' height='13' x='5' y='2' fill='white' /%3E%3Crect width='2' height='13' x='10' y='2' fill='white' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

::-webkit-scrollbar-button {
  display: block;
  height: 20px;
  background-size: 10px;
  background-repeat: no-repeat;
  color: black;
  background-color: white;
  border: 1px solid black;
  border-left-width: 2px;
  border-right-width: 2px;
}

::-webkit-scrollbar-button:active {
  background: rgb(0, 0, 0);
  background-size: 10px;
  background-repeat: no-repeat;
}

  /* Up */
::-webkit-scrollbar-button:vertical:decrement {
  background-position: center 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='rgb(0, 0, 0)'><polygon points='50,00 0,50 100,50'/></svg>");
}
::-webkit-scrollbar-button:vertical:decrement:active {
  background-position: center 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='white'><polygon points='50,00 0,50 100,50'/></svg>");
}

/* Down */
::-webkit-scrollbar-button:vertical:increment {
  background-position: center 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='rgb(0, 0, 0)'><polygon points='0,0 100,0 50,50'/></svg>");
}
::-webkit-scrollbar-button:vertical:increment:active {
  background-position: center 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='white'><polygon points='0,0 100,0 50,50'/></svg>");
}

  /* Up */
::-webkit-scrollbar-button:horizontal:decrement {
  background-position: 0px 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='rgb(0, 0, 0)' transform='rotate(90)'><polygon points='0,0 100,0 50,50'/></svg>");
}
::-webkit-scrollbar-button:horizontal:decrement:active {
  background-position: center 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='white' transform='rotate(90)'><polygon points='0,0 100,0 50,50'/></svg>");
}

/* Down */
::-webkit-scrollbar-button:horizontal:increment {
  background-position: 4px 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='rgb(0, 0, 0)' transform='rotate(270)'><polygon points='0,0 100,0 50,50'/></svg>");
}
::-webkit-scrollbar-button:horizontal:increment:active {
  background-position: 4px 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='white' transform='rotate(270)'><polygon points='0,0 100,0 50,50'/></svg>");
}

/*scroll shadows */
.shadowCol {
  content: " ";
  position: sticky;
  top: 0;
  right: 0;
  z-index: 900;
  min-width: 100%;
  min-height: 100vh;
  animation-name: scroll-shadow;
  animation-duration: 1ms;
  animation-direction: alternate;
  border-top-left-radius: 47px;
  animation-timeline: scroll(block nearest);
  pointer-events: none;
}

.container .mid-col .mid-col-container {
  margin-top: -100vh;
}

@keyframes scroll-shadow {
  0% {
    box-shadow: inset 0px 8px 9px 0px rgba(0, 0, 0, 0), inset 0px -8px 9px 0px rgba(0, 0, 0, 1);
  }
  1% {
    box-shadow: inset 0px 8px 9px 0px rgba(0, 0, 0, 0.5), inset 0px -8px 9px 0px rgba(0, 0, 0, 1);
  }
  99% {
    box-shadow: inset 0px 8px 9px 0px rgba(0, 0, 0, 1), inset 0px -8px 9px 0px rgba(0, 0, 0, 0.5); 
  }
  100% {
    box-shadow: inset 0px 8px 9px 0px rgba(0, 0, 0, 1), inset 0px -8px 9px 0px rgba(0, 0, 0, 0); 
  }
}

/*mobile stuff*/
@media screen and (max-width: 600px){
  .container .mid-col {
      max-height: unset;
  }
  .container .mid-col .mid-col-container #content article .entry-content {
    margin-left: unset;
  }
  .shadowCol {
  }
}