/* Pearl Jones Personal Website Style file */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

/* this is the very top part with purple background border */
header {
  padding: 20px;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  background: rgb(121, 121, 171);
  color: #fff;
}
/* where Pearl Jones, web developer title is */
header h1{
  display:inline-block;
  font-size:30px;
}

/* 
The nav bar - the 4 selections inline
About Me, Work, Contact Me, Resume
*/

header nav {
  padding-top: 15px;
  margin-right: 20px;
  float: right;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 15px;
}

header nav li {
  list-style-type: none;
  display: inline-block;
  margin-left: 25px;
}

header nav a {
  display: flex;
  color: white;
  text-align: justify;
  text-decoration:underline;
}

/* for the tag line */
p {
  margin-top: 40px;
  text-align: left;
  font-size: 20px;
}

/* the Main starts here */
Everything in main just wraps around
*/
main {
  flex-wrap: wrap;
}

/* where to put Pearl's photo */
#myphoto{
  height:200px;
  width: auto;
  margin-top: 20px;
  margin-left: 20px;
}

#lefttitleme h2,
#lefttitlepart h2, 
#lefttitlecontact h2 {
  background-color:rgb(121, 121, 171) ;
flex-basis: 15%;
}

/* this prints the paragraph on Pearl Jones */
#lefttitleme p {
  flex-basis:85%
}

/* the containcer fr the 3 sections */
.part {
  margin-top: 0px;
  flex: 2;
  background-color: #fff;
  padding: 10px;
  display: flex;
  justify-content: left;
  align-items: center;
}

/* 
Flex default is 0,0, at 400 pixes
flex: flexgrow, flex shrink, flex basis
does not grow, not shrink, and sets to 400
*/
.card {
  border-style: solid;
  border-width: 1px;
  border-radius: 10px;
  padding: 10px;
  flex: 1 1 200px;
  height:300px;
}

.card img {
  width: 100%;
  height: 90%;
}

/* this is for the links in the main shows the projects */
a {
  list-style-type: none;
  display: inline-block;
  margin-left: 50px; 
  display: flex;
  text-align: justify;
  text-decoration:underline;
  color: blueviolet;

}

footer {
  padding: 5px;
  text-align: center;
  background: rgb(121, 121, 171);
  color: #fff;
}

/* 
What does the flex-direction property define?
What is it doing here? 
it stacks as a column 
direction of the main axis, sets the direction to column
top to bottom when the screen is smaller than 768px
*/
@media screen and (max-width: 768px) {
  main,
  nav {
    flex-direction: column;
  }
}
