@charset "UTF-8";

@font-face {
  font-family: 'PC98';
  src: url(fonts/pc-9800-bold.ttf);
}

:root {
  --cont-color: transparent;
  --title-color: transparent;
  --back-color: transparent;
  --font-color: rgb(45, 66, 47);
  --border-color: rgb(45, 66, 47);
  --shadow-1: rgb(100, 126, 113);
  --shadow-2: rgb(100, 126, 113);
  --link-hover: rgb(100, 126, 113);
}

a {
    color: rgb(45, 66, 47);
}

hr {
  border-color: rgb(45, 66, 47);
}

::-webkit-scrollbar {
        width: 1rem;
        height: 1rem;
        }
        ::-webkit-scrollbar-button {
        width: 0px;
        height: 0px;
        }
        ::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border: 0px none #ffffff;
        }
        ::-webkit-scrollbar-thumb:hover {
        background: var(--shadow-1);
        }
        ::-webkit-scrollbar-thumb:active {
        background: var(--border-color);
        }
        ::-webkit-scrollbar-track {
        background: rgb(123,151,139);
        border: 0px none #ffffff;
        }
        ::-webkit-scrollbar-corner {
        background: transparent;
        }

img, iframe{
  filter: grayscale(100%) brightness(60%);
}

img:hover, iframe:hover {
  filter: brightness(80%);
}


.index a {
  text-decoration: none;
  color: inherit;
}

.list-cont {
  background-color: var(--cont-color);
  border: 0.35vw solid var(--border-color);
  box-shadow: var(--shadow-1) 0.3em 0.3em;
  padding: 4%;
  margin-bottom: 4%;
}

.entry {
  background-color: var(--title-color);
  border: 0.35vw solid var(--border-color);
  box-shadow: var(--shadow-1) 0.3em 0.3em;
  padding: 5%;
  margin-bottom: 5%;
}

.index a:hover {
  color: inherit;
  filter: invert(5%);
}

.archive {
  width: 24%;
}

.archive ul {
  padding: 5%;
}

.hp > * {
  width:100%;
}

.hp-cont {
  padding: 2.5rem 2rem 2rem 2rem;
  margin: 0 2.5% 2.5% 2.5%;
  text-align: justify;
  line-height: 1.6rem;
}

strong {
  font-weight: 900; 
}

.indent {
  margin-left: 5%;
}

header ul {
  display: flex;
  flex: auto 1 1;
  justify-content: space-evenly;
  align-self: center;
  padding-left: 0px;
}

.title ul {
  display: flex;
  flex: auto 1 1;
  justify-content: space-evenly;
  align-self: center;
  padding-left: 0px;
  margin-bottom: 0;
}

/* index */

.alpha {
  column-count: 4;
  margin-top: 2.5%;
}

.let {
  background-color: var(--cont-color);
  padding: 2.5%;
  margin-bottom: 7.5%;
  break-inside: avoid;
}

.let h2 {
  margin-top: 0;
  background-color: var(--title-color); 
  transform: translate(-5%,-25%); 
  padding: 5%;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-1) 5px 5px, var(--shadow-2) 10px 10px;
  text-align: center;
}

.let dd {
  margin-bottom: 0;
}

.let dt:first-child {
  padding-top: 0;
}

.let dt {
  padding-top: 1rem;
}

.cont, 
.links,
.footer  {
   background-color: var(--cont-color);
   opacity: 0.8;
   /* border-image:  url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAFhJREFUOE9jZEAF/9H4ZHEZkXSBDETmk2Mg2FEwQ6hlIMi8/2CCHCdh0QN3IMxQanh71FBwSMMjajRMKUqtyJlnNEwheX80SVElSYGDkppFH7zQp0UhzQAANaQ4BA6XL3MAAAAASUVORK5CYII=") 7 /  7px / 0 round;
    border-width:  7px;
    border-style:  solid;*/
   border: 0.35vw5vw solid #5E4E52;
   transition-duration: 1s;
}

.back {
   background-color: var(--cont-color);
   opacity: 0.8;
   box-shadow:
    0px 3px 5px -1px rgba(0, 0, 0, 0.2),
    0px 6px 10px 0px rgba(0, 0, 0, 0.14),
    0px 1px 18px 0px rgba(0,0,0,.12);
}

