@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap');

html, body {
    margin: 0;
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
}

.page {
    flex: 1;
}

.header {
    text-align: center;  
    height: 40rem; 
    max-height: 40rem;
    display: flex;         
    justify-content: center; 
    align-items: center;    
    overflow: hidden;
}

.header picture {
    width: 100%;
    height: 100%;
    display: flex; 
    justify-content: center;
    align-items: center;
}

.header img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.info-content {
    margin: 3rem auto 5rem auto;
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    position: relative;
    z-index: 1;
    height: auto;
    width: 100%;
    max-width: 1600px;
}

.info-content h2 {
    grid-column: 1 / -1; 
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.column {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.txt-container {
    width: 100%;
    max-width: 26rem;
    color: rgb(0, 0, 0);
    padding: 1rem;
}

.txt-container p {
    font-size: 1.3rem;
    font-weight: normal;
    line-height: 1.8rem;
}

.img-container {
    width: 100%;
    max-width: 100%; 
    padding: 1rem;
}

.img-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px; 
}

@media (max-width: 850px) {

    .header {
        height: auto; 
        max-height: none;
        min-height: unset;
        margin-top: 0; 
    }

    .header picture,
    .header img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .info-content {
        grid-template-columns: 1fr; /* Vaihtaa gridin 1 sarakkeeseen mobiilissa */
        margin: 2rem auto 3rem auto;
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .info-content h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .txt-container {
        max-width: 100%;
    }

    .txt-container p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .img-container {
        padding: 0;
    }
}