/* FONT IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

@font-face { 
	font-family: "Vintage Charm"; 
	src: url("./fonts/VintageCharm-Regular.woff2") format("woff2"), 
		url("./fonts/VintageCharm-Regular.woff") format("woff"), 
		url("./fonts/VintageCharm-Regular.ttf") format("truetype"); 
	font-weight: normal;
	font-style: normal; 
	font-display: swap; 
}

@font-face { 
	font-family: "Super Starfish"; 
	src: url("./fonts/SuperStarfish-Regular.woff2") format("woff2"), 
		url("./fonts/SuperStarfish-Regular.woff") format("woff"), 
		url("./fonts/SuperStarfish-Regular.ttf") format("truetype"); 
	font-weight: normal;
	font-style: normal; 
	font-display: swap; 
}

@font-face { 
	font-family: "Comforta"; 
	src: url("./fonts/Comfortaa-Regular.woff2") format("woff2"), 
		url("./fonts/Comfortaa-Regular.woff") format("woff"), 
		url("./fonts/Comfortaa-Regular.ttf") format("truetype"); 
	font-weight: normal;
	font-style: normal; 
	font-display: swap; 
}

/* -------------------------------------------------------- */
/* VARIABLES */
/* -------------------------------------------------------- */

/* Variables are used like this: var(--text-color) */
:root {
  /* Background Colors: */
  --background-color: #fffbf2;
  --background-color-hover: #fad8b6; 
  --content-background-color: linear-gradient(#fffbf2,#ffe3ec);
  --sidebar-background-color: linear-gradient(#fffbf2,#fde0ff);

  --content-top-background-color: linear-gradient(#ffefde, #ffbcce);
  --sidebar-top-background-color: linear-gradient(#fff1fb,#fdc3fd);

  /* Text Colors: */
  --text-color: #1e0611;
  --sidebar-text-color: #000000;
  --link-color: #a2437f;
  --link-color-hover: #7d042f;

  /* Text: */
  --font: Comforta;
  --header-font: Vintage Charm;
  --heading-font: Super Starfish;
  --header-title-color: url("img/backgrounds/pinkglitter.gif");
  --header-title-outline: 5px #fffbf2;
  --font-size: 14px;
  --heading-color: #c41383;

  /* Other Settings: */
  --margin: 10px;
  --padding: 20px;
  
  --border: 3px solid #ffa6d7;
  --round-borders-top: 20px 20px 0px 0px;
  --round-borders-bottom: 0px 0px 20px 20px;
  --sidebar-width: 250px;

}

/* -------------------------------------------------------- */
/* 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("img/backgrounds/purp002.gif");
  
}

::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: 1300px;
  display: grid;
  grid-gap: var(--margin);
  grid-template: "header header" auto "leftSidebar main" auto "footer footer" auto / var(--sidebar-width) auto;
  /* Confused by the grid? Check out my tutorial: https://petrapixel.neocities.org/coding/positioning-tutorial#grid */
}

main {
  grid-area: main;
  overflow-y: auto;

}

.main-top{
  padding: var(--padding);
  background: var(--content-top-background-color);
  border: var(--border);
  border-bottom: none;
  border-radius: var(--round-borders-top);
}

.main-content{
  padding: var(--padding);
  background-image: var(--content-background-color);
  border: var(--border);
  border-radius: var(--round-borders-bottom);
  max-height: 200vh;
  overflow-y: auto;
}
/* -------------------------------------------------------- */
/* HEADER */
/* -------------------------------------------------------- */

header {
  grid-area: header;
  font-size: 4em;
  text-align: center;

}

.header-content {
  padding: var(--padding);
}

.header-title {
  font-family: var(--header-font);
  background-image: var(--header-title-color);
  -webkit-text-stroke: var(--header-title-outline);
  background-clip:text;
  -webkit-background-clip:text;
  color:transparent;
  font-size: 1.5em;
  font-weight: bold;
}

.header-image img {
  width: 100%;
  height: auto;
}

#back2top {
  position: fixed;
  right: 2em;
  bottom: 2em;
  z-index: 99;
  
}

#back2top:hover img{
  cursor:pointer;
  transform: scale(1.3);
  transition: transform 0.5s ease;
}

/* -------------------------------------------------------- */
/* SIDEBARS */
/* -------------------------------------------------------- */

aside {
  grid-area: aside;
}

.left-sidebar {
  grid-area: leftSidebar;
}

.left-sidebar-top {
  border: var(--border);
  border-radius: var(--round-borders-top);
  border-bottom: none;
  overflow: hidden;
  background-image: var(--sidebar-top-background-color);
  padding: var(--padding);
  color: var(--sidebar-text-color);
}

.left-sidebar-content {
  border: var(--border);
  border-radius: var(--round-borders-bottom);
  overflow: hidden;
  background: var(--sidebar-background-color);
  padding: var(--padding);
  color: var(--sidebar-text-color);
}

.right-sidebar {
  grid-area: rightSidebar;
}

.topbar-title{
  font-size: 2em;
  font-family: var(--header-font);
  color: var(--heading-color);
}

.sidebar-title {
  font-size: 1.7em;
  font-family: var(--heading-font);
  color: var(--heading-color);
}

.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):not(img) {
  margin-top: 10px;
}

