/*Runko*/

/*html{
    background-image: url();
    background-attachment: fixed;
}*/


body {
    background-color: #ffffff;
    margin: 1% auto;
    font-family: "Quicksand", serif;
    font-size: 110%;
    line-height: 2;
    color: #2b3024;
}

/*Banneri*/

#header {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    text-align: center;
}

.index-header {
    background-image: url(KUVAT/s354132.jpg);
}

.hinnasto-header {
    background-image: url(KUVAT/35131.jpg);
}

.palvelut-header {
    background-image: url(KUVAT/horse-4517189_1920.jpg);
}

.ohjeet-header {
    background-image: url(KUVAT/3246235635.jpg);
}

.siluetti-header {
    background-image: url(KUVAT/2037482532.jpg);
}

.yhteystiedot-header {
    background-image: url(KUVAT/483264944.jpg);
}

.title-text {
    color: #ffffff;
}

/*pystysuuntainen keskitys muille paitsi indexin otsikolle*/

.hinnasto-header .title-text,
.palvelut-header .title-text,
.ohjeet-header .title-text,
.siluetti-header .title-text,
.yhteystiedot-header .title-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 0;
}

/*indexin otsikkosijainti*/

.index-header .title-text {
    padding-top: 40px;
}

.title-text h2 {
    font-size: 100px;
    font-family: "Advent Pro", sans-serif;
    letter-spacing: 4px;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.title-text p {
    font-size: 120%;
    line-height: 1.5;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

/*Navigaatio*/

.navbar {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    position: relative;
    flex-wrap: wrap;
}

.navbar .logo {
    height: 60px;
    margin-right: auto;
}

.navlinks {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.navbar .navlink {
    list-style: none;
    padding: 0 10px;
}

.navbar .navlink a {
    text-decoration: none;
    color: #2b3024;
    text-transform: uppercase;

}

.navbar .navlink a:hover {
    color: #7b86a7;
    transition: color 0.3s ease;
}

ul {
    list-style-type: none;
    font-family: "Quicksand", serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #ffffff;
}

li a {
    display: block;
    color: #2b3024;
    text-decoration: none;
    text-transform: uppercase;
}

li a:hover {
    color: #7b86a7;
}


/*Hamppari*/

.menu-toggle {
    font-size: 30px;
    background: none;
    border: none;
    color: #2b3024;
    cursor: pointer;
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .navlinks {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #ffffff;
        position: absolute;
        top: 70px;
        left: 0;
        z-index: 999;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .navlinks.active {
        display: flex;
    }

    .navlink {
        padding: 15px;
        border-bottom: 1px solid #ddd;
        text-align: center;
    }

}


/*Sisältö*/

h1 {
    text-align: left;
    font-family: "Quicksand", serif;
    font-size: 25px;
    color: #363636;
}

.inline-heading {
    font-size: 1.2em;
    font-weight: bold;
    display: inline;
    margin: 0;
    padding: 0;
}

.block {
    width: 60vw;
    height: 80%;
    padding: 10px;
    background-color: #ffffff;
    margin: auto;
    box-sizing: border-box;
}

.content {
    width: 80%;
    height: 80%;
    padding: 10px;
    background-color: #ffffff;
    margin: auto;
    box-sizing: border-box;
    text-align: left;
    font-family: "Quicksand", serif;

}

/*Tekstimuotoilua*/

.smalleritalic {
    font-style: italic;
    font-size: 80%;
}

.grey {
    color: #787a91;
}

.content a {
    color: #646464;
}

.content a:hover {
    color: #7b86a7;
    transition: color 0.3s ease;
}

.pricelist {
    line-height: 1.7;
}

.euro {
    font-size: 110%;
}

.bullet-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 0;
}

.bullet-list .inline-heading {
    padding-left: 0;
}

.red-text {
    color: #ce3838;
}

.blue-text {
    color: #24678D;
}

/*Kuvat contentissa*/

.content img {
    width: 90%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 20px auto;
    border: 1px solid #ccc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/*Animaatiot*/

.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate.show {
    opacity: 1;
    transform: translateY(0);
}

/*Gallery*/

.siluetti-esimerkit p {
    margin-bottom: 0.5em;
}

.siluetti-esimerkit .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
    margin-top: 0;
}

.siluetti-esimerkit .gallery-item {
    flex: 1 1 200px;
}

.siluetti-esimerkit .gallery-item img {
    width: 100%;
    height: auto;
    max-width: 600px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    margin-bottom: 0;
}

.siluetti-esimerkit .wide-item {
    flex: 2 1 400px;
    max-width: 900px;
}

.siluetti-esimerkit .narrow-item {
    max-width: 300px;
}

.siluetti-esimerkit .short-item img {
    max-height: 600px;
    height: auto;
    width: auto;
}



/*Footnote*/

.footnote {
    width: 60vw;
    height: 80%;
    padding: 10px;
    padding-bottom: 40px;
    margin: auto;
    box-sizing: border-box;
    text-align: center;
    color: #ffffff;
    font-size: 85%;
    font-family: "Quicksand", serif;
    line-height: 1;
    background-color: #24678D;
    border-bottom-right-radius: 30px;
    border-bottom-left-radius: 30px;
}

.footnote a {
    color: #ffffff;
}

.footnote a:hover {
    color: #86d6e4;
    transition: color 0.3s ease;
}

/*Divider*/

.divider img {
    display: block;
    width: 60vw;
    max-width: 100%;
    margin: auto;
    padding: 5px;
}

/*Alalinkit*/

.bottom-links {
    text-align: center;
    font-size: 90%;
    color: #5a5959;
}

.bottom-links a {
    color: #5a5959;
}

.bottom-links a:hover {
    color: #24678D;
    transition: color 0.3s ease;
}

.site {
    text-align: center;
    font-size: 70%;
    color: #5a5959;
}

/* MEDIA QUERIET */

@media (max-width: 1700px) {

    .block,
    .footnote,
    .divider img {
        width: 80vw;
    }
}

/* Tabletit (max 1024px) */
@media (max-width: 1024px) {
    .title-text h2 {
        font-size: 100px;
    }

    .title-text p {
        font-size: 110%;
    }

}

/* Puhelimet (max 768px) */
@media (max-width: 768px) {

    .block,
    .footnote,
    .divider img {
        width: 90vw;
    }

    .content {
        width: 100%;
        padding: 5px;
        font-size: 95%;
    }

    .title-text h2 {
        font-size: 10px;
    }

    .title-text p {
        font-size: 100%;
    }

    .navbar .logo {
        margin: 0 auto 10px auto;
        height: 50px;
    }

    .footnote {
        font-size: 75%;
        line-height: 1.3;
    }

    .bottom-links {
        font-size: 80%;
    }

    .site {
        font-size: 65%;
    }

    /*tässä headerista*/
    #header {
        height: 250px;
        background-attachment: scroll;
    }

    .title-text h2 {
        font-size: 60px;
    }

    .title-text p {
        font-size: 80%;
        margin: 0;
        padding: 0 20px;
    }

    /*header osio loppuu*/
}

/* Todella pienet ruudut (max 480px) */

@media (max-width: 480px) {
    .title-text h2 {
        font-size: 50px;
    }

    h1 {
        font-size: 20px;
    }

    .footnote {
        padding: 10px 5px;
    }


}