/* start light mode styling */
	:root {
		--text: white;
		--border: #411E57;
		--accent: #de5c8f;
		--bg: rgba(124, 78, 187, 1);
		--gradientBottom: #411E57;
		--gradientTop: rgba(124, 78, 187, 1);
	}
/* end light mode styling */


/* start dark mode styling */
	@media (prefers-color-scheme: dark) {
		:root {
			--text: white;
			--border: #411E57;
			--accent: #de5c8f;;
			--bg: rgba(124, 78, 187, 1);
			--gradientBottom: #411E57;
			--gradientTop: rgba(124, 78, 187, 1);
			a:link { color: lightblue; }
		}
	}
/* end dark mode styling */

/* Circular Image Frame */
.circular-image {
  width: 100px; /* Set equal width and height */
  height: 100px;
  border-radius: 50%; /* Create the circular shape */
  object-fit: cover; /* Optional: Ensures the image covers the entire circular area without distortion */
  background-color: #FFFFFF;
  display: block;
  margin: auto;
  
}

.circular-image-left {
  width: 100px; /* Set equal width and height */
  height: 100px;
  border-radius: 50%; /* Create the circular shape */
  object-fit: cover; /* Optional: Ensures the image covers the entire circular area without distortion */
  background-color: #FFFFFF;
  display: block;
  float: left;
  margin-right: 15px; 
  
}

.circular-image-right {
  width: 100px; /* Set equal width and height */
  height: 100px;
  border-radius: 50%; /* Create the circular shape */
  object-fit: cover; /* Optional: Ensures the image covers the entire circular area without distortion */
  background-color: #FFFFFF;
  display: block;
  float: right;
  margin-left: 15px; 
  
}



/* For WebKit-based browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 16px; /* Typical width of Windows 98 scrollbars */
  height: 16px;
  background-color: #411E57;; /* Light gray background for the track */
  border: 1px solid #de5c8f; /* Border matching the track color */
}

::-webkit-scrollbar-thumb {
  background-color: #411E57; /* Gray color for the thumb */
  border: 1px solid #de5c8f; /* Darker gray border for the thumb */
  box-shadow: inset 1px 1px #FFFFFF, inset -1px -1px #808080; /* 3D effect */
}

::-webkit-scrollbar-button {
  background-color: #C0C0C0; /* Gray color for the scroll buttons */
  border: 1px solid #808080;
  box-shadow: inset 1px 1px #FFFFFF, inset -1px -1px #808080;
}

::-webkit-scrollbar-corner {
  background-color: #DFDFDF; /* Corner background */
}

/* For Firefox */
.container { /* Apply this to the scrollable container */
  scrollbar-color: #C0C0C0 #DFDFDF; /* thumb-color track-color */
  scrollbar-width: auto; /* or 'thin' if desired, but 'auto' is more true to original thickness */
}

.section.half { /* Apply this to the scrollable container */
  scrollbar-color: #C0C0C0 #DFDFDF; /* thumb-color track-color */
  scrollbar-width: auto; /* or 'thin' if desired, but 'auto' is more true to original thickness */
}



.vt323-regular {
  font-family: "VT323", monospace;
  font-weight: 400;
  font-style: normal;
}



* { 
	box-sizing: border-box;
}
body {
	padding: 10px;
	font-family: "VT323", "sans-serif";
	color: var(--text);

	/* page background pattern */
	background: #411E57;
	background: radial-gradient(circle, rgba(65, 30, 87, 1) 50%, rgba(124, 78, 187, 1) 100%);
	/*background-size: 20px 35px;*/
	/*background-position: 0 0, 0 0, 10px 18px, 10px 18px, 0 0, 10px 18px;*/
}


.container {
	max-width: 55rem;
	margin: 5vw auto 12px auto;
	/*border: 1px ridge var(--border);*/
	/*outline: .5px solid var(--gradientTop);
	outline-offset: 2px;
	border-radius: 10px;*/
	display: flex;
	flex-wrap: wrap;
	padding: 5px;
	gap: 5px;
	

	/* container background pattern */
	/* background-color: var(--gradientBottom) */
	/* background-image:  repeating-radial-gradient( circle at 0 0, transparent 0, var(--gradientBottom) 9px ), repeating-linear-gradient( var(--bg), var(--bg)); */
}

/* these control the column widths */
.small { flex: 1 1 9%; }
.large { flex: 1 1 82%; }
.full { flex: 1 1 100%; }
.half { flex: 1 1 49%; }

