/* Underlines the selected page with #79C2B6  */

#selected {

    border-bottom: 6px solid #79C2B6;


}

/* Underlines the unselected tabs with #5a9188 */

#notselected {

    border-bottom: 6px solid #5a9188;

    padding-bottom: 0px;

}

/* Aligns the navi to the center */

.flex-container {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    margin-bottom: 3px;
    margin-top: 30px;
    width: 100%;
    padding: 5px;
}

.flex-item {
    flex: 1;
    margin: 0px;
    background-color: #ffffff;
    font-weight: bolder;
}

/* Navi text font ect. */

a {

    text-decoration: none;
    color: rgb(0, 0, 0);
    font-size: 170%;
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;


}

/* Change navi font color on hover */

a:hover {

    color: #79C2B6;
}

/* Main content */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: "DM Sans", sans-serif;
}

/* Big picture on frontpage */

.kuva-etu {
    width: 30%;
    margin-left: 8%;
    margin-top: 0%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    object-fit: fill;
}

/* Small image behaviour when hovered*/

.kuva-small {
    width: 20%;
    transition: transform 0.3s ease;
}

.kuva-small:hover {
    transform: scale(1.20);
}

/* FOOTER */

footer {
    margin-top: 5%;
    text-align: center;
    background-color: #79C2B6;
    font-family: "DM Sans", sans-serif;
    font-weight: bolder;
    color: white;


}

/* Button behaviour and style*/

.btn {
    display: flex;
    margin: 20px auto;
    padding: 12px 25px;
    background-color: #79C2B6;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    width: fit-content;
    align-items: center;
    justify-content: center;
    font-family: "DM Sans", sans-serif;


}

/* on hover background color change for button */
.btn:hover {
    background-color: rgb(90, 145, 136);
    color: #5a9188;
}

.btn a {
    color: white;
    text-shadow: #5a9188 2px 2px;

}

/* Image + text box layout */
.flex-container3 {
    display: flex;
    gap: 2%;
    padding: 0 2%;
    margin-top: 2%;
    font-size: larger;
    font-family: "DM Sans", sans-serif;

}

.text-boxes {
    display: inherit;
    flex-direction: row;
    gap: 20px;
    flex: 3;
    font-family: "DM Sans", sans-serif;

}

.text-box {
    background-color: #ffffff;
    border: 3px solid #111111;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px #000000;
    min-height: 120px;
    flex: 3;
    font-size: larger;
}

.text-box p {
    color: #111111;
    font-family: "DM Sans", sans-serif;
    font-size: 100%;
    line-height: 1.6;
    margin: 0;
}

main {
    flex: 1;
}

/* Media behaviour on page resize*/

@media (max-width: 1000px) {
    .flex-container3 {
        flex-direction: column;
        padding: 0 4%;
    }

    .kuva-etu {
        width: 100%;
        margin-left: 0;
    }

    .text-boxes {
        flex-direction: column;
    }
}





/* YHTEYSTIEDOT CSS*/







/* Kaikki kortit, cardcontainer divissä. Tästä alkaa yhteys.html css */
.card-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 40px;
    flex-wrap: wrap;
    font-family: "DM Sans", sans-serif;
}

/* Kortit minkä sisällä kuvat tittelit tekstit yms. */
.card {
    width: 220px;
    border-radius: 25px;
    padding: 13px;
    font-family: "DM Sans", sans-serif;
}

/* jokaisen kortin kuva DIV, jotta sain kuvan kulmat pyöräksi ja oikean kokoiseksi */
.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
}

/* Titteli DIV jotta sain sen boldiksi ja oikean näköiseksi */
.title {
    margin-top: 10px;
    font-weight: bold;
}

/* jokaisen kortin yhteystiedot tekstin väri ja koko */
.contact-info {
    color: #555;
    font-size: 14px;
}

/* Napin DIVI, nappi saatu keskelle ja hienoks */
.nap {
    display: flex;
    margin: 20px auto;
    padding: 12px 25px;
    background-color: #79C2B6;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    width: fit-content;
    align-items: center;
    justify-content: center;
    font-family: "DM Sans", sans-serif
}

