/* Project Card styles */

.project-card {
    position: relative;
    width: 45%;
    height: 250px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-out;
    margin: 20px;
}

.project-card:hover {
  transform: scale(1.0);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-details {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 90%;
  padding: 18px;
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.project-card:hover .project-details {
  transform: translateY(0);
}

img.project-image {
  max-width: 100%;
  max-height: 100%;
}

.landscape {
  height: auto;
}

.potrait {
  height: fit-content;
}

/* Side bar stylings */

i#menu_btn {
  cursor: pointer;
  color: #ccc;
}

i#menu_btn:hover {
  color: white;
}

ul#navigation {
	padding: 0;
	margin: 0;
}

ul#navigation > li {
	display: block;
	float: none;
	clear: both;
	border-top: 1px solid #373737;
	border-bottom: 1px solid #2B2B2B;
	cursor: pointer;
	background-color: rgba(48, 48, 48, 0.6);
	border-top: 1px solid rgba(55, 55, 55, 0.4);
 	border-bottom: 1px solid rgba(43, 43, 43, 0.4);
}

ul#navigation > li > a {
	color: #ccc;
	font-size: 14px;
}

ul#navigation li:hover, ul#navigation li:focus {
	background-color: rgba(54, 54, 54, 0.1);
}

ul#navigation li:hover a, ul#navigation li:focus a {
	color: #f7f7f7;
}

ul#navigation li .text {
	padding-left: 5%;
	margin-left: 50px;
	line-height: 45px;

	-webkit-box-shadow: -3px 0 5px -4px #000;
	box-shadow: -3px 0 5px -4px #000;
}

ul#navigation li .fa {
	float: left;
	line-height: 45px;
	width: 50px;
	text-align: center;
	font-size: 27px;
}

/* The side navigation menu (taken from https://www.w3schools.com/howto/howto_js_sidenav.asp)*/
.sidenav {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 1; /* Stay on top */
  top: 0; /* Stay at the top */
  left: 0;
  background-color: #111; 
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 60px; /* Place content 60px from the top */
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

/* The navigation menu links */
.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}

/* Profile stylings */

.profile-image-container {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-image {
  border-radius: 10%;
  overflow: hidden;
  width: 300px;
}


/* Rest of the Stylings */

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

header {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1em 0;
}

section.outer {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

h2, h3 {
  color: #333;
}

h1 {
  border-bottom: 2px solid #333;
  color: #fff
}

h2 {
  color: #333;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  margin-bottom: 10px;
}

.education, .experience {
  margin-bottom: 20px;
}

.projects {
  display: flex;
  flex: row;
}

img.logo {
  width: 30px; /* Adjust the size as needed */
  height: auto;
  margin: 5px; /* Adjust the spacing as needed */
}

.parent {
  text-align: center;
}

.child {
  display: inline-block;  
  margin: 2px;
}