You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Kernel0/styles.css

144 lines
2.4 KiB

6 months ago
/* Basic Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #0ced0c;
color: #04e64c;
background-image: url('./images/alok.png'); /* Add background image */
background-size: cover; /* Ensures the image covers the entire background */
background-position: center; /* Center the background image */
background-attachment: fixed; /* Keeps the background fixed during scroll */
}
header {
background-color: #4CAF50;
color: white;
padding: 20px;
text-align: center;
}
h1 {
margin-bottom: 10px;
}
#product-list {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
margin: 20px;
}
.product {
background-color: white;
padding: 15px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
text-align: center;
width: 250px;
margin-bottom: 20px;
}
.product img {
width: 100%;
height: auto;
border-radius: 8px;
}
.product h4 {
margin-top: 10px;
}
.product p {
font-weight: bold;
color: #4CAF50;
margin: 10px 0;
}
.add-to-cart-btn, .show-more-btn {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px;
cursor: pointer;
border-radius: 5px;
margin-top: 10px;
}
.add-to-cart-btn:hover, .show-more-btn:hover {
background-color: #45a049;
}
.product-details {
display: none; /* Hide product details initially */
margin-top: 10px;
text-align: left;
}
.product-details ul {
list-style-type: none;
padding-left: 0;
}
.product-details li {
margin-bottom: 5px;
}
#cart {
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
position: fixed;
top: 20px;
right: 20px;
width: 250px;
z-index: 100;
}
#cart h3 {
margin-bottom: 15px;
}
#cart-items {
list-style: none;
margin-bottom: 15px;
}
#cart-items li {
padding: 5px 0;
border-bottom: 1px solid #ddd;
}
#total-cost {
font-size: 1.2em;
font-weight: bold;
}
button {
padding: 10px;
border: none;
background-color: #4CAF50;
color: white;
cursor: pointer;
border-radius: 5px;
}
button:hover {
background-color: #45a049;
}
footer {
text-align: center;
padding: 10px;
background-color: #333;
color: white;
position: fixed;
bottom: 0;
width: 100%;
}