@import url('https://fonts.googleapis.com/css2?family=Kodchasan:wght@200&family=Nunito+Sans:opsz,wght@6..12,200&display=swap');

h1 {
    font-family: 'Kodchasan';
    text-align: center;
    font-size: 300%;
}

section > h1 {
    padding-top: 30px;
    margin-top: 0;
}

#categories {
    width: 100%;
    margin: 0 0 0 0;
    display: flex;
    justify-content: center;
}

#categories > ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style-type: none;
    padding: 0 0 0 0;
    margin: 3% 3% 3% 3%;
    width: 100%;
}

.button_link {
    text-decoration: none;
}

.button {
    padding: 3% 3% 3% 3%;
    width: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    box-shadow: 0 5px 10px #666666;
    font-size: 28px;
    font-family: 'Kodchasan';
    color: black;
    transition: all .3s;
}

.button:hover {
    transform: scale(0.98);
    box-shadow: 5px 10px 10px #888888;
    cursor: pointer;
}

li:nth-child(1) > a > .button {
    background-color: #ff8000;
    border-color: #ff8000;
}

li:nth-child(2) > a > .button {
    background-color: #3eb4cc;
    border-color: #3eb4cc;
}

li:nth-child(3) > a > .button {
    background-color: #ff4747;
    border-color: #ff4747;
}

li:nth-child(4) > a > .button {
    background-color: #ffbf1f;
    border-color: #ffbf1f;
}

li:nth-child(5) > a > .button {
    background-color: #33ca7f;
    border-color: #33ca7f;
}

section {
    height: 650px;
}

#nourriture {
    background-color: #ff8000;
}

#hygiene {
    background-color: #3eb4cc;
}

#commerce {
    background-color: #ff4747;
}

#loisirs {
    background-color: #ffbf1f;
}

#travail {
    background-color: #33ca7f;
}

.container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 3% 0 3%;
}

.cards {
    width: 31%;
    height: 370px;
    background-color: white;
    border-radius: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    box-shadow: 0 5px 10px #666666;
}

.div_image > a > img {
    border-radius: 20px;
    width: 95%;
    height: 96%;
    transition: all .3s;
}

.div_image > a > img:hover {
    transform: scale(1.02);
}

.div_image {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 85%;
}

.div_image > a {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    height: 95%;
}

p {
    font-family: 'Nunito Sans';
    padding: 0 15px 0 15px;
    margin: 0 0 0 0;
    font-size: 16px;
    font-weight: bold;
}

.voir_plus {
    background-color: white;
    border-color: #888888;
    border-radius: 15px;
    width: 700px;
    right: 20px;
    margin-top: 25px;
    padding: 15px 0 15px 0;
    text-align: center;
    font-size: 30px;
    font-family: "Nunito Sans";
    font-weight: bold;
    box-shadow: 0 2px 8px;
    z-index: 1;
    transition: all .3s;
}

.voir_plus:hover {
    transform: scale(0.98);
    box-shadow: 5px 5px 10px;
    cursor: pointer;
}

.voir_plus_div {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.voir_plus > a {
    text-decoration: none;
    color: black;
}

@media only screen
and (max-device-width: 576px)
and (orientation: portrait) {

    #categories > ul{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        margin-bottom: 25px;
    }

    #categories {
        display: flex;
        justify-content: center;
    }

    .button {
        font-size: 24px;
    }

    .cards {
        display: none;
        width: 100%;
        height: 300px;
    }

    .cards > img {
        width: 94.7%;
    }

    .cards:first-child {
        display: flex;
    }

    p {
        font-size: 12px;
    }

    .voir_plus {
        width: 300px;
        font-size: 20px;
    }

    .voir_plus_div {
        justify-content: center;
    }

    section {
        height: 600px;
    }
}