@import url('https://fonts.googleapis.com/css2?family=Libertinus+Serif+Display&display=swap');
/* importing font from Google Fonts */

/* Setting custom font for all */
*{
	font-family: "Libertinus Serif Display", system-ui;
	font-weight: 400;
  	font-style: normal;
}

/* Master div container. Four rows of div follow */
.container {
	display: flex;
/* Usage of vh and vw ensures scaling for mobile and screen resizing */
	height: 95vh;
	width: 95vw;
	flex-direction: column;
	text-align: center;
	row-gap: 0px;
}

/* Top div container holds title card content */
.top {
	display: flex;
	height: 20vh;
	align-items: center;
	justify-content: center;
	gap: 0;
	background-color: #4BC0FA;
	position: relative;
}

/* Example of reducing repetitive coding by utilizing ability to apply sheets to multiple classes*/
.topleft, .topmid, .topright {
	display: flex;
	height: 40px;
	justify-content: center;
	align-items: center;
}

/* Margin-right is used rather than flex because of limitation of CSS. Cannot use justify-self here with base CSS*/
.topleft {
	margin-right: auto;
	width: 100px;
}

/* Top and Left move the top left corner to where we want them. Then transform shifts the
 element to be perfectly centered on that top left point */
.topmid {
	position: absolute;
	width: 300px;
	top: 80%;
	left: 50%;
	transform: translate(-50%, -50%);	
	font-size: 30px;
}

.topright {
	width: 150px;
}

/* Example for drop down menu starts */

/* Second container underneath top holds the drop down bar */
.navbar {
	display: flex;
	justify-content: flex-end;
	width: 95vw;
	height: 5vh;
	background-color:#4BC0FA;
	margin-bottom: 20px;
	
}

/* Change the style of the links ONLY in navbar */
.navbar  a {
	color: black;
	text-decoration: none;
	font-size: 20px;
}

/* Pretty up the navbar */
.navbar ul, li {
  list-style: none;
  -webkit-padding-start: 0;
}

/* Exact code from first example in https://wdrfree.com/261/dropdown-menu-in-css */
.nav-item-dropdown {
  margin-right: 30px;
  
  &:hover > .dropdown-menu {
    display: block;
    opacity: 1;
  }
}	

.dropdown-trigger {
  position: relative;
  color: black;
    
  &:focus + .dropdown-menu {
    display: block;
    opacity: 1;
  }
  
  &::after {
    content: " ";
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    transform: rotate(90deg);
    top: -5px;
    right: -15px;
  }
}

.dropdown-menu {
  background-color: #4B88FA;
  display: inline-block;
  text-align: right;
  position: relative;
  top: -40px;

  display: none;
  opacity: 0;
  width: 160px;
}

.dropdown-menu-item {
  cursor: pointer;
  padding: 1em;
  text-align: center;
  
  &:hover {
    background-color: darken(#4B88FA;, 5%);
  }
}
/* End reused code from https://wdrfree.com/261/dropdown-menu-in-css */

/* Start of content. Uses flex and wrap to make contained div's wrap to another line when resized */
.middle {
	display: flex;
	justify-content: center;
	align-items: center;
	align-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

/* By setting all projects in HTML with the same class they're all treated the same reducing redundant code*/

.projects {
	display: flex;
	font-size: 20px;
	height: 150px;
	width: 150px;
	justify-content: center; 
	align-items: center;
	border-radius: 30%;
	color: #FFFFFF;
	background-color: #4B88FA;
	padding: 10px;
}

/* hides everything with this class. If using multiple hidden would need to make more classes per each function */
.hide {
	display: none;
}

/* Set the div details for when any project is moused over */
.projects:hover {
	background-color: #4BF7FA;
	height: 60vh;
	width: 75vw;
	position: absolute;
	top: 57%;
	left: 50%;
	transform: translate(-50%,-50%);
	font-size: 18px;	
	color:black;
}

/* Unhide and Display the additional details while hover */

.projects:hover .hide {
	display: block;
	font-size: 18px;
}

.projects:hover .hidediv {
	margin-left: 10px;
}

/* end of content */


/* Bottom footer content */
.bottom {
	position: absolute;
	bottom:0px;
	height: 10vh;
	width:95vw;
	
	display: flex;
	align-self: flex-end;
	justify-content: center;
	gap: 10px;
	background-color: #4BC0FA;
	padding-top: 10px;
	padding-left: 10px;
}

/* force  my email to farthest right */
.bottomright {
	margin-left: auto;
}

