@charset "utf-8";
/* Alun perin luonut Jerkko Valta 2026. */

/* Fontit */

@font-face {
    font-family: "leipateksti";
    src: url(fontit/raleway.ttf);
}

@font-face {
    font-family: "leipateksti";
    font-style: italic;
    src: url(fontit/raleway-italic.ttf);
}

@font-face {
    font-family: "otsikko";
    src: url(fontit/raleway.ttf);
}

@font-face {
    font-family: "otsikko";
    font-style: italic;
    src: url(fontit/raleway-italic.ttf);
}

/* Sivustonlaajuiset elementit */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    background-image: url('kuvat/tausta.jpg');
    color: #222222;
    font-family: "leipateksti", sans-serif;
    font-size: 11pt;
    line-height: 160%;
}

/* Typografia */

h1, h2, h3, h4, h5, h6 {
    font-family: "otsikko", sans-serif;
    line-height: 130%;
}

h1 {
    text-align: center;
    font-size: 2.75em;
    letter-spacing: -1px;
}

h2 {
    margin: 2em 0 0.75em 0;
    text-align: center;
    font-size: 2.25em;
}

h3 {
    font-size: 1.5em;
}

h4 {
    font-size: 1.25em;
}

blockquote {
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

a {
    color: #ff0000;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: #ff5d5d;
}

.nosto {
    font-size: 1.5em;
    font-weight: 300;
}

.iso-linkki {
    font-size: 2em;
    font-weight: 600;
    padding: 1em 0;
    margin-bottom: 20px;
    display: block;
    transition: 0.2s;
}

.iso-linkki:active {
    transform: scale(0.95);
}

.tasaus-vasen {
    text-align: left;
}

.tasaus-keski {
    text-align: center;
}

.meta {
    color: #afafaf;
}

.vaaleateksti {
    color: #ffffff !important;
}

.tummateksti {
    color: #222222 !important;
}

.copyright {
    margin-top: 3em;
    font-size: 0.8em;
}

.yhteistyokumppanit {
    padding-left: 0;
}

.yhteistyokumppanit li {
    list-style: none;
    display: inline-block;
    padding: 10px 18px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
}

/* Napit ja lomakekentät */

.nappi, button {
    color: #ff0000;
    border: 3px solid #ff0000;
    border-radius: 2em;
    display: inline-block;
    text-transform: uppercase;
    padding: 0.4em 1.2em 0.4em 1.2em;
    margin: 1em;
    text-decoration: none;
    font-size: 0.8em;
    font-weight: 800;
    letter-spacing: 1px;
    transition: 0.2s;
}

.nappi:hover, button:hover {
    background-color: #ee0000;
    color: #ffffff;
}

.nappi:active {
    transform: scale(0.95);
}

/* Kuvat ja videot */

img {
    max-width: 100%;
    display: inline-block;
}

video {
    width: 100%;
    box-sizing: border-box;
}

.logo {
    width: 80%;
    max-width: 400px;
    margin: 40px auto 60px auto;
    display: block;
}

.allekirjoitus {
    max-width: 96px;
}

.tyonayte {
    margin: 0.5em 0;
}

.linkkikuvake {
    text-transform: uppercase;
    font-weight: 800;
    transition: 0.3s;
    display: block;
}

.linkkikuvake:hover {
    transform: scale(1.2);
}

.linkkikuvake:active {
    transform: scale(0.95);
}

.linkkikuvake img {
    max-height: 80px;
    margin: 1em auto;
    display: block;
}

/* Valikko */

#valikko-osio {
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    background-color: #333333;
    color: #ffffff;
    user-select: none;
}

#valikko-osio label {
    display: block;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1em 1.5em;
    cursor: pointer;
}

#valikko-osio nav a {
    display: block;
    box-sizing: border-box;
    padding: 1em 1.5em;
    font-weight: bold;
    color: #ffffff;
}

#valikko-osio nav a:hover, #valikko-osio label:hover {
    background-color: #444444;
}

#valikkoruutu {
    display: none;
}

#hampurilaiskuvake img {
    width: 20px;
    display: inline-block;
    margin: -8px 0 0 1em;
    vertical-align: middle;
}

#valikko {
    overflow: hidden;
    height: 0px;
    -webkit-transition: height 0.5s ease;
    -moz-transition: height 0.5s ease;
    -o-transition: height 0.5s ease;
    transition: height 0.5s ease;
}

