/* FONT IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Twinkle+Star&display=swap');

  
/* -------------------------------------------------------- */
/* VARIABLES */
/* -------------------------------------------------------- */

/* Variables are used like this: var(--text-color) */
:root {
  /* Background Colors: */
  --background-color: #eeeeee;
  --content-background-color: #ffffff;
  --sidebar-background-color: #fff5a8;

  /* Text Colors: */
  --text-color: #000000;
  --sidebar-text-color: #000000;
  --link-color: #c9507a;
  --link-color-hover: #fb90b6;

  /* Text: */
  --font: 'MS Gothic', sans-serif;
  --heading-font: 'Twinkle Star', sans-serif;
  --title-font: 'Twinkle Star', sans-serif;
  --font-size: 15px;

  /* Other Settings: */
  --margin: 6px;
  --padding: 10px;
  --border: 1px solid #000000;
  --round-borders: 5px;
  --sidebar-width: 230px;
}

/* -------------------------------------------------------- */
/* BASICS */
/* -------------------------------------------------------- */

* {
  box-sizing: border-box;
}

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  font-size: var(--font-size);
  margin: 0;
  padding: var(--margin);
  color: var(--text-color);
  font-family: var(--font);
  line-height: 1.2;
  background: var(--background-color);
  background-image: url("images/layout/woodbg.png");
  
}

::selection {
  /* (Text highlighted by the user) */
  background: rgba(0, 0, 0, 0.2);
}

mark {
  /* Text highlighted by using the <mark> element */
  background-color: #c6fffa;
  padding: 3px;
  border-radius:5px;
  color: var(--text-color);
}

abbr {
  cursor: help;
}

/* Lists: */
ul li {
  list-style-image: url("https://file.garden/ZvBETnlQEnLVucak/bulf1.gif");
}

/* Links: */
a {
  text-decoration: underline;
}

a,
a:visited {
  color: var(--link-color);
}

a:hover,
a:focus {
  color: var(--link-color-hover);
  text-decoration: none;
}

strong {
  color: #c9507a;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  border: 1px dashed #c9507a;
  margin: 0 0 20px 0;
}

/* Style table headers and table data */
th, td {
  text-align: left;
  padding: 10px;
}

th:first-child, td:first-child {
  text-align: left;
}

/* Zebra-striped table rows */
tr:nth-child(even) {
  background-color: #F9F0CB;
}

.fa-check {
  color: green;
}

.fa-remove {
  color: red;
}

.horizontal {
  display: flex;
  white-space: nowrap;
	overflow-x: auto;
  height: 150px;
  margin-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: #c9507a transparent;
  image-rendering: pixelated;
}

.horizontal img {
  height: auto;
  padding: 5px;
  margin: 0;
}

.image-filter--painting img {
  filter: saturate(1.3) brightness(1.1) contrast(1.1) url("#filterPainting");
}

/* Tooltips */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
  cursor: pointer;
}

.tooltiptext {
  visibility: hidden;
  width: 130px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

/* -------------------------------------------------------- */
/* LAYOUT */
/* -------------------------------------------------------- */

.layout {
  width: 910px;
  display: grid;
  grid-gap: var(--margin);
  grid-template: "header header" auto "leftSidebar main" auto "footer footer" auto / var(--sidebar-width) auto;
  /* Confused by the grid? Check out my tutorial: https://petrapixel.neocities.org/coding/positioning-tutorial#grid */
}

main {
  grid-area: main;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--padding);
  background: transparent;
  padding: 18px 10px 10px 26px;
  border-image-slice: 20 11 20 19 fill;
  border-image-width: 20px 11px 20px 19px;
  border-image-repeat: repeat round;
  border-style: solid;
  border-color: transparent;
  border-image-source: url("images/layout/notepaper.png");
}

/* Changelog */
.changelog {
  overflow: scroll;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #c6fffa transparent; 
  background-color:#fcf7e5;
  border: 1px dashed #c9507a;
  font-size: 0.90em;
  width: 100%;
  height:150px;
  padding: 5px;
  padding-top: 0px;
  border-radius: 5px;
}

