/* Container for all flip boxes */
.flip-box-M-container {
    display: flex; /* Enable flexbox for the container */
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    justify-content: center; /* Center the boxes horizontally */
    margin: 2%; /* Margin for the container */
}

/* Individual flip box */
.flip-box-M {
    background-color: white;
    width: 350px; /* Width for larger screens */
    height: 500px; /* Height for larger screens */
    perspective: 100%;
    margin: 10px; /* Space between boxes */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden; /* Prevent overflow of child elements */
}

/* Inner box */
.flip-box-M-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* Flip on hover */
.flip-box-M:hover .flip-box-M-inner {
    transform: rotateY(180deg);
}

/* Front and back sides */
.flip-box-M-front, .flip-box-M-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2px;
    border-radius: 4px;
    font-size: small;
}

/* Front side styling */
.flip-box-M-front {
    background-color: white;
    border: 1% solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Back side styling */
.flip-box-M-back {
    background-color: #8E1B80;
    transform: rotateY(180deg);
    padding: 2%;
    color: white;
    text-align: left;
}

/* Heading and Content Styling */
.flip-box-heading {
    font-size: 20px;
    font-weight: bold;
    color: black; 
    margin: 1% 0 0.5%;
}

.flip-box-price {
    font-size: medium; /* Adjusted for clarity */
    font-weight: normal;
    color: grey;
    margin: 0.5% 0;
}

.flip-box-nrml {
    font-size: small;
    font-weight: normal;
    color: white;
    margin: 0.5% 0;
    text-align: center;
}

.flip-box-h3 {
    font-size: small;
    font-weight: bold;
    color: white;
    margin: 0.5% 0;
    text-align: center;
}

.flip-box-blt {
    font-size: small;
    font-weight: normal;
    color: white;
    margin: 0.5% 0;
    text-align: left;
}

/* Media Queries for Responsive Design */


@media only screen and (max-width: 1080px) {
    .flip-box-M {
        height: 450px; /* Set appropriate height for smaller screens */
        width: 97% ;
        font-size: xx-small;
        padding: 1%;
        text-wrap: wrap;
    }
}

/* For Mobile Phones and smaller screens */
@media only screen and (max-width: 1080px) {
    .flip-box-M-container {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        }}

.custom-button_M {
    border: whitesmoke;
    padding: 10px 20px; 
    border-radius: 25px; 
    cursor: pointer; 
    font-size: 16px; 
    background-color: #E4047E; 
    color: white; 
    height: auto; 
    margin: auto; 
    display: flex; 
    transition: transform 0.1s, background-color 0.1s;}

    .custom-button_M:active {
        transform: scale(0.95);
     }


    