-ms-transform: translate(50%, 50%); /* IE 9 */
-webkit-transform: translate(50%, 50%); /* Safari */
transform: translate(50%, 50%);

header {
  padding: 12rem 0 20rem;
}

@media (min-width: 992px) {
  header {
    padding: 12rem 0 20rem;
  }
}

section {
  padding: 1rem 0rem 3rem 0rem;
}

.col-lg-12 h2{
  text-align: center;
}

.col-lg-8 img {
  padding-right: 1rem;
  padding-top: 1rem;
}

.headerimg {
  position: relative;
  text-align: center;
  color: black;
  max-width: 3300px;
  margin: auto;
}

/* Centered text */
.headerimage_text {
  display: flex;
  justify-content: center;
  align-items: center;
}

.headerimage_text p{
  position: absolute;
  top: 45%;
  font-weight: 100;
  color: white;
}

.container{
  padding-top: 2rem;
}

.sociallinks ul li{
  padding-top: 2rem;
  display: inline-block;
  margin-right: 1rem;
}

.sociallinks ul{
  text-align: center;
}

.sociallinks li {
  display: inline-block;
}

/* About me padding top */

/* Extra small devices (phones, 600px and down) */
/*@media only screen and (max-width: 600px) {
  #about, #projects, #resume, #contact  {
    padding: 5rem 0;
  }
}*/

/* Text in header image*/

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .headerimage_text {
      padding-left: 2rem;
      padding-right: 2rem;
      font-size: 1rem;

  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
  .headerimage_text {
      font-size: 2rem;

  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  .headerimage_text {
      font-size: 2.5rem;

  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  .headerimage_text {
      font-size: 3rem;

  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .headerimage_text {
      font-size: 3.5rem;

  }
}


/* Image about me */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .col-lg-6 img {
      height: 15rem;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .col-lg-6 img {
        height: 25rem;


  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  .col-lg-6 img {
      width: 400px;
      height: inherit;
  }
}

/* Text about me*/

/* Extra small devices (phones, 600px and down) */
/*@media only screen and (max-width: 600px) {
  .col-lg-6 h2 {
      padding-top: 2rem;
  }
}*/

/* Medium devices (landscape tablets, 768px and up) */
/*@media only screen and (min-width: 768px) {
    .col-lg-6 h2 {
         padding-top: 2rem;
  }
}*/

.carousel{
  height: auto;
}

.col-lg-10 {
  padding-right: 2rem;
  padding-top: 1rem;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
