/*COLOUR PALETTE
https://coolors.co/f7fff7-343434-2f3061-ffe66d-a1c6d7
#f7fff7 - almost white
#343434 - dark grey - almost black
#2f3061 - dark blue
#ffe66d - yellow
#a1c6d7 - light blue
*/

/* global styles
---------------------------------------------*/
html {
 box-sizing: border-box;
}
*, *:before, *:after {
 box-sizing: inherit;
}
body {
  color: #343434;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
img {
    width: 300px;
}
a {
  color:yellow;
}
a:hover {
  text-decoration: none;
}
h1 {
  font-size: 100px;
  line-height: 1;
}
h2 {
  font-size: 45px;
  line-height: 1
}
h1, h2 {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    margin: 0;
}
.content-wrap {
  max-width: 800px;
  width: 85%;
  margin: 0 auto;
  padding: 60px 0;
}
h3 {
  margin-bottom: 0;
}
.item-details h3 + p {
  font-style: italic;
}
.item-details h3 ~ p {
  margin: 0;
}
.divider > section {
  border-bottom: 1px dashed #343434;
  padding: 25px 0;
}
.divider > section:last-of-type {
  border-bottom: none;
}

/*  PROFILE
----------------------------------------------- */
header {
  background: #2f3061;
  color: #f7fff7;
}


/* SKILLS
---------------------------------------------------------*/
.skills {
  background: #f7fff7;
}
/* CERTIFICATIONS
---------------------------------------------------------*/
.certification {
  background: #a1c6d7;
}
/*  PROJECTS
----------------------------------------------------- */
.projects {
  background: #f7fff7;
}
.projects a {
  color: #2f3061;

  }
.projects .btn {
  color: #f7fff7;
  background: #2f3061;
  text-decoration: none;
  padding: 8px;
  border-radius: 4px;
  display: inline-block;
  margin: 2px;
  }
.projects .btn:hover {
  background: rgba(47, 48, 97, 80%);
}
.project-item {
  overflow: hidden;
  }
.project-item h3 {
  margin-top: 0;
}


/* Work EXPERIENCE
-------------------------------------------------*/
.work-experience {
  background: #a1c6d7;
}
.work-experience a {
  color: #2f3061;
}

/* EDUCATION
---------------------------------------------------------*/
.education {
  background-image: url(beatriz-perez-moya-unsplash.jpg);
  background-size: cover;
  background-position: top left;
  padding-bottom: 100px;
}
.education p {
  width: 45%;
}
/* Contact Info
------------------------------------------------------------*/
footer {
  background: #2f3061;
  color: #f7fff7;
}
.contact-list {
  list-style-type: none;
  padding: 0;
}
.contact-list a {
  padding: 15px;
  display: inline-block;
}

/*Responsive
------------------------------------------------------------*/
@media screen and (min-width: 750px){
  header, footer {
      text-align: center;
  }

  .project-item img {
    float: left;
    margin-right: 20px;
  }
  .job-item{
    display: grid;
    grid-template-columns: 1fr 2fr;
    column-gap: 20px;
  }
  .contact-list {
    display: flex;
    justify-content: center;
  }

  .cert img {
    width: 150px;
    margin: 25px 0px 25px 0px;
  }
}
@media screen and (max-width: 749px){
h1 {
  font-size: 75px;
  line-height: 0.9;
  margin-bottom: 20px;
}
h2 {
  line-height: 1;
}
.contact-list a {
  padding: 5px;
}
.cert img {
   display: block;
   width: 150px;
   margin-left:auto;
   margin-right: auto;
   margin-bottom: 25px;
}
.flexbox {
  display: flex;
  text-align: center;
  flex-direction: column;
}

}
