/* start light mode styling */
	:root {
		--text: darkslategrey;
		--border: lightgrey;
		--accent: teal;
		--bg: #dce3e1;
		--gradientTop: white;
		--gradientBottom: rgb(240, 248, 255, .8);
	}
	header {
		background: url('banner.webp');
	}
/* end light mode styling */


/* This only applies to screens wider than 1024px (PC/Laptops) */
@media screen and (min-width: 1024px) {
  .comic-page {
    width: 80%; /* Adjust this to your preferred PC size */
	display: block;      /* Required to allow centering with margins */
    margin-left: auto;   /* Automatically calculates left space */
    margin-right: auto;  /* Automatically calculates right space */
    max-width: 600px; /* Optional: sets a hard limit so it doesn't get too big */
  }
}


@font-face {
    font-family: 'Pixel Operator';
    src: url('font.ttf');
}
* { 
	box-sizing: border-box;
}
body {
	padding: 10px;
	font-family: 'Pixel Operator', sans-serif;
	font-size: 18px;
	color: var(--text);


	/* page background pattern */
	background-color: var(--gradientTop);
	background-image: url('https://shye.nekoweb.org/graphics_bg/star3.gif');
	background-position: 0 0, 0 0, 10px 18px, 10px 18px, 0 0, 10px 18px;
}


.container {
	max-width: 55rem;
	margin: 5vw auto 12px auto;
	border: 6px ridge var(--border);
	outline: 3px solid var(--gradientTop);
	outline-offset: 4px;
	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%; }


header {
	background-size: cover;
	background-position: center;
	width: 100%;
	height: 120px; /* change banner height here*/
	border: 2px ridge var(--border);
	border-radius: 5px;
	position: relative;
}
header span {
	font-size: 2.8rem;
	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: url('***light mode banner image***');
}

/* optional button styling like in the preview */
div.small > img {
	display: block;
	margin: 5px auto;
	border:2px ridge var(--border);
	border-radius: 5px;
}


section {
	border: 2px ridge var(--border);
	border-radius: 5px;
	background: linear-gradient(var(--gradientTop),var(--gradientBottom));
	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: 5px;
	line-height: 1.2;
}
h1 { 
	font-size: 1.8rem;
	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;
}

/* prevents overflow on smaller screens */
img { max-width: 100%; }
pre { overflow-x: auto; }


a:hover, a:focus {
	font-style: italic;
}
a:visited {
	color: var(--accent);
}

.alien-overlay {
    position: absolute;
    bottom: -30px; /* Adjust this number to move the paws lower or higher */
    left: 0px;   /* Moves the alien to the right side of the banner */
    width: 150px;  /* Adjust size as needed */
    z-index: 100;  /* Ensures it stays ABOVE the nav bar */
}

/* Ensure the header doesn't cut off the overlapping paws */
header {
    overflow: visible !important;
}
.alien-overlay {
    cursor: pointer; /* Changes mouse to a hand so people know it's clickable */
    transition: transform 0.2s ease-in-out; /* Makes the growth smooth */
}

.alien-overlay:hover {
    transform: scale(1.15); /* Grows the alien by 15% */
}

.alien-overlay:active {
    transform: none;
}

/* This applies to ALL devices by default (Mobile-first) */
img {
  width: 100%;
  height: auto;
}

.dialogue {
    text-align: left;
    width: fit-content;
    margin: 20px auto 0 auto;
    padding: 8px 16px;
    border: 1px solid var(--border);
	font-size: 1.4rem;
}
.line {
    display: block;
    margin-bottom: 4px;
}
.char-zhanli { color: #C7AB6F; }
.char-shiloh { color: #5F7A46; }