Test / app /templates /styles.css
adarshadda's picture
initial commit
b0dd51d
/* Reset some default styles */
body, h1, h2, p, figure, audio {
margin: 0;
padding: 0;
}
body {
font-family: Arial, sans-serif;
line-height: 1.6;
background-color: #f5f5f5;
color: #333;
}
.header {
background-color: #ff9900;
color: #fff;
padding: 20px;
text-align: center;
}
.song-box {
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}
.song-info {
display: flex;
align-items: center;
margin-right: 20px;
}
.song-cover {
width: 100px;
height: 100px;
object-fit: cover;
margin-right: 20px;
}
.song-details {
display: flex;
flex-direction: column;
}
.song-title {
font-weight: bold;
margin-bottom: 5px;
}
.song-artist {
font-size: 14px;
color: #888;
}
footer {
background-color: #333;
color: #fff;
padding: 10px;
text-align: center;
}
.audio-player {
display: flex;
align-items: center;
margin-bottom: 10px; /* Add a little space below the player */
}
.progress-container {
width: 250px; /* Adjust width as needed */
height: 5px;
background-color: #333;
border-radius: 5px;
cursor: pointer;
margin-bottom: 5px; /* Small margin below the bar */
}
.progress {
height: 100%;
background-color: #1ed760; /* Spotify green */
border-radius: 5px;
width: 0%; /* Start with 0% progress */
transition: width 0.2s ease-out;
}
.time {
margin-left: 10px;
color: #ccc; /* Light font color */
font-size: 14px;
}
.time {
margin-left: 10px;
color: #ccc; /* Light font color */
font-size: 14px;
}
.player-controls-wrapper {
display: flex; /* Keeps buttons in a row */
justify-content: center; /* Centers them horizontally */
margin-bottom: 15px; /* Spacing below buttons */
}
.player-btn {
background-color: #333; /* Dark background */
border: none;
color: #fff; /* White text */
border-radius: 50%; /* Circular */
cursor: pointer;
font-size: 18px;
width: 35px;
height: 35px;
margin: 0 5px; /* Spacing between buttons */
transition: background-color 0.3s ease; /* For hover effect */
}
.player-btn.play-pause {
font-size: 20px; /* Slightly bigger play/pause icon */
}
.player-btn:hover {
background-color: #555; /* Slightly darker on hover */
}