/*****************
*** Main Stuff ***
*****************/

html {
	height: 100%;
}

body {
	min-height: 100%;
	margin: 0px;
	background-color: #c5d1ad;
	display: flex;
	flex-direction: column;
	color: black;
}

/*************
*** Header ***
*************/

header {
	display: inline;
	box-shadow: 0px 4px 8px #000;
	/* Background Image */
	background: linear-gradient(to bottom right, #6495ED, #8A2BE2);
	background-image: url("banner.jpg");
	background-repeat: no-repeat;
	background-size: cover;
	/* Fancy Gradient Border */
	border-image: linear-gradient(to right, #1e6a23 0%, #3cd146 100%);
	border-width: 0 0 5px;
	border-style: solid;
	border-image-slice: 1;
}

header h1 {
	text-align: center;
	margin-top: 3rem;
	margin-bottom: 3rem;
}

header h1 a {
	text-decoration: none;
	font-size: 3.2rem;
	color: #1e6a23;
}

/*************
*** Navbar ***
*************/

nav, footer {
	display: flex;
	text-align: center;
	justify-content: center;
	background-color: #97d18b;
	box-shadow: 0px 2px 8px #000;
	padding: 5px 0 5px 0;
}

nav a {
	font-size: 1.25rem;
	color: #70583d;
	text-decoration: none;
	font-weight: bold;
	padding: 10px;
	border-right: 1px solid #444;
	padding-left: 40px;
	padding-right: 40px;
}

nav a:last-child {
	border-right: none;
}

#selected {
	color: #154a19;
	font-weight: bold;
}

/****************
*** Page Area ***
****************/

main {
	margin: 20px 20vh; /* Top/bottom, left/right */
	background-color: #97d18b;
	box-shadow: 0px 2px 8px #000;
	padding-left: 30px;
	padding-right: 30px;
	padding-top: 10px;
	padding-bottom: 30px;
	line-height: 1.5rem;
	/* Fancy Gradient Border */
	border-image: linear-gradient(to right, #1e6a23 0%, #3cd146 100%);
	border-width: 0.5vh;
	border-style: solid;
	border-image-slice: 1;
}

main h2 {
	font-size: 2rem;
	color: #154a19;
	font-weight: bold;
}

main p {
	font-size: 1rem;
}

main a {
	color: #70583d;
	text-decoration: none;
}

/* List styling for Blog & Projects pages */

/* Remove default list styling */
.postList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column; /* Stacks items vertically */
  gap: 20px; /* Space between each blog entry */
}

/* Flex container for Icon + Text */
.postList li {
  display: flex;
  align-items: center; /* Aligns icon to the middle of the text */
  gap: 15px; /* Space between icon and text */
}

/* Icon styling */
.postList img {
  width: 60px; /* Fixed width for consistency */
  height: 60px;
  flex-shrink: 0; /* Prevents icon from shrinking if text is long */
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  background-color: #ddd;
  border-radius: 20%;
}

/* Text container */
.postText {
  display: flex;
  flex-direction: column;
  gap: 5px; /* Space between title and description */
}

.postText a {
  margin: 0;
  font-weight: bold;
  font-size: 1.3rem;
  color: #154a19;
  font-weight: bold;
  text-decoration: none;
}

.postText a:hover {
	text-decoration: underline;
}

.postText p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

/*************
*** Footer ***
*************/

footer {
	margin-top: auto;
	box-shadow: 0px -2px 8px #000;
	align-items: center;
}

footer p {
	padding-right: 10px;
	border-right: 1px solid #444;
}

footer a {
	color: #70583d;
	text-decoration: none;
}

footer a svg {
	margin-left: 15px;
	height: 25px;
}

footer a #code {
	margin-left: 10px;
}

/*****************
*** Animations ***
*****************/

nav a {
	transition: text-decoration .4s ease-in-out;
}

nav a:hover,
main a:hover,
footer a:hover {
	text-decoration: underline;
}

footer svg:hover {
	fill: #ddd;
}

/******************************
*** Screen Size Adjustments ***
******************************/

/* Will apply to viewports <= the max width */

@media (max-width: 1000px) {
	main {
		margin: 20px 20px;
	}
}

/**********************
*** Fonts & Symbols ***
**********************/

@font-face {
	font-family: 'iconSet';
	src: url('/res/icons/iconSet.ttf');
}

.icon {
	font-family: 'iconSet';
	font-size: 1.3rem;
}

/* Unicode notation for the span's symbol */
.calendar::before {
	content: "\e800";
}

.hourglass::before {
	content: "\f251";
}