@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

* {
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
}

.carousel {
  box-shadow: rgba(77, 66, 96, 0.4) 0px 10px 50px;
  height: 480px;
  width: 960px;
  overflow: hidden;
  position: relative;
  border-radius: 5px;
}

.img-container {
  display: flex;
  transform: translateX(0);
  transition: transform 0.9s ease-in-out;
  position: relative;
}

.slide {
  width: 100%;
  height: auto;
  position: relative;
}

.slide-text-container {
  width: 480px;
  height: auto;
  position: absolute;
  left: 100px;
  top: 50%;
  transform: translate(0, -50%);
}

.button-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

.btn {
  background: linear-gradient(
    90deg,
    rgba(77, 66, 96, 1) 0%,
    rgba(168, 111, 129, 1) 100%
  );
  color: #fff;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  width: 60px;
  border-radius: 5px;
  opacity: 0.8;
}

.btn:hover {
  opacity: 1;
}

.btn:focus {
  outline: none;
}
