/* ===== RESET & BASE ===== */
html {
        scroll-behavior: smooth;

}
* {
    box-sizing: border-box;
}

.asiatieto,
#palvelut,
#hinnat,
#galleria,
#tietoa,
#yteys {
    scroll-margin-top: 80px;
}



body {
    overflow-x: hidden;
    background-color: #f7f7f7;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}
.no-scroll {
    overflow: hidden;
}

/* ===== BANNER ===== */
.banner {
   /* background: linear-gradient(90deg, rgba(13, 0, 255, 1) 0%, rgba(48, 97, 171, 1) 100%);
    width: 100%;*/
    background-image: url("../images/banner.jpg");
    height: 80vh;
    display: flex;
    background-size: cover;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #e2e2e2;
    font-family: "Google Sans", sans-serif;
    text-align: center;
    padding: 20px;
}

.banner h1 {
    margin: 5px;
}

.banner p {
    margin: 5px;
}

/* ===== NAV ===== */
nav {
    width: 100%;
    position: fixed;
    background: #1791c2;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: solid 1px #cecece;
    height: 60px;
    z-index: 1000;
}

.vasen {
    margin-right: 20vw;
    color: #e2e2e2;
    font-family: "Google Sans", sans-serif;
    font-weight: bold;
}

.oikea {
    margin-left: 20vw;
}

.oikea a {
    text-decoration: none;
    margin: 15px;
    color: #e2e2e2;
    font-family: "Google Sans", sans-serif;
    font-weight: bold;
    transition: 0.3s;
    font-size: 13px;
}

.oikea a:hover {
    font-size: 14px;
    color: #faf9f9;
}

/* ===== BUTTON ===== */
.nappi {
    color: #fff !important;
    border-radius: 30px;
    padding: 10px;
    transition: 0.3s;
    background-color: #2696ff;
}

.nappi:hover {
    font-size: 13px !important;
    background-color: #8ac6ff;
}

/* ===== INFOBOX ===== */
.infobox {
    border-radius: 30px;
    padding: 5px;
    color: #fff;
    background-color: #2696ff;
    opacity: 0.9;
    border: solid 1px #cecece;
}

/* ===== VALIPALKKI ===== */
.valipalkki {
    background: #1791c2;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 10px;
    border-bottom: solid 1px #868686;
}

.tiedot {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.tietopalkit {
    color: #e2e2e2;
    font-family: "Google Sans", sans-serif;
    margin: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.tietopalkit a {
    color: #d4d4d4;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.tietopalkit a:hover {
    font-size: 17px;
}

/* ===== CONTENT ===== */
.asiatieto {
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
    color: #12248b;
    font-family: "Google Sans", sans-serif;
}

.asiatieto a {
    color: #12248b;
    font-weight: bold;
}

.rivi {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
}

/* ===== CARDS ===== */
.card {
    width: 220px;
    height: 220px;
    margin: 20px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: solid 1px #a9b6ff;
    background-color: #dfefff;
    color: #12248b;
    font-family: "Google Sans", sans-serif;
    transition: 0.3s;
}

.card a {
    text-decoration: none;
    color: #12248b;
    font-weight: bold;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.19);
}

/* ===== BACKGROUND SECTION ===== */
.taustavari {
    background-color: #dfefff;
    width: 100%;
}

/* ===== CENTER ===== */
.keskitys {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}

.eimargin {
    margin-bottom: 0 !important;
}

/* ===== IMAGES ===== */
.keskitys img {
    width: 100%;
    max-width: 300px;
    border: solid 2px #0d00ff;
}

.rivi img {
    width: 400px;
    height: 400px;
    margin: 20px;
    border: solid 2px #0d00ff;
    object-fit: cover;
}

/* ===== FOOTER ===== */
footer {
    width: 100%;
    background: #1791c2;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e2e2e2;
    font-family: "Google Sans", sans-serif;
}

footer a {
    color: #fff;
}

/* ===== RESPONSIVE ===== */

/* TABLET */
@media (max-width: 1024px) {
    .card {
        width: 180px;
        height: 180px;
    }

    .vasen img {
        width: 150px;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    nav {
        flex-direction: row;
        height: auto;
        padding: 10px;
    }

    .vasen, .oikea {
        margin: 0;
    }

    .oikea {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .oikea a {
        margin: 8px;
    }

    .banner h1 {
        font-size: 32px !important;
    }

    .tiedot {
        flex-direction: column;
    }

    .card {
        width: 45%;
        height: auto;
        padding: 20px;
    }

    .rivi img {
        width: 45%;
    }

    .asiatieto {
        margin: 20px;
    }
}
.asiatieto p {
    overflow-wrap: break-word;
    word-break: break-word;
}


/* SMALL MOBILE */
@media (max-width: 480px) {

    .card {
        width: 90%;
    }

    .rivi img {
        width: 90%;
    }
}
/* ===== HAMBURGER ===== */
.menu-toggle {
    display: none;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
}

.menu-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 1126px) {

    nav {
        padding: 0 20px;
    }

    .menu-toggle {
        display: block;
    }

        .menu-links {
            position: absolute;
            top: 60px;
            left: 0;
            width: 100%;
            background: #1791c2;
            flex-direction: column;
            align-items: center;

            max-height: 0;
            overflow: hidden;

            opacity: 0;
            transform: translateY(-10px);

            transition: max-height 0.35s ease, opacity 0.2s ease, transform 0.35s ease;

            padding: 0;
            border-top: solid 1px #cecece;
        }

    .menu-links a {
        margin: 10px 0;
        font-size: 16px;
    }

    .menu-links.active {
        max-height: 300px;
        opacity: 1;
        transform: translateY(0);
        padding: 20px 0;

    }

    .oikea {
        margin: 0;
    }
}

.keskityss {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100vw;
}

.vasen img {
    width: 250px;
}

.form-controlli {
    width: 50vw;
    border: solid 2px #12248b;
    background-color: #dfefff;
    border-radius: 30px;
    padding: 10px;
    text-align: center;
    font-family: "Google Sans", sans-serif;
}

@media (max-width: 812px) {
    .vasen {
        margin-right: 10px;
    }
    .oikea {
        margin-left: 10px;
    }

    nav {
        flex-direction: row;
    }
}