
/* start dark mode styling */
	@media (prefers-color-scheme: dark) {
		:root {
			--text: white;
			--border: #5a7678;
			--accent: #74C365;
			--bg: rgb(0,60,60,.8);
			--gradientBottom: rgb(0, 50, 60);
			--gradientTop: darkslategrey;
			a:link { color: lightblue; }
		}
		header {
			background: url('***dark mode banner image***');
		}
	}
/* end dark mode styling */
/* The sidebar menu */

.sidenav a:link, nav a:visited { 
	color: var(--text);
}
.sidenav {
  height: 100%;
  width: 160px;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  overflow: hidden; /* hides all scrollbars */
  border: 2px ridge var(--border);
  border-radius: 5px;
  padding: 5px;
  background: linear-gradient(var(--gradientTop), var(--gradientBottom));

}

/* The navigation menu links */
.sidenav a {
	display: block;
	margin: 5px;
	background: linear-gradient(to right,var(--bg),var(--gradientBottom));
	border-radius: 5px;
	padding: 2px 7px;
	text-decoration: none;
	overflow: hidden;
}
/* The navigation middle menu links */
.sidenavmid {
	display: flex;
	flex-direction: column; /* stack buttons vertically */
	justify-content: center; /* center them vertically */
	height: 75%; /* make sure this fills the sidebar’s height */
	overflow: hidden;
}

.sidenavmid a {
	display: block;
	margin: 5px;
	background: linear-gradient(to right, var(--bg), var(--gradientBottom));
	border-radius: 5px;
	padding: 2px 7px;
	text-decoration: none;
}
/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
	background: linear-gradient(to right,var(--bg), var(--gradientBottom), var(--gradientTop));
}



/* Style page content */
.main {
  margin-left: 160px; /* Same as the width of the sidebar */
  padding: 0px 10px;
}

.page-layout {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
}



/* On smaller screens, where height is less than 450px, change the style of the sidebar (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}
img {
  /* This  makes sure images are not blurred. */
  image-rendering: -moz-crisp-edges;          /* Firefox                        */
  image-rendering: -o-crisp-edges;            /* Opera                          */
  image-rendering: -webkit-optimize-contrast; /* Chrome (and eventually Safari) */
  image-rendering: pixelated;                 /* Chrome */
  -ms-interpolation-mode: nearest-neighbor;   /* IE8+                           */
}
html {
  cursor: url(cursors/old.png), default;
}


a {
  cursor: url(cursors/oldhover.png), pointer;
}

button {
  cursor: url(cursors/oldhover.png), pointer;
}

* { 
	box-sizing: border-box;
}

body {
	padding: 10px;
	font-family: 'MS PGothic', sans-serif;
	color: var(--text);

	/* page background pattern */
	background-image:  url(bg/posterwall.png);
  background-size: 100%;
  image-rendering: optimizeSpeed;
  background-repeat: no-repeat; 
  background-position: center center;
}



  
.full {
  position: absolute;
  top: 9%;
  left: 9%;
  width: 82%;
  height: 62%;
  z-index: 0;
  overflow: hidden;
  color: #FFFFFF; 
  background-image: linear-gradient(rgba(0, 0, 0, 0.527),rgba(0, 0, 0, 0.5)) , url(bg/mikugrass.png);
  background-size: cover; 
  background-repeat: no-repeat; 
  background-position: center center; 
	font-family: 'MS PGothic', sans-serif;
  -webkit-font-smoothing: none;
  line-height: 2;
  letter-spacing: 2px;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
}


.full h1 {
	font-family: 'MS PGothic', sans-serif;
  font-size: 42px !important;
  color: #FFFFFF;
  text-transform: uppercase;
  text-shadow:
    0 0 3px #000000,
    0 0 6px #000000,
    0 0 12px #000000;
}


.relativeimage {
  position: fixed;
  left: 50vw
  width: auto;
  height: auto;
}
.container {
  position: relative;
  max-width: 55rem;
  margin: 0vw auto 12px auto;
  display: flex;
  flex-wrap: wrap;
  padding: 5px;
  gap: 5px;
  border: none;
  outline: none;
}

/* only the decorative TV image ignores clicks */
.container img {
  pointer-events: none;
  z-index: 10;
}
.textbox {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* top header */
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
  text-align: center;
  margin-right: 40px;
}
img[src="https://i.pinimg.com/280x280_RS/19/66/40/19664024d9912055ab8a78c9e139ce2d.jpg"] {
  width: 128px;
  height: auto;
  border-width: 7px; border-style: solid; border-image: url("https://i.imgur.com/2jXrMdE.png") 11 fill round; 
  align-items: center;
  margin-top: 128px;
}
.textbox h1 {
  margin-bottom: 20px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  margin-bottom: 30px;
}

#backBtn {
  font-family: 'MS PGothic', sans-serif;
  color: #FFFFFF;
  font-size: 1rem;
  text-shadow: 0 0 4px #000000;
  cursor: pointer;
  width: 32;
  height: 32;
}

#backBtn:hover {
    text-decoration: underline;
}

/* Center main menu options and gallery */
.menu-options,
.gallery {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-options {
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
}

.gallery {
  gap: 10px;
}

.menu-btn.extra {
  margin-top: 5px;
}


.menu-options {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.menu-btn {
  flex: 0;
  margin: 20px 10px;
  background: transparent;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 1.8rem;
  text-shadow: 0 0 4px #000000;
  padding: 10px;
  transition: background 0.2s;
}

.menu-btn:hover {
  text-decoration: underline;
}

.menu-btn.extra {
  display: block;
  margin: 30px auto 0 auto;
  width: 50%;
}
#menuBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  height: auto; /* don’t stretch full height */
  padding: 10px 0;
}

#menuBox h1 {
  margin-bottom: 15px;
}