/* Sidebar Blockquote: */

.sidebar-section blockquote {
  background: rgba(0, 0, 0, 0.1);
  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;
}



/* -------------------------------------------------------- */
/* NAVIGATION */
/* -------------------------------------------------------- */

nav {
  margin-bottom: 1em;
}

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;
  text-decoration: none;
  color: var(--link-color);
  transition: 0.25s ease;
}

nav > ul li > a:hover,
nav > ul li > details summary:hover,
nav > ul li > strong {
  text-decoration: none;
  color: var(--link-color-hover);
  text-shadow: 0 0 10px var(--heading-color);
}

nav > ul li > a.active,
nav > ul li > details.active summary {
  font-weight: bold;
  color: var(--link-color-hover);
}

nav ul summary {
  cursor: pointer;
}

nav ul ul li > a {
  padding-left: 30px;
}

.scrollbox {
  height: 150px;
  padding: 10px;
  overflow-y: auto;
  text-align: center;
  border: var(--border);
  border-radius: 10px;
  background: var(--background-color);
}



/* -------------------------------------------------------- */
/* CONTENT */
/* -------------------------------------------------------- */

main section {
  padding-left: 10px;
}

main a,
main a:visited {
  color: var(--link-color);
  transition: 0.25s ease;
}

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;
}

hr {
  display: block;
  border: 0;
  height: 25px;
  background-image: url(img/othergraphics/heartdivider.gif);
  background-position: center;
  margin: 1.5em 0;
}

table {
  width: 100%;
}

table, th, td{
  border: 1px solid #ffa6d7;
  border-collapse: collapse;
}

th, td {
  padding: 10px;
}

tr:nth-child(odd) {
  background-color: #fffbf2; 
}

tr:nth-child(even) {
  background-color: #ffe6ec; 
}

table a{
  font-weight: bold;
  text-decoration: none;
}

/* HEADINGS: */

main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  font-family: var(--heading-font);
  color: var(--heading-color);
  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: 100%;
  height: auto;
  padding: 5px;
  margin: 0;
  overflow: hidden;
}

.imageGallery {
  display: flex;
  flex-wrap: wrap;
}

.imageGallery div {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  width: calc(25% - 10px);
  margin: 5px;
  border: var(--border);
}

.imageGallery a{
  text-decoration: none; 
}

.imageGallery div img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  
  transition: 0.5s ease;
}

.imageGallery div img:hover {
  transform: scale(1.2);
}

.imageGallery div span {
  position: absolute;
  box-sizing: border-box;
  bottom: 15px;
  left: 0;
  width: 100%;
  background-color: var(--background-color);
  text-align: center;
  padding: 5px 10px;

  opacity: 0;
  transform: translateY(100px);
  transition: transform 0.4s ease, opacity 0.5s ease;
}

.imageGallery div:hover span {
  opacity: 1;
  transform: none;
}

.blinkie {
    height: 20px;
}

.stamp {
  height: 50px;
}

ul {
  list-style-image: url('img/sparklehearticon.gif');
}

#basics {
  columns: 2;
}


/* -------------------------------------------------------- */
/* ART DISPLAY */
/* -------------------------------------------------------- */

.modalDialog {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0,0,0,0.8);
	z-index: 99999;
	opacity:0;
	pointer-events: none;
}

.modalDialog:target {
	opacity:1;
	pointer-events: auto;
}

.modalDialog > div {
    max-width: 900px;
    max-height: 90vh;

}

/* This adds the little bar on top */
.modalTopbar {
    
    height: 60px;
    background-image: var(--sidebar-top-background-color);
    box-shadow: -5px 11px rgba(84, 0, 95, 0.52);

	  margin-top: 5vh;
    margin-left: auto;
    margin-right: auto;
    text-align: center;

    border: var(--border);
    border-radius: var(--round-borders-top);    
    width: 100%;
}

.topbarTitle {
    margin-top: 1vh;
    padding: 10px 15px;    
    font-weight: 800;
    color: var(--background-color);
    text-shadow: 0 0 3px #c62ea0, 0 0 5px #FF68DA;

}

