Css
Css
css */
/* Basic reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body styling */
body {
font-family: Arial, sans-serif;
line-height: 1.6;
background-color: #f8f8f8;
color: #333;
}
/* Navigation links */
.nav-list a {
color: #fff;
text-decoration: none;
font-weight: bold;
transition: color 0.3s ease;
}
.progress-bar {
width: 0;
height: 100%;
background-color: #ff3366;
transition: width 0.3s ease;
}
.heart {
width: 50px;
height: 50px;
background-color: #ff3366;
position: relative;
transform: rotate(-45deg);
animation: heartbeat 1.5s infinite;
}
.heart:before,
.heart:after {
content: '';
position: absolute;
width: 50px;
height: 50px;
background-color: #ff3366;
border-radius: 50%;
}
.heart:before {
top: -25px;
left: 0;
}
.heart:after {
left: 25px;
top: 0;
}
@keyframes heartbeat {
0% {
transform: scale(1) rotate(-45deg);
}
25% {
transform: scale(1.25) rotate(-45deg);
}
50% {
transform: scale(1) rotate(-45deg);
}
75% {
transform: scale(1.25) rotate(-45deg);
}
100% {
transform: scale(1) rotate(-45deg);
}
}
/* Section styling */
section {
padding: 20px;
text-align: center;
}
.hidden {
display: none;
}
button {
padding: 10px 20px;
background-color: #ff3366;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
/* Responsive design */
@media (max-width: 600px) {
.navbar {
flex-direction: column;
align-items: flex-start;
}
.nav-list {
flex-direction: column;
width: 100%;
}
.nav-list li {
margin: 5px 0;
}
.nav-toggle {
display: flex;
}
.progress-container {
width: 100%;
}
section {
padding: 10px;
}
input[type="text"] {
width: 100%;
}
button {
width: 100%;
}
}