* {
    box-sizing: border-box;
}

.images {display: none}

.carousel-container {
    max-width: 100%;
    height: 700px; /* Adjust the height as needed */
    overflow: hidden;
    position: relative;
    margin: 0;
}

.carousel-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Adjust this value to change the position */
    position: relative;
    margin: 0;
    overflow: hidden;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%; /* Initial position at the vertical center of the container */
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  transition: 0.6s ease;
  user-select: none;
}

.prev {
  left: 10px; /* Adjust the position of the "prev" arrow */
}

.next {
  right: 10px; /* Adjust the position of the "next" arrow */
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Updated class name to avoid conflicts with the navbar */
.active-slide {
  background-color: #717171;
}


.images {display: none}

/* Arrows for navigation */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    user-select: none;
}

.prev {
    left: 10px; /* Adjust the position of the "prev" arrow */
}

.next {
    right: 10px; /* Adjust the position of the "next" arrow */
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Updated class name to avoid conflicts with the navbar */
.active-slide {
  background-color: #717171;
}

.home-banner {
    overflow: hidden;
    width: 100%;
    margin: 0;
}

.home-banner .button-container {
    display: flex;
    gap: 20px;
}

.home-banner .button-container a {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.home-banner .button-container a:hover {
    background-color: #0056b3;
}

.home-banner .button-container {
    display: flex;
    gap: 20px;
}

.home-banner .button-container a {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.home-banner .button-container a:hover {
    background-color: #0056b3;
}

.services-catalog {
    display: flex; /* Switch to flexbox layout */
    justify-content: space-between; /* Ensure services are spaced out evenly */
    flex-wrap: wrap; /* Allows the services to wrap on smaller screens */
    width: 100%; 
    margin: 0 auto;
    text-align: center;
}

.service {
    flex: 1 1 calc(50% - 20px); /* Set each service to take up 50% width, minus some margin */
    margin: 10px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.service h3 {
  font-family: 'YourFont', sans-serif;
  font-size: 20px;
  color: #333;
}

.service p {
  font-size: 16px;
  color: #666;
}

.service a {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}

.service:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.service a:hover {
  background-color: #0056b3;
}

/* Example responsive styles for the slideshow */
@media screen and (min-width: 501px) and (max-width: 768px) {
.services-catalog {
        justify-content: center; /* Center the services on smaller screens */
    }

    .service {
        width: calc(100% - 20px); /* Take full width, adjust margin for spacing */
    }

    .home-banner {
        height: auto; /* Adjust height for flexibility */
    }

       .prev, .next {
        top: 50%; /* Position at the vertical center of the container */
        transform: translateY(-50%); /* Adjust for vertical centering */
        font-size: 20px; /* Adjust arrow size for smaller screens */
    }

    .carousel-container {
        height: auto; /* Adjust height for flexibility */
    }

    .carousel-container img {
        object-position: center; /* Center the image on smaller screens */
    }

    .home-banner .button-container {
        flex-direction: column; /* Stack buttons vertically on smaller screens */
        align-items: center; /* Center buttons horizontally on smaller screens */
    }

    .home-banner .button-container a {
        width: 100%; /* Make buttons full width on smaller screens */
        text-align: center; /* Center text within buttons */
    }
    
    .loginButton,
    .logoutButton {
        display: flex;
        align-items: center;
        text-decoration: none;
        margin: 0 5px; /* Adjusted margin for spacing */
        flex-shrink: 0; /* Prevent the button from shrinking */
        overflow: hidden; /* Hide any overflowing content */
    }

    .loginButton img,
    .logoutButton img {
        width: 40px; /* Set the width of the image as desired */
        margin-left: 5px; /* Add some spacing between the image and the text */
    }
}

@media only screen and (max-width: 500px) {
    nav, footer {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    nav {
        justify-content: space-between;
        padding: 0 5px;
    }

    .navbar-items {
        margin-top: 0;
    }

    .navbar-logo {
        margin-right: auto;
    }

    .nav-links {
        flex-direction: row;
        margin: 0;
    }

    .nav-links li {
        margin: 0 10px;
    }

    .nav-links li a {
        font-size: 12px;
    }

    .navbar-buttons {
        margin-top: 0;
    }

    .navbar-buttons img {
        width: 20px;
    }

    .navbar-brand img {
        width: 30px;
    }

    footer {
        width: 100%;
        padding: 0.5rem;
    }

    footer p {
        font-size: 12px;
        margin: 5px 0;
    }
    
    .loginButton,
    .logoutButton {
        display: flex;
        align-items: center;
        text-decoration: none;
        margin: 0 5px; /* Adjusted margin for spacing */
        flex-shrink: 0; /* Prevent the button from shrinking */
        overflow: hidden; /* Hide any overflowing content */
    }

    .loginButton img,
    .logoutButton img {
        width: 20px; /* Set the width of the image as desired */
        margin-left: 5px; /* Add some spacing between the image and the text */
    }
}

@media only screen and (max-width: 600px) {
    .services-catalog {
        flex-direction: column; /* Display services in a column for smaller screens */
        align-items: center; /* Center services horizontally on smaller screens */
    }

    .service {
        width: 100%; /* Make services full width on smaller screens */
        margin: 10px 0; /* Adjust margin for spacing */
    }
    
        .loginButton,
    .logoutButton {
        display: flex;
        align-items: center;
        text-decoration: none;
        margin: 0 5px; /* Adjusted margin for spacing */
        flex-shrink: 0; /* Prevent the button from shrinking */
        overflow: hidden; /* Hide any overflowing content */
    }

    .loginButton img,
    .logoutButton img {
        width: 20px; /* Set the width of the image as desired */
        margin-left: 5px; /* Add some spacing between the image and the text */
    }
    
    .home-banner {
        height: auto; /* Adjust height for flexibility */
    }

    .prev, .next {
        top: 50%; /* Position at the vertical center of the container */
        transform: translateY(-50%); /* Adjust for vertical centering */
        font-size: 16px; /* Adjust arrow size for smaller screens */
    }

    .carousel-container {
        height: auto; /* Adjust height for flexibility */
    }

    .carousel-container img {
        object-position: center; /* Center the image on smaller screens */
    }

    .home-banner .button-container {
        flex-direction: column; /* Stack buttons vertically on smaller screens */
        align-items: center; /* Center buttons horizontally on smaller screens */
    }

    .home-banner .button-container a {
        width: 100%; /* Make buttons full width on smaller screens */
        text-align: center; /* Center text within buttons */
    }
}
