:root {
  --main-color: rgba(255, 255, 255, 0.9);
  --background-pic: url(../images/clement-helardot-95YRwf6CNw8-unsplash.jpg);
}
* {
  margin: 0px;
  box-sizing: border-box;
  perspective: 600px;
}
html {
  font-size: 16px;
}
h2 {
  margin-bottom: 0.5rem;
}
/*Header*/
header {
  display: flex;
  flex-direction: column;
  background-image: var(--background-pic);
  background-attachment: fixed;
  background-size: cover;
  background-color: var(--main-color);
  font-family: 'Times New Roman', Times, serif;
}
#headerTxt {
  padding-top: 20px;
  width: 100%;
  height: 200px;
  text-align: center;
  text-decoration: underline;
  letter-spacing: 0.5rem;
  font-size: 1.8rem;
}
#aboutMe {
  width: 100%;
  font-size: 150%;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  flex-wrap: wrap;
  text-align: center;
  color: black;
}
#whoIAm {
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#whoIAm div {
  background-color: var(--main-color);
  border-radius: 20px;
  padding-bottom: 20px;
}
#whoIAm div h2 {
  color: black;
  padding: 40px 0px;
  border-radius: 0.5rem;
  border-bottom: 1px solid black;
  background: linear-gradient(-45deg, #474857 50%, #ffffff 100%);
}
.text-muted {
  color: rgb(105, 103, 103);
  font-size: 0.8rem;
}
#profile-img {
  height: 300px;
  width: 300px;
  border-radius: 50%;
}
#profile-img,
#whoIAm div {
  border-top: 10px solid white;
  border-bottom: 10px solid #6c72c0;
  border-left: 10px solid white;
  border-right: 10px solid#6c72c0;
  transition: all 0.3s ease-in-out;
}
#profile-img:hover,
#whoIAm div:hover {
  border-top: 10px solid #6c72c0;
  border-bottom: 10px solid white;
  border-left: 10px solid #6c72c0;
  border-right: 10px solid white;
}
/*Images with grid*/
#gridPics {
  max-width: 100%;
  display: grid;
  background-image: var(--background-pic);
  background-attachment: fixed;
  background-size: cover;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  grid-template-areas:
    ' linnea linnea'
    ' linnea linnea'
    ' me me'
    ' me me';
}
#item1 {
  grid-area: linnea;
}
#item2 {
  grid-area: me;
}
#item1 > img,
#item2 > img,
#item3 > img,
#item4 > img {
  width: 100%;
  height: 100%;
}
/*Jobberfarenhter*/
.erfarenheter {
  text-align: center;
  margin: auto;
  background-image: var(--background-pic);
  background-attachment: fixed;
  background-size: cover;
  font-size: 130%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
#job {
  background: linear-gradient(-45deg, #474857 50%, #ffffff 100%);
}
/*Skills*/
.skills {
  background-color: var(--main-color);
  text-align: center;
  padding: 30px;
  font-size: 1.5rem;
}
.html {
  width: 100%;
  background-color: #ec6630;
}
.css {
  width: 80%;
  background-color: #379ad6;
}
.js {
  width: 100%;
  background-color: #ecb847;
}
.java {
  width: 70%;
  background-color: #e51f24;
}
.python {
  width: 50%;
  background: rgb(247, 206, 67);
  background: linear-gradient(
    266deg,
    rgba(247, 206, 67, 1) 20%,
    rgba(53, 106, 151, 1) 75%
  );
}
.csharp {
  width: 40%;
  background-color: #7f3089;
}
.mongodb {
  width: 100%;
  background-color: #13aa52;
}
.react {
  width: 90%;
  background-color: #7ddfff;
}
.nodejs {
  width: 90%;
  background-color: #64995f;
}
.express {
  width: 90%;
  background-color: #31312f;
  color: white;
}
/*Utbildning*/
.utbildning {
  font-size: 30px;
  width: 100%;
  height: 400px;
  background-image: url(../images/janko-ferlic-sfL_QOnmy00-unsplash.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: rgb(245, 245, 245);
  display: flex;
  justify-content: center;
  align-items: center;
}
.utbildningar {
  background-image: var(--background-pic);
  background-attachment: fixed;
  background-size: cover;
  width: 100%;
  height: auto;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex-wrap: wrap;
  font-size: 140%;
}
/*the containers for both utbildningar and erfarenheter*/
.utbildningar div,
.erfarenheter div {
  width: 50vw;
  border-radius: 5px;
  padding: 20px 0px;
  margin-bottom: 10px;
  background-color: var(--main-color);
}
/*Referenser*/
.referenser {
  width: 100%;
  height: 500px;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-image: url(../images/rome.jpg);
  background-position: center top;
  background-size: cover;
}
.grid {
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 10px;
  text-align: center;
}

.container {
  background-color: white;
  height: 150px;
  width: 250px;
  border: 2px solid black;
  border-radius: 10px;
  text-align: center;
  transition: all 1s ease-in-out;
  transform-style: preserve-3d;
  margin: 15px;
  font-size: 16px;
  font-family: cursive, Arial, Helvetica, sans-serif;
  font-weight: bolder;
  position: relative;
}
.front {
  backface-visibility: hidden;
  z-index: 2;
  text-align: center;
  width: 100%;
  height: 100%;
  position: absolute;
}
.back {
  background-color: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(10px) saturate(100%) contrast(45%)
    brightness(130%);
  backdrop-filter: blur(10px) saturate(100%) contrast(45%) brightness(130%);
  backface-visibility: hidden;
  transform: rotateY(180deg);
  z-index: 1;
  overflow-wrap: break-word;
  width: 100%;
  height: 100%;
  line-height: 220px;
}
.container:hover {
  transform: rotateY(180deg);
}
.container.Postnord {
  background: url(../images/postnordLogo.jpg);
  background-size: cover;
  background-position: center;
}
.container.GislavedGymnasium {
  background: url(../images/GislavedGymnasiumLogo.jpg);
  background-size: cover;
  background-position: center;
}
.container.Junic {
  background: url(../images/JunicLogo.jpg);
  background-size: cover;
  background-position: center;
}
/*Driving license*/
/*making the background of the first container with a color to surround the content with this color without changing the background of the whole html*/
.driving {
  height: 50vh;
  background-color: var(--main-color);
  /*centering the second container inside the first one*/
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}
.licenseContainer {
  width: 80%;
  height: 80%;
  background: url(../images/florian-van-duyn-lPgikJiNI5o-unsplash.jpg);
  background-position: center center;
  background-size: cover;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}
.license {
  background-color: var(--main-color);
  background-color: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px) saturate(100%) contrast(45%) brightness(130%);
          backdrop-filter: blur(10px) saturate(100%) contrast(45%) brightness(130%);
  padding: 50px 200px;
  font-size: 25px;
  opacity: 0.8;
}
/*contact*/
.contact {
  width: 100%;
  height: 60%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  background-color: var(--main-color);
}
.information {
  font-size: 20px;
  text-align: center;
  padding: 60px 0px;
}

.mapouter {
  position: relative;
  text-align: right;
  height: 100%;
  width: 50%;
  padding: 20px 0px;
}
.gmap_canvas {
  overflow: hidden;
  background: none !important;
  height: 500px;
  width: 100%;
}
.mapouter .gmap_canvas iframe {
  width: 100%;
  height: 90%;
}
.fab,
.fas {
  padding: 10px;
  font-size: 150%;
}
.fa-facebook-square {
  color: #4267b2;
}
.fa-instagram {
  color: #9a37ac;
}
.fa-envelope {
  color: #d93025;
}
.fa-github {
  color: black;
}
.socialIcon:hover {
  background-color: white;
  border-radius: 50%;
  transform: scale(1.5);
  transform-origin: center;
  transition-duration: 1s;
  -webkit-box-shadow: 0px 0px 49px -4px #6730ec;
  -moz-box-shadow: 0px 0px 49px -4px #6730ec;
  box-shadow: 0px 0px 49px -4px #6730ec;
}

@media screen and (max-width: 770px) {
  #headerTxt {
    font-size: 1rem;
  }
  .contact {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .whoIAm,
  .information,
  .mapouter {
    width: 100%;
  }
  .referenser {
    height: 1000px;
  }
  .utbildningar div,
  .erfarenheter div {
    width: 100vw;
    padding: 0px 0px;
  }
  .licenseContainer {
    width: 100%;
    height: 80%;
    background: url(../images/florian-van-duyn-lPgikJiNI5o-unsplash.jpg);
    background-position: center center;
    background-size: cover;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
  }
  .license {
    padding: 10px 10px;
    font-size: 18px;
  }
}
@media screen and (max-width: 450px) {
  * {
    font-size: 1.2rem;
  }
}
