html[theme="dark-mode"] {
  filter: invert(1) hue-rotate(180deg);
}

::selection {
  background: rgba(245, 190, 170, 0.709);
}

html,
body,
.btn {
  /* background-color: #f1f3fd; */
  background-color: #fffaf7;
  /* background-color: #fff7eb; */
  /* color: rgb(58, 58, 58); */
  /* font-family: "Spectral", serif !important; */
  /* font-family: 'Quicksand', sans-serif; */
  /* font-family:'Bitter', serif; */
  /* font-family: 'DM Mono', monospace; */
  font-family: "Open Sans", sans-serif;
  overflow-x: hidden;
}

body {
  /* line-height: 1.3em; */
  /* font: normal 15px/1.5em 'Helvetica Neue', Helvetica, Arial, sans-serif; */
  font-size: 0.9em;
  /* line-height: 1.75; */

  font-weight: 400;
  color: rgb(73, 73, 73);
}

.home-container {
  width: 70%;
  line-height: 1.6em;
  display: block;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
  position: relative;
  padding: 10px;
}

@media (max-width: 700px) {
  .home-container {
    width: 100%;
  }
}

a {
  text-decoration: none;
  color: #5d7ff2;
}

a:hover {
  color: #293cce;
}

/* navigation */

nav.navigation {
  padding: 15px 10px;
  /* background: #fff; */
  background-color: #fffaf7;
  margin: 0 auto;
  text-align: left;
  z-index: 100;
  max-width: 700px;
  /* width: 70%; */
  font-size: 1.4em;
  display: block;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

nav.navigation a {
  padding: 8px 12px 8px 0px;
  line-height: 1.35;
  border-radius: 3px;
  letter-spacing: 1px;
  font-weight: 500;
  /* color: #5d7ff2; */
  color: #293cce;
  font-size: 0.7em;
}

nav.navigation a:hover {
  /* color: #293cce; */
  color: #5d7ff2;
}

nav.navigation a.button {
  /* color: #fff; */
  margin-left: 12px;
}

@media (max-width: 700px) {
  nav.navigation {
    padding: 20px 10px 0 0;
    /* background: #fff;
    background: rgba(255, 255, 255, 0.9); */
    margin: 0 auto;
    text-align: right;
    z-index: 100;
  }

  nav.navigation a {
    top: 8px;
    right: 6px;
    padding: 8px 8px;
    font-size: 13px;
    line-height: 1.35;
    border-radius: 3px;
  }

  nav.navigation {
    width: 100%;
  }
}

@media (max-width: 324px) {
  nav.navigation a.button {
    display: none;
  }
}

/* Center website */
.main {
  max-width: 1000px;
  width: 70%;
  margin: auto;
}

#myCanvas {
  position: absolute;
  left: 0;
  top: 0;
}

@media (max-width: 700px) {
  #myCanvas {
    display: none;
  }
}

#footer .copyright {
  font-size: 0.8em;
}

#footer {
  padding-top: 5em;
  z-index: -1;
}

.powerby {
  font-size: 0.8em;
  color: #cecece;
}

.powerby a {
  color: #cecece;
}

#section {
  max-width: 700px;
}

.archive {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 24px;
}

.archive .total {
  font-size: 15px;
}

.archive .group {
  margin: 14px auto;
}
.archive .group .key {
  font-size: 20px;
  margin-bottom: 12px;
}
.archive .group .value {
  display: block;
  /* font-size: 16px; */
  margin-bottom: 8px;
}

.archive .group .value .date {
  display: inline-block;
  color: #999;
  min-width: 60px;
  font-size: 0.8em;
}
.archive .group .value .title {
  display: inline;
}
.archive .group .value .title a {
  color: #404040;
}
.archive .group .value .title a:hover {
  color: #0366d6;
}
.archive .group .value .tags {
  display: inline;
  margin-left: 7px;
}
.archive .group .value .tags a {
  background: #f2f2f2;
  padding: 2px 6px;
  color: #5d7ff2;
  font-size: 14px;
  margin-right: 3px;
}
.archive .group .value .tags a:hover {
  color: #0366d6;
}

#archive {
  padding: 10px;
}

#archive .group .titlevalue {
  margin-bottom: 0px;
  color: #5d7ff2;
}

#archive .group .title a {
  color: #5d7ff2;
}

.section-title {
  font-family: "Source Serif Pro", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.2em;
  margin-top: 1em;
  letter-spacing: 1px;
}

