body {
	margin: 0;
	padding: 0;
	font-family: "Alegreya Sans", 'Trebuchet MS', 'Myriad Pro Regular', MyriadPro, 'Myriad Pro', Helvetica, Arial, sans-serif;
	width: 100%;
	background-color: rgb(30,30,30);
	color-scheme: dark;	
	}

* { margin: 0; }

img { width: 100%; 
	vertical-align: bottom;
}

ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.container video {
	outline: none;
	clip-path: inset(0px);
	width: 100%;
}


.container {
	max-width: 1200px;
	/* max-width: 1280px; */
	/* width: 1024px; */
	margin-left: auto;
	margin-right: auto;
	/* display: flex;	 */
	padding-top: 0;	
}

/* override to maincontent to make it work */

/* Fix UX Design Bits */

#main-content ul.uxbits {
	grid-template-columns: repeat(2, 1fr);
}

/* undo the centered text-column rule for #main-content li below,
   otherwise Safari shrinks tiles whose SVG has no fixed width */
#main-content ul.uxbits li {
	margin: 0;
	max-width: none;
}

@media (min-width: 560px) {
	#main-content ul.uxbits { 
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {  
	#main-content ul.uxbits { 
		grid-template-columns: repeat(3, 1fr);
	}

}


/* Fix Resume Related */

.resume {
	display: block;
}

@media (min-width: 960px) {  	
	.resume {
		display: grid;
		grid-template-columns: 60% 40%;
	}
}






#main-content {
	display: none;
}

.hero-article {
	background-color: rgb(65,91,31);
	height: 100vh;
	display: flex;
	align-items: center;
}

#main-content .heroimage {
	width: 100%;
	height: auto;
	max-height: 100vh;
	object-fit: contain;
}


#main-content article {
	/* padding-bottom: 48px; */
}

#main-content article p:last-child {
	padding-bottom: 48px; 
}

/* Fade-in animation for main-content swaps */
#main-content {
  opacity: 1;
  transition: opacity 0.4s ease;
}

#main-content.fade-out {
  opacity: 0;
}

#main-content h1, #main-content h2, #main-content h3, #main-content p, #main-content li {
	padding-left: 32px;
	padding-right: 32px;
	max-width: 704px;
	margin-left: auto;
	margin-right: auto;
}

#main-content h1 {
	font-weight: 300;
	font-size: 40px;
	padding-top: 8px;
	padding-bottom: 4px;
}

#main-content h3 {
	margin-top: -.25em;
	padding-bottom: 1em;
	font-weight: 300;
	font-size: 1.2em;	
}

#main-content h2 {
	font-weight: 400;
	font-size: 24px;
	padding-top: 24px;
	padding-bottom: 8px;	
}

#main-content p {
	padding-bottom: 8px;
	line-height: 1.3;	
}



/* left side nav */

nav {
	background-color: rgb(40,40,40);
	height: 100%;
	padding-top: 56px;
	}
		
.nav-item, .nav-malami {
	  display: flex;
	  align-items: center;
	  height: 48px;
	  padding: 0 8px;
	  gap: 8px;
	  text-decoration: none;
	  color: white;
	  margin-left: 8px;
	  margin-right: 16px;
	}


.malami {
		height: 48px;
		background-color: rgba(40,40,40,.95);	
		z-index: 100;
		position: fixed;
		top:0;
		width: 100%;
		/* display: inline-flex; */
		/* margin-top: 4px; */
	}


	.nav-icon {
	  width: 32px;
	  height: 32px;
	  font-size: 20px;          /* for emoji; remove if using SVG */
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  flex-shrink: 0;
	  /* background-color: rgb(220,220,220); */
	  border-radius: 6px;
	}

	.nav-icon img {
		border-radius: 5px;
	}
	
	.nav-text {
	  display: flex;
	  flex-direction: column;
	  justify-content: center;
	  line-height: 1.1;
	}
	
	.nav-title {
	  font-size: 15px;
	  font-weight: 500;
	  color: rgb(240,240,240);
	}
	
	.nav-description {
	  font-size: 13px;
	  color: rgb(220,220,220);
	}
	
	/* Optional hover refinement */
	.nav-item:hover, .nav-malami:hover {
	  background: rgb(20, 20, 20);
	  border-radius: 8px;
	}
	
	.nav-item.current {
	  background-color:rgba(0,0,0,.6); /* or any highlight you want */
	  border-radius: 8px;
	}


