I have two parts I want to send you. Style and html. Here is the style: body {
margin: 0;
font-family: Arial, sans-serif;
text-align: center;
}
.hero {
height: 300px;
display: flex;
align-items: center;
justify-content: space-between;
background: white;
color: black;
font-size: 2rem;
padding: 0 20px;
}
.logo {
font-weight: bold;
font-size: 2rem;
text-transform: uppercase;
font-family: Impact, sans-serif;
}
.search-bar {
flex-grow: 1;
text-align: center;
}
.search-bar input {
width: 50%;
padding: 10px;
font-size: 1rem;
}
.buttons {
display: flex;
gap: 15px;
}
.buttons button {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 15px;
border: 2px solid black;
border-radius: 25px;
background: white;
font-size: 1rem;
cursor: pointer;
}
.buttons button:hover {
background: black;
color: white;
}
nav {
padding: 20px;
}
nav a {
margin: 0 15px;
text-decoration: none;
color: #666;
font-size: 1rem;
font-weight: 300;
position: relative;
}
nav a::after {
content: '';
display: block;
width: 100%;
height: 2px;
background: #666;
position: absolute;
bottom: -2px;
left: 0;
transform: scaleX(0);
transition: transform 0.3s ease;
}
nav a:hover::after,
nav a.active::after {
transform: scaleX(1);
}
.content {
display: grid;
grid-template-columns: 1fr 3fr 1fr;
gap: 20px;
padding: 20px;
}
.tracks {
display: flex;
flex-direction: column;
gap: 10px;
align-items: center;
}
.track {
display: flex;
align-items: center;
justify-content: space-between;
width: 80%;
padding: 10px 0;
border-bottom: 1px solid #ccc;
text-align: left;
position: relative;
}
.play-button {
width: 30px;
height: 30px;
border: 2px solid black;
border-radius: 5px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
margin-right: 10px;
font-size: 16px;
background: transparent;
transition: background 0.3s ease, color 0.3s ease;
line-height: 1;
}
.play-button:hover {
background: black;
color: white;
}
.track strong {
flex: 1;
text-align: left;
display: flex;
align-items: center;
gap: 10px;
}
.track small {
flex: 1;
text-align: center;
}
.track .track-price {
flex: 0;
text-align: right;
padding: 2px 6px;
border: 2px solid black;
border-radius: 10px;
font-weight: bold;
transition: background 0.3s ease, color 0.3s ease;
display: inline-block;
white-space: nowrap;
cursor: pointer;
position: relative;
}
.track .track-price:hover {
background: black;
color: white;
}
.dropdown {
display: none;
position: absolute;
right: 0;
top: 100%;
background: white;
border: 1px solid black;
padding: 5px;
border-radius: 5px;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.dropdown button {
background: white;
color: black;
border: 2px solid black;
padding: 5px 10px;
cursor: pointer;
border-radius: 5px;
font-size: 0.9rem;
transition: background 0.3s ease, color 0.3s ease;
}
.dropdown button:hover {
background: black;
color: white;
}
.cart-popup {
display: none;
position: absolute;
top: 60px;
right: 0;
background: white;
border: 2px solid black;
padding: 20px;
width: 300px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
z-index: 1000;
border-radius: 5px;
}
.cart-popup h2 {
margin: 0 0 10px;
}
.cart-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 5px 0;
}
.cart-item .track-price {
margin-right: auto; /* Moves the price slightly to the left */
}
.cart-item .remove-button {
background: transparent;
color: black;
border: 2px solid black;
padding: 5px 10px;
cursor: pointer;
border-radius: 5px;
font-size: 0.9rem;
transition: background 0.3s ease, color 0.3s ease;
}
.cart-item .remove-button:hover {
background: black;
color: white;
}
.subtotal {
font-weight: bold;
margin-top: 10px;
}