
  
/* -------------------------------------------------------- */
/* VARIABLES */
/* -------------------------------------------------------- */

/* Variables are used like this: var(--text-color) */
:root {
    /* Background Colors: */
    --background-color: #1F1E28;
    --content-background-color: #dfe2f3;
    --sidebar-background-color: #C9C5FF;
    /* Text Colors: */
    --text-color: #000000;
    --sidebar-text-color: #000000;
    --link-color: #3214f4;
    --link-color-hover: #c12d81;
    /* Text: */
    --font: Arial, sans-serif;
    --heading-font: "Outfit", sans-serif;
    --font-size: 14px;
    /* Other Settings: */
    --margin: 0px;
    --padding: 15px;
    --border: 1px solid #8462cc;
    --round-borders: 0px;
    --sidebar-width: 200px;
    --sidebar-padding: 0px;
    --sidebar-section-padding: 15px;
    /*bonus colors*/
    --ShadowGrey: #1F1E28;
    --Periwinkle: #C9C5FF;
    --PalePeriwinkle: #dfe2f3;
    --Blurple: #5E5AD4;
    --DustyGrape: #443270;
    --Lavender: #8462cc;
    --BrightLavender: #BB9CE5;
    --SoftBlurple: #ADA6FF;
    --BlurpleTransparent: rgba(135, 127, 225, 0.5);
}

/* -------------------------------------------------------- */
/* 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: var(--background-color);
  background-image: url("");
  
}

::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 */
/* -------------------------------------------------------- */

.layout {
  width: 1200px;
  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);
  /* Confused by the grid? Check out my tutorial: https://petrapixel.neocities.org/coding/positioning-tutorial#grid */
}

main {
  grid-area: main;
  overflow-y: auto;
  padding: var(--padding);
  background: var(--content-background-color);
  border: var(--border);
  border-radius: var(--round-borders);
}

/* -------------------------------------------------------- */
/* HEADER */
/* -------------------------------------------------------- */

header {
    grid-area: header;
    font-size: 1.2em;
    height: 220px;
    border: var(--border);
    border-radius: var(--round-borders);
    background: var(--content-background-color);
    background-image: url("../media/decor/pyrbanner-alt.png");
    background-repeat: no-repeat;
    padding-bottom: 3em;
}

.header-content {
    padding: var(--padding);
}

/*TODO: figure out how to do this with css grid stuff rather than padding*/
.header-title {
    font-family: var(--heading-font);
    font-size: 1.5em;
    font-weight: bold;
    padding-top: 160px;
}

.header-image img {
  height: 200px;
}

/* -------------------------------------------------------- */
/* SIDEBARS */
/* -------------------------------------------------------- */

aside {
  grid-area: aside;
  border: var(--border);
  border-radius: var(--round-borders);
  overflow: hidden;
  background: var(--sidebar-background-color);
  padding: var(--sidebar-padding);
  color: var(--sidebar-text-color);
}

aside hr{
    color: var(--Purple);
}

.left-sidebar {
  grid-area: leftSidebar;
}

.right-sidebar {
  grid-area: rightSidebar;
}

.sidebar-title {
  font-weight: bold;
  font-size: 1.2em;
  font-family: var(--heading-font);
  text-align: center;
  padding: 3px;
  border: 2px solid var(--SoftBlurple);
}

.sidebar-section {
    padding-left: var(--sidebar-section-padding);
    padding-right: var(--sidebar-section-padding);
}

.sidebar-section:not(:last-child) {
  margin-bottom: 3em;
}

.sidebar-section ul,
.sidebar-section ol {
  padding-left: 1.5em;
}

.sidebar-section > *:not(p):not(ul):not(ol):not(blockquote) {
  margin-top: 10px;
}

/* Sidebar Blockquote: */

.sidebar-section blockquote {
  background: var(--SoftBlurple);
  padding: 15px;
  margin: 1em 0;
  border-radius: 10px;
  overflow: hidden;
}

.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 textarea {
  font-family: monospace;
  font-size: 0.7em;
}

/*sidebar link div stuff*/
.sidebar-button {
    text-align: center;
    padding: 0px;
    background-color: var(--BrightLavender);
}

.sidebar-button a{
    display: block; /*inline to make link take up whole div*/
    width: 100%;
    padding: 5px;
    text-decoration: none;
    color: black;
}
.sidebar-button a:hover {
    color: white;
}

.sidebar-button:hover {
    background-color: var(--DustyGrape);
}


/* -------------------------------------------------------- */
/* FOOTER */
/* -------------------------------------------------------- */

footer {
  grid-area: footer;
  border: var(--border);
  border-radius: var(--round-borders);
  overflow: hidden;
  font-size: 0.75em;
  padding: 15px;
  background: var(--content-background-color);
  display: flex;
  justify-content: center;
}

footer a,
footer a:visited {
  color: var(--link-color);
}

footer a:hover,
footer a:focus {
  color: var(--link-color-hover);
}

/* -------------------------------------------------------- */
/* NAVIGATION */
/* -------------------------------------------------------- */

nav {
    padding: 10px;
    padding-bottom: 3em;
    background-color: var(--SoftBlurple);
}

nav .sidebar-title {
  padding-bottom: 0.5em;
  margin-bottom: 0.5em;
  border-bottom: 2px solid var(--Lavender);
}

nav a{
    width: 100%;
    text-decoration: none;
    color: black;
}

nav a:visited{
    color: black;
}

