body {
    background-color: #ececec;
    overflow-x: hidden;
}

#navbar {
    background-color: #171717;
    margin-left: -10px;
    padding: 0;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 5px #000;
    position: absolute;
    z-index: 1;
    width: 100%;
}

nav a {
    color: #fff;
    margin: 10px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    transition: 0.3s;
    font-size: 17px;
}

nav a:hover {
    font-size: 22px;
    color: #bababa;
    cursor: pointer;
}


header {
    background-color: #ececec;
    height: 130px;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-top: -10px;
}

header img {
    margin: 0;
    padding: 0;
}

#banner {
    background-image: url("../images/banner2.jpg");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    -webkit-background-attachment: fixed;
    -moz-background-attachment: fixed;
    -o-background-attachment: fixed;
    -webkit-background-position: center;
    -moz-background-position: center;
    -o-background-position: center;
    -webkit-background-repeat: no-repeat;
    -moz-background-repeat: no-repeat;
    -o-background-repeat: no-repeat;
    width: 100%;
    height: 80vh;
    margin-top: 40px;
    margin-left: -10px;
    position: absolute;
    z-index: -1;
    justify-content: center;
    align-items: center;
    display: flex;
    box-shadow: 2px 2px 5px #000;
}

#banner img {
    display: none;
}

.content {
    background-color: #ececec;
    width: 70%;
    color: #fff;
    width: 100%;
    margin-top: 600px;
    margin-left: -8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.joku {
    font-family: 'Poppins', sans-serif;
}

.palkki {
    background-color: #fff;
    border: solid #fff;
    padding: 10px;
    width: 70%;
    font-family: 'Poppins', sans-serif;
    color: #171717;
    border-radius: 30px;
    box-shadow: 2px 2px 5px #000;
    text-align: center;
}

.palkki p {
    margin: 0;
    padding: 0;
    font-size: 13px;
}

br {
    margin: 10px;
}

.form-controlli {
    width: 70%;
    background-color: #ececec;
    border: solid #32994b;
    border-radius: 30px;
    padding: 10px;
    text-align: center;
    color: #171717;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
}

::-webkit-input-placeholder {
    color: #171717;
    opacity: 1;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
}

::-ms-input-placeholder {
    color: #171717;
    opacity: 1;  
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
}

::placeholder {
    color: #171717;
    opacity: 1;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
}

.center {
    justify-content: center;
    align-items: center;
    display: flex;
}

.navbar-fixed-top {
    position: fixed !important;
    justify-content: center;
    align-items: center;
}

.trying {
    display: flex;
    justify-content: center;
    align-items: center;
}

.left img {
    width: 300px;
}

.left {
    padding: 20px;
    margin: 0;
    width: 300px;
}

.right {
    padding: 20px;
    margin: 0;
    width: 300px;
}

.right a {
    color: #0c7e92;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
}

.right a:hover {
    font-size: 22px;
}

.vasen {
    width: 30vw;
    display: flex;
    justify-content: center;
}

#oikea {
    width: 200px;
}

#keskella {
    width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;    
}

.vasen button {
    color: #fff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    transition: 0.3s;
    font-size: 17px;
    background: none;
    border: none;
}

#mobile button {
    border: none;
    background-color: #171717;
    cursor: pointer;
    font-size: 17px;
    color: #fff;
    margin-left: 50px;
    margin-right: 50px;
    
}

#mobile a {
    margin-left: 50px;
    margin-right: 50px;
    
}

.vasen button:hover {
    font-size: 22px;
    color: #6f6f6f;
    cursor: pointer;
}

#oikea button {
    color: #171717;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    transition: 0.3s;
    font-size: 17px;
    background: none;
    border: none;
}

#oikea button:hover {
    font-size: 22px;
    color: #131313;
    cursor: pointer;
}

#hiden {
    opacity: 0;
}

footer {
    text-align: center;
    color: #fff;
    background-color: #0f0f0f;
    padding: 20px;
    margin: -8px;
    font-family: 'Poppins', sans-serif;
}

#dropdown-menu {
    display: none;
    opacity: 0;
    margin-top: 50px;
    position: absolute;
    z-index: 1;
    justify-content: center;
    align-items: center;
    display: flex;
    width: 100%;
    margin-left: -8px;
}

#dropdown-content {
    background-color: #171717;
    box-shadow: 0 0 10px black;
    clip-path: inset(0px -10px -10px -10px);
    padding: 20px;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    width: 50%;
    
}

#dropdown-content a {
    color: #fff;
    margin: 10px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    transition: 0.3s;
    font-size: 17px;
}

#dropdown-content a:hover {
    color: #ababab;
    font-size: 22px;
}

footer a {
    color: #0c7e92;
    text-decoration: none;
    cursor: pointer;
}

#mobile {
    width: 400px;
    justify-content: center;
    align-items: center;
    display: none;    
}

#dropdown-clicked {
    display: none;
    border: none;
    color: #171717;
}

header img {
    height: 152px;
}

@media only screen and (max-width: 870px) {
    #keskella {
        display: none;
    }
    #mobile {
        display: flex;
    }
    .henkilot {
        flex-direction: column;
    }
    .henkilot2 {
        flex-direction: column;
    }
}

@media only screen and (max-width: 500px) {
    header img {
        height: 120px;
    }

    .right {
        width: 200px;
    }

    .left img {
        width: 80%;
    }
}
@media only screen and (max-width: 700px) {
    #banner {
        width: 105%; /* Bannerin leveys täyttää koko näytön */
        height: 200px; /* Määrittele bannerin korkeus */
        overflow: hidden; /* Piilota kuvan ylimääräiset osat, jos se skaalataan */
        position: relative; /* Aseta banneriin absoluuttinen sijainti */
      }
      
      #banner img {
        width: 100%; /* Skaalaa kuva bannerin leveyteen */
        display: inline-block;
        height: auto; /* Säilytä kuvan alkuperäinen kuvasuhde */
        position: absolute; /* Aseta kuva absoluuttisesti bannerin sisälle */
        top: 50%; /* Aseta kuvan yläosa keskelle pystysuunnassa */
        left: 50%; /* Aseta kuvan vasen reuna keskelle vaakasuunnassa */
        transform: translate(-50%, -50%); /* Keskitä kuva kokonaisuudessaan */
      }
      .content {
        margin-top: 100px;
      }
      #dropdown-menu {
        margin-top: -200px;
      }
}

@media only screen and (max-width: 307px) {
    header img {
        height: 80px;
    }
    #banner {
        width: 105%;
    }
    #navbar {
        width: 105%;
    }
}

@media only screen and (max-width: 1000px) {
    .trying {
        flex-direction: column;
    }
}

@media only screen and (max-width: 850px) {
    .henkilot2 img {
        height: 80px !important;
    }
}



.henkilot {
    justify-content: center;
    align-items: center;
    display: flex;
}

.henkilot img {
    height: 200px;
    margin: 20px;
}

.henkilot2 {
    justify-content: center;
    align-items: center;
    display: flex;
}

.henkilot2 img {
    height: 100px;
    margin: 20px;
}