/* @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;1,300&display=swap'); */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

/* @import url('https://fonts.googleapis.com/css2?family=Ropa+Sans&display=swap'); */


/* @import url('https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400;0,500;1,400;1,500&family=Sorts+Mill+Goudy:ital@0;1&display=swap'); */


/* @import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,400;0,600;1,400;1,600&display=swap'); */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital@0;1&display=swap');

/* omat css-asetukset */

.header-container {
    width: 100%;
    max-width: 900px;
}

main.front {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    width: 100%;
}

main.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
}

@media (max-width: 762px) {
    main.content {
        padding: 0 0.4rem;
    }
}

.front-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.page-content {
    display: flex;
    max-width: 900px;
    flex-direction: column;
    width: 100%;
}

@media (max-width: 768px) {
    .front-content {
        gap: 0.5rem;
    }
}

hr {
    border: 1px solid #ccc;
    width: 100%;
    margin: 0;
}

p {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

p.lead {
    margin: 0;
}

p:first-child {
    margin-top: 0;
}

p.lainaus {
    font-style: italic;
    font-family: monospace, 'Courier New', Courier, sans-serif;
    font-size: 13px;
    background-color: #eee;
    margin: .5rem 0 1rem 0;
    padding: 1rem;
    border: 1px solid #bbb;
    border-radius: .25rem;
}

h1 {
    /* color: teal; */
    color: #9E1E28;
    /* font-family: 'Ropa Sans', 'Times New Roman', Times, serif; */
    font-family: 'Noto Serif', serif;
    font-weight: 400;
}

h2 {
    /* color: teal; */
    /* color: #3276B1; */
    color: forestgreen;
    /* font-family: 'Ropa Sans', 'Times New Roman', Times, serif; */
    font-family: 'Noto Serif', serif;
    font-weight: 400;
}

h3 {
    margin: 1rem 0;
    /* color: #9E1E28; */
    /* color: teal; */
    /* color: #3276B1; */
    color: forestgreen;
    /* font-family: 'Ropa Sans', 'Times New Roman', Times, serif; */
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
}

.lead-container {
    max-width: 900px;
}

.container-link {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.container-link:hover {
    box-shadow: 0px 0px 6px 1px rgba(215, 215, 215, 1);
}

a.link {
    text-decoration: none;
    z-index: 2;
    position: relative;
}

.stripe {
    display: flex;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding: 2rem 1rem;
    align-items: center;
    flex-direction: column;
}

.stripe-wrapper>h3 {
    margin-top: 0;
}

.stripe-uneven {
    /* background-color: #e2e2e2; */
    background-color: #eee;
}

.stripe-content {
    display: flex;
    flex-direction: row;
    max-width: 900px;
}


/* kuvakkeita etusivulle ja muuallekin */

h3 i.las {
    /* color: #9E1E28; */
    padding-right: .5rem;
    font-size: 20px;
}

h2 i.las {
    /* color: green; */
    color: #111;
    padding-right: .5rem;
    font-size: 20px;
}

i.las.la-external-link-alt {
    padding-right: .4rem;
}

hr.katko1 {
    clear: both;
    margin: 1.2rem 0;
    /* border-top: 2px dashed gray; */
}

@media (max-width: 768px) {
    .stripe-content {
        display: flex;
        flex-direction: column-reverse;
    }
}

.front-text-container {
    display: flex;
    flex-direction: column;
    flex: auto;
}

.front-image-container {
    margin: 0 0 0 1rem;
    width: 40%;
    flex: none;
}

@media (max-width: 768px) {
    .front-image-container {
        margin: 1rem 0;
        width: 100%;
    }
    .front-text-container {
        width: 100%;
    }
}

.front-image-container>img {
    width: 100%;
    height: auto;
    border: 1px solid #aaa;
    border-radius: .3rem
}

.fig2 {
    float: right;
    width: 100%;
    background-color: #eee;
    border: 1px solid #bbb;
    margin: .5rem 0 1rem 0;
    padding: .2rem;
    border-radius: .25rem;
}

.fig2 img {
    width: 100%;
    position: relative;
}

.fig2 p {
    padding: .2rem .5rem;
    margin: 0;
}

@media (max-width: 768px) {
    .fig2 {
        float: none;
        margin: 0;
        width: auto;
    }
}

.fig-left {
    float: left;
    width: 45%;
    background-color: #eee;
    border: 1px solid #bbb;
    margin: .5rem 1rem 1rem 0;
    padding: .2rem;
    border-radius: .25rem;
}

.fig-left img {
    width: 100%;
    position: relative;
}

.fig-left p {
    padding: .2rem .5rem;
    margin: 0;
}

.fig-right {
    float: right;
    width: 45%;
    background-color: #eee;
    border: 1px solid #bbb;
    margin: .5rem 0rem 1rem 1rem;
    padding: .2rem;
    border-radius: .25rem;
}

.fig-right img {
    width: 100%;
    position: relative;
}

.fig-right p {
    padding: .2rem .5rem;
    margin: 0;
}

@media (max-width: 768px) {
    .fig-left {
        float: none;
        margin: 0;
        width: auto;
    }
    .fig-right {
        float: none;
        margin: 0;
        width: auto;
    }
}