@font-face {
    font-family: Montserrat;
    src: url(fonts/Montserrat-Regular.ttf);
}

* {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}



/* HEADER MENU */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 10%;

  background-color: rgba(255, 255, 255, 0.8);

  display: flex;
  flex-direction: row;
  align-items: center;

  z-index: 3;
}

.logo-head {
  height: 40%;
  margin-left: 10%;
}

.logo-head-img {
  height: 100%;
}

.item-head {
  position: relative;
  margin-left: 5%;
  padding: 4px 20px;

  text-decoration: none;
  color: #222;
  font-size: 20px;
}

.item-head:hover {
  color: #fff;
}

.item-head:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: #98db42;
  transform: skewX(-10deg);
  z-index: -1;

  -webkit-transition: all 300ms cubic-bezier(0.165, 0.840, 0.440, 1.000);
  transition: all 300ms cubic-bezier(0.165, 0.840, 0.440, 1.000);
  -webkit-transition-timing-function: cubic-bezier(0.165, 0.840, 0.440, 1.000);
  transition-timing-function: cubic-bezier(0.165, 0.840, 0.440, 1.000);
}

.item-head:hover:after {
  width: 100%;
}



/* MAIN PAGE CONTENT */

.showreelContainer {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.showreel {
  width: 60%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.infos {
  margin: 150px;
  margin-left: 10%;
  margin-top: 300px;
}

.infoblock {
  display: grid;
  grid-column-gap: 80px;
  grid-template-columns: 35% 18%;
}

.infotext {
  grid-column-start: 1;
  grid-column-end: 2;
}

.infobild {
  grid-column-start: 2;
  grid-column-end: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.infotext h1 {
  margin-top: 0;
}
.infotext p {
  width: 100%;
}

.impr {
  margin: 150px;
  margin-left: 10%;
}

h1 {
  margin-bottom: 20px;
  margin-top: 150px;
}

h2 {
  margin-bottom: 10px;
  margin-top: 30px;
}

.offset:before {
	display: block;
 	content: " ";
  height: 150px;
  margin-top: -150px;
  visibility: hidden;
}

a {
  font-weight: 600;
  color: #98db42;
  text-decoration: none;
}

p {
  width: 70%;
  margin-bottom: 15px;
}

.lastP {
  margin-bottom: 0;
}

.im {
  margin-left: 10%;
  width:80%;
}

.im p {
  position: relative;
  width: 100%;
  font-size: 70px;
  color: #666;
}

.im p b{
  color: #98db42;
}

.fadeOut{
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s ease-out;
}

.fadeIn{
  visibility: visible;
  opacity: 1;
  transition: all 0.5s ease-in;
}

.im-alt {
  display: none;
}

#impr {
  margin: 300px 0 30px 10%;
}

.backbutton {
  display: none;
}

.skills h2 {
  margin-top: 50px;
  margin-bottom: 20px;
}

.skillgroup {
  display: grid;
  grid-column-gap: 20px;
  grid-template-columns: 15% 65%;
}

.skilltitles {
  grid-column-start: 1;
  grid-column-end: 2;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  grid-row-gap: 10px;
}

.skilltitles p {
  display: flex;
  align-items: center;
  margin: 0;
}

.barcharts {
  width: 100%;
  grid-column-start: 2;
  grid-column-end: 3;

  display: grid;
  grid-template-columns: repeat(100, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-row-gap: 15px;
}

.bar {
  background-color: #98db42;
  grid-column-start: 1;
  grid-column-end: 101;
}

.bar90 {
  grid-column-end: 90;
}

.bar80 {
  grid-column-end: 80;
}

.bar70 {
  grid-column-end: 70;
}

.bar60 {
  grid-column-end: 60;
}

.bar50 {
  grid-column-end: 50;
}

.bar40 {
  grid-column-end: 40;
}

.bar30 {
  grid-column-end: 30;
}

@media (max-width:1600px) {
  .infoblock {
    grid-template-columns: 45% 25%;
  }
  .skillgroup {
    grid-template-columns: 25% 55%;
  }
}

@media (max-width:1300px) {
  .infoblock {
    grid-template-columns: 50% 35%;
  }
  .im p {
    font-size: 60px;
  }
}

@media (max-width:1050px) {
  .infoblock {
    grid-template-columns: 60% 37%;
  }
  .skillgroup {
    grid-template-columns: 30% 70%;
  }
  .im p {
    font-size: 50px;
  }
}

@media (max-width:900px) {
  header, .im {
    display:none!important;
  }

  p {
    width: 100%;
  }

  p#impr {
    width: 80%;
  }

  .infos, .impr {
    margin: 50px 10%;
  }

  .im-alt {
    display: block;
    margin: 0 10%;
    width: 80%;
  }

  .im-alt p {
    width: 100%;
    font-size: 40px;
    color: #666;
    line-height: 45px;
  }

  .im-alt p b{
    color: #98db42;
  }

  .backbutton{
    display: block;
    width: 100%;
    height: 100px;
  }
  .backbutton img{
    display: block;
    width: 40%;
    margin: auto;
    margin-top: 20px;
  }

  .loadingContainer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    background-color: #333;
  }

  .loading {
    width: 60%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #98db42;
    text-align: center;
    font-size: 40px;
    font-weight: bold;
  }

  .bar {
    height: 40px;
  }

  .bar100 {
    grid-column-end: 90;
  }
  .bar90 {
    grid-column-end: 85;
  }


  .infoblock {
    display: block;
    margin-top: 130px;
  }

  .infotext {
    width: 100%;
    height: 100%;
  }

  .infobild {
    width: 100%;
    height: 100%;
    object-fit: cover;

    margin-top: 30px;
  }
}