.photopile { 
  display: flex; 
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}
.photopile figure { 
  display: inline-block;
  background: white;
  box-shadow: 1px 4px 5px rgba(0,0,0,0.55);
  transform: rotate(2deg);
  margin: 0 -25px;
}
.photopile figure img {
	max-height: 150px;
  /*max-width: calc(100% - 2rem);*/
  max-width: auto;
  margin: 1rem 1rem 0 1rem;
  border: 2px rgb(0,0,0,0.55) inset;
}
.photopile figcaption, .popovers figcaption {
  font-family:"VT323";
  text-align: center;
  margin: 0.5rem 1rem 1rem 1rem;
  font-size: 1rem;
  color: black;
}
.photopile button { 
  background: none; 
  border: none;
  max-width: 40%;
}
.photopile button:hover, .photopile button:focus { 
  z-index: 3;
  cursor:pointer;
}
.photopile button:nth-child(2n) { 
  transform: rotate(-10deg);
}
.photopile button:nth-child(3n) {
  transform: rotate(5deg);
}
.photopile button:nth-child(4n) { 
  transform: rotate(4deg);
}
.photopile button:nth-child(5n) { 
  transform: rotate(-2deg);
}
.photopile button:nth-child(6n) {
  transform: rotate(-7deg);
}
:popover-open {
  border: none;
  box-shadow: 1px 4px 5px rgba(0,0,0,0.55);
  position: fixed;
  top: 50vh;
  left: 50vw;
  transform: translate(-50%,-50%);
}
.popovers figure:popover-open {
  display: block;
  background: white;
  width: 88vmin;
}
.popovers figure:popover-open figcaption {
  margin: 2.5vmin 1rem 4vmin 1rem;
  font-size: 175%;
  color: black;
}
.popovers figure:popover-open img {
  max-height: 450px;
  margin: 4vmin 4vmin 0 4vmin;
  border: 4px rgb(0,0,0,0.55) inset;
  display: block;
  margin: auto;
  width: auto;
}


header {
	background-size: cover;
	background-position: center;
	width: 100%;
	height: 120px; /* change banner height here*/
	position: relative;
	
}

header img{
	height: 120px;
	width: auto;
	position: relative;
}

header span {
	font-size: 2.5rem;
	position: absolute;
	bottom: -40px;
	left: -20px;
	margin: 5px;
	font-weight: bold;
	text-shadow: 1px 1px var(--text),
		-1px 1px var(--text),
		1px -1px var(--accent),
		-1px -1px var(--accent);
	color: var(--gradientTop);
	
}


nav {
	max-height: 25.55rem;
	border: 2px ridge var(--border);
	border-radius: 5px;
	padding: 5px;
	background-color: #872d72;
	align-items: stretch;
	overflow:scroll;
    overflow-x:hidden;
}
nav div {
	text-align: center;
	font-size: 1.25rem;
	margin: 5px 5px 10px 5px;
	color: #EDABBE;
}
nav a {
	display: block;
	margin: 5px;
	border-radius: 5px;
	padding: 2px 7px;
	text-decoration: none;
}
nav a:link, nav a:visited { 
	color: var(--text);
}
/*nav a:hover, nav a:focus {
	background: linear-gradient(to right,var(--bg), var(--gradientBottom), var(--gradientTop));
}*/

/* optional button styling like in the preview */
div.small > img {
	display: block;
	margin: 5px auto;
	border:2px ridge var(--border);
	border-radius: 5px;
}

section.small {
	overflow:scroll;
    overflow-x:hidden;
}

section {
	max-height: 25.55rem;
	border: 2px ridge var(--border);
	border-radius: 5px;
	background: #872d72;
	padding: 5px;
}

section.half {
	overflow:scroll;
    overflow-x:hidden;
}


footer {
	text-align: center;
	margin-bottom: 5vw;
	font-size: 0.8rem;
}
footer a { 
	text-decoration: none;
}


h1, h2, h3, h4, h5, h6, p  { 
	margin: 5px;
	line-height: 1.2;
	
}

h1, h2, h3, h4, h5, h6 {
	color: #EDABBE;
}

h1 { 
	font-size: 1.4rem;
	letter-spacing: 2px;
	font-weight: normal;
	text-align: center;
	border-bottom: 2px ridge var(--border);
	padding-bottom: 5px;
	
	
}
h2 { 
	font-size: 1.25rem;
	font-weight: normal;
	text-align: center;
}
h3 { 
	font-size: 1.1rem;
}
h4 { 
	font-size: 1rem;
	color: var(--accent);
	padding-left: 12px;
}

p {
	text-align: justify;
	text-justify: inter-word;
}

/* prevents overflow on smaller screens */
img { max-width: 100%; }
pre { overflow-x: auto; }

a {
	color: #EDABBE;
}

a:hover, a:focus {
	font-style: italic;
}
a:visited {
	color: var(--accent);
}

footer img{
	height: 120px;
	width: auto;
	position: absolute;
	bottom: 125px;
	right: 370px;
	margin: 5px;
}