nav a:hover, nav > ul li > details summary:hover {
    background-color: var(--DustyGrape);
    color: var(--Periwinkle);
}

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: flex;
  align-items: center;
}

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;
  color: var(--PalePeriwinkle);
  background-color: var(--DustyGrape);
}

nav ul summary {
  cursor: pointer;
}

nav ul ul li > a {
  padding-left: 30px;
}

nav img{
    height: 24px;
    padding-right: 10px;
}

/* NAVIGATION IN HEADER */

header nav {
  margin-bottom: 0;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

header nav ul li {
  position: relative;
}

header nav ul li:first-child > a {
  padding-left: 0;
}

header nav ul li:last-child > a {
  padding-right: 0;
}

/* Subnavigation (Drop-Down): */

header nav ul ul {
  background: var(--content-background-color);
  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 li strong {
  color: var(--link-color);
  text-decoration: underline;
  font-weight: normal;
}

header nav ul ul li a {
  display: block;
  padding-left: 0;
  padding-right: 0;
}

/* -------------------------------------------------------- */
/* 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(135, 127, 225, 0.25);
    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;
}

/* -------------------------------------------------------- */
/* TABLE OF CONTENTS*/
/* -------------------------------------------------------- */

.page-directory {
    display: grid;
    padding: 10px;
    background-color: #B0D9AD;
    border-radius: 1em;
    max-width: auto;
}


.page-directory a {
    text-decoration: none;
    color: #185251;
    place-self: start;
}

.page-directory a:visited {
    color: #185251;
}

.page-directory a:hover {
    color: black;
}

/* -------------------------------------------------------- */
/* GALLERIES & TABLES*/
/* -------------------------------------------------------- */


.gallery-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.gallery-img-container {
    position: relative;
    width: 100%;
    object-fit: cover;
}

.gallery-img-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}

.gallery-img-overlay{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: rgba( 108, 73, 196, 0.5);
    transition: opacity 0.3s ease;
}

.gallery-img-container:hover .gallery-img-overlay{
    opacity: 2;
}

.gallery-img-caption {

}

/*Lightbox for focusing gallery image when clicked*/

.lightbox{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-img{
    max-width: 80%;
    max-height: 80%;
}

.lightbox p{
    color: white;
}

.lightbox a:link{
    color: var(--HotPink);
}

.lightbox a:visited {
    color: var(--Pink);
}

.close-btn{
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
}


/*alt gallery, to fully display images with different aspect ratios*/
.masonry-gallery-container{
    column-count: 2;
    column-gap: .5em;
}

/*something in here is necessary to make the clickable area not be the entire page
    should probably find out why that is sometime.
*/
.masonry-gallery-img-container {
    position: relative;
    width: 100%;
}

.masonry-gallery-container img {
    width: 100%;
}

.masonry-gallery-img-container:hover .gallery-img-overlay {
    opacity: 2;
}

/* -------------------------------------------------------- */
/* PLAYLIST GALLERY*/
/* -------------------------------------------------------- */
.playlist-container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--Periwinkle);
}

.playlist-info{
   padding: 1em;
 
}

.playlist-title{
    
}

.playlist-embed{
    max-width: 400px;
}


/* -------------------------------------------------------- */
/* THUMBNAIL GALLERY*/
/* -------------------------------------------------------- */

.thumbnail-gallery-container {
    display: grid;
    text-align: center;
    border: 1px solid var(--Lavender);
    grid-template-areas: "thumbnail-gallery-title thumbnail-gallery-title"
        "thumbnail-gallery";
}

.thumbnail-gallery-title {
    background-color: var(--SoftBlurple);
    padding: 10px;
    max-height: fit-content;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: var(--Periwinkle);
    padding: 10px;
    column-gap: 10px;
}

.thumbnail-gallery-item {
    display: grid;
    grid-template-rows: 1fr 2fr;
    place-items:center;
}

.thumbnail-gallery img {
    width: 100%;
    max-height: 130px;
    border-radius: 5%;
    object-fit: cover;
}

.profile {
    display: grid;
    grid-template-columns: auto auto;
    grid-row-gap: 0px;
    border: 1px solid var(--Lavender);
}

.profile-img {
    
}

.profile-img img {
    display: block;
    border-right: 1px solid var(--Lavender);
}

.info-container {
    display: grid;
    grid-template-columns: 30% 70%;
    align-content: center;
    background-color: var(--Periwinkle);
    row-gap: 5px;
    padding: 20px;
}

.info-label {
    color: var(--DustyGrape);
}




/*Sidebar roulettte img and stamps*/
#sidebar-roulette-img{
    display: block;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

#sidebar-roulette-caption{
    font-size: .75rem;
    text-align: center;
    color: var(--DustyGrape);
}

.sidebar-stamps {
    display: grid;
    place-items: center;
}

.sidebar-stamps img {
    max-width: 99px;
    margin-top: 0px;
}

.sidebar-stamps-marquee img{
    max-width: 99px;
}


/* -------------------------------------------------------- */
/* 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: 100%;
  height: auto;
  padding: 5px;
  margin: 0;
  overflow: hidden;
}

/* -------------------------------------------------------- */
/* 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) {
  body {
    font-size: 14px;
  }

  .layout {
    width: 100%;
    grid-template: "header" auto  "leftSidebar" auto "main" auto "footer" auto / 1fr;
    /* Confused by the grid? Check out my tutorial: https://petrapixel.neocities.org/coding/positioning-tutorial#grid */
  }

  
  .right-sidebar { 
    display: none;
  }

  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%;
  }

  #skip-to-content-link {
    font-size: 1rem;
  }
}