.modalContent {
    padding: var(--padding);

    background-image: var(--sidebar-background-color);
    border: var(--border);
    border-radius: 0px 0px 15px 15px;
    border-top: none;
    box-shadow: -5px 10px rgba(84, 0, 95, 0.52);

	  margin-top: none;
    margin:auto;
    font-size: 15px;
    text-align: center;
    overflow-y: scroll;
}

.thumbnail{
  text-decoration: none;
}

.thumbnail img {
    display: inline-block;
    max-width: 9em;
    margin-right: 0.5em; 
    margin-bottom: 0.5em;
    border: var(--border);
    border-radius: 15px;
    text-decoration: none;
    transition: 0.3s ease;

}

.thumbnail img:hover{
    box-shadow: -3px 5px 3px #fb9ac9;
    transform: translate(5px, -5px);
}

.modalimg {
    max-height: 75vh;
    max-width: 100%;
    display: inline-block;
    margin: auto;

}

.modalButt {
	background: var(--background-color);
	color: var(--link-color);
	text-align: center;
	width: 25px;
  height: 25px;
	margin: auto;

  font-size: 15px;
  text-shadow: none;
  padding: 5px 10px 5px 10px;
  text-decoration: none;
  border: var(--border);
	border-radius: 5px;

  transition: 0.25s ease;
  
}

.modalButt:hover{
  color: var(--link-color-hover);
  background: var(--background-color-hover); 
}


.close {	
	color: var(--text-color);
  background: var(--background-color);

  float: right;
  margin-top: -5px;
	text-align: center;
	padding: 5px 10px 5px 10px;
	text-decoration: none;
	font-weight: bold;
  text-shadow: none;

  border: var(--border);
	border-radius: 5px;

}

.close:hover { 
  background: var(--background-color-hover); 
}

/* -------------------------------------------------------- */
/* OC PAGE BOXES AND BUTTONS */
/* -------------------------------------------------------- */

.ocBox {
    
    margin: 10px;
    display: flex;
    position: relative;
    align-items: center;

    background-image: var(--sidebar-background-color);
    border: var(--border);
    border-radius: 15px;
    padding: 10px;

}

.ocBox i{
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 1.5em;
}

.ocImg {
  margin: 1em;
  text-align: center;
}

.ocImg img {
  width: 250px;
  border: var(--border);
  border-radius: 10px;
  
}

.ocDesc {
  padding: 1em;
}

.ocTitle {
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-size: 3em;
  line-height: 0.6;
  margin-bottom: 0.5em;
}

.ocTitle span {
  font-size: 0.35em;
  font-family: var(--font);
}

#ocFilter {
  text-align: center;
}

.filterBtn {
    
    padding: 5px;
    margin-top: 15px;

    color: var(--text-color);
    background: var(--background-color);
    border: var(--border);
    border-radius: 5px;
    transition: 0.25s ease;
    
}

.filterBtn:hover {
  background-color: var(--background-color-hover);
  cursor: pointer;
}

.hide {
    display: none;
}

.flipTopbar {
  width: 80%;
  margin:auto;

  border: var(--border);
  border-radius: var(--round-borders-top);


  text-align: center;
  
  background: var(--sidebar-top-background-color);
  padding: 0.6em;
  font-size: larger; 
  font-weight: 800;
  color: var(--heading-color);
  font-family: Super Starfish;
  font-size: 1.5em;
  
  margin-bottom: 0px;
}

.flipTopbar:hover{
  color: #ff95e5;
  cursor: pointer;
}

.flipContent {
  width: 80%;
  padding: var(--padding);  
  margin: auto;
  
  background: var(--sidebar-background-color);
  border: var(--border);
  border-top: none;
  border-radius: var(--round-borders-bottom);

  text-align: center;
  line-height: 2.5;
}

#likedseries, #likedgames, #likedmusicians, #likedbooks {
  display: none;
}

#webtodo {
  margin: auto;
  width: 90%;
  padding: var(--padding);
  overflow-y: auto;
  background: url(img/backgrounds/notebookblue.jpg);
  align-items: center;
  justify-content: space-between;
  line-height: 0.8;  
}

#webtodo ul {
  display: inline-block;
  list-style-image: initial;
  width: 50%;
}

#webtodo h2 {
  color: var(--text-color);
}


/* -------------------------------------------------------- */
/* 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: 95%;
    grid-template: "header" auto "main" auto "leftSidebar" 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 {
    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%;
  }

  .imageGallery div {
    width: calc(50% - 10px);
  }

  #skip-to-content-link {
    font-size: 1rem;
  }

  .ocBox {
    flex-direction: column;
  }

  .ocDesc {
    text-align: center;
  }

  #webtodo {
    width: 100%;
  }

  #webtodo ul {
    width: 100%;
    display: block;
    text-align: left;
  }

  #webtodo img {    
    display: none;
  }
}
