/* General Styles */
*{
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    align-items: center;
    text-align: left;
    
}



/* Navigation Bar */
nav {
    background-color: #333;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: white;
    padding: 14px 20px;
    display: block;
    text-decoration: none;
}

nav ul li a:hover {
    background-color: #555;
}


.intro__title {
    margin-top: 40px; /* Space for navbar */
    text-align: center;
    background-color: #f4f4f4;
    padding: 40px;
}

.intro__title h1 {
    font-size: 2.5rem;
    color: #333;
    font-weight: bold;
}

/* Home Section */
#home {
    background-color: #f4f4f4;
    padding-top: 0px; /* Offset for the navbar */
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: center;
    text-align: left;
}

.main__container {
    display: flex;
    justify-content: space-between;
    align-items: left;
    max-width: 1200px;
    width: 100%;
    padding: 40px 20px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 40px;
    border-top: 5px solid #f7c600; /* Yellow accent */
}

.main__content {
    flex: 1;
    padding-right: 20px;
    text-align: left;
}

.main__content h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.main__content p {
    font-size: 1.5rem;
    color: #555;
    line-height: 1.6;
}

.main__img--container {
    flex: 1;
    text-align: left;
}

#main__img {
    max-width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* lisätietoja*/
.inffo__container, .inffo2__container {
    display: flex;
    justify-content: space-between;
    align-items: left;
    max-width: 1200px;
    width: 100%;
    padding: 40px 20px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 40px;
    border-top: 5px solid #f7c600; /* Yellow accent */
}

.inffo__content, .inffo2__content {
    flex: 1;
    padding-right: 20px;
    text-align: left;
}

.inffo__content h1, .inffo2__content h1 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    
}

.inffo__content p, .inffo2__content p{
    font-size: 1.5rem;
    color: #555;
    line-height: 1.6;
    
}

.inffo__img--container, .inffo2__img--container {
    flex: 1;
    text-align: center;
}

#inffo__img, #inffo2__img {
    max-width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.welcome__message {
    max-width: 800px;
    width: 100%;
    padding: 20px;
}

.welcome__message h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.welcome__message p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
}

/* Responsiveness */
@media (max-width: 768px) {
    .main__container {
        flex-direction: column;
        padding: 20px;
    }

    .main__content {
        padding-right: 0;
        text-align: center;
    }

    .main__content h1 {
        font-size: 2.5rem;
    }
    .main__content h2 {
        font-size: 2.5rem;
    }

    .main__content p {
        font-size: 1.2rem;
    }

    #main__img {
        max-height: 300px;
    }
}

#about, #ilmottaudu {
    background-color: #f4f4f4; 
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: center;
    text-align: center;
}

.kissa__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 40px 20px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 40px;
    border-top: 5px solid #f7c600; /* Yellow accent */
}

.kissa__content {
    flex: 1;
    padding-right: 20px;
    text-align: left;
}

.kissa__content h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.kissa__content p, .inffo2__content p {
    font-size: 1.5rem;
    color: #555;
    line-height: 1.6;
    word-wrap: break-word;  /* Ensures long words wrap properly */
    word-break: normal;     /* Prevents words from breaking in the middle */
    line-height: 1.5;       /* Provides a comfortable line spacing */

}

.kissa__img--container {
    flex: 1;
    text-align: center;
}

#kissa__img {
    max-width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/*maila*/
.maila__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 40px 20px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 40px;
    border-top: 5px solid #f7c600; /* Yellow accent */
}

.maila__content {
    flex: 1;
    padding-right: 20px;
    text-align: left;
}

.maila__content h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.maila__content p {
    font-size: 1.5rem;
    color: #555;
    line-height: 1.6;
}

.maila__img--container {
    flex: 1;
    text-align: center;
}

#maila__img {
    max-width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



#about, #services, #contact,#hinnasto {
    background-color: #f4f4f4;

}

