@import url("https://fonts.googleapis.com/css2?family=Open+Sans&display=swap");

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

body {
  height: 100vh;
  font-family: "Open Sans", sans-serif;
}

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

.left-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  div {
    display: grid;
    place-content: center;
    height: 100%;
    width: 100%;
    color: #fff;
    background-color: var(--bg-color, #000);
    text-align: center;
  }
  h1 {
    font-size: 40px;
    margin-bottom: 10px;
    margin-top: -30px;
  }
}

.right-slide {
  position: absolute;
  top: 0;
  left: 35%;
  width: 65%;
  height: 100%;
  div {
    width: 100%;
    height: 100%;
  }
  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.left-slide,
.right-slide {
  transition: transform 0.5s ease-in;
}

button {
  position: absolute;
  left: 35%;
  top: 50%;
  z-index: 100;
  padding: 15px;
  font-size: 16px;
  color: #aaa;
  background-color: white;
  border: none;
  cursor: pointer;
  &:hover {
    color: #222;
  }
  &:focus {
    outline: none;
  }
}

.down-button {
  transform: translateX(-100%);
  border-radius: 5px 0 0 5px;
}

.up-button {
  transform: translateY(-100%);
  border-radius: 0 5px 5px 0;
}
