/* FONT IMPORT */
@import url('<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Jersey+10&display=swap" rel="stylesheet">');

.jersey-10-regular {
  font-family: "Jersey 10", sans-serif;
  font-weight: 300;
  font-style: normal;
}





.rotate20 {
    -webkit-transform: rotate(20deg);
    -moz-transform: rotate(20deg);
    -o-transform: rotate(20deg);
    -ms-transform: rotate(20deg);
    transform: rotate(20deg);
}
.rotate-10 {
    -webkit-transform: rotate(-10deg);
    -moz-transform: rotate(-10deg);
    -o-transform: rotate(-10deg);
    -ms-transform: rotate(-10deg);
    transform: rotate(-10deg);
}
  
  
  }
.rotate90 {
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}
  
  
.friends {
    display: flex;
    overflow-x: scroll;
    width: 285px;
    margin: 0px;
    height: 197px;
}


/* -------------------------------------------------------- */
/* VARIABLES */
/* -------------------------------------------------------- */

/* Variables are used like this: var(--text-color) */
:root {
  /* Background Colors: */
  --background-color: #eeeeee;
  --content-background-image: linear-gradient(to bottom, #6BCDE8dd, #28278Add);
  --sidebar-background-image: #1c2319dd

  /* Text Colors: */
  --text-color: #cac8ef;
  --sidebar-text-color: #000000;
  --link-color: #000000;
  --link-color-hover: #ec0000;

  /* Text: */
  --font: 'Jersey 10', sans-serif;
  --heading-font: 'Jersey 10', sans-serif;
  --font-size:px;

  /* Other Settings: */
  --margin: 10px;
  --padding: 10px;
  --border: 2px solid #001204c0;
  --round-borders: 0px;
  --sidebar-width: 150px;
}

/* -------------------------------------------------------- */
/* BASICS */
/* -------------------------------------------------------- */

* {
  box-sizing: border-box;
}


/* Slideshow container */
.slideshow-container {
  width: 100%;
  height: 100%;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 1200px;
  border-radius: 3px 0 0 3px;
}


/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-height: 100vh;
  font-size: var(--font-size);
  margin: 0;
  padding: 0px;
  color: var(--text-color);
  font-family: var(--font);
  line-height: 1.2;
  background: var(--background-color);
  background-image: url("https://ghosts-kin-site.neocities.org/Rick's%20page/bg1.gif");
  background-size: cover;
}

::selection {
  /* (Text highlighted by the user) */
  background: rgba(0, 0, 0, 0.2);
}

mark {
  /* Text highlighted by using the <mark> element */
  text-shadow: 1px 1px 4px var(--link-color);
  background-color: inherit;
  color: var(--text-color);
}

/* Links: */
a {
  text-decoration: underline;
}

a,
a:visited {
  color: var(--link-color);
}

a:hover,
a:focus {
  color: var(--link-color-hover);
  text-decoration: none;
}



/* -------------------------------------------------------- */
/* LAYOUT */
/* -------------------------------------------------------- */

.container {
  display: grid;
  grid-template-columns: 20% 1fr 20%; /* left | center | right */
  width: 100vw;
  height: 100vh;
  position: relative;
}

/* Left Sidebar */
.left {
  background: #1c2319dd;
  color: var(--sidebar-text-color);
  height: 100%;
  padding: var(--padding);
  border: 3px solid #001204;
  overflow-y: auto;
}

/* Center Section (floating middle) */
.center {
  color: var(--text-color);
  width: 80%;             /* adjust width as needed */
  max-width: 800px;       /* keeps it from stretching too wide */
  height: 90%;            /* controls how tall the middle box is */
  margin: auto;           /* centers it both vertically & horizontally within its grid cell */
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Right Sidebar */
.right {
  background: #1c2319dd;
  color: var(--sidebar-text-color);
  height: 100%;
  padding: var(--padding);
  border: 3px solid #001204;
  overflow-y: auto;
}

/* -------------------------------------------------------- */
/* NAVIGATION */
/* -------------------------------------------------------- */

nav {
  margin-bottom: 3em;
}

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 li > a.active,
nav > ul li > details.active summary {
  font-weight: bold;
}

nav ul summary {
  cursor: pointer;
}

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: 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 ol {
  padding-left: 2em;
}

main blockquote {
  background: rgba(0, 0, 0, 0.1);
  padding: 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: 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;
}

/* -------------------------------------------------------- */
/* 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: 20%;
  height: auto;
  padding: 5px;
  margin: 0;
  overflow: hidden;
}

/* -------------------------------------------------------- */
/* HACK CSS */
/* -------------------------------------------------------- */
/* basic reset */

/* Buttons */
.controls {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 2000;
  display: flex;
  gap: 8px;
}
button {
  padding: 10px 14px;
  font-size: 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #ffb86b;
  color: #111;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

/* container that holds popups */
#popupContainer {
  position: fixed;
  inset: 0; /* full screen */
  pointer-events: none; /* allow clicks to pass through popups */
  z-index: 1000;
}

/* each popup (image tile) */
.popup {
  position: absolute;
  width: 120px;
  height: 120px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.6);
  display: block;
  /* visible fallback if image fails to load */
  background-color: #e6e6e6;
  border: 2px solid rgba(255,255,255,.06);
  transform-origin: center;
}

/* Shaking animation for some images */
@keyframes shake {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-4px, 3px) rotate(-1.5deg); }
  50% { transform: translate(3px, -3px) rotate(1.5deg); }
  75% { transform: translate(-2px, 4px) rotate(-1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
.shake {
  animation: shake 0.22s infinite linear;
}

/* small fade-in when added */
.popup.enter {
  animation: popIn .25s ease;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* -------------------------------------------------------- */
/* 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) {
  .container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .center {
    width: 90%;
    height: 90%;
    margin: 10px auto;
  }
  
   
  iframe {
   height: 300px;
 }


  .prev, .next {
    cursor: pointer;
    position: relative;
    width: auto;
    padding: 0px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
  }

  /* FIX → Next button under sidebar */
  .next {
    right: 0 !important;
    margin-top: 3px;
    display: block;
    text-align: center;
  }
}
  
  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: 20%;
  }

  #skip-to-content-link {
    font-size: 1rem;
  }
}
}