.boxtitle {
    font-size: 1.5rem;
    padding-left: 5%;
    border-bottom: 1px solid black;
    opacity: 1;
}

header ul {
  display: flex;
  align-self: left;
  padding-left: 0px;
}

#headerLinks a{
  padding: 1.5%;
  font: 1.5vw 'PC98';
  border-top: 0.35vw solid var(--border-color);
  border-right: 0.35vw solid var(--border-color);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color: var(--title-color);
  text-decoration: none;
}

#headerLinks a:hover {
  background-color: rgb(45, 66, 47);
  color: rgb(125, 153, 141);
}

#headerLinks {
  display: flex;
  flex: auto 1 1;
  justify-content: start;
  transform: translate(0, 12.5%); 
  align-self: center;
  padding-left: 0px;
  margin-top: 1em;
}

#headerLinks a:first-child{
    border-left: 0.35vw solid var(--border-color);
}

#letters li {
  padding: 2%;
  font: 5.5vw 'PC98';
  /*text-shadow: var(--border-color) 5px 5px;*/
}

header ul li {
  padding: 1.5%;
  font: 1.5vw 'PC98';
  transition-duration: 1s;
  background-color: var(--title-color);
}


ul {
  list-style: none; 
}

.chronology > ul {
  padding-left: 5%;
}

.chronology dl {
  padding-left: 10%;   
}

dd {
  margin-bottom: 3%;
}   

a:hover {
  color: var(--link-hover);
}

li a {
  text-decoration: none;			
}

.month {
  display: grid;
  grid-template-columns: repeat(7, minmax(125px, 1fr));
  gap: 10px;
}

.day p {
	font-size: 1rem;
    line-height: 1.2rem;
}

.day h3 {
   text-align: center;
}

.book img {
  width: 20%;
  float: left;
  padding-right: 4%;
}

.book summary {
  margin-top: auto;
}

.book {
  margin: 3%;
  padding: 4%;
  background-color: var(--cont-color);
  border: 0.30vw solid var(--border-color);
  box-shadow: var(--shadow-1) 5px 5px;
  overflow: auto;
  /*text-align: justify;*/
  line-height: 1.5;
}

summary {
	font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    line-height: 1;
}

details summary > * { 
  display: inline;
}

details summary { 
  cursor: pointer;
}

.row {
				display: flex;
				margin-bottom: 4%;
        background-color: var(--cont-color);
				font-size: 1.25em;
}

.row > img {
				width: 60%;
				z-index: -1;
}

.row > .caption {
				text-align: justify;
				padding-left: 2%;
				padding-right: 2%;
				line-height: 1.5;
				height: max-content;
}

.notes {
  display: flex;
  opacity: 0.9;
}

.heading {
  background-color: var(--title-color); 
  transform: translate(-3%,5%); 
  padding-left: 2%;
  border: 0.35vw solid var(--border-color);
}

.heading:first-of-type {
  border: 0.4vw solid var(--border-color);
}

.hp-heading {
  background-color: var(--title-color); 
  padding: 1.2rem;
  width: max-content;
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1;
  margin-top:1rem;
}

.writing section{
  background-color: var(--cont-color);
  border: 0.35vw solid var(--border-color);
  box-shadow: var(--shadow-1) 5px 5px;
  margin-bottom: 2%;
}

.note {
  background-color: var(--cont-color);
  padding: 2.5%;
  margin-top: 5%;
  border: 0.25vw var(--border-color);
  border-radius: 0px 15px 15px 0px;
  box-shadow: var(--shadow-1) 0.3em 0.3em;
  border-style: solid solid solid dashed;
}

.micronote {
  background-color: var(--cont-color);
  text-align: justify;
  line-height: 1.5;
  padding: 1%;
  border: 0.35vw var(--border-color);
  border-radius: 15px;
  box-shadow: var(--shadow-1) 0.3em 0.3em;
  border-style: solid;
}

.col {
  width: 20%;
  text-align: justify;
  margin-left: 0.5%;
  margin-right: 0.5%;
  line-height: 1.5;
}

col {
  width: 24%;
  text-align: justify;
  margin-left: 0.5%;
  margin-right: 0.5%;
  line-height: 1.5;
}

.revcol img {
  float: left; 
  width: 50%;
}