#contact
{
    padding: 1rem;
}
    .arvot__container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
        width: 100%;
        padding: 40px 20px;
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        margin-bottom: 40px;
        border-top: 5px solid #f7c600; /* Yellow accent */
    }
   
      

        
    .arvot__content {
        flex: 1;
        padding-right: 20px;
        text-align: left;
    }
    
    .arvot__content h1 {
        font-size: 3rem;
        color: #333;
        margin-bottom: 20px;
        font-weight: bold;
    }
    .arvot__content h2 {
        font-size: 2rem;
        color: #333;
        margin-bottom: 20px;
        font-weight: bold;
    }
    
    .arvot__content p {
        font-size: 1.5rem;
        color: #555;
        line-height: 1.6;
    }
    
    .arvot__img--container {
        flex: 1;
        text-align: center;
    }
    
    #arvot__img {
        max-width: 100%;
        max-height: 400px;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/*ilmottaudu section*/

.ilmottaudu__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 40px 20px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 40px;
    border-top: 5px solid #f7c600; /* Yellow accent */
}


.ilmottaudu__content {
    flex: 1;
    padding-right: 20px;
    text-align: left;
}

.ilmottaudu__content h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.ilmottaudu__content p {
    font-size: 1.5rem;
    color: #555;
    line-height: 1.6;
}



.ilmottaudu__img--container {
    flex: 1;
    text-align: left;
}

#ilmottaudu__img {
    max-width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hinnasto*/

.hinnasto__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 40px 20px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 40px;
    border-top: 5px solid #f7c600; /* Yellow accent */
}

  

    
.hinnasto__content {
    flex: 1;
    padding-right: 20px;
    text-align: left;
}

.hinnasto__content h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.hinnasto__content p {
    font-size: 1.5rem;
    color: #555;
    line-height: 1.6;
}

.hinnasto__img--container {
    flex: 1;
    text-align: left;
}

#hinnasto__img {
    max-width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



/* Gallery Section */
#gallery {
    background-color: #f4f4f4;
    padding-top: 50px;
    height: auto;
    padding-left: 5px;
}


.gallery-container {
    display: flex;
    overflow-x: auto;
    padding: 20px;
    scroll-snap-type: x mandatory;
}

.gallery-container img {
    width: 300px;
    margin-right: 10px;
    scroll-snap-align: start;
    transition: transform 0.3s;
}


.gallery-container img:hover {
    transform: scale(1.1);
}

/* For better mobile responsiveness */
@media (max-width: 768px) {
    nav ul {
        display: flex;
        flex-wrap: wrap; /* Allow items to wrap to form columns */
        
        justify-content: center;
        
    }
   

    nav ul li {
        width: 20%; /* Set each item to take up half the width, creating two columns */
        display: flex;
        justify-content: center;
       
    }

    .main__container, .inffo__container, .inffo2__container, .kissa__container, .maila__container, .arvot__container, .ilmottaudu__container, .hinnasto__container {
        flex-direction: column;
        padding: 20px;
    }

    .main__content, .inffo__content, .inffo2__content, .kissa__content, .maila__content, .arvot__content, .ilmottaudu__content, .hinnasto__content {
        padding-right: 0;
        text-align: left;
    }

    .main__content h1, .inffo__content h1, .kissa__content h1, .maila__content h1, .arvot__content h1, .ilmottaudu__content h1, .hinnasto__content h1 {
        font-size: 2.5rem;
    }

    .main__content p, .inffo__content p, .inffo2__content p, .kissa__content p, .maila__content p, .arvot__content p, .ilmottaudu__content p, .hinnasto__content p {
        font-size: 1.2rem;
    }

    #main__img, #inffo__img, #inffo2_img, #kissa__img, #maila__img, #arvot__img, #ilmottaudu__img, #hinnasto__img {
        max-height: 300px;
    }

    .gallery-container img {
        width: 150px; /* Smaller images on mobile */
        margin-right: 5px;
    }

    .gallery-container {
        gap: 5px;
    }
}
    
