body {
    background-color: #F5DEB3;
}

a {
    text-decoration: none;
}

.container_cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.card {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 405px;
    height: 220px;
    padding: 60px;
    margin-left: 30px;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.card.hidden {
    opacity: 0;
    pointer-events: none; /* Empêche les interactions sur les cartes masquées */
}

.card:not(.hidden) {
    opacity: 1;
}

.from-left {
    transform: translateX(-30%);
}

.from-right {
    transform: translateX(30%);
}

.card:not(.hidden).from-left {
    transform: translateX(0);
}

.card:not(.hidden).from-right {
    transform: translateX(0);
}

#card1 {
    margin-left: 0;
    background-image: url(../images/transfers.png);
}

#card2 {
    background-image: url(../images/ship.png);
}

#card3 {
    background-image: url(../images/vehiclerental.png);
}

.title_card {
    margin: 0;
}

.arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #FF4500;
    border-radius: 10px;
    color: black;
    font-size: 18pt;
    transition: 0.5s;
}

.arrow:hover {
    transform: rotateZ(-90deg);
}

@media screen and (max-width: 1100px) {
    .container_cards {
        flex-direction: column;
        align-items: center;
    }
    
    #card2 {
        margin-left: 0;
    }

    #card3 {
        margin-left: 0;
    }
}

@media screen and (max-width: 540px) {
    .card {
        padding: 30px;
        width: 250px;
        height: 170px;
    }

    .arrow {
        display: none;
    }
}

@media screen and (max-width: 330px) {
    .arrow {
        display: none;
    }

      .card {
        padding: 30px;
        width: 180px;
        height: 170px;
        padding: 15px;
    }
}