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

:root {
  /* Colors */
  --blush: #e3d6e7;
  --mauve: #FF006F;
  --lavendar: #B388EB;
  --wisteria: #8093F1;
  --sky: #72DDF7;
  --primary-background: #f7f5f3;

  /* Text Colors */
  --text-color: #3B3C4F;
  --link-color: #fff;
  --link-color-hover: #b3004a;
  --heading-color: #610909;

  /* Fonts */
  --font: "Pixelify Sans", Monospace;
  --heading-font: "Jacquard 12", Serif;
  --font-size: 12px;

  /* Layout */
  --margin: 0px;
  --padding: 12px;
  --border: 1px solid #B3004230;
  --round-borders: 8px;
  --sidebar-width: 200px;

  /* Spacing */
  --main-radius: 12px;
  --oversized-radius: 999px;
  --xx-sm: 4px;
  --x-sm: 8px;
  --sm: 12px;
  --m: 16px;
  --lg: 24px;
  --x-lg: 32px;
  --xx-lg: 42px;
}

/* -------------------------------------------------------- */
/* 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-image: url('/img/heartspale.png');
  background-size: 32px;
  background-repeat: repeat;
}

::selection {
  background: rgba(0, 0, 0, 0.2);
}

/* Links */

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

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

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

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

ul li {
  position: relative;
  padding-left: 20px;
}

ul li::before {
  content: "❤";
  position: absolute;
  left: 0;
}

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

.layout {
  width: 1000px;
  display: grid;
  grid-gap: var(--margin);
  grid-template:
    "header header header" auto
    "leftSidebar main rightSidebar" auto
    "footer footer footer" auto
    / var(--sidebar-width) auto var(--sidebar-width);
}

main {
  grid-area: main;
  overflow-y: auto;
  padding: var(--padding);
  background-image: url('/img/greybg.png');
  background-size: 100% 100%;
  border: var(--border);
}

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

header {
  grid-area: header;
  background-color: #b6889e;
  background-size: 100% 100%;
  font-size: 1.5em;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--padding);
}

.header-title {
  font-family: var(--heading-font);
  font-size: 1.5em;
  font-weight: bold;
  color: #610909;
}

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

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

header nav {
  margin-bottom: 0;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  user-select: none;
}

header nav ul li {
  position: relative;
}

/* Subnavigation (Drop-Down) */

header nav ul ul {
  background: #ffffff;
  display: none;
  position: absolute;
  top: 100%;
  left: 10px;
  padding: 0.5em;
  z-index: 1;
  border: var(--border);
  min-width: 100%;
  box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.2);
}

header nav ul li:hover ul,
header nav ul li:focus-within ul {
  display: block;
}

header nav ul ul li a {
  display: block;
  padding-left: 0;
  padding-right: 0;
}

.nav-item {
  padding: var(--x-sm) var(--sm);
  font-weight: 200;
  font-family: "Pixelify Sans", Sans-Serif;
  font-size: 16px;
  text-decoration: none;
  color: #fff;
}

.nav-item:hover {
  font-weight: 500;
}

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

aside {
  border: var(--border);
  background-color: var(--blush);
  padding: var(--padding);
  color: var(--text-color);
  z-index: 5;
}

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

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

.sidebar-title {
  font-weight: bold;
  font-size: 1.6em;
  font-family: "Jacquard 12", Sans-Serif;
  color: #610909;
}

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

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

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

.sidebar-section blockquote {
  background: rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin: 1em 0;
  border-radius: 10px;
  overflow: hidden;
}

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

footer {
  grid-area: footer;
  border: var(--border);
  overflow: hidden;
  font-size: 0.75em;
  padding: 15px;
  display: flex;
  background-color: #8093F1;
}

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

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

/* -------------------------------------------------------- */
/* TYPOGRAPHY */
/* -------------------------------------------------------- */

header-text {
  font-size: 1.5em;
  font-family: "Jacquard 12", Serif;
  color: #610909;
}

h1 {
  font-size: 2em;
  font-family: "Jacquard 12", Serif;
  color: #610909;
  width: 100%;
  line-height: 1;
}

h2 {
  font-size: 1.8em;
  font-family: "Jacquard 12", Serif;
  color: #610909;
}