.changelog strong {
  color: #9B0338;
  background-color: #c6fffa;
  border: 1px solid #054944b7;
  border-radius: 4px;
  padding: 1.5px;
  padding-left: 3px;
}

.crumpled {
  scrollbar-width: thin;
  width: 100%;
  height: 200px;
  margin-top: 15px;
  padding: 20px;
  border-image-slice: 27 27 27 27 fill;
  border-image-width: 20px 20px 20px 20px;
  border-image-outset: 0px 0px 0px 0px;
  border-image-repeat: stretch stretch;
  border-image-source: url("images/layout/crumpled.png");
  border-style: solid;
  rotate: 5deg;
}

 /* Phone Chatbox */
.cutephone {
position: relative;
width: 283px;
height: 500px;
margin: auto;
margin-bottom: 20px;
border: 14px #4b4b4b solid;
border-top-width: 60px;
border-bottom-width: 60px;
border-radius: 25px;
rotate: -3deg;
-webkit-box-shadow: 28px 30px 9px -25px rgba(32,36,42,0.39);
-moz-box-shadow: 28px 30px 9px -25px rgba(32,36,42,0.39);
box-shadow: 28px 30px 9px -25px rgba(32,36,42,0.39);
}

.cutephone:before {
content: "";
display: block;
width: 60px;
height: 5px;
position: absolute;
top: -30px;
left: 50%;
transform: translate(-50%, -50%);
background: #1b1b1b;
border-radius: 10px;
}

.cutephone:after {
content: "";
display: block;
width: 60px;
height: 20px;
position: absolute;
left: 50%;
bottom: -50px;
transform: translate(-50%, -50%);
background: #4b4b4b;
border-radius: 7px;
box-shadow: inset 13px 0px 6px -10px #1b1b1b, inset -13px 0px 6px -10px #1b1b1b, inset 0px 13px 6px -10px #1b1b1b, inset 0px -13px 6px -10px #1b1b1b;
}

.cutephone .screen {
width: 255px;
height: 380px;
background: #fff;
}

.lines {
position: absolute;
left: 0;
top: 0;
width: 255px;
height: 380px;
pointer-events: none;
z-index: 300;
opacity: 0.05;
}
 
.lines:before {
content: '';
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
pointer-events: none;
background: linear-gradient(to bottom, transparent 20%, rgba(0, 0, 0, .5) 51%);
background-size: 100% 4px;
will-change: background-size; animation: scanlines 0.2s linear infinite;
}
 
@keyframes scanlines {
from {
background: linear-gradient(to bottom, transparent 80%, rgba(0, 0, 0, .5) 51%); background-size: 100% 4px; }
to {
background: linear-gradient(to bottom, rgba(0, 0, 0, .5) 50%, transparent 85%);
background-size: 100% 4px;
}
}

/* -------------------------------------------------------- */
/* HEADER */
/* -------------------------------------------------------- */

header {
  grid-area: header;
  font-size: 1.2em;
  border-radius: var(--round-borders);
  background: transparent;
  align-content: center;
  text-align: center;
}

.header-content {
  padding: var(--padding);
}

.header-title {
  font-family: var(--title-font);
  font-size: 20px;
  color: white;
  line-height: 1;
  text-shadow: 1px 1px 2px black;
}

.header-title u {
  text-decoration-style: dashed;
}

.header-image img {
  width: 100%;
  height: auto;
}

/* -------------------------------------------------------- */
/* SIDEBARS */
/* -------------------------------------------------------- */

aside {
  grid-area: aside;
  border-radius: var(--round-borders);
  overflow: hidden;
  padding: var(--sidebar-width)px;
  padding-right: 5px;
  color: var(--sidebar-text-color);
  border-image-slice: 90 75 78 78 fill;
  border-image-width: 50px 50px 50px 50px;
  border-image-outset: 13px 13px 13px 13px;
  border-image-repeat: stretch stretch; 
  border-image-source: url("images/layout/sidebar.png");
  border-style: solid;
}

