/* Body and Overall Theme */
body {
    background-color: #f0f4f8;
    color: #333;
    font-family: 'Arial', sans-serif;
}

/* Filter Section */
#filter {
    display: flex;
    flex-wrap: wrap;
    margin: 20px;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.filter {
    margin-left: 20px;
    font-weight: bold;
    color: #04182d;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-danger {
    color: #dc3545 !important;
}

#search input[type="text"] {
    padding: 5px 10px;
    border: 1px solid #ced4da;
}

#search input[type="submit"] {
    margin-left: 5px;
    border: none;
    padding: 5px 15px;
    background-color: #007bff;
    color: white;
}

/* Like Section */
#like_div {
    display: flex;
    align-items: center;
}

/* Product Image */
#product_img {
    height: 150px;
    width: 150px;
    transition: transform 0.5s;
}

#product_img:hover {
    transform: scale(1.09);
}

/* Image Container */
#img_div {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Product Box */
#box {
    border: 2px solid #dee2e6;
    padding: 15px;
    padding-bottom: 5px;
    border-radius: 0px 10px 0px 10px;
    background-color: #f8f9fa;
    transition: box-shadow 0.5s, transform 0.5s;
}

#box:hover {
    box-shadow: 0 50px 100px -20px rgba(50,50,93,0.25), 0 30px 60px -30px rgba(0,0,0,0.3), inset 0 -2px 6px rgba(10,37,64,0.35);
    border-radius: 10px 0px 10px 0px;
    transform: translateY(-3px);
}

/* API Data Grid */
#show_api_data {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px;
}

/* Title Section */
#title_div h6 {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 10px;
    font-weight: bolder;
    height: 125px;
    /* border: 1px solid black; */
    font-weight: 800;
}

/* Responsive Styles */
@media (max-width: 768px) {
    #filter {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter {
        margin-left: 0;
        margin-top: 10px;
    }

    #search input[type="text"],
    #search input[type="submit"] {
        width: 100%;
        margin: 5px 0;
    }

    #img_div {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    #show_api_data {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    #box {
        padding: 10px;
    }
}
