/*
* Used:
* PostCSS
* Autoprefixer
*/

/*
Colors
primary-color (green): #4c764c
secondary-color (orange): #ffa424
*/

@font-face { 
  font-family: "Open Sans";
  font-weight: 400;
  src: url(../fonts/Open_Sans/OpenSans-Regular.woff2) format("woff2"),
    url(../fonts/Open_Sans/OpenSans-Regular.woff) format("woff"),
    url(../fonts/Open_Sans/OpenSans-Regular.otf) format("opentype");
}
@font-face { 
  font-family: "Montserrat";
  font-style: bold;
  font-weight: 700;
  src: url(../fonts/Montserrat/Montserrat-Bold.woff2) format("woff2"),
    url(../fonts/Montserrat/Montserrat-Bold.woff) format("woff"),
    url(../fonts/Montserrat/Montserrat-Bold.otf) format("opentype");
}

* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #000;
  line-height: 1.6;
  letter-spacing: 0.2px;
  min-height: 100vh;
}

h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 700;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
}

h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

/* Link Styling */
a {
  color: #4c764c;
  font-weight: 700;
  -webkit-text-decoration: underline transparent;
          text-decoration: underline transparent;
  -webkit-transition: -webkit-text-decoration 0.3s ease;
  transition: -webkit-text-decoration 0.3s ease;
  -o-transition: text-decoration 0.3s ease;
  transition: text-decoration 0.3s ease;
  transition: text-decoration 0.3s ease, -webkit-text-decoration 0.3s ease;
}

a:hover {
  /* No underlining when hovering over a link */
  -webkit-text-decoration-color: #4c764c;
          text-decoration-color: #4c764c;
}

a:focus {
  /* No underlining when hovering over a link */
  -webkit-text-decoration-color: #4c764c;
          text-decoration-color: #4c764c;
}

a:active {
  /* selected link */
  color: #ffa424;
  -webkit-text-decoration-color: #ffa424;
          text-decoration-color: #ffa424;
}

/* button styling */
button {
  /* overwrite browser defaults and resets the border */
  border: none;
  display: inline-block;
  color: #000;

  /* takes the font from the outer container */
  font-family: inherit;
  font-weight: 700;

  /*styling*/
  letter-spacing: 1px;
  padding: 13px 40px 13px;
  outline: 0;
  border: 1px solid #000;
  position: relative;
  background-color: rgba(0, 0, 0, 0);
}
.button {
  /* overwrite browser defaults and resets the border */
  border: none;
  display: inline-block;
  color: #000;

  /* takes the font from the outer container */
  font-family: inherit;
  font-weight: 700;

  /*styling*/
  letter-spacing: 1px;
  padding: 13px 40px 13px;
  outline: 0;
  border: 1px solid #000;
  position: relative;
  background-color: rgba(0, 0, 0, 0);
}

button::after {
  content: "";
  background-color:#ffa424;
  width: 100%;
  z-index: -1;
  position: absolute;
  height: 100%;
  top: 7px;
  left: 7px;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
  -webkit-transition-timing-function: ease-in-out;
       -o-transition-timing-function: ease-in-out;
          transition-timing-function: ease-in-out;
  -webkit-text-decoration: underline transparent;
          text-decoration: underline transparent;
}

.button::after {
  content: "";
  background-color:#ffa424;
  width: 100%;
  z-index: -1;
  position: absolute;
  height: 100%;
  top: 7px;
  left: 7px;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
  -webkit-transition-timing-function: ease-in-out;
       -o-transition-timing-function: ease-in-out;
          transition-timing-function: ease-in-out;
  -webkit-text-decoration: underline transparent;
          text-decoration: underline transparent;
}

button:hover,
button:focus,
.button:hover,
.button:focus {
  -webkit-text-decoration: underline transparent;
          text-decoration: underline transparent;
}

button:hover::after,
button:focus::after,
.button:hover::after,
.button:focus::after {
  cursor: pointer;
  text-decoration: none;
  top: 0px;
  left: 0px;
  -webkit-text-decoration: underline transparent;
          text-decoration: underline transparent;
}