#valikkoruutu:checked ~ #valikko {
    height: 100vh;
}

/* Isot osiot */

.osio {
    padding: 3em 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.harmaa {
    background-color: #eeeeee;
}

.tumma {
    background-color: #333333;
    color: #ffffff;
}

.tumma a {
    color: #e7e7e7;
}

.tumma a:hover {
    color: #e2e2e2;
}

/* Osioiden uniikit tyylit */

#aloitus {
    background-image: url("kuvat/lumimaa.jpg");
    text-shadow: 0px 0px 12px rgba(255,255,255,0.6);
    min-height: 100vh;
}

#kuvaaja-mobiili {
    background-image: url("kuvat/kuvaaja.webp");
    background-size: contain;
    background-position: center bottom;
    min-height: 350px;
}

#kuvaaja {
    background-color: #ffffff;
    text-shadow: 0px 0px 6px rgba(255,255,255,0.8);
}

#suositukset a {
    color: #5f5f5f;
}

#suositukset a:hover {
    color: #878787;
}

#hinnasto-mobiili {
    background-image: url("kuvat/hinnasto.webp");
    background-size: contain;
    background-position: center bottom;
    min-height: 300px;
}

#hinnasto {
    background-color: #ffffff;
    text-shadow: 0px 0px 6px rgba(255,255,255,0.8);
}

#yhteystiedot-kuvitus {
    background-image: url("kuvat/yhteystiedot.jpg");
    background-position: bottom;
    min-height: 400px;
}

/* Palstarakenne */

.palstarivi {
    width: 100%;
    margin: 0 auto;
    padding: 0 10px 0 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.palsta {
	width: 100%;
	clear: both;
	padding: 0 1em;
    box-sizing: border-box;
}

.palsta h2:first-child, .palsta h3:first-child {
    margin-top: 0;
}

/* ======================================================== */
/* MOBIILI ja pienet näytöt */
/* ======================================================== */
@media only screen and (max-width: 649px) {

    .piilota-mobiilissa {
        display: none;
    }

}

/* ======================================================== */
/* TABLETTI ja sitä isommat näytöt */
/* ======================================================== */
@media only screen and (min-width: 650px) {

    h1 {
        font-size: 3em;
    }

    h2 {
        font-size: 2.5em;
    }

    /* Isommilla näytöillä valikko on heti näkyvissä */
    #valikko {
        display: block;
        display: flex;
        justify-content: center;
        height: auto;
    }

    /* Hampurilaiskuvake piiloon */
    #valikko-osio label {
        display: none;
    }

    #valikko-osio nav a {
        padding: 1em 1.25em;
    }

    .palstarivi {
        max-width: 800px;
        flex-direction: row;
    }

    #kuvaaja {
        background-size: clamp(50vw, 100vh, 50vw);
        background-position: left bottom;
    }

}
@media only screen and (min-width: 650px) and (max-width: 999px) {
    .piilota-tabletilla {
        display: none;
    }
}

/* ======================================================== */
/* DESKTOP, isoimmat näytöt */
/* ======================================================== */
@media only screen and (min-width: 1000px) {

    body {
        font-size: 12pt;
    }

    h1 {
        font-size: 4em;
    }

    #valikko-osio nav a {
        padding: 0.75em 2em;
    }

    .palstarivi {
        max-width: 1200px;
    }

    .kapea {
        max-width: 800px;
    }

    .piilota-desktopilla {
        display: none;
    }

    .kolmasosa {
        width: 33.33%;
    }

    .puolikas {
        width: 50%;
    }

    .kaksikolmasosaa {
        width: 66.66%;
    }

    #kuvaaja {
        background-image: url("kuvat/kuvaaja.webp");
        background-size: contain;
        background-position: left -50px bottom;
    }

    #hinnasto {
        background-image: url("kuvat/hinnasto.jpg");
        background-size: clamp(50vw, 100vh, 50vw);
        background-position: right center;
        background-attachment: fixed;
    }

    #yhteystiedot-kuvitus {
        background-position: center;
    }

}

/* ======================================================== */
/* Kaikista isoimmat näytöt */
/* ======================================================== */
@media only screen and (min-width: 1200px) {

    #kuvaaja {
        background-position: left 15% bottom;
    }
    
}