@import "/css/normalize.css";

:root {
  --wine: rgb(59, 38, 48);
  --pink:rgb(166, 130, 154);
  --silver: rgb(237, 237, 237);
  --grey:#292929;
  --darkgrey:#181818;
}

@font-face {
  font-family: Daydream;
  src: url(/fonts/Daydream.ttf); /* https://www.dafont.com/daydream-3.font */
}

@font-face {
  font-family: RomanceA;
  src: url(/fonts/RomanceA.ttf); /* https://cinni.net/?z=/font */
}

@font-face {
  font-family: GothPixelFont;
  src: url(/fonts/GothPixelFont.ttf); /* https://dacosta.itch.io/gothic-pixel-font */
}

@font-face {
  font-family: OldEnglishGoth;
  src: url(/fonts/OldEnglishGoth.ttf); /* https://www.fontspace.com/old-english-gothic-pixel-font-f83405 */
}

@font-face {
  font-family: Fira Code;
  src: url(/fonts/FiraCode.ttf); /* https://fonts.google.com/specimen/Fira+Code */
}

@font-face {
  font-family: Kelmscott;
  src: url(/fonts/Kelmscott.ttf); /* https://www.dafont.com/kelmscott.font */ 
}

@font-face {
  font-family: NDSBIOS;
  src: url(/fonts/NDSBIOS.ttf); /* https://www.dafont.com/nintendo-ds-bios.font */
}

@font-face {
  font-family: Minecraft; 
  src: url(/fonts/Minecraft.ttf); /* https://www.dafont.com/minecraft.font */
}

@font-face {
  font-family: Alkhemikal;
  src: url(/fonts/Alkhemikal.ttf);
}

/* Regular */
@font-face {
  font-family: 'DejaVuSansMono';
  src: url('/fonts/DejaVuSansMono.ttf') format('truetype'); /* https://www.fontsquirrel.com/fonts/dejavu-sans-mono */
  font-weight: normal;
  font-style: normal;
}

