/* // VRPX digitale medien | style.css */

* {
  box-sizing: border-box;
}

@import url(https://fonts.googleapis.com/css?family=Raleway:200,500,700,800);

body {
  background: url('../img/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  height: 100%;
  overflow-x: hidden;
  color: #fff;
  font-weight: 500;
  font-size: 1.05em;
  font-family: 'Raleway', Arial, sans-serif;
}

a {
  color: #2fa0ec;
  text-decoration: none;
  outline: none;
}

a:hover,
a:focus {
  color: #a6dbff;
}

a.tooltip {
  position: relative;
  text-decoration: none;
}

a.tooltip:after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 0%;
  left: 120%;
  background: transparent;
  padding: 5px 15px;
  color: #ffffff;
  font-size: .8em;
  white-space: nowrap;
  opacity: 0;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

a.tooltip:hover:after {
  left: 100%;
}

a.tooltip:hover:after {
  opacity: 1;
}

nav {
  z-index: 99;
  position: fixed;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  min-height: 220px;
  padding: 20px 10px !important;
  margin: 0 0;
  -webkit-background-image: url('../img/splatter.png');
  -webkit-background-position: center -220px;
  -webkit-background-size: center 0;
  -webkit-background-repeat: no-repeat;
  -webkit-background-attachment: fixed;
  background-image: url('../img/splatter.png');
  background-position: center -220px;
  background-size: center 0;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: visible;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

nav a {
  color: #2fa0ec;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0 0.6em;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 1);
  color: black;
}

nav a.active {
  background-color: #6f00ff;
  color: white;
  animation-name: simpleFade;
  animation-duration: 1s;
  animation-delay: 1s;
  animation-direction: alternate-reverse;
  animation-iteration-count: infinite;
}

#navbar {
  display: block;
  padding: 0px 0px;
  transition: 0.4s;
}

footer {
  position: fixed;
  background: linear-gradient(rgb(110, 110, 110), black 15%);
  width: 100vw;
  height: auto;
  margin: 0 auto;
  text-align: center;
  bottom: 0;
  padding-top: 1em;
}

footer span {
  display: inline-block;
  vertical-align: top;
}

#logo {
  display: block;
  width: 50vw;
  max-width: 500px;
  overflow: visible;
}

#logoSub {
  font-size: .86em;
  opacity: 0;
  text-align: center;
  margin-bottom: 1em;
  transition: opacity 1s linear;
}

.content {
  width: 100%;
  height: auto;
  display: block;
  position: absolute;
  overflow: hidden;
  padding-top: 180px;
}

.content section {
  display: block;
  margin: 0 auto;
  height: auto;
  padding: 0 2vw;
}

.content section h1 {
  
}
.content section h2 {
  padding-left: 10px;
}

.content section span {
  max-width: 400px;
  margin: 1rem 1rem 0;
}

.content section img {
  max-width: 50%;
  height: auto;
  margin: 2rem;
}

#leistungen,
#portfolio {
  width: 100%;
}

.portfolio--info-mobile {
  display: none;
}

.impressum {
  width: 90vw;
  min-width: 300px;
  height: auto;
  display: block;
  text-align: left;
  margin-bottom: 40vh;
  margin-left: 1em;
  margin-top: 180px;
}

.impressum p {
  margin-top: 1em;
  margin-bottom: .6em;
}

@keyframes steppedSplatter {
  0% {
    background-position: center -220px;
  }

  100% {
    background-position: center 0px;
  }
}

@keyframes steppedSplatterHide {
  0% {
    background-position: center 0;
  }

  100% {
    background-position: center -220px;
  }
}

#lorem {
  margin: 0 auto;
  padding-left: 1em;
  text-align: left;
  width: 100vw;
  animation: simpleFade 1s 1;
}

#lorem :nth-child(1) {
  animation: simpleFade 1s 1;
  animation-delay: 1s;
}

#lorem :nth-child(2) {
  animation: simpleFade 1s 1;
  animation-delay: 1.5s;
}

#lorem :nth-child(3) {
  animation: simpleFade 1s 1;
  animation-delay: 2s;
}

@keyframes simpleFade {
  0% {
    background-color: #000;
  }

  100% {
    background-color: #6f00ff;
  }
}

/* Add responsiveness - on screens less than 580px wide, display the navbar vertically instead of horizontally */
@media screen and (max-width: 580px) {
  nav {
    padding: 20px 10px !important;
    /* Use !important to make sure that JavaScript doesn't override the padding on small screens */
  }
  .content section h1 {
    font-size: 1.5em;  
  }
  .content section h2 {
    padding-left: 10px;
    font-size: 1.2em;
  }
  
  .content section span {
    max-width: 400px;
    margin: 1rem 1rem 0;
  }
  
  .content section img {
    max-width: 50%;
    height: auto;
    margin: 2rem;
  }
  .portfolio--info-mobile {
    display: block;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: .8em;
  }

}

@media screen and (min-width: 1400px) {
  .content section {
    display: inline-block;
    margin: 0 auto;
    height: auto;
    padding: 0 2vw;
  }
  
  .content section h2 {
    padding-left: 10px;
  }
  
  .content section span {
    max-width: 700px;
    margin: 1rem 1rem 0;
  }
  
  .content section img {
    max-width: 50%;
    height: auto;
    margin: 2rem;
  }

  #leistungen {
    float: left;
  }

  #leistungen, #portfolio {
    display: inline-block;
    width: 50%;
  }
}