@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.4s ease-in-out;
}

.slide.current {
  opacity: 1;
}

.slide .content {
  position: absolute;
  z-index: 1;
  bottom: 70px;
  left: -600px;
  opacity: 0;
  width: 600px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  padding: 35px;
}

.slide .content h1 {
  margin-bottom: 10px;
}

.slide .content p:last-child {
  text-align: center;
  font-size: 1.125em;
  text-transform: uppercase;
}

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

.slide .app {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.slide .app a:first-child {
  flex-basis: 50%;
}

.app-phones {
  display: flex;
  flex-direction: column;
  height: 102px;
}

.app-phones a {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  transition: color .2s ease-in-out;
}

.app-phones a:hover {
  color: #777;
}

.slide .app img {
  max-width: 100%;
}

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

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

.buttons button {
  border: 2px solid #fff;
  background-color: transparent;
  color: #fff;
  cursor: pointer;
  padding: 13px 15px;
  border-radius: 50%;
  outline: none;
}

.buttons button:hover {
  background-color: #fff;
  color: #333;
}

@media (max-width: 500px) {
  .slide .content {
    padding: 20px;
    bottom: -300px;
    left: 0;
    width: 100%;
  }

  .slide.current .content {
    transform: translateY(-300px);
  }

  .slide .content h1 {
    font-size: 1.5rem;
  }

  .app-phones {
    height: 70px;
  }

  .app-phones a {
    font-size: 1rem;
  }
}



/* Background Images */
 
.slide:first-child {
  background: url('../images/taxi01.jpg') no-repeat center top/cover;
}
.slide:nth-child(2) {
  background: url('../images/taxi02.jpg') no-repeat center top/cover;
}
.slide:nth-child(3) {
  background: url('../images/taxi03.jpg') no-repeat center top/cover;
}