* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  line-height: 1.5;
  background-color: rgba(222, 230, 240, 0.702);
}


h2,
h3,
h4,
h5,
h6 {
  margin: 15px;
}

p {
  margin: 25px;
  font-size: 18px;
}

/* navigation grid and avatar */
.grid {
  display: grid;
  /* height: 100%; */
  grid-template-columns: 1fr 1fr 1fr ;
  grid-template-rows: 1fr ;
  grid-template-areas: 
    "t-image space nav-title "
  ;
}

.space {
  grid-area: space;
}

.title-image {
  display: flex;
  grid-area: t-image;
  justify-content: center;
  align-items: center;
}

.title-image h1 {
  font-weight: bold;
  font-size: 28px;
}

.avatar {
  margin: 25px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

.nav-title {
  display: flex;
  grid-area: nav-title;
  justify-content: flex-end;
  align-items: center;
  margin-right: 46px;
  }

.nav-title p a {
  color: black ;
  cursor: pointer;
  text-decoration: none underline;
  font-size: 16px;
  font-weight: bold;
  
}

.nav-about:hover  {
  box-shadow: 0 4px 2px rgba(79, 165, 222, 0.9);
  transition: .3s ease-in-out;
}
.nav-work:hover  {
  box-shadow: 0 4px 2px rgba(79, 165, 222, 0.9);
  transition: .3s ease-in-out;
}
.nav-contact:hover  {
  box-shadow: 0 4px 2px rgba(79, 165, 222, 0.9);
  transition: .3s ease-in-out;
}

/* sub-heading */

.sub-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  background-color:rgba(81, 128, 204, 0.654);
  background-image: linear-gradient(
    rgba(232, 102, 236, 0.3) 0%,
    rgba(232, 102, 236, 0.6) 100%
  );
  margin-top: 30px;
  margin: 5 auto;
  border-radius: 5px;
}

/* about me section */

#about {
  margin-top: 50px;
  margin-bottom: 60px;
}

#aboutMe, #work-header, #contactMe{
  margin-left: 26px;
}
#aboutMe, #work-header, #contactMe {
  text-decoration: underline;
}

/* portfolio grid */

.grid-container {
  padding: 20px;
  display: grid;
  grid-template-rows: 200px 200px 200px;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
}

.grid-item {
  border-radius: 5px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin: 5px;
  cursor: pointer;
  display: grid;
  align-content: end;
  text-align: end;
}

/* CSS Cheatsheet */
.item-1 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

/* Horiseon */
.item-2 {
  grid-area: 1 / 3 / 3 / 4;
  /* z-index: 1; */
}

.heading {
  background-color: rgba(0, 0, 0, 0.593);
  padding: 15px;
  color: white;
  font-size: 18px;
  border-radius: 0 0 5px 5px;
  
}

#cheat-sheet {
  background-image: url("../images/CSS-Cheatsheet.png");
}

#horiseon {
  background-image: url("../images/Horiseon.png");
}

#study-guide {
  background-image: url("../images/Prework-studu-guide.png")
}

#coming-soon {
  background-image: url("../images/02-portfolio-3.jpg")
}

#cheat-sheet:hover  {
  opacity: 0.5;
  transition: all 0.5s ease-in-out;
}

#horiseon:hover  {
  opacity: 0.5;
  transition: all 0.5s ease-in-out;
}
#study-guide:hover  {
  opacity: 0.5;
  transition: all 0.5s ease-in-out;
}
#coming-soon:hover  {
  opacity: 0.5;
  transition: all 0.5s ease-in-out;
}
#coming-soon:hover  {
  opacity: 0.5;
  transition: all 0.5s ease-in-out;
}

/* footer and contact me */

#contactList {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding-bottom: 120px;
}

#contactMe {
  padding-top: 60px;
  color: rgb(200, 200, 200);
}

#contactMe ul, li, a{
  text-decoration: none;
  color: rgb(200, 200, 200);
}

#contact {
  background-color: rgba(45, 55, 65, 0.8);
  margin-bottom: 10px;
}

/* media queries */

@media screen and (max-width: 768px){
  .nav-title  {
    width: 60px;
    padding-top: 180px;
  }
}

