* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #d7d8d9;
}

/* global class */
.container {
  width: 320px;
  margin: 0 auto;
  text-align: left;
}

.headlines {
  display: flex;
  justify-content: center;
}

.header {
  background-image: url(/assets/jakob-rosen-WG8ZXIREtco-unsplash.jpg);
  background-color: black;
  background-size: cover;
  width: 100%;
  height: 520px;
  position: relative;
  margin-bottom: 49px;
}

.header-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: 44px;
}

.header-icons {
  position: absolute;
  top: 48px;
  right: 24.5px;
  gap: 5px;
}

.header-icons img {
  height: 40px;
  width: 40px;
}

.header-img {
  height: 180px;
  width: 180px;
  border-radius: 50%;
  position: absolute;
  top: 356px;
  border: 2px solid white;
  right: 7%;
  object-fit: cover;
}

.header-txt-gr {
  font-family: 'Roboto', sans-serif;
  line-height: 18px;
  size: 13px;
  color: white;
  top: 121px;
  position: absolute;
  margin: 24px;
  padding-right: 131px;
}

h6 {
  font-family: 'Roboto', sans-serif;
}

/* intro section */
.line {
  border: 1px solid #5c6f73;
  width: 40px;
  display: inline-block;
  margin-bottom: 4px;
}

.dot {
  height: 10px;
  width: 10px;
  background-color: #5c6f73;
  border-radius: 50%;
  display: inline-block;
}

/* styling to the fonts */
h1 {
  font-weight: 700;
  font-size: 40px;
  line-height: 49px;
}

p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 29px;
  color: black;
  margin-bottom: 5px;
}

h3 {
  background-color: #313e40;
  display: inline-flex;
  color: white;
  line-height: 27px;
  font-size: 22px;
  padding: 0 3px 0 3px;
}

.tech-center {
  text-align: center;
  margin-top: 0;
}

.card h5 {
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  line-height: 29px;
}

.headlines h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 25px;
}

.font-div {
  font-family: 'Roboto', sans-serif;
}

/* featured projects */
a {
  text-decoration: none;
}

.img-overlay {
  position: relative;
}

.card-img {
  filter: brightness(60%);
}

.overlay {
  /* position: absolute; */
  top: 0;
  right: 0px;
  bottom: 6px;
  left: 0;
  background-color: rgba(140, 140, 140, 0.5);
}

