html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  line-height: 1.5;
  background: #F2F2F2;
  color: #323232;
}
/***********************************
* =view in chrome label
***********************************/
div.wrapper {
  position: relative;
  /* border: 2px solid cornflowerblue; */
  margin-top: 20px;
  padding: 20px 10px 10px;
}
div.wrapper label {
  color: white;
  line-height: 20px;
  padding: 0px 5px;
  position: absolute;
  background-color: cornflowerblue;
  /* Adjust these values to posiytion the title or label */
  top: -10px;
  left: 10px;
}

img {
  max-width: 100%;
}

.icon {
  fill: currentColor;
  display: inline-block;
  font-size: inherit;
  height: 1em;
  overflow: visible;
}

a {
  color: #323232;
  /* text-decoration: underline; */
  border-bottom: 1px solid  #236FB2; /* Or whatever color you want */
  text-decoration: none;
}

a:hover {
  text-decoration: none;
  color: #236FB2;
  border-bottom: 0px solid currentColor; /* remove the underline when hover */
}

/* 
a:link, a:visited {
  background-color: #f44336;
  color: white;
  padding: 15px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

a:hover, a:active {
  background-color: red;
  text-decoration: underline;
} */

.container {
  max-width: 960px;
  margin: 40px auto;
  padding: 32px;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section {
  display: grid;
  grid-template-columns: 1fr 4fr;
  grid-gap: 15px;
  padding: 24px 0;
  border-bottom: 1px solid lightgrey;
  /* grid-auto-rows: auto; */
}

section:last-child {
  border-bottom: none;
}

.section-title {
  font-weight: bold;
  font-size: 30px;
  font-weight: 800;
  color: #236FB2;
}

/***********************************
* =Main Info
***********************************/
/* img.avatar  not used here */
img.avatar {    
  width: 170px;
}

.image-cropper {
  width: 170px;  /* not too big number here*/
  height: 170px;
  position: relative;
  overflow: hidden;
  border-radius: 90%;
}

.my-name {
  font-size: 48px;
  line-height: 1.3;
}

.my-title {
  font-size: 24px;
  font-weight: 500;
  color: #236FB2;
}

.links {
  display: flex;
  margin: 10px 0 20px 0;
  justify-content: space-around;
}

.link-item {
  display: flex;
  align-items: center;
  flex:  1fr 2fr 1fr;
  /* flex-basis: 25%; */
  /* order: 1; */
}


.link-item svg {
  margin-right: 6px;
}

/***********************************
* =Experience
***********************************/

.job {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid lightgrey;
}

.job:last-child {
  border-bottom: none;
}

.job-title-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 20px;
}

.job-company {
  font-weight: bold;
  line-height: 1.2;
}

/***********************************
* =Skills
***********************************/

.skills-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  grid-gap: 10px;
  margin-bottom: 24px;
  grid-auto-rows: 200px; /* minimal spacing in skills overview */
}

.skills-container h2 {
  font-size: 16px;
  font-weight: 800;
  /* color: #236FB2; */
}

.skills-container ul {
  font-size: 14px;
  font-weight: 800;
  /* color: #236FB2; */
  margin-left: 20px;
  margin-top: 8px;
  list-style-type: none;

}
/* .skills-container div {
  background:#eee;
} */
.skills-R-container{
  background:#eee;
}

.skills-Py-container{
  background:#fff;
}

.skills-AI-container{
  background:#eee;
}

.skills-Stats-container{
  background:#fff;
}

.skills-Web-container{
  background:#eee;
}


/***********************************
* =case-2017-container
***********************************/

.case-2017-container {
  display: grid;
  /* grid-template-columns: 1fr 1fr 1fr 1fr 1fr; */
  flex-direction: column;
  grid-gap: 10px;
  margin-bottom: 14px;
  grid-auto-rows: auto; /* do not use a number here  */

}

.case-2017-container h2 {
  font-size: 16px;
  font-weight: 800;
  /* color: #236FB2; */
}

.case-2017-container ul {
  font-size: 14px;
  font-weight: 800;
  /* color: #236FB2; */
  margin-left: 50px;
  margin-top: 8px;
  margin-bottom: 8px;
  list-style-type: disc;

}



/***********************************
* =Interests
***********************************/

.interests-container {
  display: flex;
  justify-content: space-between;
}

.interests-container img {
  height: 35px;
  opacity: 0.75;
}

/***********************************
* =References
***********************************/

.reference {
  font-size: 18px;
}

.reference-details {
  margin-bottom: 20px;
}

@media only screen and (max-width : 768px) {
  section {
    grid-template-columns: 1fr;
  }

  .links, .job-title-container {
    flex-direction: column;
  }

  .skills-container {
    grid-template-columns: 1fr 1fr;
  }

  .interests-container {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .interests-container img {
    margin-right: 32px;
    margin-bottom: 16px;
  }
}

@media print {
  @page {
    margin: 0.2cm;
    }
  
div.wrapper label{
  display: none;
}
  a, a:visited {
      text-decoration: none;
      border-bottom: 0px solid  #236FB2; /* Or whatever color you want */
      color: #323232;

  }

  hr {
      visibility: visible;
      page-break-before: avoid;
  }
  
  pre, blockquote {
      padding-right: 1em;
      page-break-inside: avoid;
  }
  /* section:last-child, tr, img, ul{  
      page-break-inside: avoid;
  } */
  tr, .interests-container img {  
    page-break-inside: avoid;
}
/* .case-2017-container ul {
      page-break-before: always;
      max-width: 100% !important;
  } */

  p, h2, h3 {
      orphans: 3;
      widows: 3;
  }

  section,h1, h2, h3{
      page-break-after: avoid;
  }

  
}
