body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-size: cover;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    background-image: url('https://i.pinimg.com/736x/2d/00/54/2d005496398074d4e03c2e26d703697d.jpg');
}

.container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow items to wrap to the next row on smaller screens */
    justify-content: center;
}

.card {
    width: 150px;
    height: 200px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 20px;
    transform: rotateY(0deg) rotateX(10deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card img {
    width: 60px;
    margin-bottom: 15px;
}

.card:hover {
    transform: rotateY(10deg) rotateX(0deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

h3 {
    margin: 0;
    color: #333;
}

/* Responsive Design */

/* For small screens (like phones) */
@media (max-width: 480px) {
    .card {
        width: 120px; /* Make the card smaller for smaller screens */
        height: 160px;
        padding: 10px;
    }

    .card img {
        width: 50px; /* Adjust image size */
    }

    h3 {
        font-size: 14px; /* Reduce font size */
    }
}

/* For tablets (portrait and landscape) */
@media (max-width: 768px) {
    .card {
        width: 140px; /* Slightly smaller cards for tablets */
        height: 180px;
    }

    .card img {
        width: 55px;
    }

    h3 {
        font-size: 16px;
    }
}

/* For larger screens (desktops) */
@media (min-width: 1200px) {
    .card {
        width: 180px; /* Larger cards for bigger screens */
        height: 240px;
    }

    .card img {
        width: 70px;
    }

    h3 {
        font-size: 18px;
    }
}
