@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Rasa:ital,wght@0,300..700;1,300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Delius+Unicase:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mogra&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

a {
	text-decoration: none;
	color: black;
}

body {
  display: flex; /* Enable Flexbox on the entire page */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  background-color: #faf0e6 /* Optional: Add a background color for contrast */
}

p {
	font-family:  "Montserrat", sans-serif ;
  font-size: 14px; /* Optional: Style your text */
  line-height: 24px; /* Better readability with line spacing */
}

h2 {
	font-family:  "Montserrat", sans-serif ;
}

h3 {
	font-family:  "Montserrat", sans-serif ;
}

.job ul {
	font-family:  "Montserrat", sans-serif ;
  list-style-type: disc; /* Adds bullet points to the list */
  margin: 10px 0 10px 20px; /* Adds space around the list and indents it */
}

li {
	font-family:  "Montserrat", sans-serif ;
	font-size: 14px; /* Optional: Style your text */
	line-height:24px;
}

.fade {
	opacity: 1;
  transition: opacity 0.3s;
}

.fade:hover {
  opacity: 0.25;
}

.container {
	display: flex; /* or inline-flex */
	position: relative;
}

.flex-between {
	justify-content: space-between;
	margin-bottom: 0%;
}

.flex-center {
	justify-content: space-around;
}

#footer {
	font-family:  "Montserrat", sans-serif;
	font-size: 14px;
	text-align: center;
	align-items: center;
	margin:auto;
}

.home-link {
	font-size: 20px;
}

.header-small {
	font-size: 18px;
	font-weight:normal;
}

.header-link {
	font-family:  "Montserrat", sans-serif;
	text-decoration: none;
	color: black;
}

.horizontal-flex {
	display: flex;
	flex-direction: row;
	padding-left:20px;
	gap:20px;
}

.icon {
	width: 25px;
	height: 25px;
	padding:10px;
}

.icon-container {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	margin:auto;
}

.indented {
	text-indent:40px;
}

.menu-toggle {
  display: none;
}

.nav-margin {
	padding-right: 40px;
}

.outer-margins {
	display:flex;
	margin-top:2%;
	margin-left: 2%;
	margin-right: 2%;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center; 
	padding-left:0;
}

.profile {
	width: 150px;
	height: auto;
	flex-shrink: 0;
}

.sidebar {
	width: 43.5%;
}

.vertical-flex {
	display: flex;
	flex-direction: column;
	align-content: space-around;
}


.image-container {
  /*text-align: center; /* Centers the image and caption */
	display: inline-block; /* Ensures the container wraps around the content */
	width: 43.5%;
}

img {
	width: 225px;
}

.caption {
  font-size: 0.9em; /* Smaller font size for the caption */
  color: #555; /* Lighter text color */
  margin-top: 5px; /* Adds space between the image and caption */
}

.flex-container {
  display: flex; /* Enable Flexbox */
  align-items: center; /* Align items to the center of the container */
  gap: 20px; /* Space between the image and text */
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top:1em;
  margin-bottom:2.5%;
  width:43.5%;
}

.flex-image {
	display:flex;
  flex-direction: column;
  align-items:center;
  padding-left: 15px;
}

section {
  margin-bottom: 20px;
}

ul {
  list-style-type: none;
  font-family:  "Montserrat", sans-serif ;
}

.underline {
	text-decoration:underline;
}


@media (max-width: 800px) {
  .flex-container {
    flex-direction: column; /* Stacks items vertically */
    width: 100%;

  }

  .horizontal-flex {
  	flex-direction:column;
  	justify-content: center;
  	padding-right:20px; /* Even out both sides */

  }

  .indented {
		text-indent:0px;
	}

	.job ul {
  	list-style-position: inside; 
  	padding-left: 0;
	}

  .image-container {
  	display: flex;
    width: 100%;
    margin-top:1em;
    order: 1;
    justify-content: center;
  }

  .vertical-flex {
		display: flex;
		flex-direction: column;
		align-content: space-around;
		width: 85%;
	}
	
	.bio {
		order: 2;
	}

	.nav-margin { /* Make nav horizontal on mobile */
		display: flex;
		flex-direction: row;
		gap:20px;
		justify-content: space-between;
	}


}

 @media (max-width: 484px) {
  .nav-margin {
    display: none;
  }

  .nav-margin.active {
    display: block;
    text-align: center;

  }

  .nav-margin.active .header-link {
  	font-size: 18px;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition-duration: 0.4s;
    padding: 10px;
  }
}