.flexwrap {
  display: flex;
  flex-wrap: wrap;
}

.catalog > * {
  width: 45%;
}

.catalog li {
  background-color: var(--title-color);
  border: 0.35vw solid var(--border-color);
  box-shadow: var(--shadow-1) 0.3em 0.3em;
  padding: 5%;
  margin-bottom: 5%;
}

.catalog h2 {
  margin-top: 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.list li {
  background-color: var(--title-color);
  border: 0.35vw solid var(--border-color);
  box-shadow: var(--shadow-1) 0.3em 0.3em;
  padding: 5%;
  margin-bottom: 5%;
}

.list h2 {
  margin-top: 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.blog summary {
  border: 0.35vw solid var(--border-color);
  box-shadow: var(--shadow-1) 5px 5px;
  background-color: var(--title-color); 
  transform: translate(-7.5%, 5%); 
  padding: 2%;
}

.column {
  width: 50%;
}

.can-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 25px;
  justify-items: center;
}

.can {
  background-color: var(--cont-color);
  border: 0.35vw solid var(--border-color);
  border-radius: 15px;
  box-shadow: var(--shadow-1) 0.3em 0.3em;
}

.can .small {
  font-family: monospace;
}

.can > img {
  border-radius: 15px 15px 0px 0px;
  border-bottom: 2px solid var(--border-color);
}

.can-desc {
  padding: 3%;
}

.can-desc > table {
  width: 100%;
  line-height: 1.4;
}

.rev {
  background-color: var(--cont-color);
  padding: 2.5%;
  margin-top: 5%;
  border: 0.3vw var(--border-color);
  box-shadow: var(--shadow-1) 0.3em 0.3em;
  border-style: solid;
}

.rev > img {
  width: 80%; display: block; margin-right: auto; margin-left: auto; margin-top:5%; margin-bottom:7.5%; border-top: 2px solid var(--border-color);
  border-left: 2px solid var(--border-color);
  box-shadow: 0px 1px 0px 0px var(--border-color), 1px 0px 0px 0px var(--border-color), 1px 2px 0px 0px var(--border-color), 2px 1px 0px 0px var(--border-color), 2px 3px 0px 0px var(--border-color), 3px 2px 0px 0px var(--border-color), 3px 4px 0px 0px var(--border-color), 4px 3px 0px 0px var(--border-color), 4px 5px 0px 0px var(--border-color), 5px 4px 0px 0px var(--border-color);
}

.review {
  width: 95%; 
  margin-bottom: 2vh;
  margin-top: 0;  
  padding: 0; 
  max-width: none; 
  background-color: #11ffee00;
}

.review > header {
  width: 80%;
  height: 12vh;
  transform: scale(0.7) translate(42.5%, -40%);
}

.review-header {
  position: absolute; 
  top: 3%; 
  left: 4%; 
  padding: 1.25%; 
  background-color: var(--title-color);
  border: 0.35vw solid var(--border-color);
  box-shadow: var(--shadow-1) 5px 5px; 
  font-weight: 400;
  font-size: 3vw;
  line-height: 1;
}

.blog {
  background-color: var(--cont-color);
  border: 0.35vw var(--border-color);
  border-radius: 0px 15px 15px 0px;
  box-shadow: var(--shadow-1) 5px 5px;
  border-style: solid solid solid dashed;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 1rem;
  place-items: center;
  padding: 1%;  
  height: 80vh; 
  overflow-y: scroll; 
  margin-right: 2.5%;
}

.posts {
  padding: 1%; 
  /*width: 30%; */
  height: 80vh; 
  overflow-y: scroll; 
  margin-right: 2%;
  direction: rtl;
}

.posts div {
  direction: ltr;
  padding-left: 0;
}

.posts li {
  background-color: var(--cont-color);
  border: 0.35vw solid var(--border-color);
  box-shadow: var(--shadow-1) 5px 5px;
  transition-duration: 0.3s;
  margin-bottom: 5%;
  padding: 2%;
}

.posts li:hover {
  transform: translate(1%, -1%);
}

li > .date {
  font-style: italic;
}

.border {
  border: 0.35vw solid var(--border-color);
  box-shadow: var(--shadow-1) 5px 5px;
  background-color: var(--cont-color);
}


.media-item > a > img {
  display: block; 
  margin-left: auto;
  margin-right: auto;
  border-top: 2px solid var(--border-color);
  border-left: 2px solid var(--border-color);
  box-shadow: 0px 1px 0px 0px var(--border-color), 1px 0px 0px 0px var(--border-color), 1px 2px 0px 0px var(--border-color), 2px 1px 0px 0px var(--border-color), 2px 3px 0px 0px var(--border-color), 3px 2px 0px 0px var(--border-color), 3px 4px 0px 0px var(--border-color), 4px 3px 0px 0px var(--border-color), 4px 5px 0px 0px var(--border-color), 5px 4px 0px 0px var(--border-color);
  transition-duration: 0.3s;
}

.media-item img:hover, .logo img:hover {
  transform: scale(1.1);
}

.media-item > a {
  text-decoration: none;
}

.logo {
  /*filter: drop-shadow(0 0 0.75rem var(--shadow-1));*/
}

.small {
  font-size: small;
}

.mediainfo > img {
  float: left;
  width: 200px;
  height: 300px;
  margin: 0.5em 2em 1em 0;
}

.cover > img {
  width: 200px;
  height: 300px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  text-align: center;
  margin-bottom: 4rem;
}


html {
    font-size: 0.9vw;
    background-image: url("bgtest.png");
    background-repeat: repeat;
    background-size: 15px;
    background-attachment: fixed;
    background-color: var(--back-color);
}

body {
    width: 87.5%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10%;
    padding-left: 3%;
    padding-right: 3%;
    font-family: 'PC98'; 
    font-weight: lighter;
    color: var(--font-color);
    text-shadow: 0.15rem 0.15rem 0.15rem rgb(100, 126, 113);
    max-width: 1600px;
    border-radius: 30px;
    counter-reset: sidenote-counter;
}

.dark {
   background-color: #121212;
   font-family: 'MS PGothic', monospace;
   color: #FFFFFF;
   filter: brightness(.6) contrast(1.3);
}

h1 {
    font-weight: 400;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    font-size: 4.5rem;
    line-height: 1;
}

h2 {
    font-weight: 400;
    margin-top: 2.1rem;
    margin-bottom: 1.4rem;
    font-size: 2.2rem;
    line-height: 1;
}

h3 {
    font-style: italic;
    font-weight: 400;
    font-size: 1.7rem;
    margin-top: 2rem;
    margin-bottom: 1.4rem;
    line-height: 1;
}

h4 {
	font-weight: 400;
    font-size: 1.7rem;
    margin-top: 1rem;
    margin-bottom: 1.4rem;
    line-height: 1;
}

hr {
    display: block;
    height: 1px;
    width: 55%;
    border: 0.35vw;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

p.subtitle {
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    display: block;
    line-height: 1;
}

.danger {
    color: red;
}


section {
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 2rem;
}

section:last-of-type {
	padding-bottom: 6rem;
}

p,
dl,
ol,
ul {
    font-size: 1.4rem;
    line-height: 2rem;
}

p {
    margin-top: 1.4rem;
    margin-bottom: 1.4rem;
    padding-right: 0;
    vertical-align: baseline;
}

/* Chapter Epigraphs */
div.epigraph {
    margin: 5em 0;
}

div.epigraph > blockquote {
    margin-top: 3em;
    margin-bottom: 3em;
}

div.epigraph > blockquote,
div.epigraph > blockquote > p {
    font-style: italic;
}

div.epigraph > blockquote > footer {
    font-style: normal;
}

div.epigraph > blockquote > footer > cite {
    font-style: italic;
}
/* end chapter epigraphs styles */

blockquote {
    font-size: 1.4rem;
}

blockquote p {
    width: 55%;
    margin-right: 40px;
}

blockquote footer {
    width: 55%;
    font-size: 1.1rem;
    text-align: right;
}

section > p,
section > footer,
section > table {
    width: 67%;
}

/* 50 + 5 == 55, to be the same width as paragraph */
section > dl,
section > ol,
section > ul {
    width: 50%;
    -webkit-padding-start: 5%;
}

dt:not(:first-child),
li:not(:first-child) {
    margin-top: 0.25rem;
}

figure {
    padding: 0;
    border: 0.35vw;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    max-width: 55%;
    -webkit-margin-start: 0;
    -webkit-margin-end: 0;
    margin: 0 0 3em 0;
}

figure > img {
    box-shadow: var(--shadow-2) 7px 7px; 
}

figcaption {
    margin: 2.5%;
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    display: block;
}

figure.fullwidth figcaption {
    margin-right: 24%;
}


/* Sidenotes, margin notes, figures, captions */
img {
    max-width: 100%;
}

.sidenote,
.marginnote {
    float: right;
    clear: right;
    margin-right: -40%;
    width: 35%;
    margin-top: 0.3rem;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.3;
    vertical-align: baseline;
    position: relative;
    background-color: var(--title-color); 
    border: 0.25vw solid var(--border-color);
    box-shadow: var(--shadow-1) 3px 3px;
    padding: 1%;
     
}

.sidenote-number {
    counter-increment: sidenote-counter;
}

.sidenote-number:after,
.sidenote:before {
    position: relative;
    vertical-align: baseline;
}

.sidenote-number:after {
    content: counter(sidenote-counter);
    font-size: 1rem;
    top: -0.5rem;
    left: 0.1rem;
}

.sidenote:before {
    content: counter(sidenote-counter) " ";
    font-size: 1rem;
    top: -0.5rem;
}

blockquote .sidenote,
blockquote .marginnote {
    margin-right: -82%;
    min-width: 59%;
    text-align: left;
}

div.fullwidth,
table.fullwidth {
    width: 100%;
}

div.table-wrapper {
    overflow-x: auto;
    font-family: "Trebuchet MS", "Gill Sans", "Gill Sans MT", sans-serif;
}

.sans {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
    letter-spacing: .03em;
}

code, pre > code {
    font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 1.0rem;
    line-height: 1.42;
    -webkit-text-size-adjust: 100%; 
}

.sans > code {
    font-size: 1.2rem;
}

h1 > code,
h2 > code,
h3 > code {
    font-size: 0.80em;
}

.marginnote > code,
.sidenote > code {
    font-size: 1rem;
}

pre > code {
    font-size: 0.9rem;
    width: 52.5%;
    margin-left: 2.5%;
    overflow-x: auto;
    display: block;
}

pre.fullwidth > code {
    width: 90%;
}

.fullwidth {
    max-width: 90%;
    clear:both;
}

span.newthought {
    font-variant: small-caps;
    font-size: 1.2em;
}

input.margin-toggle {
    display: none;
}

label.sidenote-number {
    display: inline-block;
    max-height: 2rem; /* should be less than or equal to paragraph line-height */
}

label.margin-toggle:not(.sidenote-number) {
    display: none;
}

.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width:768px) {
    html {
      font-size: 2vw;
    }
    .catalog > *, .halves, .revcol {
      width: 90%;
    }
}

@media (min-width:768px) {
    .hp > * {
        width:25%;
    }
    .hp > *:nth-child(1) {
        width:50%;
    }
    .hp > *:nth-child(2) {
        order:-1;
    }
    .halves {
      width: 45%;
    }
}

@media (max-width: 760px) {
    body {
        width: 84%;
        padding-left: 8%;
        padding-right: 8%;
    }

    hr,
    section > p,
    section > footer,
    section > table {
        width: 100%;
    }

    pre > code {
        width: 97%;
    }

    section > dl,
    section > ol,
    section > ul {
        width: 90%;
    }

    figure {
        max-width: 90%;
    }

    figcaption,
    figure.fullwidth figcaption {
        margin-right: 0%;
        max-width: none;
    }

    blockquote {
        margin-left: 1.5em;
        margin-right: 0em;
    }

    blockquote p,
    blockquote footer {
        width: 100%;
    }

    label.margin-toggle:not(.sidenote-number) {
        display: inline;
    }

    .sidenote,
    .marginnote {
        display: none;
    }

    .margin-toggle:checked + .sidenote,
    .margin-toggle:checked + .marginnote {
        display: block;
        float: left;
        left: 1rem;
        clear: both;
        width: 95%;
        margin: 1rem 2.5%;
        vertical-align: baseline;
        position: relative;
    }

    label {
        cursor: pointer;
    }

    div.table-wrapper,
    table {
        width: 85%;
    }

    img {
        width: 100%;
    }
}