.overlay-heading {
  font-size: 25px;
  line-height: 34px;
  font-weight: 700;
  color: #fff;
  width: 100%;
  height: 100%;
  text-align: center;
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tag-wrapper {
  display: flex;
  margin-bottom: 20px;
}

.tag-wrapper p {
  font-family: 'Roboto', sans-serif;
  color: #313e40;
  font-weight: 400;
  font-size: 11px;
  line-height: 11px;
  letter-spacing: 1%;
  background-color: #8fa1a6;
  text-decoration: none;
  padding: 4px;
  margin: 3px;
  border-radius: 2px;
  text-align: center;
}

h5,
h4 {
  color: #313e40;
  margin-bottom: 5px;
  margin-top: 5px;
  font-size: 17px;
}

img {
  width: 100%;
}

.card-hide {
  display: none;
}

/* my thoughts */
.card-thoughts {
  text-align: center;
}

.thoughts-txt {
  color: black;
  font-weight: 700;
  font-size: 17px;
  line-height: 30px;
  margin: 0;
}

.card-thoughts p {
  font-weight: 400;
  font-size: 14px;
  line-height: 32px;
}

.date {
  font-family: 'Roboto', sans-serif;
  color: #313e40;
}

/* .thoughts-second {
  display: none;
} */

/* more thoughts */
.more-thoughts-gr,
.more-thoughts-txt {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 29px;
  color: black;
  text-decoration: underline #8fa1a6;
}

.thoughts-link {
  font-weight: 700;
  color: black;
  text-decoration: underline #8fa1a6;
  font-size: 17px;
  line-height: 29px;
  font-family: 'Roboto', sans-serif;
}

/* skills */
.container-skills {
  text-align: center;
  flex-wrap: wrap;
}

.skills-flex {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.skills-card {
  width: 150px;
  padding: 15px;
}

.skills-head {
  color: #313e40;
  font-weight: bold;
  font-size: larger;
}

ul {
  /* display: flex; */
  list-style: none;
  padding-left: 0;
}

/* for more */
.for-more-icons {
  display: flex;
  justify-content: center;
  filter: invert(50%);
}

.for-more-icons img {
  height: 60px;
  width: 60px;
  margin-right: 20px;
}

/* footer */
footer {
  background-color: #5c6f73;
}

.contact-heading {
  color: white;
  font-weight: 700;
  font-size: 21px;
  line-height: 25px;
  text-align: center;
  padding-top: 60px;
  padding-bottom: 30px;
}

.contact p,
.contact-link {
  color: #d7d8d9;
  text-decoration: none;
  font-weight: 200;
  text-align: center;
  margin: 0;
}

.contact a {
  padding-bottom: 0;
}

a:hover {
  color: black;
}

.mail {
  padding-bottom: 80px;
}

/* Tablet */
@media (min-width: 468px) {
  /* header section */
  .header-img {
    right: 20%;
  }

  h6 {
    font-size: 15px;
  }

  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 27px;
  }

  .header-icons img {
    height: 50px;
    width: 50px;
    margin: 0 5px 0 5px;
  }

  .header-txt-gr {
    padding-left: 45px;
  }

  /* global */
  .container {
    width: 65vw;
    margin: 0 auto;
  }

  h5 {
    font-size: 18px;
  }

  .headlines h4 {
    font-size: 23px;
  }

  /* tags */
  .tag-wrapper p {
    font-size: 13px;
  }
}

/* Desktop */
@media (min-width: 1023px) {
  /* global */
  .container {
    width: 65vw;
    margin: 0 auto;
  }

  /* header */
  .header {
    height: 668px;
  }

  .header-icons {
    top: 102px;
    right: 80px;
  }

  .header-icons img {
    height: 80px;
    width: 80px;
  }

  .header-img {
    top: 390px;
    width: 300px;
    height: 300px;
    right: 15%;
  }

  .header-txt-gr {
    top: 220px;
    left: 200px;
    line-height: 60px;
    width: 600px;
  }

  /* font sizes */
  h6 {
    font-size: 22px;
    line-height: 30px;
    margin-bottom: 0;
  }

  h1 {
    font-size: 63px;
    line-height: 75px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  h2 {
    font-size: 35px;
    line-height: 45px;
    margin-top: 0;
  }

  h3 {
    font-weight: 700;
    font-size: 30px;
    line-height: 48px;
  }

  p {
    font-size: 18px;
  }

  .red-h5 {
    font-size: 22px;
  }

  .headlines h4 {
    font-size: 28px;
    margin-top: 5%;
  }

  .tag-wrapper {
    font-size: 15px;
  }

  /* intro */
  .line-dot-txt {
    font-size: 20px;
    line-height: 40px;
  }

  /* featured projects */
  .card-flex {
    display: grid;
    grid-template-columns: 50% 50%;
  }

  .card-group {
    padding: 25px 15px;
  }

  .card-img {
    height: 300px;
  }

  .card-hide {
    display: block;
  }

  /* other projects */
  .card {
    margin-bottom: 20px;
  }

  .card p {
    margin: 3px;
  }

  /* my thoughts */
  /* .thoughts-second {
    display: block;
  } */

  .thoughts-img {
    width: 520px;
    height: 354px;
  }

  .card-thoughts {
    padding: 0 15px;
  }

  .for-more-icons {
    padding-bottom: 20px;
  }

  .for-more-icons img {
    height: 80px;
    width: 80px;
  }
}
