@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
  box-sizing: border-box;
}

main {
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  background-position: center center;
  background-size: cover;
  transition: 0.4s;
}

main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  /* fill the viewport  */
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: -1; /* -1 puts this behind everything else */
}

.slide {
  display: none;
  opacity: 0;
  height: 100vh;
  width: 100vw;
  position: absolute;
  top: 0;
  transition: 0.4s ease;
  z-index: 1;
  display: flex; /* Flexbox layout */
  flex-direction: row; /* Horizontal layout */
}

.slide.active {
  display: flex; /* Change to flex */
  opacity: 1;
  z-index: 2;
}

.slide-image {
  flex: 0 0 50%; /* Fixed width of 50% */
  height: 100%;
  overflow: hidden;
  background-color: #000;
  display: flex; /* Ensure internal flex layout if needed */
  justify-content: center; /* Center content horizontally if needed */
  align-items: center; /* Center content vertically if needed */
}

.slide-image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.slide-content {
  flex: 0 0 50%; /* Fixed width of 50% */
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
}

.arrow {
  position: absolute;
  cursor: pointer;
  background-color: transparent;
  color: #fff;
  padding: 20px;
  font-size: 30px;
  border: 2px solid orange;
  top: 5px;
  width: 5%;
  height: auto; /* Adjust height as needed */
  z-index: 3;
}

.home {
  position: absolute;
  cursor: pointer;
  top: 5px;
  right: 15%;
  background-color: transparent;
  color: #fff;
  padding: 20px;
  font-size: 30px;
  border: 2px solid orange;
  z-index: 3;
}

.arrow:focus {
  outline: 0;
}

.left-arrow {
  right: 10%;
}

.right-arrow {
  right: 5%;
}

.fa-home {
  color: white;
}