.left-sidebar {
  grid-area: leftSidebar;
}

.right-sidebar {
  grid-area: rightSidebar;
}

.sidebar-title {
  text-align: center;
  font-size: 1.2em;
  font-family: var(--heading-font);
}

.sidebar-section:not(:last-child) {
  margin-bottom: 1.5em;
}

.sidebar-section ul,
.sidebar-section ol {
  padding-left: 1.5em;
}

.sidebar-section > *:not(p):not(ul):not(ol):not(blockquote) {
  margin-top: 10px;
}

/* Sidebar Blockquote: */

.sidebar-section blockquote {
  color: #054944;
  background: #e2fffc;
  padding: 15px;
  margin: 1em 0;
  border-radius: 10px;
  overflow: hidden;
}

.sidebar-section blockquote > *:first-child {
  margin-top: 0;
}

.sidebar-section blockquote > *:last-child {
  margin-bottom: 0;
}

/* Sidebar Clock */
.clock {
  text-align: center;
  font-family: var(--title-font);
  font-size: 30px;
}

/* Cbox */
#cbox {
  border: 1px dashed #c9507a;
}

/* Site Button: */

.site-button {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-button textarea {
  font-family: monospace;
  font-size: 0.7em;
}

/* Sidebar Widgets */
.sidebar-box {
  border: 1px dashed #c9507a;
  background-color:#fcf7e5;
  scrollbar-width: thin;
  scrollbar-color: #c6fffa transparent; 
  padding: 10px;
  max-height:auto;
  border-radius: 5px;
}


/* -------------------------------------------------------- */
/* FOOTER */
/* -------------------------------------------------------- */

footer {
  color: white;
  grid-area: footer;
  overflow: hidden;
  padding: 15px;
  display: flex;
  justify-content: center;
  text-align: center;
  margin-top:30px;
}

footer a,
footer a:visited {
  color: #fb90b6;
}

footer a:hover,
footer a:focus {
  color: var(--link-color-hover);
}

/* -------------------------------------------------------- */
/* NAVIGATION */
/* -------------------------------------------------------- */

nav {
  margin-bottom: 1em;
}

nav .sidebar-title {
  margin-bottom: 0.5em;
}

nav ul {
  margin: 0 -5px;
  padding: 0;
  list-style: none;
  user-select: none;
}

nav ul li {
  margin-bottom: 0;
}

nav > ul li > a,
nav > ul li > strong {
  display: inline-block;
}

nav > ul li > a,
nav > ul li > details summary,
nav > ul li > strong {
  padding: 5px 10px;
}

nav ul summary {
  cursor: pointer;
  border-top: 1px dashed #c9507a;
}

nav ul ul li > a {
  padding-left: 30px;
}

/* -------------------------------------------------------- */
/* CONTENT */
/* -------------------------------------------------------- */

main {
  line-height: 1.5;
}

main a,
main a:visited {
  color: var(--link-color);
}

main a:hover,
main a:focus {
  color: var(--link-color-hover);
  text-decoration-style: wavy;
}

main p,
main .image,
main .full-width-image,
main .two-columns {
  margin: 15px 0 0px 0;
}

main ol,
main ul {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

main ol li,
main ul li {
  margin-bottom: 0.2em;
  line-height: 1.3;
}

main ol {
  padding-left: 2em;
}

main blockquote {
  padding: 15px;
  margin: 1em 0;
  padding: 10px;
  border-radius: 5px;
  border: 1px dashed #c9507a;
  background-color:#fcf7e5;
}

main pre {
  margin: 1em 0 1.5em;
}

main code {
  text-transform: none;
}

main center {
  margin: 1em 0;
  padding: 0 1em;
}

main hr {
  border: 0;
  border-top: 1px dashed #c9507a;
  margin: 1.5em 0;
}

/* HEADINGS: */

h1 {
  border-bottom: 1px dashed #c9507a;
}

main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  font-family: var(--heading-font);
  margin-bottom: 0;
  line-height: 1;
  font-weight:100;
}

main h1:first-child,
main h2:first-child,
main h3:first-child,
main h4:first-child,
main h5:first-child,
main h6:first-child {
  margin-top: 0;
}

main h1 {
  font-size: 1.5em;
}

main h2 {
  font-size: 1.4em;
}

main h3 {
  font-size: 1.3em;
}

main h4 {
  font-size: 1.2em;
}

main h5 {
  font-size: 1.1em;
}

main h6 {
  font-size: 1em;
}

/* COLUMNS: */

.two-columns {
  display: flex;
}

.two-columns > * {
  flex: 1 1 0;
  margin: 0;
}

.two-columns > *:first-child {
  padding-right: 0.75em;
}

.two-columns > *:last-child {
  padding-left: 0.75em;
}

main details {
  cursor: pointer;
}

/* -------------------------------------------------------- */
/* CONTENT IMAGES */
/* -------------------------------------------------------- */

.image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.full-width-image {
  display: block;
  width: 100%;
  height: auto;
}

.images {
  display: flex;
  width: calc(100% + 5px + 5px);
  margin-left: -5px;
  margin-right: -5px;
}

.images img {
  width: 100%;
  height: auto;
  padding: 5px;
  margin: 0;
  overflow: hidden;
}

/* -------------------------------------------------------- */
/* ACCESSIBILITY */
/* -------------------------------------------------------- */

/* please do not remove this. */

#skip-to-content-link {
  position: fixed;
  top: 0;
  left: 0;
  display: inline-block;
  padding: 0.375rem 0.75rem;
  line-height: 1;
  font-size: 1.25rem;
  background-color: var(--content-background-color);
  color: var(--text-color);
  transform: translateY(-3rem);
  transition: transform 0.1s ease-in;
  z-index: 99999999999;
}

