body {
    background-image: url(../kuvat/bg.png);
    background-color: rgb(255, 243, 176, 0.2);
    
}

#content {
    border: 1px solid rgba(122, 143, 122, 0.2);
    background: #fff;
    margin: -3em auto 1em auto;
    padding: 7em 0 0 0;
    box-shadow: rgba(122, 143, 122, 0.2) 0px 2px 8px 0px;
}

h1 {
    font-size: 2em;
    font-family: "Cormorant Garamond", serif;
    color: #540b0e;
}

h2 {
    font-size: 1.8em;
    font-family: "Cormorant Garamond", serif;
    color: #335c67;
}

p {
    font-family: "Montserrat", sans-serif;
    font-size: 1em;
}

.caption {
    font-family: "Montserrat", sans-serif;
    font-size: 1em;
    margin-bottom: 3em;
    color: #335c67;
}

#logo {
    padding-top: 3em;
}

h3 {
    font-size: 2.3em;
    font-family: "Mrs Saint Delafield", cursive;
    color: #464646;
    margin: 0 0 0 -0.6em;
    line-height: 1em;
}

h4 {
    font-size: 2.5em;
    font-family: "Cormorant Garamond", serif;
    color: #335c67;
    margin: 0 0 0 0.6em;
    line-height: 1em;
}

strong {
    color: #540b0e;
    font-weight: 500;
}

.tagline {
    width: 70%;
    margin: 0 auto;
    font-size: 2.3em;
    font-family: "Mrs Saint Delafield", cursive;
    color: #540b0e;
    padding: 1em 0;
    text-align: center;
    line-height: 1.2em;
}

.kuva {
    border: 1px solid #335c67;
    width: 98%;
}

#footer {
    margin-top: 3em;
    padding: 3em;
    background-color: #335c67;
    color: #fff;
}

#footercontent {
    display: flex;
    justify-content: space-between;
}

#footercontent p {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2em;
}

#footer a {
    color: #fff;
    text-decoration: underline;
}

.yhteys-linkki {
    text-decoration: underline;
}

#footerimg {
    display: flex;
    justify-content: end;
    padding: 2%;
}

#footerimg img {
    max-width: 50px;
}

/* Medium only */
@media screen and (min-width: 40em) and (max-width: 63.9375em) {
    #content {
        padding: 7em 0 0 0;
    }
    
    #kuvat {
        padding: 2%;
    }
}

/* Small only */
@media screen and (max-width: 39.9375em) {
    #content {
        padding: 7em 0 0 0;
    }
    
    h1 {
        font-size: 1.6em;
        line-height: 1.2em;
        margin-bottom: 1em;
    }

    h2 {
        font-size: 1.6em; 
    }

    .tagline {
        width: 100%;
    }

    #kuvat {
        text-align: center;
    }

    #contact {
        text-align: center;
    }

    #footercontent {
        padding-top: 1em;
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 360px) {
    #content {
        width: 100%;
        min-width: 360px;
        margin: 0;
        padding: 2.5em 1em 1em 1em;
        border: none;
        box-shadow: none;
    }

    #logo {
        min-width: 360px;
        background-color: #fff;
        padding-top: 2em;
    }

    h3 {
        font-size: 1.7em;
    }

    h3, h4 {
        font-size: 1.7em;
    }

    .logo {
        width: 50%;
    }
}