@import "/css/normalize.css";

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 {
  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 {
  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;
  padding-top: 10px;
  padding-bottom: 10px;
}


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

/* THEME PICKER */

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


/* FLEXBOX LAYOUT */

.content {
  padding: 10px;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 30px;
  gap: 10px;
  margin: 10px auto;
  width: 100%;
  max-width: 1024px;   /* Prevents it from growing too wide */
  min-width: 320px;   /* Prevents it from shrinking too small */
  box-sizing: border-box;
}


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

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;
  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 */

/* Layout for top and bottom rows on homepage */
.home {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Top row: intro (wide) + latest content (narrow) */
.top-row {
  display: flex;
  gap: 20px;
}

.intro {
  flex: 2;
}

.latest-content {
  flex: 1;
}

/* Bottom row: to-do and updates, equal width */
.bottom-row {
  display: flex;
  gap: 20px;
}

.to-do,
.updates {
  flex: 1;
}

/* Responsive stacking */
@media (max-width: 750px) {
  .top-row,
  .bottom-row {
    flex-direction: column;
  }

  .intro,
  .latest-content,
  .to-do,
  .updates {
    width: 100%;
  }
}

.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-picture img{
    max-width: 100%;
    height: auto;
    transition: 0.2s;
    filter: grayscale(100%);  
}

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


.bottom-row fieldset{
  max-height: 150px;
  overflow-y: scroll;
}


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

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

fieldset {
  padding: 10px;
  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;
  }

}


/* 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;
}


/* 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: #000;
  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 #fff;
  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: #000;
  border: 1px dashed #575757;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.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: #333;
  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:#fff;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}


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


.content {
  padding: 10px;
}