h3 {
  font-size: 1.6em;
  font-family: "Jacquard 12", Serif;
  font-weight: 600;
  color: #610909;
}

p {
  font-size: var(--font-size);
  font-family: "Pixelify Sans", Monospace;
  color: #610909;
  margin: 0;
}

figcaption {
  text-align: center;
  padding-left: 4px;
  padding-right: 4px;
}

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

main {
  line-height: 1.5;
}

main p,
main .image,
main .full-width-image,
main .two-columns {
  margin: 0.75em 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 blockquote {
  background: rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin: 1em 0;
  border-radius: 10px;
}

main hr {
  border: 0;
  border-top: var(--border);
  margin: 1.5em 0;
}

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

/* -------------------------------------------------------- */
/* POSTS */
/* -------------------------------------------------------- */

.post-container {
  background-image: url('/img/postbg.png');
  border: var(--border);
  border-radius: var(--round-borders);
  box-shadow: 2px 2px 4px 1px #B3004230, inset 0 0 0 1px #fffa;
  position: relative;
  z-index: 0;
  padding-bottom: 4px;
  gap: 24px;
  margin-bottom: 24px;
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, #ffffff66, #0000001a, #ffffff33), #C44574;
  border: var(--border);
  border-radius: 6px 6px 0 0;
  box-shadow: inset 0 0 0 1px #fff9;
  padding: 4px 8px;
  font-family: "Pixelify Sans", monospace;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.post-content {
  background: #ffffff;
  border: var(--border);
  box-shadow: 0 0 0 1px #fff9;
  margin: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  font-family: "Pixelify Sans", monospace;
  color: var(--text-color);
}

.post-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
}

.post-p {
  font-size: var(--font-size);
  margin-bottom: 8px;
  color: var(--text-color);
}

.post-images {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* -------------------------------------------------------- */
/* COMPONENTS */
/* -------------------------------------------------------- */

/* Small Header */

.small-header {
  background-image: url("updates.png");
  font-size: 24px;
  color: white;
  background-size: 100%;
  text-align: center;
  background-repeat: no-repeat;
  margin: auto;
  padding: 24px;
  margin-bottom: 24px;
}

/* Note 

.note {
  background: url('img/textarea.png') repeat-y;
  color: var(--text-color);
  width: 250px;
  height: 1000px;
  font-size: 14px;
  font-family: "DynaPuff", Sans-Serif;
  line-height: 25px;
  padding: 2px 32px;
  border: solid 1px #ddd;
  box-shadow: 1px 1px 2px;
}
*/
/* Square Image */

.square-img {
  border: 2px solid #BCBCBC;
  width: 150px;
  height: 150px;
  background-size: cover;
  background-image: url('/img/collection/2.png');
}

/* Binder Tile */

.binder-tile {
  width: 10vw;
  height: 10vw;
  margin: 12px;
  align-content: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  font-size: 16px;
  font-family: "Pixelify Sans", Monospace;
  background: #b6889e;
  border: 1px solid var(--mauve);
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px #fffc;
  box-sizing: border-box;
  min-height: 23px;
  min-width: 75px;
  padding: 0 4px;
  position: relative;
  z-index: 0;
}

.binder-tile:hover {
  color: var(--mauve);
  font-weight: 700;
  border-bottom: 2px solid var(--mauve);
  border-right: 2px solid var(--mauve);
}

/* Cards */

.card-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  width: 10%;
}

.card-img {
  aspect-ratio: 2.5 / 3.5;
  width: 95%;
  background-size: 95%;
  border-radius: 4px;
  margin-right: 12px;
  margin-bottom: 12px;
}

.card-img:hover {
  width:100%;
}

.card-title {
  background-color: var(--wisteria);
  padding: 4px;
  text-align: center;
}

.chase-cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.chase-cards div {
  font-size: 30px;
  text-align: center;
}

/* Windows Theme */

.windowstheme {
  border: var(--border);
  position: relative;
  z-index: 0;
  border-radius: var(--round-borders);
  background: linear-gradient(to right, #ffffff66, #0000001a, #ffffff33), var(--blush);
}

.windowsthemebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, #ffffff66, #0000001a, #ffffff33), var(--wisteria);
  border: var(--border);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #fff9;
  height: 18px;
  padding: 4px 8px;
  font-family: "Pixelify Sans", monospace;
  font-weight: 600;
  font-size: 10px !important;
  color: #fff;
  text-transform: uppercase;
  margin-right: 12px;
  margin-bottom: 4px;
}

.windowsthemebody {
  background: #EAF0FF;
  border: 1px solid var(--blush);
  box-shadow: 0 0 0 1px #fff9;
  margin: 6px;
  padding: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* Alt Layout */

.alt-layout {
  width: 60%;
}

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

/* -------------------------------------------------------- */
/* TV UNIT */
/* -------------------------------------------------------- */

/*
  Screen hole measured from tv.png (1920×1447):
    left   = 139 / 1920  =  7.24%
    top    = 140 / 1447  =  9.68%
    width  = 1271 / 1920 = 66.20%
    height = 1012 / 1447 = 69.94%
*/

.tv-unit {
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tv-unit:hover {
  transform: scale(1.08);
}

.tv-screen {
  position: absolute;
  top: 10.68%;
  width: 67.20%;
  height: 79.94%;
  overflow: hidden;
  background: #000;
  z-index: 0;
}

.tv-unit.tv-left .tv-screen {
  left: 7.24%;
}

.tv-unit.tv-right .tv-screen {
  left: 26.56%;
}

.tv-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.tv-gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tv-unit:hover .tv-still {
  opacity: 0;
}

.tv-unit:hover .tv-gif {
  opacity: 1;
}

.tv-frame {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

/* -------------------------------------------------------- */
/* MEDIA */
/* -------------------------------------------------------- */

.media-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.media-diary {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

/* -------------------------------------------------------- */
/* 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(--blush);
  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 */
/* -------------------------------------------------------- */

@media (max-width: 800px) {
  body {
    font-size: 14px;
  }

  .layout {
    width: 100%;
    grid-template:
      "header" auto
      "leftSidebar" auto
      "rightSidebar" auto
      "main" auto
      "footer" auto
      / 1fr;
  }

  aside {
    border-bottom: 1px solid;
    padding: 8px;
    font-size: 1em;
  }

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

  .images {
    flex-wrap: wrap;
  }

  .images img {
    width: 100%;
  }

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


@keyframes wobble {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(5deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(-7deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.digitalpet {
  animation-name: wobble;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-delay: 2s;
}

/*
.pixel {
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-right: 8px;
  height: 20px;
}

.pixel:hover {
  transform: scale(2);
}

/* Tooltip container 
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}*/

/* Tooltip text 
.tooltiptext {
  visibility: hidden; Hidden by default 
  text-align: center;
  position: absolute;
  z-index: 999; /* Ensure tooltip is displayed above content
  background: linear-gradient(to right, #ffffff66, #0000001a, #ffffff33), var(--wisteria);
  border: var(--border);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #fff9;
  padding: 4px 8px;
  font-family: "Pixelify Sans", monospace;
  font-weight: 600;
  font-size: 10px !important;
  color: #fff;
  margin-right: 12px;
  margin-bottom: 4px;}*/
/* Show the tooltip text on hover 
.tooltip:hover .tooltiptext {
  visibility: visible;
}
*/
.pixel {
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-right: 8px;
  height: 20px;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip:hover .pixel {
  transform: scale(2);
}

.tooltiptext {
  visibility: hidden;
  opacity: 0;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease,
              visibility 0s linear 0.18s;
  text-align: center;
  position: absolute;
  z-index: 999;
  background: linear-gradient(to right, #ffffff66, #0000001a, #ffffff33), var(--wisteria);
  border: var(--border);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #fff9;
  padding: 4px 8px;
  font-family: "Pixelify Sans", monospace;
  font-weight: 600;
  font-size: 10px !important;
  color: #fff;
  white-space: nowrap;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease,
              visibility 0s linear 0s;
}

.blinkies {
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 100%;
  z-index: 9999;
  border-radius: 4px;
  image-rendering: pixelated;
}

.blinkies:hover { transform: scale(1.2); }

.blinkies.small-scale:hover { transform: scale(1.1); }