body {
    font-family: 'vera slim', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #000000;
    position: relative;
    min-height: 100vh;
}

header {
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.header-container {
    position: relative;
    width: 100%;
}

.header-image {
    width: 100%;
    height: auto;
}

.header-text {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: absolute;
    bottom: 2px;
    left: 65.8%;
    transform: translateX(-50%);
    color: #8CADCE;
    font-weight: bold;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.puheen {
    font-size: 6.9em;
}

.pesa {
    font-size: 2em;
    display: inline-block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-bottom: 23px;
}

.nav-container {
    background-color: #ffffff;
    padding: 10px 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    display: block;
}

nav ul li a img {
    width: 140px;
    height: auto;
}

.text-container {
    text-align: left;
    margin: 20px auto 20px auto;
    padding: 0 20px;
    line-height: 1.6;
    font-size: 1em;
}
.therapist-text {
    text-align: left;
    margin: 0 auto 10px auto;
    padding: 0 20px;
    line-height: 1.6;
    font-size: 1em;
}

.additional-text-container {
    text-align: left;
    margin: 0 auto 10px auto;
    padding: 0 20px;
    line-height: 1.6;
    font-size: 1em;
}

.content {
    max-width: 929px;
    margin: 0 auto;
    padding: 20px;
}
.image-text-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.therapist-image {
    width: 45%;
    max-width: 400px;
    height: auto;
    margin-right: 5px;
    margin-top: 20px;
    box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.2);
}

footer {
    text-align: center;
    padding: 10px 0;
    width: 100%;
    position: relative;
}

.image-contact-container {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0px;
}

.main-image {
    height: auto;
    width: 450px;
    align-self: left;
}

.contact-box {
    max-width: 45%;
    padding: 15px;
    text-align: left;
    box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.2);
    background-color: #8CADCE;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: bold;
}

.copyright-box {
    background-color: #8CADCE;
    padding: 10px 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 0.9em;
    max-width: 300px;
    margin: 20px auto;
}

@media (max-width: 768px) {
    .header-container {
        width: 100%;
        height: auto;
    }

    .header-text {
        font-size: 1.5em;
        left: 75%;
    }

    .image-text-container {
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
    }

    .image-contact-container {
        flex-direction: column;
    }

    .main-image,
    .contact-box {
        max-width: 100%;
    }

    .puheen {
        font-size: 1.5em;
    }

    .pesa {
        font-size: 0.5em;
        margin-bottom: 6px;
    }

    .nav-box {
        padding: 5px 0;
    }

    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        width: 30%;
        margin: 10px 5px;
    }

    nav ul li a img {
        width: 100%;
        height: auto;
    }

    .image-text-container {
        flex-direction: column;
        align-items: center;
    }

    .text-container,
    .therapist-text,
    .additional-text-container {
        font-size: 1em;
        line-height: 1.6;
        padding: 0 20px;
        width: auto;
        max-width: 100%;
        margin: 0 auto 20px auto;
    }

    .therapist-image {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-bottom: 20px;
    }

    .therapist-text {
        width: auto;
        max-width: 100%;
        margin: 0 auto 20px auto;
        padding: 0 20px;
    }
}
