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

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

.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;
  bottom: 220px;
  right: 800px; 
  opacity: 0;
  width: 100%; 
  /* background-color: rgba(255, 255, 255, 0.8); */
  color: #fff;
  padding: 35px;
  text-align: right !important; 
}

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

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

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

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

.buttons button {
  border: none;
  background-color: transparent;
  color: #fff;
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 50%;
  outline: none;
}

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

.arrow-icon {
 max-width: 18px;
}

.buttons {
 opacity: 0.5;
}

@media(max-width: 500px) {
  .slide .content {
    bottom: -200px; 
    left: 0;
    width: 100%;
	text-align: center !important; 
  }

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

/* Background images */
.slide:first-child {
  background: url('../images/photo1.jpeg') no-repeat center center/cover;
}

.slide:nth-child(2) {
  background: url('../images/photo2.jpeg') no-repeat center center/cover;
}

.slide:nth-child(3) {
  background: url('../images/photo3.jpeg') no-repeat center center/cover;
}