/* Kun hoveraa napissa että miltä näyttää, katsottiin Zymonin kanssa että napit ovat samannäköisiä */
.nap:hover {
    background-color: white;
    color: #79C2B6;
    border-color: #79C2B6;
    border: 3px solid #79C2B6;
}

/* Yleinen numeron ja säpön DIV, Tähän loppuu yhteys.html css:sä */
.info-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "DM Sans", sans-serif;
}



/* PALVELUT*/

/* Navigaatio */
header {
    background: #ffffff;
    color: white;
    padding: 15px;
}

nav a {
    color: rgb(0, 0, 0);
    margin-right: 20px;
    text-decoration: none;
    font-weight: bold;
}

/* palvellut alueen osa alkaa */
/* Hero-alue */




.flex-item a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

/* CTA-boksi palvelut */
.cta-box {
    background-color: #79C2B6;
    color: white;
    padding: 25px 40px;
    border-radius: 10px;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    width: fit-content;
    margin: 0 auto;
    text-decoration: none;
    display: inline-block;
    /* tekee napin */
}

/* tekee cta boksista hienomman näkösen kun vie hiiren päälle*/
.cta-box:hover {
    background-color: white;
    color: #79C2B6;
    border-color: #79C2B6;
    border: 3px solid #79C2B6;
}


/* CTA-boksi palvelut */
.services {
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* Alaosa kaksi laatikkoa */
.content {
    display: flex;
    align-items: stretch;
    gap: 20px;
    font-size: 20px
}

/* alalaatikon boksit */
.box {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #79C2B6;
    font-family: "DM Sans", sans-serif;
    font-size: 20px
}



/* MYY/OSTA SIVU*/


/*MYY PUOLI*/
.myyContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    margin-top: 2%;
}

/*MYY NAPPI*/
.myyBox {
    border: 3px solid white;
    border-radius: 40px;
    text-align: center;
    margin-left: 5%;
    background-color: #79C2B6;
    cursor: pointer;
    text-decoration: none;
    padding: 80px;
    font-size: 50px;
    width: 300px;
    color: white;
}

.myyBox:hover {
    background-color: white;
    color: #79C2B6;
    border-color: #79C2B6;
}

.myyText {
    max-width: 400px;
    font-size: 22px;
    margin-right: 30%;
}

/*TAI*/
.tai {
    text-align: center;
    font-size: 300%;
}

/*OSTA PUOLI*/
.ostaContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 80px;
    margin-bottom: 150px;
}

.ostaText {
    max-width: 400px;
    font-size: 22px;
    margin-left: 30%;
}

/*OSTA NAPPI*/
.ostaBox {
    border: 3px solid white;
    border-radius: 40px;
    text-align: center;
    margin-right: 5%;
    background-color: #79C2B6;
    cursor: pointer;
    text-decoration: none;
    padding: 80px;
    font-size: 50px;
    width: 300px;
    color: white;
}

.ostaBox:hover {
    background-color: white;
    color: #79C2B6;
    border-color: #79C2B6;
}

/*KUNNOSTETUT KONEET*/
.kunnostettu {
    text-align: center;
}

#tuotteet {
    margin-left: 5%;
}

.img_myy {
    height: 350px;
    width: 300px;
}

/*KONE VALIKOIMA*/
.osta1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 150px;
    margin-top: 100px;
}

.osta2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 150px;
}

.osta3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 150px;
}

.osta4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 150px;
}

/*SPECSIT*/
ul {
    max-width: 400px;
    font-size: 22px;
    margin-right: 30%;
    margin-left: 10%;
}

/*YHTEYDENOTTO LOMAKE*/
.yhteystiedot {
    margin-bottom: 5%;
    text-align: center;
    margin-left: 10%;
    margin-right: 10%;

    border-style: solid;
    border-radius: 40px;
    border-color: #79C2B6;
}

label {
    font-size: 20px;
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

input {
    border-radius: 20px;
}

#laheta {
    font-size: 20px;
    background-color: #79C2B6;
    color: white;
    height: 10%;
    width: 10%;
}