body {
  background-color: #8c7dca;
  color: black;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.p1 {
  display: inline-block;
  margin: 0 0 1.5em;
  padding: 1rem;
  background-color: #ffb2c9; 
}

.p2 {
  margin: 0 0 1.5em;
  padding: 10px;
  background-color: #ffb2c9;
  border-radius: 20px;  /* Round the corners */
  max-width: fit-content;
}

.p3 {
  display: inline-block;
  margin: 0 0 1.5em;
  padding: 1rem;
  background-color: #b9afdf; 
}

.rounded-box {
  width: max-content;
  height: auto;
  background-color: white;
  border-radius: 20px;  /* Round the corners */
  padding: 10px;
  box-sizing: border-box; /* Ensure padding doesn't affect the size */
}

/* Border for seeing easier */
/* {
  border:1px solid black;
  } 

  .parent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    }

/* Container for flexboxes */
section {
  display: -webkit-flex;
  display: flex;
}

nav {
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  background: #f1ceff;
  padding: 34px;
}

nav ul {
  list-style-type: none;
  padding: 0;
}

a:link {
  color: #642472;
  background-color: transparent;
  text-decoration: none;
}
a:visited {
  color: rgb(100, 36, 114);
  background-color: transparent;
  text-decoration: none;
}
a:hover {
  color: #cc2386;
  background-color: transparent;
  text-decoration: underline;
}
a:active {
  color: rgb(255, 150, 211);
  background-color: transparent;
  text-decoration: underline;
}

article {
  -webkit-flex: 3;
  -ms-flex: 3;
  flex: 3;
  background-color: #ffdbf7;
  padding: 20px;
}

/* Uhhh I'm just tweaking stuff to see... */
fanfiction_article {
  -webkit-flex: 3;
  -ms-flex: 3;
  flex: 3;
  background-color: #ffdbf7;
  padding: 20px;
}

header {
  background-color: #8c7dca;
  padding: 4px;
  text-align: center;
  color: white;
}

footer {
  background-color: #8c7dca;;
  padding: 4px;
  text-align: center;
  color: white;
}

/* Responsive layout - makes the menu and the content (inside the section) sit on top of each other instead of next to each other */
@media (max-width: 600px) {
  section {
    -webkit-flex-direction: column;
    flex-direction: column;
  }
}

/* This is mostly for the Lore Compendium Pages */

#container {
    max-width: 1000px;
    /* Width of layout. */
    /* if you change the above value, scroll to the bottom
    and change the media query according to the comment. */
    margin: 0 auto;
    /* Centers entire page */
  }

  #header {
    width: 100%;
    background-color: #ffffff;
    height: 150px;
    background-image: var(--header-image);
    background-size: 100%;
  }

  #navbar {
    height: 40px;
    background-color: #ffffff;
    /* navbar color */
    width: 100%;
  }

  #navbar ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style-type: none;
    justify-content: space-evenly;
  }

  #navbar li {
    padding-top: 0px;
  }

  #flex {
    display: flex;
  }

  /* Colors BOTH sidebars
  Make #leftSidebar and #rightSidebar if styling separately */
  aside {
    background-color: #ffffff;
    width: 200px;
    padding: 20px;
    font-size: smaller;
    border: 3px double #000000;
  }

  main {
    flex: 1;
    padding: 20px;
    order: 2;
    border: 3px double #000000;
  }

  /* If using both sidebars, the order value
  tells the CSS the order in which to display them.
  Left sidebar is 1, content is 2, and right sidebar is 3. */

  */ #leftSidebar {
    order: 1;
  }

  #rightSidebar {
    order: 3;
  }

  .box {
    background-color: #ececeb;
    border: 1px solid #000000;
    padding: 10px;
  }

  /* CSS for extras */
  #topBar {
    width: 100%;
    height: 30px;
    padding: 10px;
    font-size: smaller;
    background-color: #ffffff;
  }

  @media only screen and (max-width: 800px) {
    #flex {
        flex-wrap: wrap;
    }

    aside {
        width: 100%;
    }

    main {
        order: 1;
    }

    #leftSidebar {
        order: 2;
    }

    #rightSidebar {
        order: 3;
    }

    #navbar ul {
        flex-wrap: wrap;
    }
  }

  .hover-image {
    width: max-content; /* or auto if preferred */
    height: auto; /* preserve aspect ratio */
    transition: transform 0.4s ease;
    display: inline-block;
    object-fit: cover; /* helps keep proportions if using fixed sizes */
  }

  .hover-image:hover {
    transform: rotate(360deg);
    animation: hueRotate 0.9s linear infinite;
    /*filter: hue-rotate(0deg);*/
  }
  
  .hover-image.clicked {
    transform: rotate(360deg);
    animation: hueRotate 0.9s linear infinite;
  }

  /* @keyframes hueRotate {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}
*/

/*For the fuckass omanjuu lmao */
.hover-image {
  width: max-content; /* or auto if preferred */
  height: auto; /* preserve aspect ratio */
  transition: transform 0.4s ease;
  display: inline-block;
  object-fit: cover; /* helps keep proportions if using fixed sizes */
}

.hover-image:hover {
  transform: rotate(360deg);
  animation: hueRotate 0.9s linear infinite;
  /*filter: hue-rotate(0deg);*/
}

.hover-image.clicked {
  transform: rotate(360deg);
  animation: hueRotate 0.9s linear infinite;
}

/* @keyframes hueRotate {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}
*/

.image-morph {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.image-morph .base-img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.1s ease;
}

/* Hover image is layered on top */
.image-morph .hover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.1s ease, transform 0.4s ease;
  z-index: 2;
  pointer-events: none;
}

.image-morph:hover .base-img {
  opacity: 0;
}

.image-morph:hover .hover-img {
  opacity: 1;
  transform: rotate(360deg);
}