/*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: #aaff00;
  --link-color-hover: #ff0099;

  --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: underline;
}

a,
a:visited {
  color: var(--link-color);
}

a:hover,
a:focus {
  color: var(--link-color-hover);
  text-decoration: underline;
}

/* layout */
.layout {
  width: 1300px;
  display: grid;
  grid-gap: 0px;
  grid-template: "header header header" auto "main main main" 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: 15px;
}

/* header */

header {
  grid-area: header;
  border: none;
   background: var(--content-background-color);
  font-size: 50px;
  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 h1:hover {
    transform: rotate(-3deg);
    text-decoration: none;
}

header h1 a,
header h1 a:visited {
  color: rgb(255, 242, 0);
  text-decoration: none;
}

/*TABLE*/

table {
    padding: 8px;
    width: 100%;
    height: auto;
    border: 2px solid #925bb0;
    border-radius: 8px;
}

table th:first-child, td:first-child {
    width: 30%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

td {
    padding: 10px;
}

tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.3);
}

/*sections*/

.resources-intro {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 20px;
  margin-bottom: -10px;
}

.resources-intro .intro-text {
  flex: 1 1 320px;
  margin: 0;
  margin-left: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 8px;
  padding-left: 20px;
  padding-right: 30px;
  border-radius: 8px;
}

.resources-intro img {
  flex: 0 0 210px;
  width: 210px;
  max-width: 40%;
  height: auto;
  transform: rotate(5deg) translateX(-30px);
  border-radius: 5px;
  margin-left: 0;
  margin-right: 20px;
  align-self: flex-start;
  position: relative;
  z-index: 2;
  box-shadow: 0 6px 14px rgba(0,0,0,0.6);
}
.buttons-box {
    padding: 15px;
    width: 100%;
    height: auto;
    border: 2px solid #925bb0;
    border-radius: 8px; 
}

mark {
  padding: 3px;
  background-color: #aaff00;
  font-size: 20px;
  
}


/* optional centered nav-style link inside main content */
.centered-nav-link {
  text-align: center;
  margin: 0;
}

.centered-nav-link a,
.centered-nav-link a:visited {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  background-color: #782a8f;
  transition: all 0.3s ease;
}

.centered-nav-link a:hover,
.centered-nav-link a:focus {
  background-color: rgb(255, 242, 0);
  color: rgb(146, 91, 176);
  transform: scale(1.05);
}

.centered-nav-link a:active {
  background: #ff086f;
  color: #fff;
  transform: scale(0.98);
}

/* 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);
}

/* 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.9rem;
}

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;
}

/* 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 "main" 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;
  }
}