button:active,
.button:active {
  color: #000;
  border: none;
  background-color: #fff;
  -webkit-text-decoration: underline transparent;
          text-decoration: underline transparent;
  -webkit-box-shadow: rgb(204, 219, 232) 3px 3px 6px 0px inset, rgba(255, 255, 255, 0.5) -3px -3px 6px 1px inset;
          box-shadow: rgb(204, 219, 232) 3px 3px 6px 0px inset, rgba(255, 255, 255, 0.5) -3px -3px 6px 1px inset;
}

/* Tag styling */
.tags {
  margin: 30px 5px;
}

.tag {
  display: inline-block;
  border-radius: 4px;
  padding: 3px 10px;
  background: #808080;
  color: #ffffff;
  margin: 5px;
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
}

.tag:hover {
  -webkit-transform: translate(0, -2px);
      -ms-transform: translate(0, -2px);
          transform: translate(0, -2px);
}

/* Header */
.header-container {
  position: sticky;
  top: 0;
  z-index: 3;
}

.page-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  padding: 20px;
  background-color: #ffffff;
}

.page-header__item {
  -webkit-box-flex: 0;
      -ms-flex: 0 1 200px;
          flex: 0 1 200px;
}

.page-header__item:last-child {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  text-align: right;
}

.navigation-list {
  list-style-type: none;
}

.navigation-list ul {
  position: sticky;
  top: 0;
  overflow: hidden;
}

.navigation-list li {
  display: inline-block;
  margin-left: 15px;
}

.active {
  color: #ffa424;
}

#logo {
  width: 200px;
  height: auto;
}

/* Home */
#home {
  height: 100%;
}

.profile {
  max-width: 80%;
  margin: 10vh auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background-color: rgba(168, 152, 152, 0.09);
  border-radius: 15px;
  -webkit-box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  padding: 25px;
}

.profile__portrait {
  width: 500px;
  max-height: 800px;
  margin: 35px 50px;
  padding: 10px;
  border-radius: 20px;
  -o-object-fit: cover;
     object-fit: cover;
}

.profile__text {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 100px;
          flex: 1 1 100px;
  padding: 15px;
  margin-right: 50px;
}

.profile__text h1 {
  font-size: 50px;
  color: #4c764c;
}

.profile .button {
  margin-top: 20px;
  margin-right: 20px;
  padding: 10px 20px 10px;
  float: right;
}


