bl-frontend-rs/css/service_card.css

137 lines
3.1 KiB
CSS

.service-card-container {
display: flex;
flex-direction: column;
justify-content: space-evenly;
align-items: center;
padding: 10px;
background-color: white;
border-radius: 20px;
box-shadow: -10px 30px 70px rgba(219, 222, 225, 0.4);
width: clamp(300px, 50vw, 350px);
height: 420px;
}
.service-card-container:nth-child(1) .service-card-icon {
background-color: #4ADB61;
filter: drop-shadow(0px 15px 30px #4ADB61);
}
.service-card-container:nth-child(2) .service-card-icon {
background-color: #FF2D59;
filter: drop-shadow(0px 15px 30px #FF2D59);
}
.service-card-container:nth-child(3) .service-card-icon {
background-color: #2776EA;
filter: drop-shadow(0px 15px 30px #2776EA);
}
.service-card-container:nth-child(4) .service-card-icon {
background-color: #FFCC00;
filter: drop-shadow(0px 15px 30px #FFCC00);
}
.service-card-container:nth-child(5) .service-card-icon {
background-color: #FF6800;
filter: drop-shadow(0px 15px 30px #FF6800);
}
.service-card-icon {
width: 75px;
height: 75px;
border-radius: 100%;
display: flex;
justify-content: center;
align-items: center;
color: white;
font-size: 24px;
}
.service-card-title {
font-family: Poppins;
font-size: 24px;
text-align: center;
font-weight: 600;
}
.service-card-description {
font-family: Poppins;
font-size: 17px;
font-weight: 400;
color: #6B6B6B;
line-height: 28px;
text-align: center;
}
.service-card-button {
color: #4C40F7;
background-color: #F3F4F6;
width: 50px;
height: 50px;
border-radius: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.service-card-container:hover {
background-color: #4C40F7;
transition-duration: 0.5s;
cursor: pointer;
}
.service-card-container:hover .service-card-icon {
background-color: white;
filter: none;
box-shadow: none;
color: #4C40F7;
transition-duration: 1s;
}
.service-card-container:hover .service-card-title {
color: white;
transition-duration: 1s;
}
.service-card-container:hover .service-card-description {
color: white;
transition-duration: 1s;
}
.service-card-container:hover .service-card-button {
transition-duration: 1s;
background-color: #F3F4F6;
}
.service-card-icon-selected {
background-color: white;
color: #4C40F7;
filter: drop-shadow(0px 15px 30px #17134a);
}
.service-card-title-selected {
font-family: Poppins;
font-size: 24px;
text-align: center;
font-weight: 600;
color: white;
}
.service-card-description-selected {
font-family: Poppins;
font-size: 17px;
font-weight: 400;
color: white;
line-height: 28px;
text-align: center;
}
.service-card-button-selected {
color: #4C40F7;
background-color: #F3F4F6;
width: 50px;
height: 50px;
border-radius: 100%;
display: flex;
justify-content: center;
align-items: center;
}
@media only screen and (min-width: 750px) {
.service-card-container {
width: clamp(270px, 24vw, 380px);
height: clamp(360px, 33vw, 450px);
}
}