/* Resetointi */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Yleiset tyylit */
body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #fff;
}

header {
    position: fixed; /* Kiinnittää headerin yläreunaan */
    top: 0; /* Sijoittaa headerin aivan yläreunaan */
    left: 0; /* Sijoittaa headerin aivan vasempaan reunaan */
    width: 100%; /* Varmistaa, että header peittää koko näytön leveyden */
    background-color: #1e1e1e; /* Taustaväri headerille */
    z-index: 999; /* Varmistaa, että header on muiden elementtien päällä */
    padding: 10px 0;
   /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Lisää pienen varjon headeriin */ */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: auto; /* Logon leveys */
    height: 60px; /* Automaattinen korkeuden säätö mittasuhteiden säilyttämiseksi */
    display: block; /* Estää ylimääräisen tilan ympärillä */
}

/* Navigointilinkkien oletustyyli */
.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: bold;
}

.menu-toggle {
    display: none;
}

/* Piilotetaan linkit kapeilla näytöillä */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Piilotetaan linkit oletuksena */
        flex-direction: column; /* Linkit järjestyvät pystysuoraan */
        position: absolute;
        top: 60px; /* Sijoitetaan linkit headerin alapuolelle */
        left: 0;
        width: 100%; /* Linkit täyttävät koko leveysalueen */
        background-color: #1e1e1e;
        padding: 10px 0;
    }

    .nav-links li {
        margin: 2px 0; /* Pienempi pystysuuntainen väli linkkien välillä */
    }

    .nav-links.show {
        display: flex; /* Näytetään linkit, kun valikko on avattu */
        font-size: 0.8em;
    }

    .menu-toggle {
        display: block; /* Näytetään burger-valikkonappi */
        background: none;
        border: none;
        color: white;
        font-size: 1.5em;
        cursor: pointer;
    }
    .logo img {
        height: 30px; /* Pienempi logo mobiililaitteilla */
    }
}

/* Hero-section tyylit */
#hero {
    margin-top: 60px; /* Varmistaa, että sisältö alkaa headerin alapuolelta */
    position: relative;
    width: 100%;
    height: 30vh; /* Hero-osan korkeus */
    background-color: #333;
    overflow: hidden; /* Estää ylimääräiset elementit valumasta ulos */
}

.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    width: 100%;
    color: black;
    text-align: center;
    z-index: 2; /* Varmistaa, että teksti näkyy kuvan päällä */
}

/* Logo oikeaan yläkulmaan */
.hero-logo {
    position: absolute;
    top: 20px; /* Etäisyys yläreunasta */
    right: 10px; /* Etäisyys oikeasta reunasta */
    width: 100px; /* Logon leveys */
    height: auto; /* Säilyttää mittasuhteet */
    z-index: 3; /* Logo on päällimmäisenä */
    transform: rotateY(180deg);
}

/* Hero-kuvan tyylit */
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Kuva skaalautuu ja rajautuu keskikohdan ympärille */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* Kuva on taustalla */
}

/* Yrityksen nimen ja sloganin tyylit */
.hero-text {
    z-index: 2; /* Tekstit ovat kuvan päällä */
    position: relative;
}

.hero-text h1 {
    font-size: 3em; /* Yrityksen nimi */
    font-weight: bold;
    margin-bottom: 10px;
}


.slogan {
    font-size: 0.75em; /* Pienennetty tekstikoko */
    font-style: italic;
    margin-top: 0;
}

@media (max-width: 1536px) {
    .hero-text h1 {
        font-size: 2em; /* Pienempi fonttikoko pienemmällä näytöllä */
    }

    .slogan {
        font-size: 0.8em; /* Pienennetty slogankoko pienemmällä näytöllä */
    }
}


@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 1.5em; /* Pienempi fonttikoko pienemmällä näytöllä */
    }

    .slogan {
        font-size: 0.6em; /* Pienennetty slogankoko pienemmällä näytöllä */
    }
}

@media (max-width: 425px) {
    .hero-text h1 {
        font-size: 0.7em; /* Pienempi fonttikoko pienemmällä näytöllä */
    }

    .slogan {
        font-size: 0.3em; /* Pienennetty slogankoko pienemmällä näytöllä */
    }
}


/*******************************/
/* rakennuspalvelut-osio */
#rakennuspalvelut {
    padding: 50px 20px;
    background-color: #121212;
    color: white;
    text-align: center;
}
.rakennuspalvelut-content {
    //display: flex;
    justify-content: space-between;
    gap: 20px;
    //flex-wrap: wrap; /* Mukautuu pienille näytöille */
    text-align: center;
}

.palvelulista {
    display: inherit;
    gap: 20px;
    //flex-wrap: wrap; /* Mukautuu pienemmille näytöille */
}

