@import url('https://fonts.googleapis.com/css?family=Roboto');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background: #333;
  color: #fff;
  line-height: 1.6;
}

.slider {
  position: relative;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  box-shadow: inset 80px 100px 120px #000000, inset -80px -70px 200px #000000;
}

.slide.current {
  opacity: 0.6;
}

.slide .content {
  position: absolute;
  bottom: 20px;
  left: -600px;
  opacity: 0;
  width: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  padding: 15px 30px 20px 30px;
  border-radius: 0 12px 12px 0;
}

.slide .content h1 {
  margin-bottom: 5px;
  padding: 0;
  text-shadow: white 5px 3px;
}

.slide.current .content {
  opacity: 1;
  transform: translateX(600px);
  transition: all 0.5s ease-in-out 0.3s;
  text-align: justify;
}

.buttons button#next {
  position: absolute;
  top: 40%;
  right: 25px;
}

.buttons button#prev {
  position: absolute;
  top: 40%;
  left: 25px;
}

.buttons button {
  background-color: transparent;
  color: white;
  cursor: pointer;
  padding: 25px 10px;
  border-radius: 10%;
  outline: none;
}

.buttons button:hover {
  background-color: rgb(155, 151, 158);
  color: #333;
}

@media all and (max-width: 1200px) {
  .slide {
    transition: opacity 0.6s ease-in-out;
    box-shadow: inset 50px 80px 70px #3c3636, inset -50px -20px 100px #000000;
  }
  .slide .content h1{
    font-size: 22px;
    padding-top: 10px;
  }
  .slide .content {
    bottom: -300px;
    left: 0;
    width: 97%;
    padding: 0 20px 15px 20px;
  }
  .slide .content p{
    font-size: 16px;
    line-height: 1.4;
  }
  .slide.current .content {
    transform: translateY(-325px);
  }
}

@media all and (max-width: 769px) {
  .slide .content {
    bottom: -300px;
    left: 0;
    width: 97%;
  }
  .slide.current .content {
    transform: translateY(-325px);
  }
  .slide .content h1{
    font-size: 18px;
    line-height: 1.3;
    text-shadow: white 3px 2px;
  }
  .slide .content p{
    font-size: 14px;
    line-height: 1.4;
  }
  .buttons button {
    outline: none;
  }
}

@media all and (max-width: 500px) {
  .slide .content h1{
    font-size: 15px;
  }
  .slide .content {
    padding: 0 15px 10px 15px;
  }
  .slide .content p{
    font-size: 12px;
    line-height: 1.3;
  }
  .buttons button#next {
    position: absolute;
    top: 55%;
    right: 15px;
  }
  .buttons button#prev {
    position: absolute;
    top: 55%;
    left: 15px;
  }
  .buttons button {
    background-color: transparent;
    color: white;
    cursor: pointer;
    padding: 17px 7px;
    border-radius: 20%;
    outline: none;
  }
  .buttons button:hover {
    background-color: rgb(155, 151, 158);
    color: #333;
  }
}

/* Backgorund Images */
 
.slide:first-child {
  background: url('img/vienna.jpg') no-repeat center top/cover;
}
.slide:nth-child(2) {
  background: url('img/graz.jpg') no-repeat center top/cover;
}
.slide:nth-child(3) {
  background: url('img/linz.jpg') no-repeat center top/cover;
}
.slide:nth-child(4) {
  background: url('img/salzburg.jpg') no-repeat center top/cover;
}
.slide:nth-child(5) {
  background: url('img/innsbruck.jpg') no-repeat center top/cover;
} 
.slide:nth-child(6)  {
  background: url('img/klagenfurt.jpg') no-repeat center center/cover;
}
