challenge-landing-page-thia.../style/main.css

307 lines
4.7 KiB
CSS
Raw Normal View History

2022-10-10 14:52:18 +00:00
.main-banner .banner-img {
display: block;
width: 100%;
}
.main-banner .banner-mobile {
display: none;
}
2022-10-10 16:41:22 +00:00
.main .top-infocard {
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
2022-10-10 18:45:26 +00:00
padding: 73px 0 178px;
2022-10-10 16:41:22 +00:00
}
.main .container-infocard-text {
margin-bottom: 73px;
max-width: 766px;
}
.main .infocard-subtitle {
font-size: 32px;
font-weight: 400;
text-align: center;
text-transform: uppercase;
}
.main .infocard-title {
margin-bottom: 28px;
font-size: 48px;
font-weight: 500;
text-transform: uppercase;
text-align: center;
}
.main .infocard-description {
font: 16px;
line-height: 24px;
}
2022-10-10 18:45:26 +00:00
.main .top-cards {
2022-10-11 18:24:59 +00:00
display: flex;
2022-10-10 18:45:26 +00:00
align-items: center;
justify-content: center;
2022-10-11 18:24:59 +00:00
width: 100%;
gap: 21px;
margin-bottom: 50px;
2022-10-10 18:45:26 +00:00
}
.main .top-card {
display: flex;
align-items: center;
flex-direction: column;
2022-10-11 18:24:59 +00:00
justify-content: center;
width: 18%;
gap: 30px;
padding: 36px 25px 26px;
2022-10-10 18:45:26 +00:00
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.main .card-img {
display: block;
2022-10-11 18:24:59 +00:00
width: 30%;
2022-10-10 18:45:26 +00:00
}
.main .card-description {
text-align: center;
line-height: 24px;
font-size: 16px;
2022-10-10 16:41:22 +00:00
}
2022-10-11 12:42:42 +00:00
.main .middle-cards {
background: var(--middlebg-gray);
}
.main .container-middle-cards {
display: flex;
2022-10-11 12:42:42 +00:00
gap: 39px;
justify-content: center;
position: relative;
top: 62px;
margin-bottom: 129px;
padding: 0 72px;
}
.main .middle-card-img {
width: 100%;
}
2022-10-11 18:24:59 +00:00
.main .bottom-cards {
display: flex;
justify-content: center;
gap: 16px;
padding: 0 72px;
}
.main .container-bottom-cards {
display: flex;
align-items: center;
flex-direction: column;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.23);
max-width: 100%;
}
.main .bottom-img-card {
display: block;
padding: 35px 25px;
}
.main .bottom-description {
font-size: 16px;
line-height: 24px;
text-align: center;
width: 84%;
padding-bottom: 17px;
}
2022-10-11 23:37:13 +00:00
.main .bottom-infocards {
display: flex;
flex-direction: column;
justify-content: center;
margin-top: 108px;
max-width: 100%;
}
.main .bottom-infocard-title {
text-align: center;
font-size: 32px;
font-weight: 600;
max-width: 100%;
}
.main .bottom-infocard-text {
align-self: center;
text-align: center;
width: 40%;
}
.main .bottom-infocard-description {
font-size: 16px;
line-height: 24px;
margin-bottom: 32px;
}
.main .container-infocard-img {
display: flex;
justify-content: center;
max-width: 100%;
}
.main .bottom-infocard-img {
display: block;
align-self: center;
margin-bottom: 116px;
width: 70%;
}
.main .bottom-infocard-img-mobile {
display: none;
}
2022-10-11 12:42:42 +00:00
/* --------------------------------------- */
/* Banner-desktop / Banner-mobile*/
@media (max-width: 720px) {
.main-banner .banner-desktop {
display: none;
}
.main-banner .banner-mobile {
display: block;
}
}
2022-10-10 18:45:26 +00:00
/* Top-infocard */
2022-10-10 16:41:22 +00:00
@media (max-width: 900px) {
.main .top-infocard {
padding: 73px 29px 90px;
}
.main .container-infocard-text {
margin-bottom: 65px;
}
.main .infocard-subtitle {
font-size: 20px;
}
.main .infocard-title {
font-size: 28px;
margin-bottom: 28px;
}
.main .infocard-description {
text-align: center;
}
2022-10-10 18:45:26 +00:00
}
2022-10-10 16:41:22 +00:00
2022-10-10 18:45:26 +00:00
@media (max-width: 414px) {
2022-10-10 16:41:22 +00:00
.main .infocard-img {
max-width: 244px;
width: 100%;
}
}
2022-10-10 18:45:26 +00:00
2022-10-11 12:42:42 +00:00
/* Top-cards */
2022-10-10 18:45:26 +00:00
2022-10-11 18:24:59 +00:00
@media (max-width: 1024px) {
2022-10-10 18:45:26 +00:00
.main .top-cards {
2022-10-11 18:24:59 +00:00
display: flex;
flex-direction: column;
padding: 0 23px;
}
.main .top-cards,
.main .top-card,
.main .card-description {
width: 100%;
2022-10-10 18:45:26 +00:00
}
2022-10-11 18:24:59 +00:00
.main .card-img {
width: 17%;
2022-10-10 18:45:26 +00:00
}
}
@media (max-width: 768px) {
.main .top-cards {
grid-template-columns: 1fr;
padding: 36px 26px;
}
}
2022-10-11 12:42:42 +00:00
/* Middle card*/
2022-10-10 18:45:26 +00:00
2022-10-11 18:24:59 +00:00
@media (max-width: 1024px) {
.main .container-middle-cards {
padding: 0 23px;
}
2022-10-11 12:42:42 +00:00
.main .container-middle-cards {
display: grid;
2022-10-11 12:42:42 +00:00
grid-template-columns: repeat(2, 1fr);
column-gap: 14px;
margin-bottom: 80px;
top: 32px;
row-gap: 24px;
padding: 0 23px;
}
.main .middle-banner:last-child {
grid-column-end: span 2;
}
}
@media (max-width: 768px) {
.main .middle-cards {
margin-top: 44px;
}
}
2022-10-11 12:42:42 +00:00
@media (max-width: 480px) {
.main .second-img-banner {
grid-area: 1/1;
2022-10-10 18:45:26 +00:00
}
}
2022-10-11 18:24:59 +00:00
/* Bottom cards */
@media (max-width: 1024px) {
.main .bottom-cards {
display: flex;
flex-direction: column;
padding: 0 23px;
}
}
2022-10-11 23:37:13 +00:00
/*Bottom infocards*/
@media (max-width: 1024px) {
.main .bottom-infocards {
flex-direction: column-reverse;
}
.main .bottom-infocard-img {
width: 100%;
margin-bottom: 50px;
}
.main .bottom-infocard-text {
width: 80%;
}
.main .bottom-infocard-title {
font-size: 24px;
margin-bottom: 9px;
}
.main .bottom-infocard-img-desktop {
display: none;
}
.main .bottom-infocard-img-mobile {
display: block;
}
}