.rakennuspalvelut-content h3 {
    font-size: 1.1em;
    color: Gray;
    margin-top: 20px;
    margin-bottom: 20px;
}

.palvelulista ul {
    align-items: center;
    list-style: none; /* Poistaa oletuslistan merkit */
    padding: 0;
}

.palvelulista li {
    font-size: 1.1em;
    margin-bottom: 10px;
    display: inherit;
    align-items: center;
    gap: 10px;
}

.palvelulista li::before {
    content: "✔"; /* Plussaikoni */
    color: green;
    font-size: 1.2em;
}

/* Yhteystiedot-osio */
#contact {
    text-align: center;
    padding: 50px 20px;
    background-color: #121212;
    color: white;
}
#contact h3 {
	margin-top: 5px;
	margin-bottom: 15px;
}
#contact h4 {
    margin-top: 5px;
    margin-bottom: 15px;
    color: gray;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: normal;
}

/* Nappityyli */
.btn {
    background-color: #4CAF50; /* Vihreä nappi */
    margin-bottom: 10px;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #45a049; /* Tummempi vihreä hoverilla */
}

/* Iframe-tyyli */
.contact-iframe {
    width: 100%;
    height: 250px;
    border: none;
    //margin-top: 0px;
    margin: 0 0 0 0; 
}

#contact-iframe-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    background-color: #121212;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Iframe-tyyli */
.form-iframe {
    width: 100%;
    height: 700px;
    border: none;
    //margin-top: 0px;
    margin: 0 0 0 0; 
}

#form-iframe-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    background-color: #121212;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#hamy_yhteystiedot {
     //visibility: hidden;
     display: none;
     color: red;
}

#malli-iframe-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    background-color: #121212;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* Iframe-tyyli */
.malli-iframe {
    width: 100%;
    height: 300px;
    border: none;
    //margin-top: 0px;
    margin: 0 0 0 0; 
}

/* Palvelut-osio */
#services {
    padding: 50px 20px;
    background-color: #121212;
    /*color: #333;*/
	color: white;
    text-align: center;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap; /* Mukautuu pienille näytöille */
}

.services-description {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.services-description p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Referenssit */
#referenssit {
    padding: 50px 20px;
    background-color: #121212;
    /*color: #333;*/
	color: white;
    text-align: center;
}

#referenssitTable {
    margin-left:auto; 
    margin-right:auto;
  body {text-align:center};
}

#referenssitTable td {
  /*border: 1px solid #ddd;*/
  padding: 4px;
}
/*#referenssitTable tr:hover {background-color: #ddd;}*/
#referenssitTable td:nth-child(even){color: Gray;}


/* Plussat ja miinukset */
.pros-cons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Mukautuu pienemmille näytöille */
}

.pros, .cons {
    flex: 1;
    min-width: 200px;
}

.pros h3, .cons h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.pros ul, .cons ul {
    list-style: none; /* Poistaa oletuslistan merkit */
    padding: 0;
}

.pros li, .cons li {
    font-size: 1.1em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pros li::before {
    content: "✔"; /* Plussaikoni */
    color: green;
    font-size: 1.2em;
}

.cons li::before {
    content: "✖"; /* Miinusikoni */
    color: red;
    font-size: 1.2em;
}

/* Animaatio */
.services-animation {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animation-iframe {
    width: 100%;
    height: 320px; /* Voit säätää tätä tarpeen mukaan */
    border: none;
}

/* Zeckit -osio */
#zeckit {
    padding: 50px 20px;
    //background-color: #121212;
    background-color: #1C1B1B;
    color: #fff; /* Vihreä teksti */
    text-align: center;
}


/* Responsiivinen asettelu */
@media (max-width: 1100px) {
    .services-content {
        flex-direction: column; /* Pinotaan elementit pystysuunnassa */
    }

    .services-animation {
        margin-top: 20px; /* Lisää tilaa animaation ympärille */
    }
}
@media (max-width: 600px) {
    .services-animation {
        display: none; /* Piilottaa animaation iframe-elementin pienillä näytöillä */
    }
}


/* Responsiivisuus */
@media screen and (max-width: 768px) {
    .hero-text {
        font-size: 2em;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    /* Palvelut -osio responsiivinen muotoilu */
    #services {
        padding: 40px 20px;
    }

    #services p {
        font-size: 1.1em;
    }

    /* Responsiivinen animaatio ja kuvaus */
    .animation-container {
        flex-direction: column;  /* Elementit menevät päällekkäin kapeilla näytöillä */
        margin-top: 20px;  /* Vähentää väliä kapeilla näytöillä */
    }

    .hero-logo {
        width: 100px;  /* Vähennä logon kokoa mobiililaitteilla */
    }

.form-iframe {
        flex-direction: column; /* Pinotaan elementit pystysuunnassa */
	height: 1000px;
    }

}
