:root {
  /* Background Colors: */
  --background-color: #afd6a9;
  --content-background-color: #fffee6;
  --sidebar-background-color: #8d6f58;

  /* Text Colors: */
  --text-color: #4f2b0a;
  --sidebar-text-color: #f1eed2;
  --link-color: #608f6c;
  --link-color-hover: #88532b;

  /* Text: */
  --font: Arial, sans-serif;
  --heading-font: Verdana, sans-serif;
  --font-size: 10px;

  /* Other Settings: */
  --margin: 10px;
  --padding: 20px;
  --border: 3px solid #603b1a;
  --round-borders: 16px;
  --sidebar-width: 160px;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  align-items: center;
  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("https://i.pinimg.com/736x/62/7b/34/627b34871d4db448a9b7cb896ecd805a.jpg");
  
}

::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: none;
}

a,
a:visited {
  color: var(--link-color);
}

a:hover,
a:focus {
  color: var(--link-color-hover);
  text-decoration: underline;
  text-decoration-style: wavy;
  
}
.scale-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.layout {
  width: 800px;
  display: grid;
  grid-gap: var(--margin);
  grid-template: "header header" auto "leftSidebar main" auto "footer footer" auto / var(--sidebar-width) auto;
  margin: 0 auto;
}


main {

  grid-area: main;
  overflow-y: auto;
  padding: var(--padding);
  background: var(--content-background-color);
  border: var(--border);
  border-radius: var(--round-borders);
  animation: fadeIn 0.7s cubic-bezier(.4,0,.2,1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0px); }
}

.page-fade-out {
  animation: fadeOut 0.9s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-5px); }
}

header {
  grid-area: header;
  font-size: 1.2em;
  border: var(--border);
  border-radius: var(--round-borders);
  background: var(--content-background-color);
}

.header-content {
  display: flex;
  flex-direction: column;
  gap: 0; /* remove extra spacing */
  padding: var(--padding);
}

.header-title {
  font-style: italic;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 2px;
}

.header-title img {
	height:1.6em;
	vertical-align:middle;
}

.header-image img {
  width: 100%;
  height: auto;
}


aside {
  grid-area: aside;
  border: var(--border);
  border-radius: var(--round-borders);
  overflow: hidden;
  background: var(--sidebar-background-color);
  padding: 8px 16px 8px;
  color: var(--sidebar-text-color);
}

.left-sidebar {
  grid-area: leftSidebar;
}

.right-sidebar {
  grid-area: rightSidebar;
}

.sidebar-title {
   /* letter gif closer together */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: -10px;
  
  text-align: center;
  font-weight: bold;
  font-size: 1.6em;
  font-family: var(--heading-font);
  color: white;
  margin-bottom: 0px;
}

.sidebar-section {
    position: relative;
}

.prof-pic img {
	vertical-align:middle;
	text-align:center;
	border-width:7px;
	border-style:solid;
	border-image: url("https://i.imgur.com/NJa4bp2.png") 8 fill round;
	width: 90%;
	margin-top: 0px;
}

.border-decor {
	position: absolute;
	top: 21px;
	right: -1px;
	
	height: 3em;
}

.sidebar-section:not(:last-child) {
  margin-bottom: 1.5em;
}

.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: 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;
}

textarea:focus {
    outline: none;
}

.marques img {
	height:50px;
}

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);
}

nav {
  display: flex;
  align-items: center;   /* vertically centers everything */
  justify-content: space-between; /* spreads menu left, music button right */
  margin-bottom: 3em;
}

nav .sidebar-title {
  margin-bottom: 0.5em;
}

nav ul {
  display: flex;
  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;
}

/* 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;
}


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(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: 3px dotted #603b1a;
  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;
  gap: 6px;
}

.two-columns > * {
  flex: 1 1 0;
  margin: 0;
}

.two-columns > *:first-child {
  padding-right: 0.75em;
}

.two-columns > *:last-child {
  padding-left: 0.75em;
}

.blog-layout {
	align-items:center;
}

/* -------------------------------------------------------- */
/* 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;
}

.music-player {
  display: flex;
  align-items: center;
  margin-top: -20px; /* adjust this number until it matches perfectly */
}

#music-toggle {
  background: #8d6f58;
  color: #fff;
  border: 3px solid #603b1a;
  border-radius: 12px;
  padding: 6px 14px;
  font-size: 11px;
  cursor: pointer;
}

#music-toggle:hover {
  background: #a88368;
}

.blog-pic img {
	width:50%;
	height:auto;
	border-radius:10px;
	border: 2px solid pink;
	display: block;
  margin: 0 auto;
}

.blog-pic {
  text-align: center;
}

.test-scroll {
  margin-top: 16px;
  height: 210px;          /* scrollbox height */
  overflow-y: auto;
  overflow-x: hidden;

  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */

  border: 3px solid #603b1a;
  border-radius: 8px;
  background:#fff;
}

/* ALL IMAGES SAME SIZE */
.test-scroll img {
  width: 100%;
  height: 150px;              /* <-- set the exact height you want */
  object-fit: cover;          /* crops nicely without distortion */
  display: block;
}

/* pink scrollbar */
.test-scroll::-webkit-scrollbar {
  width: 10px;
}

.test-scroll::-webkit-scrollbar-track {
  background: #9cffdb;
  border-radius: 10px;
}

.test-scroll::-webkit-scrollbar-thumb {
  background: #ffd1dc;
  border-radius: 10px;
  border: 2px solid #ffe6f2;
}

.test-scroll::-webkit-scrollbar-thumb:hover {
  background: #65b5a4;
}