/* Toolbelt */
@-webkit-keyframes toolbelt {
  from {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
  to {
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
  }
}
@keyframes toolbelt {
  from {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
  to {
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
  }
}
.toolbelt {
  margin:  20vh auto;
  max-width: 75%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.toolbelt h1 {
  text-align: center;
  padding: 10px;
}

.toolbelt:before,
.toolbelt:after {
  position: absolute;
  content: "";
  top: 0;
  width: 250px;
  height: 100%;
  z-index: 2;
}

.toolbelt:before {
  left: 0;
  background: -webkit-gradient(linear, right top, left top, from(rgba(255, 255, 255, 0)), to(#ffffff));
  background: -o-linear-gradient(right, rgba(255, 255, 255, 0), #ffffff);
  background: linear-gradient(to left, rgba(255, 255, 255, 0), #ffffff);
}

.toolbelt:after {
  right: 0;
  background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(#ffffff));
  background: -o-linear-gradient(left, rgba(255, 255, 255, 0), #ffffff);
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #ffffff);
}

.toolbelt:hover .toolbelt__logos {
  -webkit-animation-play-state: paused;
          animation-play-state: paused;
}

.toolbelt__logos {
  display: inline-block;
  padding: 30px 0;
  -webkit-animation: 25s toolbelt infinite linear;
          animation: 25s toolbelt infinite linear;
}

.toolbelt__logos img {
  height: 60px;
  margin: 0 30px;
}


/* About me */
#about {
  height: 100%;
}

.about {
  max-width: 75%;
  margin:  20vh auto;
}

.about h1 {
  text-align: center;
  padding: 10px;
}

.about__item {
  max-width: 100%;
  margin: 10vh auto;
  background-color: rgba(168, 152, 152, 0.09);
  border-radius: 15px;
  -webkit-box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  padding: 25px;
}

.about__item h2 {
  padding: 10px;
  margin: 5px;
}

.about__item p {
  line-height: 1.8;
}

.about__item-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

#first {
  display: none;
}

.about__item-content img {
  width: 45%;
  border-radius: 20px;
  padding: 10px;
  margin: 5px;
  -o-object-fit: cover;
     object-fit: cover;
}

.about__item-content p {
  padding: 10px;
  margin: 5px;
}


/* Work Page */
#work {
  height: 100%;
}

.work {
  max-width: 75%;
  margin:  20vh auto;
}

.work h1 {
  text-align: center;
  padding: 10px;
}

/* start grid fallback */

.project-list__item {
  display: inline-block;
  width: 33%;
  padding: 15px;
}

/* end grid fallback */

@supports (display: grid) {
  .project-list {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 50px 1fr 50px 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 50px;
    margin: 0;
  }

  .project-list__item {
    background-color: rgba(168, 152, 152, 0.15);
    border-radius: 15px;
    -webkit-box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    width: auto;
    min-height: auto;
    margin: 0;
  }
}

.project-list__item img{
  width: 100%;
  -webkit-transition: opacity 0.5s;
  -o-transition: opacity 0.5s;
  transition: opacity 0.5s;
  -webkit-transition: -webkit-box-shadow 0.5s;
  transition: -webkit-box-shadow 0.5s;
  -o-transition: box-shadow 0.5s;
  transition: box-shadow 0.5s;
  transition: box-shadow 0.5s, -webkit-box-shadow 0.5s;
  -webkit-transition-timing-function: ease-in-out;
       -o-transition-timing-function: ease-in-out;
          transition-timing-function: ease-in-out;
}

.project-list__item img:hover,
.project-list__item img:focus {
  cursor: pointer;
  opacity: 0.9;
  -webkit-box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.2);
          box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.2);
}

.project-description {
  min-height: 150px;
}

.project-list__item .button {
  margin-right: 20px;
  margin-bottom: 20px;
  float: right;
}

.modal {
  width: 50%;
  padding: 15px 6%;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  -webkit-box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: none;
  outline: none;
}

.modal p {
  min-height: 50px;
}

.modal h3 {
  margin-top: 45px;
}

.close-modal {
  margin-right: 20px;
  margin-bottom: 20px;
  float: right;
}

.close-modal img {
  border-radius: 50%;
  -webkit-transition: -webkit-box-shadow 0.5s;
  transition: -webkit-box-shadow 0.5s;
  -o-transition: box-shadow 0.5s;
  transition: box-shadow 0.5s;
  transition: box-shadow 0.5s, -webkit-box-shadow 0.5s;
  -webkit-transition-timing-function: ease-in-out;
       -o-transition-timing-function: ease-in-out;
          transition-timing-function: ease-in-out;
  padding: 1px;
}

.close-modal img:hover,
.close-modal img:focus {
  border-radius: 50%;
  cursor: pointer;
  -webkit-box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.2);
          box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.2);
}

@-webkit-keyframes pulse {
  0% {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  70% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
}

@keyframes pulse {
  0% {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  70% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
}

.open-modal {
  margin-right: 20px;
  margin-bottom: 20px;
  float: right;
  -webkit-animation: pulse 1.7s infinite;
          animation: pulse 1.7s infinite;
}

.open-modal:hover {
  -webkit-animation: none;
          animation: none;
}

.open-modal img,
.open-modal img:hover,
.open-modal img:focus {
  border-radius: 50%;
  opacity: 1;
}

/* Contact Page */
#contact {
  height: 60vh;
  max-width: 80%;
  margin: 10vh auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background-color: rgba(168, 152, 152, 0.09);
  border-radius: 15px;
  -webkit-box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  padding: 25px;
}

.contact {
  margin: 0 auto;
  max-width: 80%;
  -ms-flex-item-align: center;
      -ms-grid-row-align: center;
      align-self: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.contact h1 {
  padding-bottom: 10px;
}

.contact__information {
  margin: 20px 30px;
  display: block;
}

.contact__animation {
  margin: 40px 45px;
  display: block;
}

/* SVG animation */
svg:hover {
  -webkit-animation: shake 0.3s infinite;
          animation: shake 0.3s infinite;
}

@-webkit-keyframes shake {
  0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  25% { -webkit-transform: rotate(5deg); transform: rotate(5deg); }
  50% { -webkit-transform: rotate(0eg); transform: rotate(0eg); }
  75% { -webkit-transform: rotate(-5deg); transform: rotate(-5deg); }
  100% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
}

@keyframes shake {
  0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  25% { -webkit-transform: rotate(5deg); transform: rotate(5deg); }
  50% { -webkit-transform: rotate(0eg); transform: rotate(0eg); }
  75% { -webkit-transform: rotate(-5deg); transform: rotate(-5deg); }
  100% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
}


/* Footer */
.page-footer {
  clear: both;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  text-align: center;
  position: sticky;
  top: 100%;
}

.social-media {
  margin-bottom: 5px;
}

.social-media a {
  padding: 0 5px;
}

.impressum {
  color: #000;
  font-weight: 400;
  margin-top: 5px;
  margin-bottom: 2px;
}

.impressum:hover {
  text-decoration: none;
}

/* Media queries */
/* For 0 - 500px */
/* Sections: Profile/Home layout/headings, Contact */
@media all and (max-width: 500px) {
  .profile {
    max-width: 320px;
  }

  .profile__portrait {
    margin-bottom: 25px;
  }

  .profile__text h2 {
    font-size: 18px;
  }

  .profile__text h1 {
    font-size: 20px;
  }

  #contact {
    padding: 10px;
  }

  .contact {
    margin: 0 0;
  }
}

/* For 0 - 750px */
/* Sections: Navigation, Profile/Home layout, Toolbelt, About, Project List, Button, h1, Contact Animation */
@media all and (max-width: 750px) {
  ul {
    -webkit-padding-start: 0;
            padding-inline-start: 0;
  }

  #logo {
    margin-left: 10px;
  }

  .page-header {
    display: block;
  }

  .page-header__item:last-child {
    text-align: left;
  }

  .profile {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }

  .profile__portrait {
    margin-right: 50px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 700px;
    max-height: 500px;
    -o-object-fit: contain;
       object-fit: contain;
    padding: 10px;
  }

  .profile__text {
    -webkit-box-flex: 1;
        -ms-flex: auto;
            flex: auto;
  }

  button,
  .button {
    padding: 8px 25px 8px;
  }

  .profile__text .button {
    width: 100%;
    margin-right: 10px;
    margin-left: 10px;
    float:none;
    text-align: center;
  }

  .toolbelt:before,
  .toolbelt:after {
    width: 50px;
  }

  .toolbelt__logos img {
    height: 35px;
    margin: 0 15px;
  }

  h2 {
    font-size: 20px;
  }

  .about__item-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .about__item-content img {
    display: none;
  }

  .project-list {
    grid-gap: 15px;
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 22px;
  }

  .modal {
    width: 85%;
  }

  .contact__animation {
    display: none;
  }
}

/* For 750px - 1200px */
/* Sections: Profile/Home, Contact Animation margin */
@media all and (min-width: 750px) and (max-width: 1200px) {
  .profile {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }

  .profile__portrait {
    margin-right: -50%;
    margin-bottom: -200px;
    width: 100%;
    max-width: 700px;
    max-height: 200px;
    -o-object-fit: contain;
       object-fit: contain;
    padding: 10px;
  }

  .profile__text {
    -webkit-box-flex: 1;
        -ms-flex: auto;
            flex: auto;
  }

  .contact__animation {
    margin: 40px 30px;
  }
}

/* For 750px - 1350px */
/* Sections: About, Project List, Button */
@media all and (min-width: 750px) and (max-width: 1350px) {
  .about__item-content {
    display: inline-block;
  }

  #first {
    display: block;
    float: right;
  }

  #second {
    display: none;
  }

  .about__item-content img {
    -o-object-fit: contain;
       object-fit: contain;
    float: inline-start;
  }

  .project-list {
    -ms-grid-columns: 1fr 15px 1fr;
    grid-template-columns: 1fr 1fr;
  }

  button,
  .button {
    padding: 13px 25px 13px;
  }
}

/* For 500px - 1400px */
/* Sections: Profile h1 */
@media all and (min-width: 500px) and (max-width: 1400px) {
  .profile__text h1 {
    font-size: 30px;
  }
}

/* For 1400px - 1600px */
/* Sections: Profile h1, Project list p */
@media all and (min-width: 1400px) and (max-width: 1600px) {
  .profile__text h1 {
    font-size: 35px;
  }

  .project-description {
    min-height: 180px;
  }
}