/* ########## MAIN CODE ########## */
/* start light mode styling */
	:root {
		--text: #F2F6DF;
		--border: #EFBC9B;
		--accent: #CF5C36;
		--bg: #464D77;
		--gradientBottom: rgba(22, 29, 74, 0.0); 
		--gradientTop: rgba(22, 29, 74, 0.0);
	}
/* end light mode styling */

/* start dark mode styling */
	@media (prefers-color-scheme: dark) {
		:root {
			--text: #F2F6DF;
			--border: #EFBC9B;
			--accent: #CF5C36;
			--bg: #464D77;
			/* --gradientBottom: #f1c89f;
			--gradientTop: #F2DBA6; */
			--gradientBottom: rgba(22, 29, 74, 0.0); 
			--gradientTop: rgba(22, 29, 74, 0.0);
		}
		/* header {
			background: url('IMG_9382.jpeg');
		} */
	}
/* end dark mode styling */

* { 
	box-sizing: border-box;
}
body {
	padding: 10px;
	/* font-family: 'MS PGothic', sans-serif; */
	font-family: 'DejaVu Sans Mono', monospace;
	color: var(--text);
	font-size: .9rem;

	background-image: 
		linear-gradient(
      rgba(22, 29, 74, 0.4), 
      rgba(22, 29, 74, 0.4)),
		url(images/rocky_icy_worlds_bayer2x2_crop.png);
	background-size: 100% auto;
	background-repeat: repeat-y;
	background-position: center top;
	min-height: 100vh;
	cursor: url('images/mars_cursor.png'), auto;
	a {
		cursor: url('images/pluto_cursor.png'), auto;
	}
}

.container {
	max-width: 70rem;
	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;

	background-color: rgba(30, 36, 76, 0.8);
}

/* these control the column widths */
.small { flex: 1 1 9%; }
.large { flex: 1 1 69%; } /* originally 82% */
.full { flex: 1 1 100%; }
.half { flex: 1 1 49%; }
.butt { flex: 1 1 100%; }

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.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(--text);
	text-align: right;
}

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;
	border: 2px dotted #aec0e5;
	padding: 2px 7px;
	text-decoration: none;
}
nav a:link {
	color: var(--text);
}
nav a:link, nav a:visited { 
	color: var(--text);
}
nav a:hover, nav a:focus {
	/* background: var(--accent); */
	color: rgb(22, 29, 74);
	background: linear-gradient(to right, var(--accent), var(--border));
	/* 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;
}

div.butt {
	display: flex;
	justify-content: center;
  	align-items: center;
	margin: 5px auto;
	/* border: 2px ridge var(--border); */
	/* border-radius: 5px; */
	gap: 10px;
	flex-wrap: wrap;
}

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.9rem; /* 0.8rem; */
	/* color: #aec0e5; */
}
footer a { 
	text-decoration: none;
}

h1, h2, h3, h4, h5, h6, p  { 
	margin: 10px;
	line-height: 1.2;
}
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;
}

/* prevents overflow on smaller screens */
img { max-width: 100%; }
pre { overflow-x: auto; }

a:link { color: #aec0e5; }

a:hover, a:focus {
	font-style: italic;
}
a:visited {
	color: var(--accent);
}



/* ########## FOR MOBILE ########## */
@media (max-width: 900px) { /* changes how the background is tiled for mobile devices */
  body {      
	background-image: 
		linear-gradient(
    	rgba(22, 29, 74, 0.4), 
    	rgba(22, 29, 74, 0.4)),
		url('images/rocky_icy_worlds_bayer2x2_crop.png');
	background-size: 250% auto;
	background-repeat: repeat-y;
	background-position: center top;
	min-height: 100vh;
  }
}

@media (max-width: 768px) { /* causes pages with multiple navitagtion panels (eg, personal) to display panels row by row */
	.small { flex: 1 1 69%; }
}



/* ########## OTHER ADDITIONS ########## */
p {
  line-height: 1.2rem;  /*  within paragraph */ 
  margin-bottom: 0.8rem; /* between paragraphs */
  }

.custom-header-font {
  font-family: 'Courier New', Courier, monospace;
}

.rock-font {
  font-family: 'Chalkduster', fantasy;
}

.shadow-text{
	text-shadow: 1px 1px 5px #000000;   
}

.image {
		border: 0;
		display: inline-block;
		position: relative;
	}

		.image img {
			border-radius: 5px;
			border: 2px solid;
			border-color: var(--border);
			display: block;
		}

		.image.left, .image.right {
			max-width: 30%;
		}

			.image.left img, .image.right img {
				width: 100%;
			}

		.image.left {
			float: left;
			padding: 0 1.0em 0.75em 0.75em;
			top: 0.5em;
		}

		.image.right {
			float: right;
			padding: 0 0.75em 0.75em 1em;
			top: 0.25em;
		}

		.image.fit {
			display: block;
			margin: 0 0 2em 0;
			width: 100%;
		}

			.image.fit img {
				width: 100%;
			}

		.image.main {
			display: block;
			margin: 0 0 3em 0;
			width: 100%;
		}

			.image.main img {
				width: 100%;
			}



/* ########## CURRENTLY UNUSED CODE ########## */
/* photopile stuff! */
.photopile { 
  display: flex; 
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}
.photopile figure { 
  display: inline-block;
  max-width: 40%;
  background: white;
  box-shadow: 1px 4px 5px rgba(0,0,0,0.55);
  transform: rotate(2deg);
  margin: 0 -25px;
}
.photopile figure img {
  max-width: calc(100% - 2rem);
  margin: 1rem 1rem 0 1rem;
  border: 2px rgb(0,0,0,0.55) inset;
}
.photopile figcaption {
  text-align: center;
  margin: 0.5rem 1rem 1rem 1rem;
  font-size: 1rem;
  color: black;
}
.photopile figure:hover { 
  z-index: 3;
}
.photopile figure:nth-child(2n) { 
  transform: rotate(-10deg);
}
.photopile figure:nth-child(3n) {
  transform: rotate(5deg);
}
.photopile figure:nth-child(4n) { 
  transform: rotate(4deg);
}
.photopile figure:nth-child(5n) { 
  transform: rotate(-2deg);
}
.photopile figure:nth-child(6n) {
  transform: rotate(-7deg);
}

/* plus the html code to import actually use it:
<div class="photopile">
  <figure>
    <img src="/" alt="">
    <figcaption>caption 1</figcaption>
  </figure>
  <figure>
    <img src="" alt="">
    <figcaption>caption 2</figcaption>
  </figure>
  <figure>
    <img src="" alt="">
    <figcaption>caption 3</figcaption>
  </figure>
</div> */
