

body {
    font-family: Arial, sans-serif;
    background-color: beige;
    color: black;
    margin: 0;
}

header {
    background-color: white;
    border-bottom: 2px solid gray;
}

.tausta {
    background-size: cover;
    background-position: center;
    background-size: contain;
    padding: 60px 20px; 
}

.cont {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: auto;
    padding: 10px 20px;
}

header .logo {
    display: flex;
    align-items: center;
}


.logo img {
    height: 80px;
    width: auto;
    margin-right: 10px;
}


nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: darkgreen;
    font-weight: bold;
    font-size: 1.3rem;
}

nav a:hover {
    color: forestgreen;
}

.btn {
    background: darkgreen;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}


.osasto h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.osasto p {
    font-size: 1.2rem;
}

.osasto, .sarttu {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px;
}

.info {
    max-width: 1100px;
    margin: auto;
    padding: 50px 20px;
}

.info h2 {
    text-align: center;
}

.ruudukko {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 40px;
    max-width: 1100px;
    margin: 40px auto;
    text-align: center;
}

.laatikko {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.laatikko h1 {
    text-align: center;
    margin-bottom: 40px;
}

.ruutu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.kortti, .suksi, .kuormaauto, .juna, .ankka, .traktori {
    background: white;
    padding: 15px;
    border-radius: 9px;
    text-align: center; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.kortti img, .suksi img, .kuormaauto img, .juna img, .ankka img, .traktori img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.boxit {
    background: white;
    padding: 25px;
    border-radius: 10px;
    color: black;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.kontakti {
    max-width: 900px;
    margin: auto;
    padding: 40px;
}

.Yhteystiedot {
    text-align: center; 
    margin-bottom: 60px;
}

.Yhteystiedot ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
    line-height: 1.6;
}

.lomake {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 12px; 
}

input, textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid gray;
}

.textarea {
    text-align: left;
}

.tilaus {
    text-align: center;
    margin-top: 30px;
}

.tilauuus {
    text-align: center;
    margin-top: 40px;
}

.napppii {
    background: darkgreen;
    color: white;
    border: none;
    padding: 15px 40px;
    width: 250px;
    font-size: 18px;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}


.nappi {
    background: darkgreen;
    color: white;
    border: none;
    padding: 10px;
    width: 150px;
    margin-top: 20px;
    align-self: center;
}


footer {
    text-align: center;
    padding: 20px;
    background-color: gray;
    color: white;
    margin-top: 40px;
}

@media (max-width: 768px) {

.cont {
    flex-direction: column;
    text-align: center;
}

nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 0;
}

.osasto h1 {
    font-size: 2rem;
}

.ruudukko {
    grid-template-columns: 1fr;
}

.ruutu {
    grid-template-columns: 1fr;
}

input, textarea {
    width: 100%;
}

.nappi {
    width: 140px;
}

}


