/*scrollbar*/
  /* Firefox */
  * {
    scrollbar-width: thin;
    scrollbar-color: #925bb0 #160118;
  }

  /* Chrome, Edge, and Safari */
  *::-webkit-scrollbar {
    width: 9px;
  }

  *::-webkit-scrollbar-track {
    background: #160118;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #925bb0;
    border-radius: 19px;
    border: 3px groove #ffffff;
  }

/*page*/
  :root {
   --background-color: #000000;
  --content-background-color: #1f1f1f;
  --sidebar-background-color: #862fa0;

  --text-color: #f3f3f3;
  --sidebar-text-color: #f3f3f3;
  --link-color: #ff0099;
  --link-color-hover: #ffa8df;

  --font: 'Ubuntu Mono', sans-serif;
  --heading-font: 'Jersey 10', cursive;
  --font-size: 15px;

  --margin: 8px;
  --padding: 18px;
  --sidebar-section-gap: 1.5em;
  --border: 2px solid #aaff00;
  --round-borders: 0px;
  --sidebar-width: 230px;
}

* {
  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/bg2.png);
  background-size: repeat;
  background-attachment: fixed;
  cursor: url('cursor/s4cursor.png'), auto;
}

a, button, [role="button"], input[type="button"], input [type="submit"], label, summary {
  cursor: url(cursor/s4pointer.png), pointer;
}

::selection {
  background: #ff0099;
}

/* links */
a {
  text-decoration: none;
}

a,
a:visited {
  color: var(--link-color);
}

a:hover,
a:focus {
  color: var(--link-color-hover);
  text-decoration: none;
}

/* layout */
.layout {
  width: 1300px;
  display: grid;
  grid-gap: 0px;
  grid-template: "header header header" auto "marquee marquee marquee" auto "leftSidebar main rightSidebar" auto "footer footer footer" auto / var(--sidebar-width) auto var(--sidebar-width);
}

main {
  grid-area: main;
  overflow-y: auto;
  padding: 2em;
  background: var(--content-background-color);
  border: var(--border);
  border-radius: var(--round-borders);
}

/* header */

header {
  grid-area: header;
  border: none;
   background: var(--content-background-color);
  font-size: 70px;
  line-height: 0.2;
  text-align: center;
  font-family: 'Jersey 10', cursive;
  background-image: url("images/WIGGLY.png");
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 15px;
  margin-bottom: 8px;
  text-shadow:
    2px 2px 6px rgba(0,0,0,1),
    2px 8px 10px rgba(0,0,0,1);
}

.header-content {
  padding: 10px 18px;
}

header h1:hover {
    transform: rotate(-3deg);
}

header h1 a,
header h1 a:visited {
  color: rgb(255, 242, 0);
}

/*marquee below header*/

.marquee {
  grid-area: marquee;
  margin-bottom: 8px;
}

.marquee--loop {
  width: 100%;
  overflow: hidden;
}

.marquee--loop .marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 18s linear infinite;
}

.marquee--loop .marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee--loop .marquee-group img {
  display: block;
  flex-shrink: 0;
  margin-left: 5px;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* sidebars */

aside {
  grid-area: aside;
  overflow: hidden;
  background: var(--sidebar-background-color);
  padding: var(--padding);
  color: var(--sidebar-text-color);
}

.left-sidebar {
  grid-area: leftSidebar;
  border-radius: 15px 0 0 15px;
  border-left: var(--border);
  border-top: var(--border);
  border-bottom: var(--border);
}

.right-sidebar {
  grid-area: rightSidebar;
  border-radius: 0 15px 15px 0;
  border-right: var(--border);
  border-top: var(--border);
  border-bottom: var(--border);
}

.sidebar-title {
  font-weight: bold;
  font-size: 1.8em;
  text-align: center;
  font-family: var(--heading-font);
}

.sidebar-section:not(:last-child) {
  margin-bottom: var(--sidebar-section-gap);
}

.sidebar-section ul,
.sidebar-section ol {
  padding-left: 1.5em;
}

.changelog-list {
  list-style: none;
  margin: 0.5em -0.25em 0;
  padding: 0.75em 0em;
  max-height: 10em;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.08);
}

.changelog-list li {
  position: relative;
  margin-top: 0.5em;
  margin-bottom: 0.1em;
  padding-left: 0.7em;
  line-height: 1.3;
}

.changelog-list li::before {
  content: "★";
  position: absolute;
  left: -0.7em;
  top: 0;
  color: var(--link-color);
}

.todo-list {
  list-style: none;
  padding: 0.75em 0em;
  margin: 0.5em -0.25em 0;
  background: rgba(0, 0, 0, 0.08);
}

.sidebar-section > *:not(p):not(ul):not(ol):not(blockquote) {
  margin-top: 10px;
}

/* boxed widget in sidebars (image left, content right) */
.widget-box {
  display: flex;
  gap: 3px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 8px;
  background: #aaff00;
  margin: 0 0 var(--sidebar-section-gap) 0;
  box-shadow: 3px 5px 8px rgba(0, 0, 0, 0.4);
}

.widget-image {
  width: auto;
  height: auto;
  max-width: none;
  flex: 0 0 auto;
  border-radius: 6px;
  margin-right: 6px;
}

.widget-content {
  flex: 1 1 auto;
}

.widget-title {
  font-family: var(--heading-font);
  font-weight: bold;
  text-align: left;
  font-size: 1.7em;
  margin-bottom: 6px;
  margin-top: -5px;
  color: #000000;
}

.widget-embed {
  border: none;
  background: #1f1f1f;
  padding: 3px;
  border-radius: 6px;
  margin: 0;
  display: flex;
  align-items: center;
  line-height: 0;
  justify-content: center;
}