/* Everything that happens to nav and main content with resize  */



.mobile-hero {
	display: block;
	width: 100%;
	height: auto;
}

@media (min-width: 704px) {
	nav {
		position: fixed;
		top:0px;
		width: 320px;
		z-index: 5;
		left: auto;
		overflow-y: scroll;
		overflow-x: hidden;
		display: block;
		height: calc(100% - 56px);
		}	
	
	.malami {
		width: 320px;
	}
	
	#main-content {
		display: block;
		background-color: white;
		min-height: 100vh;
		width: calc(100% - 320px);
		transform: translateX(320px);
	}

	.mobile-hero {
		display: none;
	}

}
		



/* Blurb about Mustafa */

.mustafa {
	padding-left: 16px;
	padding-right: 16px;
	color: rgb(240,240,240);
	padding-bottom: 12px;
}

.mustafa h1 {
	font-weight: 300;
	font-size: 40px;
}

.mustafa p {
	padding-bottom: 4px;
}

.mustafa p a {
	color: white;
	border-bottom: dotted;
	border-bottom-width: thin;
	border-bottom-color: rgba(255,255,255,.4);	
	text-decoration: none;
}

.mustafa p a:hover {
	text-decoration: none;
	border-bottom: solid;
	border-bottom-width: thin;
	border-bottom-color: rgba(90,140,20,1);
	color: rgba(90,140,20,1);
}



/* Begin filter panel */

#filterPanel {
  /* margin-bottom: 1rem; */
  padding-left: 16px;
  padding-right: 16px;
  margin-left: auto;
  margin-right: auto;
}

#filterButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding-top: 4px;
  padding-bottom: 8px;
}

#filterButtons button {
  font-size: .75rem;
  padding: 0.25rem .5rem;
  border: 1px solid rgb(70,70,70);
  color: rgb(160,160,160);
  background-color: rgb(60,60,60);
  cursor: pointer;
  border-radius: 8px;
  text-transform: capitalize;
}

#filterButtons button:hover {	
	 background-color: rgb(90,140,20);
	 border-color: rgb(90,140,20);
	 color: white;
}

#filterButtons button.active {
  background-color: rgb(90,140,20);
  border-color: rgb(90,140,20);
  color: white;
}






/* Section headers in project list */

.projects .section-header {
  pointer-events: none;
  padding-top: 20px;
  padding-left: 16px;
  padding-bottom: 2px;
}

.projects .section-header:first-child {
  padding-top: 6px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgb(95,95,95);
}



/* Social icons */
	
	.social {
		padding-bottom: 32px;
		padding-top: 24px;
		/* margin-left: auto; */
		/* margin-right: auto; */
	}
	
	.social ul {
		list-style-type: none;
		margin: 0;
		padding: 0;
		border-bottom: none;
		line-height: 8px;	
		margin-left: auto;
		margin-right: auto;
		display: flex;
		flex-direction: row;
		width: 108px;
	}
	
	.social ul li {
		/* width: 24px; */
		padding: 0;
		margin: 0;
		/* padding-left: 4px; */
		/* padding-right: 4px; */
		/* margin-left: 2px; */
		/* margin-right: 2px; */
	}
	
	.social ul li a:link, .social ul li a:visited {
		border-radius: 16px;
		width: 24px;
		height: 24px;
		background-color: black;
		padding-top: 4px;
		padding-bottom: 4px;
		padding-left: 4px;
		padding-right: 4px;
		display: block;
		border-bottom: none;
		line-height: 24px;
		margin-left: 2px;
		margin-right: 2px;
		margin-top: 2px;
		margin-bottom: 2px;
	}
	
	.social ul li a:hover {
		background-color: rgb(90,140,20);		
	}
	
	.social img {
		width: 24px;
		height: 24px;
	}
	
	
	
	/* end social icons */
	
	 