.divider img {
	width:60%;
 margin-left:auto;
margin-right:auto;
}

/* -------------------------------------------------------- */
/* CONTENT SCROLL + COLLAPSIBLE ENTRIES */
/* -------------------------------------------------------- */

/* Outer scrollbox wrapping all entries on blog/collect/review/music pages */
.content-scroll {
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

/* Same scrollbar style as .test-scroll */
.content-scroll::-webkit-scrollbar {
  width: 12px;
}
.content-scroll::-webkit-scrollbar-track {
  background: #9cffdb;
  border-radius: 10px;
}
.content-scroll::-webkit-scrollbar-thumb {
  background: #ffd1dc;
  border-radius: 10px;
  border: 2px solid #ffe6f2;
}
.content-scroll::-webkit-scrollbar-thumb:hover {
  background: #65b5a4;
}

/* Individual collapsible entry */
.entry {
  margin-bottom: 8px;
  border-radius: 8px;
  overflow: hidden;
  background: #fffff2; /* slightly lighter than --content-background-color #fffee6 */
}

/* Clickable title row */
.entry-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  cursor: pointer;
  padding: 8px 10px;
  user-select: none;
  border-radius: 8px;
  transition: background 0.15s;
}

.entry-title:hover {
  background: rgba(255,209,220,0.35);
}

.entry-title h1,
.entry-title h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 1.15em;
  line-height: 1.4;
  color: var(--text-color);
}

.entry-title small {
  font-size: 0.8em;
  color: var(--link-color);
  white-space: nowrap;
}

/* Arrow indicator */
.entry-arrow {
  margin-left: auto;
  font-size: 0.85em;
  color: var(--link-color);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.entry.open .entry-arrow {
  transform: rotate(180deg);
}

/* Collapsible inner scrollbox */
.entry-body {
  display: none;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 12px 12px;
}

.entry.open .entry-body {
  display: block;
}

/* Same scrollbar inside entry-body */
.entry-body::-webkit-scrollbar {
  width: 12px;
}
.entry-body::-webkit-scrollbar-track {
  background: #ffd1dc;
  border-radius: 10px;
}
.entry-body::-webkit-scrollbar-thumb {
  background: #a18e85;
  border-radius: 10px;
}
.entry-body::-webkit-scrollbar-thumb:hover {
  background: #ffe6f2;
}

@media (max-width: 800px) {
  .content-scroll {
    max-height: 360px;
  }
  .entry-body {
    max-height: 240px;
  }
}

.message { background: #857062; color: #fff; padding: 12px; border-radius: 12px; margin-bottom: 12px; animation: fadeIn 1s ease; }

#chatForm textarea { width: 360px; height: 200px; /* set exact height */ padding: 10px; border-radius: 10px; border: 3px solid #603b1a; font-family: 'Comic Sans MS', arial; }

/* -------------------------------------------------------- */
/* 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 */
/* -------------------------------------------------------- */

/* CSS Code for devices < 800px */
@media (max-width: 800px) {
  body {
    display: flex;           /* REQUIRED */
    flex-direction: column;  /* keeps content vertical */
    align-items: center;     /* centers horizontally */
    font-size: 8px;
  }
  
  nav {
  padding:6px 8px 2px;
}
  
  aside {
	padding: 2px 8px 0px;
  }
  
  #music-toggle {
	 font-size: 7px;
  }
  
  .music-player {
  display: flex;
  align-items: center;
  margin-top: -15px; /* adjust this number until it matches perfectly */
}

.prof-pic img {
	width: 70%;
}

main {
	padding: 13px 9px 0px;
}

  :root {
    --padding: 6px;
    --margin: 3px;
    --round-borders: 8px;
    --border: 2px solid #603b1a;
    --sidebar-width: 130px;
  }

  .right-sidebar {
    display: none;
  }

  /* Headings scale down */
  main h1 { font-size: 1.2em; }
  main h2 { font-size: 1.1em; }
  main h3 { font-size: 0.8em; }
  
  .test-scroll {
	height: 130px;          /* scrollbox height */
}
  
  .test-scroll img {
  width: 100%;
  height: 80px;              /* <-- set the exact height you want */
}

.marques img {
	height:25px;
}

.header-title {
  padding-left: 8px;
  padding-top: 8px;
  margin-bottom:-8px;
}

.sidebar-section blockquote {
	padding: 15px 10px 15px;
}

main hr {
	border-top: 2px dotted #603b1a;
	width: 130px;
}

.blog-pic {
	text-align: center;
}

.blog-pic img {
	width:60%;
	height:auto;
	margin: 5px;
}

.two-columns > *:first-child {
  padding-right: 0.4em;
}

.two-columns > *:last-child {
  padding-left: 0.4em;
}

.two-columns {
  font-size: 8px;
  margin: 0px;
  display: grid;
  align-items: center;
}

.sidebar-title {
  text-align: center;
  font-weight: bold;
  font-size: 1.8em;
  margin-left: -5px;
  margin-right: -5px;
  gap: -40px;
}
 
.divider img {
	width:90%;
}

.border-decor {
	position: absolute;
	top: 19px;
	right: 12px;
	
	height: 2.8em;
}

}

@media screen and (min-width: 800px) and (max-width: 1200px) {
	
	.test-scroll {
		height: 200px;          /* scrollbox height */
	}
	  
	.test-scroll img {
	  width: 100%;
	  height: 100px;              /* <-- set the exact height you want */
	}
	
	.marques img {
		height:30px;
	}
	
	.divider img {
		width:60%;
	}

}