/* Perustyylit */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5; /* Vaalea harmaa taustaväri */
    color: #333; /* Tumma harmaa teksti */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Header */
header {
    padding: 1.5em;
    background: #fff; /* Valkoinen header */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 97.45%;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    color: #32a852; /* Vihreä korostusväri */
    margin: 0;
}

/* Nappi */
button {
    font-size: 1rem;
    padding: 0.8em 1.5em;
    color: #fff;
    background: #32a852; /* Vihreä taustaväri */
    border: none;
    border-radius: 30px;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2); /* Tyylikäs varjostus */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Hover-siirtymä */
    cursor: pointer;
}

button:hover {
    transform: scale(1.05); /* Kevyt kasvu hoverissa */
    box-shadow: 3px 6px 8px rgba(0, 0, 0, 0.3); /* Tummempi varjostus hoverissa */
    background: #278a42; /* Tummempi vihreä hover-efekti */
}

/* Navigaatio */
nav {
    margin: 2em 0;
    display: flex;
    gap: 1em;
}

nav a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.8em 1.5em;
    color: #fff;
    background: #32a852; /* Vihreä taustaväri */
    border-radius: 30px;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2); /* Tyylikäs varjostus */
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    transform: translateY(-3px); /* Kevyt kohoaminen hoverissa */
    background: #278a42; /* Tummempi vihreä hover-efekti */
    box-shadow: 3px 6px 8px rgba(0, 0, 0, 0.3); /* Tummempi varjostus hoverissa */
}

/* Footer */
footer {
    margin-top: auto;
    background: #eee; /* Vaaleanharmaa footer */
    color: #666; /* Tumma teksti */
    text-align: center;
    padding: 1em;
    width: 98.45%;
    font-size: 0.9rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}
/* Media Queries */
@media (max-width: 768px) {
    nav {
        flex-direction: column; /* Napit allekkain pienillä näytöillä */
        gap: 1em;
    }

    nav a {
        max-width: none; /* Poistaa maksimikoon pienillä näytöillä */
    }

    button {
        max-width: none; /* Joustava leveys painikkeille pienillä näytöillä */
    }
}
