Spaces:
Sleeping
Sleeping
File size: 1,575 Bytes
29a34fb 85dbe98 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
.food-card {
border: 2px solid #ccc;
border-radius: 12px;
box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2);
width: 350px;
background-color: #fff;
overflow: hidden;
font-family: 'Arial', sans-serif;
margin: auto;
position: relative;
}
.card-header {
position: relative;
height: 150px;
background: #f0f0f0;
display: flex;
align-items: center;
justify-content: center;
}
.food-image {
max-height: 100%;
width: auto;
object-fit: contain;
}
.close-btn {
position: absolute;
top: 10px;
right: 10px;
background: #ff3333;
border: none;
color: white;
border-radius: 50%;
width: 25px;
height: 25px;
font-size: 16px;
cursor: pointer;
}
.card-content {
padding: 16px;
}
.nutrition-details h3 {
margin-bottom: 12px;
text-align: center;
font-size: 18px;
}
.nutrition-details table {
width: 100%;
border-spacing: 0;
font-size: 14px;
}
.nutrition-details td {
padding: 8px 0;
border-bottom: 1px solid #eee;
}
.portion-details {
text-align: right;
font-size: 14px;
margin-top: 12px;
color: #555;
}
/* Cards for food list */
#food-list {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
}
.food-item-card {
border: 1px solid #ddd;
border-radius: 8px;
padding: 10px 20px;
text-align: center;
font-size: 16px;
cursor: pointer;
transition: all 0.3s ease;
}
.food-item-card:hover {
background-color: #f9f9f9;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
|