
/* 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);
}
@font-face {
  font-family: 'CRTFont';
  src: url('crtfont.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}
.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/RemoteCursor.png), default;
}


a {
  cursor: url(cursors/RemoteCursorHover.png), pointer;
}

button {
  cursor: url(cursors/RemoteCursorHover.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/myroom.png);
  background-size: cover; 
  background-repeat: no-repeat; 
  background-position: center center;
}



  
.full {
  position: absolute;
  top: 8.99%;
  left: 9.77%;
  width: 80.66%;
  height: 63.16%;
  z-index: 0;
  overflow: hidden;
  color: #ffea00; /* bright yellow text */
  background-image: url(gifs/static.gif);
  font-family: "CRTFont";
  line-height: 2;
  letter-spacing: 2px;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
}


.full h1 {
  font-size: 42px !important;
  color: #ffea00;
  text-transform: uppercase;
  text-shadow:
    0 0 3px #ffea00,
    0 0 6px #ffaa00,
    0 0 12px #ffea00;
}


/* Adds faint scanline effect over the .full area */
.full::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0px,
    rgba(0, 0, 0, 0.1) 1px,
    transparent 2px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 2;
}
.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;
}

.textbox h1 {
  margin-bottom: 20px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  margin-bottom: 30px;
}

#backBtn {
  color: #ffea00;
  font-size: 1rem;
  text-shadow: 0 0 4px #ffea00;
  cursor: pointer;
}

#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: 1;
  margin: 0 10px;
  background: transparent;
  color: #ffea00;
  font-family: inherit;
  font-size: 1.8rem;
  text-shadow: 0 0 4px #ffea00;
  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: #ffea00;
  text-shadow: 0 0 4px #ffea00;
  line-height: 1.2; /* tighten text height */
  }

.content {
  display: none;
}

.gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%; /* ensures true vertical centering */
}


.arrow-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #ffea00;
  text-shadow: 0 0 4px #ffaa00;
  transition: opacity 0.2s;
    margin-right: 40px;
  margin-bottom: 50px;
}
.arrow-btn:disabled {
  opacity: 0.3;
    margin-right: 40px;
  margin-bottom: 50px;
}

.gallery-grid {
  display: flex;
  justify-content: center; /* center horizontally */
  align-items: center;     /* center vertically */
  gap: 10px;
  margin-right: 40px;
  margin-bottom: 50px;
}


.gallery-grid .item {
  background: rgba(0, 0, 0, 0.4);
  color: #ffea00;
  font-family: 'crtfont', monospace;
  text-transform: uppercase;
  width: 150px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  overflow-wrap: normal;
  
}
.gallery-grid .item img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid #ffea00;
}
.gallery-grid .item span {
  font-size: 0.9rem;
  padding: 4px 0;
}
.full .detail-text {
  transform: translateX(-20px);
  line-height: 2;
overflow-y: scroll;
width: 600px
}

.full .detail-text {
  display: block;
  transform: translateX(-20px);
  font-size: 16px;
  line-height: 2;
  overflow-y: scroll;
  width: 600px;
  height: 400px;
  background-color: rgba(0, 0, 0, 0.75);
}

/* Scrollbar base */
.full .detail-text::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

/* Track (background behind the thumb) */
.full .detail-text::-webkit-scrollbar-track {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAFElEQVQIW2M4fPz0////GYAYyAIASnoKpV3w4kgAAAAASUVORK5CYII=");
  image-rendering: pixelated;
  filter: grayscale(0%) brightness(1.5);
  background-color: #c9a800;
}

/* Track active */
.full .detail-text::-webkit-scrollbar-track:active {
  background-color: #c9a800;
}

/* Scrollbar thumb (the draggable part) */
.full .detail-text::-webkit-scrollbar-thumb {
  border-top: 1px solid #ffee75;
  border-left: 1px solid #ffee75;
  border-right: 1px solid #b58c00;
  border-bottom: 1px solid #b58c00;
  box-shadow: inset 1px 1px 0 0 #fff9d1, inset -1px -1px 0 0 #c9a800;
  background-color: #ffe44d;
  z-index: 1;
}

/* Corner area */
.full .detail-text::-webkit-scrollbar-corner {
  background-color: #ffe44d;
}

/* Resizer */
.full .detail-text::-webkit-resizer {
  width: 16px;
  height: 16px;
  background-color: #ffe44d;
  image-rendering: pixelated;
}

/* Scrollbar buttons (arrows) */
.full .detail-text::-webkit-scrollbar-button {
  border-top: 1px solid #ffee75;
  border-left: 1px solid #ffee75;
  border-right: 1px solid #b58c00;
  border-bottom: 1px solid #b58c00;
  box-shadow: inset 1px 1px 0 0 #fff9d1, inset -1px -1px 0 0 #c9a800;
  display: block;
  width: 16px;
  height: 16px;
  background-color: #ffe44d;
  image-rendering: pixelated;
  background-repeat: no-repeat;
  background-position: center center;
}

/* Button active press effect */
.full .detail-text::-webkit-scrollbar-button:active {
  background-position: 2px 2px;
  background-color: #ffd000;
}

/* Button arrows */
.full .detail-text::-webkit-scrollbar-button:horizontal:decrement {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAQAAAD8fJRsAAAAHklEQVQY02NgoBT8xyX8H5fwf1zCpOjAYwceV1EEAAO2D/HsQ4vsAAAAAElFTkSuQmCC");
}

.full .detail-text::-webkit-scrollbar-button:horizontal:increment {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAQAAAD8fJRsAAAAHUlEQVQY02NgIB/8xy3xH7fEf9wS/0nUQZqrKAYAK44P8ZRmzLQAAAAASUVORK5CYII=");
}

.full .detail-text::-webkit-scrollbar-button:vertical:decrement {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAGklEQVR4AWMYxuA/SYphmETFhDX9x4mHGQAAcL4P8dQiMq8AAAAASUVORK5CYII=");
}

.full .detail-text::-webkit-scrollbar-button:vertical:increment {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAQAAAD8fJRsAAAAF0lEQVQY02NgoBf4jwJxSOHQhcNAOgMAWWAP8Rv2U3UAAAAASUVORK5CYII=");
}

/* Hide duplicate ends */
.full .detail-text::-webkit-scrollbar-button:horizontal:increment:start,
.full .detail-text::-webkit-scrollbar-button:horizontal:decrement:end,
.full .detail-text::-webkit-scrollbar-button:vertical:increment:start,
.full .detail-text::-webkit-scrollbar-button:vertical:decrement:end {
  display: none;
}

/* Active button border */
::-webkit-scrollbar-button:active {
  border-color: #b58c00;
  box-shadow: none;
}


/* 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/tv.png"] {
  pointer-events: none;
}

a:hover, a:focus {
	font-style: italic;
}
a:visited {
	color: var(--accent);
}