/* Bold */
@font-face {
  font-family: 'DejaVuSansMono';
  src: url('/fonts/DejaVuSansMono-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* Italic */
@font-face {
  font-family: 'DejaVuSansMono';
  src: url('/fonts/DejaVuSansMono-Oblique.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

/* Bold Italic */
@font-face {
  font-family: 'DejaVuSansMono';
  src: url('/fonts/DejaVuSansMono-BoldOblique.ttf') format('truetype');
  font-weight: bold;
  font-style: italic;
}




body {
  font-family: DejaVuSansMono, monospace;
  font-size: 0.95em;
  line-height: 1.5em;
  letter-spacing: 0.5px;
  background-image: url(/images/bg.png); /* https://www.zerochan.net/Pixiv+Id+20784982 */
  margin: auto;
  text-align: left;
  cursor: url(/images/cursor.png), default;
}

a {
  color: var(--pink);
  text-decoration: none;
  transition: 0.5s ease;
}

a, button{
  cursor: url(/images/pointer.png), pointer;
}

input[type="text"], textarea, [contenteditable] {
  cursor: url('/images/text.png') 2 12, text;
}

aside a {
  text-decoration: none;
}

a:hover {
  color: var(--silver);
  text-decoration: dotted underline;
}


.image-link img {
  border: none;
  transition: transform 0.3s;
}

.image-link:hover img {
  transform: scale(1.05);
}

a[target="_blank"]::after {
  content: "\F1C5"; /* bi-box-arrow-up-right */
  font-family: "bootstrap-icons";
  margin-left: 0;
  margin-left: 0.25em;
  font-size: 0.65em;
}

ul {
  list-style: none;
  padding-left: .5em; /* distance from left */
}

li {
  position: relative;
  padding-left: 1.5em; /* distance between bullet and text */
  line-height: 1.5em;
}

li::before {
  content: "✩";
  position: absolute;
  left: 0;
  color: inherit; 
}


ul.to-do li{
  font-size: 1em;
  padding-left: 5px;
  margin-left: 10px;
}

ul.to-do li::before {
  font-family: "bootstrap-icons";
  content:"\F584";
  left: -20px;
}

ul.done li{
  font-size: 1em;
  padding-left: 5px;
  margin-left: 10px;
  text-decoration: line-through;
}

ul.done li::before {
  content:"\F26D";
  font-family: "bootstrap-icons";
  left: -20px;
}

/* NAVIGATION */
ul.a {
  list-style: none;
  letter-spacing: 2px;
  text-align: center;
}


ul.a a:hover{
  color:var(--pink);
}

ul.a li {
  position: relative;
  display: inline-block;
  padding-left: 1.5em; /* space between heart and text */
  padding-right: 20px;
  line-height: 1.5em;
  font-weight: bold;
  transition: 0.4s;
}

ul.a li::before {
  content: "♡"; 
  position: absolute;
  left: 0;
  color: inherit; 
}

ul.a li:nth-child(2)::before {
  content: none;
}


h1 {
  font-family: "Alkhemikal";
  line-height: .7em;
  font-size: 3em;
  text-align: left;
  letter-spacing: 3px;
}

h2 {
  font-family: "Kelmscott";
  margin-block-start: 0.5em;
  margin-block-end: 0.5em;
  text-align: left;
  letter-spacing: 2px;
}

h2 a {
  text-decoration: none;
}

h3 {
  margin-bottom: 0.5rem;
  text-align: left;
}

pre code {
  display: block;
  background-color: #f4f4f4;
  color: #333;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.4;
  font-family: "Fira Code", "Courier New", monospace;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  overflow-x: auto;
  max-width: 100%;
  word-break: break-word;
  white-space: pre-wrap;
}

pre {
  margin-bottom: 1.5rem;
}

/* WEBRINGS */
.webring {
  font-size: 1rem;
  margin-top: 2rem;
}

.webring a {
  margin: 0 0.5em;
  text-decoration: none;
  display: inline-block; 
  transition: transform 0.2s ease;
}

.webring a:hover {
  transform: translateY(-5px);
}


.webring a[target="_blank"]::after { /* Removes outlink icon */
  content: none;
}

.webring > .bucket {
  background: linear-gradient(to right, #ffcaca 0%, #ffedc1 20%, #feffb8 40%, #c4ffcb 60%, #add8ff 80%, #ccafe9 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}




/* TABLE STYLES */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2em;
  background-color: transparent;
  font-size: 0.95rem;
}

th {
  color: var(--silver);
  font-family: "Kelmscott";
  font-size: 1.2rem;
  padding: 10px;
  text-align: left;
  letter-spacing: 1px;
}

td {
  background-color: transparent;
  padding: 7px;
  font-weight: 700;
}

td:last-child,
td:nth-last-child(2),
th:last-child,
th:nth-last-child(2) {
  max-width: 100px;
  width: 150px;
}


.platform {
  text-align: center;
}

/* LIGHT */

.light{
position: fixed;
}

/* THEME PICKER */

.theme-picker {
  position: fixed;
  bottom: 10px; 
  right: 10px;   
  z-index: 1000;
}


/* GRID LAYOUT */

.content {
  padding: 10px;
}

.container {
  justify-items: center;
  padding: 15px 30px 15px;
  gap: 10px;
  margin: 0px auto 0px;
  width: 50%;
  height: 100%;

  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  grid-auto-flow: row;
  grid-template-areas:
    "header"
    "main"
    "footer";
}



header{
  grid-area: header;
  width: 100%;
  border: 8px solid;
  border-image: url(/images/pixelborder3.png) 8 round;
}

main {
  grid-area: main;
  width: 100%;
  height: auto;
  border: 8px solid;
  border-image: url(/images/pixelborder3.png) 8 round;
}

main,
.post-item,
.post-list {
  max-width: 100%;
  overflow-wrap: break-word;
}

footer {
  margin-bottom: 20px;
  width: auto;
  grid-area: footer;
  min-height: 15px;
  max-height: auto;
  padding: 20px;
  text-align: center;
  border: 8px solid;
  border-image: url(/images/pixelborder3.png) 8 round;
  padding:5px;
}


.banner-title {
  position: absolute;
  right: 20px;
  top: 70px;
  font-size: 5rem;
  letter-spacing: 4px;
  padding: 5px 10px;
  transition: text-shadow 0.5s ease;
}

.banner-title:hover {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* HOME GRID */
.home {
  display: grid;
  grid-template-rows: auto auto;
  gap: 20px;
}

.top-row {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 20px;
}

.latest-content h2{
  font-size: 1em;
}

.latest-content a:any-link{
  text-decoration: none;
}

.latest-content legend a{
  transition: text-shadow 0.5s ease;
}

.latest-content legend a:hover{
  text-decoration: none;
}

.latest-content fieldset{
  padding:10px 15px 10px;
}

.latest-picture img{
    max-width: 275px;
    height: auto;
    transition: 0.2s;
    filter: grayscale(100%);  
}

.latest-picture img:hover{
  filter: none;
}

.bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.bottom-row fieldset{
  padding-left: 10px;
  max-height: 150px;
  overflow-y: scroll;
  width: 95%;
}


details summary {
  font-weight: bold;
  font-style: italic;
  font-size: larger;
}

details > * {
  margin-left: 1em;
}



fieldset {
  padding: 6px;
  display: inline-block;
  vertical-align: top;
  background-image: url(/images/grid.png);
}

fieldset li{
  line-height: 2em;
}

legend {
  font-size: 2em;
  font-weight: bold;
  margin-left: 5px;
  font-family: "Alkhemikal";
  letter-spacing: 2px;
}

/* MOBILE VIEW*/

@media (max-width: 750px) {
  img,
  pre code {
    max-width: 100%;
    box-sizing: border-box;
  }

  ul.a {
    list-style-type: none;
    padding-left: 0;
  }

  ul.a li {
    display: inline-block;
    line-height: 1.5em;
    padding: 5px;
    margin-right: 1em;
    position: static; 
  }

  ul.a li::before {
    display: none; 
  }


  main,
  aside,
  footer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .container {
    width: 75%;
    display: grid;
    margin:auto;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, auto);
    gap: 10px 10px;
    grid-auto-flow: row;
    grid-template-areas:
      "header"
      "main"
      "footer";
  }

  aside {
    grid-area: aside;
    text-align: left;
    max-height: auto;
  }

  main {
    grid-area: main;
    margin: 15px 15px;
    height: auto;
  }

  footer {
    grid-area: footer;
    text-align: left;
    max-height: auto;
  }

  .ascii {
    font-family: monospace;
    white-space: pre;
  }

  .light{
    display: none;
    }

    .home {
      display: grid;
      grid-template-columns: 1fr; 
      gap: 20px;
    }

    .top-row {
      display: grid;
      grid-template-columns: 1fr; 
      gap: 20px;
    }
  
    .top-row fieldset {
      min-width: 90%; 
    }
  
    .top-row img {
      max-width: 95%; 
    }
  
    .bottom-row {
      display: grid;
      grid-template-columns: 1fr; 
      gap: 20px;
    }
}


/* BLOG PAGE STYLES */
.post-item {
  margin-top: 10px;
  padding: 15px;
  list-style-type: none;
  border: 1px #fff dotted;
}

.post-item::before{
  content:""; /* Removes list bullets */
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: -2em;
  margin: 0;
}

.blog-img{
  display: inline-block;
  width: auto;
  margin: 7px;
  transition: transform 0.5s;
}

.blog-img:hover{
  transform: scale(1.05);
}

/* PHOTOGRID STYLES */
.card {
  background-color: #fff;
  padding: 10px 10px 20px 10px;
  height: 300px;
  margin: 10px 5px;
  transition: 0.3s;
}

.card:hover {
  rotate: 5deg;
  transform: scale(0.9);
}

.card img {
  width: 100%;
  height: auto;
  transition: 0.2s;
  filter: grayscale(50%);
}

.card img:hover {
  filter: none;
}

.desc {
  text-align: left;
  color: black;
  width: 100%;
  line-height: 1.4em;
  display: inline;
}

.responsive {
  padding: 0 6px;
  float: left;
  width: 23%;
  padding: none;
}

.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

@media only screen and (max-width: 1650px) {
  .responsive {
    width: 30%;
    margin: 6px 0;
  }
  .card {
    height: 310px;
  }
}

@media only screen and (max-width: 1200px) {
  .responsive {
    width: 47%;
  }
  .card {
    height: 350px;
  }
}

@media only screen and (max-width: 1070px) {
  .responsive {
    width: 95%;
  }
  .card {
    height: auto;
  }
}

/* SCROLLBAR STYLES */

/* Firefox */
* {
  scrollbar-width: auto;
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  width: 16px;
}

*::-webkit-scrollbar-track {
}

*::-webkit-scrollbar-thumb {
  border-radius: 10px;
}

/* STYLING TOC FOR LINKS PAGE */
.toc {
  margin-bottom: 2rem;
  font-size: 0.95rem;
  padding-left: 1rem;
  padding: 0;
}

/* LINKS */
.toc a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.toc a:hover {
  text-decoration: dashed underline;
}

.toc ol > li::before{
  content: none;
}

.toc > ol > li {
  list-style-type: none;
  line-height: 1.5em;
}


.toc > ol > li > ol > li {
  list-style: none;
  margin-left: -3em;
  line-height: 1.5em;
}

/* (H2) */
.toc > ol > li > a {
  font-weight: bold;
  font-size: 1rem;
  margin-top: 0.5em;
  margin-bottom: 0.2em;
  margin-left: -1em;
}

/* (H3)*/
.toc > ol > li > ol > li > a {
  font-weight: normal;
  font-size: 0.92rem;
  padding-left: 0.5rem;
  position: relative;
}

.toc.collapsed {
  display: none;
}

/* TOC BUTTON */
.toc-toggle {
  font-size: 1rem;
  cursor: url(/images/pointer.png), pointer;
}

/* SITE BUTTONS */
.link-buttons a img {
  transition: transform 0.2s ease, filter 0.2s ease;
  width: 88px;
  height: 31px;
  filter: grayscale(60%);
  border-radius: 4px;
  margin: 1px;
  padding: 2px;
}

.link-buttons a:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.link-buttons a[target="_blank"]::after {
  content: none !important;
}

/* FOR SITES WITHOUT BUTTONS */
.link-buttons a.text-button {
  display: inline-flex;
  align-items: center;         
  justify-content: center;     
  width: 88px;
  height: 31px;
  box-sizing: border-box;
  background-color: #92cdce;
  color: var(--darkgrey);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  word-wrap: break-word;
  text-align: center;
  text-decoration: none;
  border: 1px dotted var(--silver);
  border-radius: 4px;
  transition: transform 0.2s ease, filter 0.2s ease;
  vertical-align: top; 
}


.link-buttons a.text-button:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}



/* MEDIALOG ANIME */ 
.anime-section {
  margin-top: 2rem;
}

.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: stretch;
  gap: 1.25rem;
  margin-top: 1rem;
}

.anime-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
  padding: 0.75rem;
  color:var(--darkgrey);
  border: 1px dashed var(--silver);
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.anime-card a{
  color:var(--wine);
}

.anime-card:hover {
  transform: translateY(-3px);
}

.anime-cover {
  height: 200px;
  width: auto;
  object-fit: cover;
  border-radius: 0.5rem;
}

.anime-title {
  font-size: 0.75rem;
  font-weight: bold;
  margin: 0rem;
}

.anime-progress-bar {
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  margin-top: 0rem;
  overflow: hidden;
}

.anime-progress-bar .bar {
  height: 100%;
  background: var(--wine, #8b1e3f);
  transition: width 0.3s ease;
}
/* MEDIALOG MANGA */ 
.manga-section {
  margin-top: 2rem;
}

.manga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: stretch;
  gap: 1.25rem;
  margin-top: 1rem;
}

.manga-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
  padding: 0.75rem;
  color:var(--darkgrey);
  border: 1px dashed var(--silver);
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.manga-card a{
  color:var(--wine);
}

.manga-card:hover {
  transform: translateY(-3px);
}

.manga-cover {
  height: 200px;
  width: auto;
  object-fit: cover;
  border-radius: 0.5rem;
}

.manga-cover img {
  filter: grayscale(65%);
}

.manga-title {
  font-size: 0.75rem;
  font-weight: bold;
  margin: 0rem;
}

.manga-progress-bar {
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  margin-top: 0rem;
  overflow: hidden;
}

.manga-progress-bar .bar {
  height: 100%;
  background: var(--wine, #8b1e3f);
  transition: width 0.3s ease;
}

/* LASTFM WIDGET */

#lastfm-widget {
    display: flex;
    align-items: center;
    gap: 1em;
  }

  #lastfm-widget img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(50%);
  }

/* PINBOARD */

.pinboard-header{
  display: flex;
}

.pinboard-title{
  min-width: 300px;
}

.pin-box{
  width: 60%;
  max-width: 1200px;
  color:var(--darkgrey);
  margin: 1rem auto;
  min-height: 65vh;
  background-color: var(--silver);
  border: 30px solid transparent;
  border-image-source: url(/images/lace-border.png);
  border-image-slice: 80;
  border-image-repeat: round;
  border-image-outset: 10px;
  box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.455);
}

.pin-box a{
  color:var(--pink);
}

.pin-wrapper {
  column-count: 4;
  column-gap: 1rem;
  padding: 1rem;
}
  
.pin {
  display: inline-block;
  width: 100%;
  max-width: 300px;
  margin-bottom: 1rem;
  background: var(--silver);
  color: #ddd;
  padding: 1rem;
  box-sizing: border-box;
  break-inside: avoid;
}

.pin h2{
  text-align: left;
  font-size: 18px;
  padding-bottom: 10px;
  border-bottom: dashed var(--silver) 1px;
}


ul.pins li{
  list-style-type: none;
  font-size: 1em;
  padding-left: 5px;
}

ul.pins li::before {
  content:"\2732";
  left: -12px;
}

.pin:nth-child(3n+1) {
  background-color: #353131;
}

.pin:nth-child(3n+2) {
  background-color: var(--wine);
}

.pin:nth-child(3n) {
  background-color: #000;
}

.pin.scrollable {
  max-height: 350px;
  overflow-y: auto;
}

.pin.center{
  text-align: center;
}

.pin.center h3{
  text-align: center;
}

@media (max-width: 950px) {
  .pin-wrapper {
    column-count: 3;
  }
}

@media (max-width: 700px) {
  .pin-wrapper{
    column-count: 2;
  }

  @media (max-width: 550px) {
    .pin-wrapper{
      column-count: 1;
    }

    .pin{
      max-width: 600px;
    }
}
}


.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #333;
  transition: 0.4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 26px; width: 26px;
  left: 4px; bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #ccc;
}
input:checked + .slider:before {
  transform: translateX(26px);
}
