html, body { 
  height: 100%; /* Make html and body take up full viewport height */
  margin: 0; /* Reset default margins */
}

main { 
  min-height: 80vh; /* Ensure 'main' extends at least the viewport height */
  max-height: 600px;
  display: flex; 
  flex-direction: column; /* Arrange content vertically */
}

.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 600px; /* Limit maximum width to 600px */
    max-height: 600px;
    height: auto; /* Set initial height to 0 */
    padding-top: 100%; /* Set padding top to create a square aspect ratio */
    margin: 0 auto; /* Center the container horizontally */
    overflow: hidden; /* Hide any overflow content */
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Fill the entire container width */
    height: auto;
    max-height: 100%; /* Fill the entire container height */
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Add a smooth fade transition */
    object-fit: contain; /* Scale the image to fit inside the container */
}

.slideshow-image.active {
    opacity: 1;
}

nav {
    background-color: #333; 
    color: white;
    text-align: center;
    padding: 15px 0;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
}

#hero {
    background-image: url('../assets/start.png');
    background-size: cover;
    padding: 80px 0;
    text-align: center;
    color: black;  /* Adjust text color for visibility */
    text-shadow: 
        -2px -2px 2px white,  
        2px -2px 2px white,
        -2px 2px 2px white,
        2px 2px 2px white; 
}

.button {
    background-color: #007bff; 
    color: black;
    border: none;
    padding: 10px 20px;
    text-decoration: none;  /* Removes default underlining */
    cursor: pointer;
}

#benefits {
    margin: 10px 0;
    text-align: center;
}

.benefit { 
    display: flex;
    margin-left: 5px;
    /*    flex-wrap: wrap;*/ /* Allow items to wrap */
}

.benefit-item { 
    display: flex;
    align-items: center; /* Aligns icon and text vertically */
    margin-right: 5px; /* Adjust spacing between items */
}

.benefit > * { /* Target direct children of  '.benefit' */
    flex: 0 0 30%; /* Items will try to take up 30% width */
    margin-bottom: 5px;  /* Adjust spacing as needed */
}

.benefit img {
    margin-right: 5px;
    width: 30px;
    height: 30px;
}

#serv {
    position: relative;   /*To contain the video and potential overlay */
    background-size: cover;
    padding: 50px 0;    
    text-align: center;
    color: black;  /* Adjust text color for visibility */
    text-shadow: 
        -2px -2px 2px white,  
        2px -2px 2px white,
        -2px 2px 2px white,
        2px 2px 2px white; 
}

#serv video {  /*Target your video element directly*/ 
    position: absolute; 
    object-fit: cover; 
    top: 40%;
    left: 50%;
    max-width: 100%;
    min-height: 80%;
    width: auto;
    height: auto;
    z-index: -1; 
    transform: translate(-50%, -50%);
}

#serv::after {  /* Optional overlay for better text readability */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); /* Black with 0% opacity */
    z-index: 0; /* Below the video but above everything else */
}

.servicii {
    display: flex;
    align-items: center;
    margin: 0 auto;
    flex-direction: column; /* Allows items to wrap onto multiple lines */
    justify-content: space-around; /* Distribute items evenly on each row */
}

.servicii-item { 
    display: flex;   /* Makes each item a flex container */
    align-items: center;  /* Vertically centers the icon and text */
    margin-bottom: 20px;  /* Adjust spacing between rows of services */
}

.icon {
    margin-right: 5px;
    width: 30px;
    height: 30px;
}

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    height: 60vh;
    text-align: center;
    padding: 60px 0;
    color: black;  /* Adjust text color for visibility */
}

#submit-button {
  background-color: #007bff; 
  color: white; /* Changed to white for contrast */
  border: none;
  padding: 10px 20px;
  text-decoration: none; 
  cursor: pointer;
  border-radius: 5px;  /* Added for a slightly rounded look */
}

#contact .button:hover {
  background-color: #0056b3; /* Slightly darker on hover */
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: auto; /* Pushes footer to the bottom within the 'main' container */
}