.subtitle {
  font-family: "Source Serif Pro", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.notes-text {
  /* font-family: 'Source Serif Pro', serif; */
  /* font-style: italic; */
  margin: 2.5em 0;
  /* font-weight: 300; */
  /* font-size: 0.9em; */
}

/* sidenotes */

.sidenote {
  font-size: 80%;
  position: relative;
  padding: 10px;
}
/* Wide viewport */
@media (min-width: 1200px) {
  .sidenote {
    float: right;
    clear: left;
    /* margin-left: -23vw; */
    margin-right: -22vw;
    text-align: right;

    top: -3rem;
    width: 20vw;
    margin-top: 1rem;
  }
}

/* Narrow viewport */
@media (max-width: 1200px) {
  .sidenote {
    float: left;
    text-align: left;

    width: 100%;
    margin: 1rem 0;
    padding-left: 10%;
  }
}

/* Sidenote counter */
body {
  counter-reset: sidenote-counter;
}
.sidenote-number {
  counter-increment: sidenote-counter;
}
/* Counter before the sidenote in the margin. */
.sidenote::before {
  content: counter(sidenote-counter) ".";
  position: relative;
  vertical-align: baseline;
  font-size: 0.9em;
  font-weight: bold;
}
/* Counter in the main body. */
.sidenote-number::after {
  content: counter(sidenote-counter);
  vertical-align: super;
  font-size: 0.7em;
  font-weight: bold;
  margin-right: 0.5rem;
}

@media (min-width: 1200px) {
  /* Highlight the sidenote when mouse hovers on the sidenote number in body. */
  .sidenote-number:hover .sidenote {
    background-color: rgba(103, 135, 230, 0.365);
  }
}

/* The "show" class is added to the filtered elements */
.show {
  display: block;
}

/* Style the buttons */
.btn {
  background: #eeeeee;
  padding: 4px 7px;
  color: #757575;
  color: #404040;
  font-size: 0.9em;
  margin: 5px 3px;
  border: none;
  font-weight: 400;
  letter-spacing: 1px;
}

/* Add a grey background color on mouse-over */
.btn:hover {
  background-color: rgb(182, 201, 228);
  color: #0366d6;
  cursor: pointer;
}

/* Add a dark background color to the active button */
.btn.active {
  background-color: rgb(60, 99, 183);
  color: white;
}

u,
u a {
  text-decoration-color: rgb(246, 156, 123);
  text-decoration-thickness: 2px;
}

u:hover,
u a:hover {
  text-decoration-color: rgb(249, 110, 68);
}

mark {
  background-color: rgba(247, 227, 0, 0.453);
  padding: 0 1px;
}

.gen-gallery {
  margin-top:2rem;
}
.gen-gallery > div {
  columns:2;
  gap:1.25rem;
  padding-top:1.25rem;
}
.gen-gallery img {
  /* display:block; */
  width:100%;
  /* margin-bottom:1.25rem; */
}

.gen-gallery .wrap{
  /* display:block; */
  width:100%;
  margin-bottom:1.25rem;
}

@media (max-width:48rem) {
 .gen-gallery > div {
   columns:2;
  }
}
@media (max-width:32rem) {
 .gen-gallery > div {
   columns:1;
  }
}

.display {
  position: relative;
  overflow: hidden;
}

.display img,
.display video {
  display: block;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 30px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  /* grid-template-rows: auto auto; */
  /* border: 1px solid #ddd; */
  /* padding: 30px; */
  box-sizing: border-box;
  text-align: left;
  height: 300px;
  align-items: start;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 70%; /* Adjust as needed */
  max-height: 160px;
  object-fit: cover; /* This will ensure that the image scales and crops to fit the box */
  border-radius: 2.5px;
  box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.25),
    0 0 10px -10px rgba(0, 0, 0, 0.25);
}

.gallery-item .text {
  margin-top: 10px;
}

.gallery-item .title {
  margin: 15px 0 0 0;
  font-family: "Source Serif Pro", serif;
  font-size: 1em;
  font-weight: 600;
  /* font-style: italic; */
}

.gallery-item .title a {
  color: rgb(38, 38, 38);
}

.gallery-item .title a:hover {
  color: #5d7ff2;
}

.gallery-item p {
  margin: 0;
  font-size: 0.75em;
  font-weight: 100;
}

.gallery-item p a:hover{
  text-decoration: underline;
}

#gallery-section {
  max-width: 700px;
  margin: 48px auto 0 auto;
  padding: 0 12px;
}

#filter-section {
  max-width: 700px;
  margin: 48px auto 0 auto;
  padding: 0 12px;
}

.filter-btn {
  font-family: "Open Sans", sans-serif;
  padding: 2px 7px;
  margin: 5px 2px;
  font-size: .8em;
  color: rgb(74, 74, 74);
  background-color: rgba(255, 255, 255, 0);
  border:rgb(74, 74, 74) 1px solid;
  border-radius: 2px;
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.15),
    0 0 2px -2px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.filter-btn:hover {
  background-color: rgb(211, 228, 255);
}

.filter-btn.selected {
  background-color: rgb(171, 199, 245);
  border: rgb(171, 199, 245) 2px solid;
}

.info {
  padding-top:5px;
}



.caption {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 10px 0;
  /* box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box; */
  background: #3d3d3d67;
  color: rgb(255, 255, 255);
  top: 100%;
  font-weight: 400;
  /* font-family: 'Source Serif Pro', serif; */
}

.wrap:hover .caption {top: 0;}

.txt_stl{
  position: relative;
  text-align:center;
  font-size:1.3em;
  top: 40%;
}

.txt-sb {
  text-align: center;
}

/* exploration post page columns */

* {
  box-sizing: border-box;
}

/* Create two equal columns that floats next to each other */
.column1 {
  float: left;
  width: 40%;
  padding: 0 20px 20px 0;
}
.column2 {
  float: left;
  width: 60%;
  padding: 0 0 20px 40px;
  color: gray;
}

.column2 img, .column1 img {
  width: 100%;
}

.exp-caption {
  margin-top: 1.5em;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 500px) {
  .column1 {
    width: 100%;
    padding: 5px;
  }
  .column2 {
    width: 100%;
    padding: 5px;
  }
}

.exploration {
  /* background-color: red; */
  max-width: 900px !important;
  padding: 0 10px;
}

.footnotes {
  font-size: 0.8em;
  padding: 30px 0 0;
}

.small-column{
  width: 40%;
}

.border img {
  border: black solid 1px;
}

.img-caption {
  font-size: 0.65em;
  font-weight: 400;
}

.life {
  padding: 2px 10px;
  margin: 0 10px;
  background-color:pink;
  border-radius: 3px;
}
