/* General Styles */
body, html {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

.slide-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px; /* Rounded corners */
}

/* Company Name */
.company-name {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  font-size: 24px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.5); /* Black overlay */
  padding: 10px 15px;
  border-radius: 10px; /* Rounded corners */
  z-index: 110; /* Ensure it appears above other elements */
}

/* Text Containers */
.text-container {
  position: absolute;
  display: flex;
  justify-content: space-between; /* Ensure heading and paragraph are spaced out */
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  color: white;
}

/* Slide Heading */
.text-container .text-left h1 {
  margin-left: 200px; /* Push the heading further to the right */
  padding-right: auto; /* Add extra padding on the right */
  background: rgba(0, 0, 0, 0.5); /* Keep the semi-transparent background */
  border-radius: 10px;
  padding: 10px;
  display: inline-block;
  color: white;
  font-size: 36px;
}

/* Slide Paragraph */
.text-container .text-right p {
  margin-left: 200px; /* Push the heading further to the right */
  margin-right: 50px; /* Push the paragraph further to the left */
  padding-left: auto; /* Add extra padding on the left */
  background: rgba(0, 0, 0, 0.5); /* Keep the semi-transparent background */
  border-radius: 10px;
  padding: 10px;
  display: inline-block;
  color: white;
  font-size: 18px;
}


/* Thumbnail Navigation */
.thumbnail-container {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
}

.thumbnails {
  display: flex;
  overflow: hidden;
  width: 260px; /* Show only 4 thumbnails at a time */
  gap: 10px;
}

.thumbnail {
  position: relative; /* Ensure the overlay is positioned relative to the thumbnail */
  flex: 0 0 60px;
  height: 60px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden; /* Ensure the overlay and label stay within bounds */
}

/* Thumbnail Overlay */
.thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Full semi-transparent overlay */
  display: flex; /* Flexbox for centering label */
  align-items: flex-end; /* Align label at the bottom */
  justify-content: flex-start; /* Align label to the left */
  padding: 5px; /* Add padding around the label */
  opacity: 0; /* Initially hide the overlay */
  transition: opacity 0.3s ease; /* Smooth fade-in effect */
}

/* Show Overlay on Hover */
.thumbnail:hover .thumbnail-overlay {
  opacity: 1; /* Fully display the overlay on hover */
}

/* Thumbnail Label */
.thumbnail-label {
  color: white; /* White text for better contrast */
  font-size: 12px; /* Adjust font size to fit inside thumbnail */
  padding: 2px 5px; /* Add padding around the label text */
  border-radius: 3px; /* Rounded corners for the label */
  background: rgba(0, 0, 0, 0.7); /* Slightly darker background for the text */
}



.thumbnails .thumbnail {
  flex: 0 0 60px; /* Fixed size for each thumbnail */
  height: 60px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  cursor: pointer;
}

/* Thumbnail Arrows */
.thumb-arrow {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  text-align: center;
  font-size: 20px;
  z-index: 101;
}

.thumb-arrow.left {
  margin-right: 10px;
}

.thumb-arrow.right {
  margin-left: 10px;
}

/* Navigation Buttons for Desktop */
.nav-button {
  position: absolute;
  color: white;
  font-size: 16px;
  text-align: center;
  background: rgba(0, 0, 0, 0.5); /* Black overlay */
  border-radius: 10px; /* Rounded corners */
  padding: 10px 15px;
  z-index: 120; /* Higher z-index to ensure visibility */
  text-decoration: none;
  cursor: pointer;
}

.nav-button.prev {
  bottom: 20px;
  right: 330px;
}

.nav-button.next {
  bottom: 20px;
  right: 250px;
}

.home {
  bottom: 20px;
  right: 150px;
}



.fullscreen, .home {
  position: absolute;
  bottom: 20px;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.5); /* Black overlay with 50% transparency */
  display: inline-block;
  border-radius: 10px; /* Rounded corners */
  z-index: 100; /* Ensures visibility above other elements */
}


.fullscreen {
  bottom: 20px;
  right: 20px;
}

/* Responsive Design for Mobile View */
@media (max-width: 768px) {
  /* Stack Buttons in Mobile View */
  .nav-button.prev, .nav-button.next, .home, .fullscreen {
    position: fixed; /* Ensure buttons are pinned */
    right: 20px; /* Align to the right */
    width: fit-content;
    margin: 10px auto;
  }

  .nav-button.next {
    bottom: 80px; /* Push Next button up slightly */
  }

  .nav-button.prev {
    bottom: 130px; /* Push Previous button up slightly */
  }

  .home {
    bottom: 180px; /* Push Home button up slightly */
  }

  .fullscreen {
    bottom: 230px; /* Push Fullscreen button up slightly */
  }

  /* Stack Thumbnails */
  .thumbnail-container {
    position: absolute; /* Position thumbnails at the bottom */
    bottom: 0; /* Align thumbnails to the very bottom */
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between thumbnails */
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.7); /* Add a semi-transparent background for thumbnails */
    z-index: 100;
  }

  .thumbnails {
    display: flex;
    overflow: hidden;
    width: 260px; /* Restrict thumbnail view to fit small screens */
    gap: 10px;
  }

  /* Center Left and Right Arrows Vertically to Thumbnails */
  .thumb-arrow {
    position: absolute;
    top: 50%; /* Center the arrows relative to the thumbnails */
    transform: translateY(-50%);
    z-index: 120; /* Ensure arrows appear above thumbnails */
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    text-align: center;
  }

  .thumb-arrow.left {
    left: 10px;
  }

  .thumb-arrow.right {
    right: 10px;
  }

  /* Stack Heading and Paragraph */
  .text-container {
    flex-direction: column; /* Stack the heading and paragraph vertically */
    justify-content: flex-start; /* Align text elements at the top */
    align-items: center; /* Center horizontally */
    padding: 20px;
    margin-top: 60px; /* Leave space below the company name */
    text-align: center; /* Center-align the text */
  }

  .text-container h1 {
    font-size: 20px; /* Reduce font size of the heading */
    line-height: 1.2; /* Adjust line height for readability */
  }

  .text-container p {
    font-size: 14px; /* Reduce font size of the paragraph */
    line-height: 1.4; /* Adjust line height for readability */
  }

/* Slide Heading */
 .text-container .text-left h1 {
  justify-content: center; /* Horizontally centers the element */
  margin: 0;              /* Removes any default margin */
  font-size: 18px;
   
}

/* Slide Paragraph */
 .text-container .text-right p {
  justify-content: center; /* Horizontally centers the element */
  margin: 20px 0 0 0;             /* Add margin on top */
  font-size: 14px;  

}


  /* Add Space Below the Company Name */
  .company-name {
    margin-bottom: 20px; /* Space between company name and the text */
  }
}