.widget-embed iframe {
  display: block;
  width: 100%;
  height: 22px;
  border: 0;
  margin-top: 3px;
}

.sidebar-section blockquote > *:first-child {
  margin-top: 0;
}

.sidebar-section blockquote > *:last-child {
  margin-bottom: 0;
}

/* site button */

.site-button {
  display: flex;
  flex-direction: column;
  align-items: center; 
}

.site-button img {
   transition: transform 180ms ease;
}

.site-button img:hover,
.site-button img:focus {
  transform: translateY(-3px) scale(1.04);
}

.site-button img:active {
  transform: translateY(-1px) scale(0.99);
}

.site-button textarea {
  font-family: monospace;
  font-size: 0.7em;
}

/* footer */

footer {
  grid-area: footer;
  overflow: hidden;
  font-size: 0.75em;
  padding: 5px;
  display: flex;
  justify-content: center;
  margin-top: 10px; 
}

footer a,
footer a:visited {
  color: var(--link-color);
}

footer a:hover,
footer a:focus {
  color: var(--link-color-hover);
}

/* NAVIGATION */

nav {
  margin-bottom: 1.3em;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

nav ul li {
  margin-bottom: 0;
}

nav a,
nav a:visited {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

nav summary {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    list-style: none;
  }

nav summary::marker,
nav summary::-webkit-details-marker {
    display: none;
  }

nav a::before {
    content: "★ ";
    color: rgb(255, 242, 0);
}

nav summary::before {
    content: "☆ ";
    color: rgb(255, 242, 0);
}

nav a:hover,
nav a:focus,
nav summary:hover,
nav summary:focus,
nav details[open] > summary {
    background-color: rgb(255, 242, 0);
    color: rgb(146, 91, 176);
    transform: scale(1.05);
}

nav a:hover::before,
nav a:focus::before,
nav summary:hover::before,
nav summary:focus::before,
nav details[open] > summary::before {
    color: inherit;
}

nav a:active {
    background: #ff086f;
    color: #fff;
    transform: scale(0.98);
}

nav summary:active {
    background: #ff086f;
    color: #fff;
    transform: scale(0.98);
}

/* 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 {
  margin: 0.75em 0;
}

main .two-columns {
  margin: 0.75em 0 0.2em 0;
  margin-bottom: -7em;
}

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 {
  background: rgba(0, 0, 0, 0.3);
  padding: 5px 15px 5px 15px;
  margin: 1em 0;
  border-radius: 10px;
}

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: var(--border);
  margin: 1.5em 0;
}

/* HEADINGS: */

main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  font-family: var(--heading-font);
  margin-bottom: 0;
  line-height: 1.5;
}

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: 3rem;
}

main h2 {
  font-size: 2.3rem;
}

main h3 {
  font-size: 1.5rem;
}

main h4 {
  font-size: 1.3rem;
}

main h5 {
  font-size: 1.2rem;
}

main h6 {
  font-size: 1rem;
}

/* COLUMNS: */

.two-columns {
  display: flex;
}

.two-columns > * {
  flex: 1 1 0;
  margin: 0;
}

.two-columns > *:first-child {
  padding-right: 0.1em;
}

.two-columns > *:last-child {
  padding-left: 0.1em;
}

.two-columns {
  align-items: flex-start;
  gap: 0.5em;
}
.two-columns > *:last-child {
  flex: 0 0 320px;
  transform: translateY(-6em);
}
.two-columns .image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0, 0, -10em;
 }

 .two-columns > div:last-child:hover .image {
    transform: translateY(-5px);
 }

/* 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 {
  display: block;
  width: auto;
  height: auto;
  padding: 3px;
  margin: 0;
  overflow: hidden;
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  align-items: start;
}
.stamp-grid img {
  width: 100%;
  height: auto;
  display: block;
}

/*ABOUT SECTION*/

.about-section {
  position: relative;
  margin-bottom: 1em;
}

.about-section::after {
  content: "";
  display: table;
  clear: both;
}

.about-section img {
  float: right;
  width: auto;
  max-width: 15%;
  height: auto;
  margin: -2em 0.5em 1em 1em;
  display: block;
}

.about-section p {
  margin: 0 0 1em;
}

.about-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5em;
}

.about-buttons img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  padding: 3px;
  transition: transform 180ms ease;
  will-change: transform;
}

.about-buttons img:hover,
.about-buttons img:focus {
  transform: translateY(-3px) scale(1.04);
}

.about-buttons img:active {
  transform: translateY(-1px) scale(0.99);
}

.faves-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-left: -10px;
  margin-right: -10px;
}

.faves-grid div {
  background-color: #000000;
  padding: 0 10px 10px;
  border-radius: 8px;
  width: 385px;
  box-shadow: 4px 4px 0px 1px #862fa0;
}

.faves-grid h3 {
  display: block;
  background-color: #aaff00;
  color: #000000;
  padding: 5px;
  padding-left: 20px;
  margin: -10px -10px 10px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.faves-grid p {
  padding: 10px
}

/* ACCESSIBILITY */

#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 */

@media (max-width: 800px) {
  body {
    font-size: 14px;
  }

  .layout {
    width: 100%;
    grid-template: "header" auto  "marquee" auto "leftSidebar" auto "main" auto "rightSidebar" auto "footer" auto / 1fr;
  }
  

  aside {
    border-bottom: 1px solid;
    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: 0.5em;
  }

  main {
    max-height: none;
    padding: 15px;
  }

  .images {
    flex-wrap: wrap;
  }

  .images img {
    width: 100%;
  }

  .stamp-grid {
    grid-template-columns: 1fr;
  }

  #skip-to-content-link {
    font-size: 1rem;
  }
}