/*
Fonts
font-family: 'Caveat', cursive;
font-family: 'Montserrat', sans-serif;
*/

/*-----------------------------------------Global style -----------------------------*/

html {
  /* fix the box model */
  box-sizing: border-box;
}

*,
*::after,
*::before {
  box-sizing: inherit;
}
:root {
  --font-color: #343434;
  --white-section-bgc: #f7f7f7;
  --blue-dark: #2f3061;
  --yellow: #ffe66d;
  --light-blue: #a1c6d7;
  --light-green: #66806a;
  --almost-dark: #222;
}

body {
  color: var(--font-color);
  font-family: "Montserrat", "system-ui", "Arial";
  font-size: 15px;
  line-height: 1.3;
}
/* the typography of the headings*/
h1,
h2 {
  font-family: "Caveat", "cursive";
  font-weight: 500;
  margin: 0;
}
/*mobile first*/
h1 {
  font-size: 65px;
}

header h2 {
  font-size: 40px;
}
h2 {
  font-size: 45px;
  padding-bottom: 20px;
}

@media (min-width: 520px) {
  h1 {
    font-size: 80px;
  }
  h2 {
    font-size: 55px;
  }

  header h2 {
    font-size: 50px;
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 80px;
  }

  h2 {
    font-size: 65px;
  }

  header h2 {
    font-size: 60px;
  }
}

/*th container of each section in each pallet */

.content-wrap {
  max-width: 800px;
  /* if the screen is big the width will be 800px but if it get smaller the width will shrink */
  width: 85%;
  /* to make the content don't stick in the viewport left side */
  margin: 0 auto;
  /*centralize the box*/
  padding: 60px 0 60px;
  /*vertical separator*/
}

/* the cute hr between items */
hr {
  border: 0;
  height: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  width: 70%;
  display: inline-block;
}
/* customizing the p that after the h3 in the education and work experience section*/
.item-details h3 ~ p {
  font-style: italic;
  margin: 0 0 5px;
}
/*-----------------------------------------   profile [.header]   -------------------------*/

header {
  text-align: center;
  background-image: url(../images/download.jpg);
  background-size: cover;
  color: var(--white-section-bgc);
  min-height: 265px;
}
/* make it a Little smaller */
header .content-wrap {
  padding-bottom: 50px;
}

header h1 {
  margin-bottom: 30px;
}
/*-------------------------------------- general-info  --------------------------------*/

.general-info {
  background-color: var(--white-section-bgc);
}

.general-info p {
  color: black;
  font-size: 1.3em;
}
/*-------------------------------------------work experience  --------------------------*/

.work-experience {
  background-color: var(--light-blue);
}

/* an effect of the links in the page */
a {
  color: var(--yellow);
}

a:hover {
  text-decoration: none;
  color: #0b0080;
}
/*-----------------------------------------------education  ------------------------------*/

.education {
  background-image: url("../images/joanna-kosinska-unsplash.jpg");
  background-size: cover;
  background-position: top right;
}

@media (max-width: 767px) {
  .education {
    background-color: #fdc204;
    background-image: none;
  }
}

/*----------------------courses --------------------*/

/* 
#FF5959
*/
.courses {
  background-color: #66806a;
  color: #f7f7f7;
}

.date {
  color: #353535;
  margin-right: 20px;
}
.courses section p {
  font-style: italic;
}

@media (max-width: 767px) {
  .courses h2 {
    text-align: center;
  }
  .date {
    text-align: center;
    display: block;
    width: 100%;
    margin-bottom: 5px;
  }
  .courses section h3 {
    text-align: center;
  }
  .courses section p {
    text-align: center;
  }
  .courses hr {
    transform: translateX(21.42%);
    /*as the width of the hr is 70% and i want to move it 15% of the container box so (70 / 15 ) * 100   */
    -moz-transform: translateX(21.42%);
    -ms-transform: translateX(21.42%);
    -o-transform: translateX(21.42%);
    -webkit-transform: translateX(21.42%);
  }
}

/*-------------------------------  contact us   -------------*/
.contact {
  background-color: #222;
  color: #f7f7f7;
  text-align: center;
}
.contact .content-wrap h3 {
  margin-bottom: 40px;
}

.social-menu ul {
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-evenly;
}

.social-menu ul li {
  list-style: none;
}

/*make the circle*/
.social-menu ul li a {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  text-align: center;
  transition: 0.6s;
  box-shadow: 0 5px 4px rgba(0, 0, 0, 0.5);
}
/** the icons **/
.social-menu ul li i {
  font-size: 20px;
  line-height: 40px;
  /*line height must be the same as the height of the circle*/
  color: #111;
  transition: 0.3s;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
}
/* hover effect */
.social-menu ul li a:hover {
  transform: translate(0, -10%);
}
.social-menu ul li a:hover i {
  color: #fff;
}

.social-menu ul li:nth-child(1) a:hover {
  background-color: #ac2b1d;
}
.social-menu ul li:nth-child(2) a:hover {
  background-color: #0077b5;
}
.social-menu ul li:nth-child(3) a:hover {
  background-color: #0077b5;
}
