html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background-color: azure;
    line-height: 1.6;
}

.Main {
    height: 100vh;
    background-color: beige;
    align-content: center;
    justify-content: center;
}

.cta-button {
    display: inline-block;
    text-decoration: none;
    border-radius: 8px;
    margin: 100px;
    margin-top: 40px !important;
    border-width: 2px;
    border-style: solid;
    padding: 20px;
    border-color: black;
    color: black;
    font-size: xx-large;
}

.card {
    background-color: white;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 40px;
    align-content: space-around;
    justify-content: center;
    border-width: 2px;
    border-color: black;
    border-style: solid;
    max-width: 500px;
    padding: 20px;
    margin: 20px;
}

.palvelut {
    padding: 100px 20px;
    text-align: center;
    background-color: rgb(183, 212, 205);
    transition: background 0.3s ease;
}

.palvelutgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    align-content: space-between;
    overflow-wrap: anywhere;
    gap: 20px;
    margin-top: 20px;
}

.palvelu {
    display: flex;
    flex-direction: column;
    background-color: rgb(198, 235, 220);
    padding: 20px;
    justify-content: space-between;
    height: 400px;
    min-width: 400px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgb(0, 0, 0);
    transition: transform 0.3s ease, margin-left 0.3s ease;
    z-index: 1;
}

.palvelu.hovered {
    margin-left: 200px;
    z-index: 2;
}

.palvelu:hover {
    transform:rotate(10deg) scale(1.3);
}

.palvelu:hover ~ .palvelutgrid {
    gap: 200px;
}

.palvelut:hover {
    background: rgb(155, 177, 171);
}

.effect__fadein-basic {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.effect__fadein-basic.active {
    opacity: 1;
}
