DynamicMenuApp3 / static /styles.css
nagasurendra's picture
Update static/styles.css
2df4b7f verified
raw
history blame
1.66 kB
body {
font-family: Arial, sans-serif;
margin: 20px;
background-color: #f9f9f9;
}
h1 {
text-align: center;
margin-bottom: 30px;
}
.menu-category {
margin-bottom: 30px;
}
.menu-items {
display: flex;
flex-wrap: wrap;
gap: 20px;
}
.menu-item {
border: 1px solid #ddd;
border-radius: 8px;
padding: 10px;
width: 200px;
background-color: white;
text-align: center;
}
.menu-item img {
width: 100px;
height: 100px;
object-fit: cover;
margin-bottom: 10px;
}
.menu-item h3 {
font-size: 18px;
margin: 10px 0;
}
.menu-item p {
font-size: 16px;
color: #333;
}
.menu-item button {
background-color: #28a745;
color: white;
border: none;
padding: 10px;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
}
.menu-item button:hover {
background-color: #218838;
}
/* Pop-Up Modal */
/* Modal Window */
.popup {
display: none; /* Hidden by default */
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 50%;
background-color: white;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
border-radius: 8px;
z-index: 1000;
}
.popup.show {
display: block; /* Show when modal is triggered */
}
.popup button {
margin-top: 10px;
}
body {
overflow-y: scroll; /* Keep background scrollable */
}
/* Menu Item */
.menu-item img {
width: 100px;
height: 100px;
object-fit: cover;
}
.add-button {
background-color: #28a745;
color: white;
border: none;
padding: 10px;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
}