/* vertical stack for main menu buttons */
#menuBox .menu-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#menuBox .menu-btn {
  width: fit-content;
  font-size: 1.5rem;
  background: none;
  padding: 4px 16px;
  color: #FFFFFF;
  text-shadow: 0 0 4px #00000;
  line-height: 1.2; /* tighten text height */
  }

.content {
  display: none;
}

.gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}



.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 200px); 
  gap: 12px;

  max-width: 600px;
  max-height: 400px;
  overflow-y: scroll;
  overflow-x: hidden;
}

.gallery-grid .item {
  background: rgba(0, 0, 0, 0.4);
  color: #779ECB;
  text-transform: uppercase;
  height: 200px;
  width: 133px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid #3D426B;
}

.gallery-grid .item img {
  width: 100%;
  height: auto;
}

.gallery-grid .item span {
  font-size: 0.9rem;
}
.full .detail-text {
  transform: translateX(-20px);
  line-height: 1;
  overflow-y: scroll;
  overflow-wrap: break-word;
  width: 600px
}


.full .detail-text {
  display: block;
  transform: translateX(-20px);
  font-size: 16px;
  line-height: 1;
  overflow-y: scroll;
  width: 600px;
  height: 375px;
  background-color: rgba(0, 0, 0, 0.75);
}



::-webkit-scrollbar {
width: 16px
}
 
::-webkit-scrollbar:horizontal {
height: 17px
}
 
::-webkit-scrollbar-corner {
background: #000
}
 
::-webkit-scrollbar-track:vertical {
background: linear-gradient(90deg, #00060b, #000a14 20%)
}
 
::-webkit-scrollbar-track:horizontal {
background: linear-gradient(180deg, #00060b, #000a14 20%)
}
 
::-webkit-scrollbar-thumb {
  border: 1.5px solid #001a33;          
  border-radius: 3px;
  box-shadow: inset 0 -1px 1px #002244, 
              inset 0 1px 1px #002244;  
  background-color: #000f1f;            
}
 

}
 
 
::-webkit-scrollbar-button:horizontal:end:increment,
::-webkit-scrollbar-button:horizontal:start:decrement,
::-webkit-scrollbar-button:vertical:end:increment,
::-webkit-scrollbar-button:vertical:start:decrement {
display: block
}
 
::-webkit-scrollbar-button:vertical {
height: 17px
}
 
::-webkit-scrollbar-button:vertical:start:decrement {
background: white;
background-image: url("images/uparrow.png");
background-repeat: no-repeat;
background-position: center;
-moz-background-size: cover;
-webkit-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
 
::-webkit-scrollbar-button:vertical:start:increment {
display: none;
}
 
::-webkit-scrollbar-button:vertical:end:decrement {
display: none;
}
 
::-webkit-scrollbar-button:vertical:end:increment {
background: white;
background-image: url("images/downarrow.png");
background-repeat: no-repeat;
background-position: center;
-moz-background-size: cover;
-webkit-background-size: cover;
-o-background-size: cover;
background-size: cover;
}


/* 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%; }

#welcome {
  margin-top: -70px;
  color: pink;
  font-family: 'Aladin', serif;
  font-size: 35px;
  z-index: 1;
  position: relative;
}

#check_sidebar {
  margin-left: -10px;
  margin-bottom: -5px;
  margin-top: 0px;
}

header {
  width: 100%;
  height: 80px;
  overflow: hidden;
  position: relative;
}



header img {
  height: 100%;
  width: auto;
  margin-top: -4.5px;
  display: block;
}

header span {
	font-size: 2.5rem;
	position: absolute;
	bottom: 0;
	right: 10px;
	margin: 10px;
	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 {
	border: 2px ridge var(--border);
	border-radius: 5px;
	padding: 5px;
	background: linear-gradient(var(--gradientTop),var(--gradientBottom));
}
nav div {
	text-align: center;
	font-size: 1.25rem;
	margin: 5px 5px 10px 5px;
}
nav a {
	display: block;
	margin: 5px;
	background: linear-gradient(to right,var(--bg),var(--gradientBottom));
	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));
}
section img {
	display: inline-block;
	vertical-align: middle;
	margin-top: 0;
	padding-top: 0;
}
/* optional button styling like in the preview */
div.small > img {
	display: block;
	margin: 5px auto;
	border:2px ridge var(--border);
	border-radius: 5px;
}


section {
	padding: 5px;
}


footer {
	text-align: center;
	margin-bottom: 5vw;
	font-size: 0.8rem;
}
footer a { 
	text-decoration: none;
}


h1, h2, h3, h4, h5, h6, p  { 
	margin: 0px;
	line-height: 1;
}
h1 { 
	font-size: 1.4rem;
	letter-spacing: 2px;
	font-weight: normal;
	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;
	
  justify-content: center;
  align-items: center;
}

/* prevents overflow on smaller screens */
img { max-width: 100%; }
pre { overflow-x: auto; }

img[src="images/monitor.png"] {
  pointer-events: none;
}

a:hover, a:focus {
	font-style: italic;
}
a:visited {
	color: var(--accent);
}