#skip-to-content-link:focus,
#skip-to-content-link:focus-within {
  transform: translateY(0);
}

/* -------------------------------------------------------- */
/* MOBILE RESPONSIVE */
/* -------------------------------------------------------- */

/* CSS Code for devices < 800px */
@media (max-width: 800px) {
  body {
    font-size: 14px;
  }

  .layout {
    width: 100%;
    grid-template: "header" auto  "main" auto "leftSidebar" auto "footer" auto / 1fr;
    /* Confused by the grid? Check out my tutorial: https://petrapixel.neocities.org/coding/positioning-tutorial#grid */
  }

  
  .right-sidebar { 
    display: none;
  }

  aside {
    padding: 9px;
    font-size: 0.9em;
  }

  
  nav {
    padding: 0;
  }

  nav > ul {
    padding-top: 0.5em;
  }

  nav > ul li > a,
  nav > ul li > details summary,
  nav > ul li > strong {
    padding: 1em;
  }

  main {
    max-height: none;
    padding: 15px;
  }

  .images {
    flex-wrap: wrap;
  }

  .images img {
    width: 100%;
  }

  #skip-to-content-link {
    font-size: 1rem;
  }
}

    /* Photo Pile */
#photopile { 
  display: flex; 
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  image-rendering: pixelated;
}
#photopile figure { 
  display: inline-block;
  max-width: 50%;
  background: #fcfbf7;
  box-shadow: 1px 4px 5px rgba(0,0,0,0.55);
  transform: rotate(2deg);
  margin: 0 -5px;
  margin-top: 20px;
  margin-bottom: 20px;
}

#photopile figure img {
  max-width: 175px;
  margin: 1rem 1rem 0 1rem;
}

#photopile figcaption {
  text-align: center;
  margin: 0.5rem 1rem 1rem 1rem;
  font-size: 1rem;
  color: black;
}
#photopile figure:hover { 
  z-index: 3;
}

#photopile figure:nth-child(2n) { 
  transform: rotate(-10deg);
}

#photopile figure:nth-child(3n) {
  transform: rotate(5deg);
}

#photopile figure:nth-child(4n) { 
  transform: rotate(4deg);
}

#photopile figure:nth-child(5n) { 
  transform: rotate(-2deg);
}

.photopile figure:nth-child(6n) {
  transform: rotate(-7deg);
}