challenge-landing-page-aman.../styles/main.css

310 lines
4.2 KiB
CSS
Raw Normal View History

2022-10-11 18:25:51 +00:00
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
color: black;
font-family: "Inter", sans-serif;
2022-10-11 18:25:51 +00:00
}
/* Cabeçalho */
.page-header {
display: flex;
justify-content: center;
padding: 29px 0;
background: black;
}
.header-logo {
display: block;
max-width: 12%;
}
/* Corpo da pagina */
/* Banner principal */
.main-banner {
width: 100%;
}
/* Topo Infocard */
.top-infocard {
display: flex;
flex-direction: column;
gap: 73px;
align-items: center;
padding: 73px 0 179px;
width: 100%;
}
.top-infocard-text {
text-align: center;
max-width: 40%;
}
.top-infocard-subtitle {
font-weight: 400;
font-size: 32px;
line-height: 39px;
text-transform: uppercase;
}
.top-infocard-title {
font-weight: 500;
font-size: 48px;
line-height: 58px;
text-transform: uppercase;
}
.top-infocard-description {
text-align: left;
line-height: 24px;
margin-top: 28px;
}
.top-infocard-image {
display: block;
max-width: 17%;
}
/* Card do topo */
.top-cards {
display: flex;
justify-content: center;
gap: 21px;
padding: 0 0 80px;
}
.top-card {
display: flex;
width: 18%;
gap: 27px;
padding: 35px 0 27px;
flex-direction: column;
align-items: center;
background: #ffffff;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.top-card-image {
display: block;
max-width: 30%;
}
.top-card-description {
max-width: 85%;
line-height: 24px;
text-align: center;
}
.middle-cards {
display: flex;
gap: 39px;
background: #e0e0e0;
justify-content: center;
}
.middle-card {
width: 30%;
position: relative;
top: 68px;
}
.middle-card-image {
display: block;
width: 100%;
}
.bottom-cards {
display: flex;
align-items: center;
justify-content: center;
padding: 197px 0 54px;
gap: 16px;
}
.bottom-card {
display: flex;
flex-direction: column;
padding: 35px 0 65px;
gap: 15px;
width: 23%;
align-items: center;
background: #ffffff;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
}
.bottom-card-image {
max-width: 24%;
}
.bottom-card-description {
width: 85%;
text-align: center;
line-height: 24px;
}
.bottom-infocards {
display: flex;
flex-direction: column;
align-items: center;
gap: 50px;
padding: 54px 0 116px;
}
.bottom-infocard-text {
max-width: 28%;
text-align: center;
}
.bottom-infocard-title {
font-size: 32px;
line-height: 39px;
font-weight: 600;
}
.bottom-infocard-description {
font-weight: 400;
font-size: 16px;
line-height: 24px;
}
.bottom-infocard-desktop {
max-width: 70%;
}
@media screen and (min-width: 1025px) {
/* Corpo da pagina */
/* Banner principal */
.main-banner-mobile {
display: none;
}
.bottom-infocard-mobile {
display: none;
}
}
2022-10-11 18:25:51 +00:00
@media screen and (max-width: 1024px) {
/* Cabeçalho */
2022-10-11 18:25:51 +00:00
.header-logo {
max-width: 55%;
}
.main-banner-desktop {
display: none;
}
.top-infocard {
width: 100%;
}
.top-infocard-image {
max-width: 72%;
}
.top-infocard-subtitle {
font-size: 23px;
line-height: 24px;
}
.top-infocard-title {
font-size: 28px;
line-height: 33px;
}
.top-infocard {
padding: 73px 28px 90px;
}
.top-infocard-text {
max-width: 86%;
}
.top-infocard-description {
text-align: center;
}
.top-cards {
align-items: center;
flex-direction: column;
padding: 0 32px 80px;
}
.top-card {
width: 84%;
}
.middle-cards {
flex-direction: row;
flex-wrap: wrap;
gap: 14px;
padding: 0 23px 0;
}
.middle-card {
top: 32px;
}
.middle-card-mobile {
width: 89%;
margin-top: 14px;
}
.middle-cards-mobile {
width: 43%;
}
.bottom-cards {
padding: 112px 23px 98px;
flex-direction: column;
}
.bottom-card {
width: 89%;
}
.bottom-card-image {
max-width: 23%;
}
.bottom-card-description {
width: 82%;
font-size: 14px;
}
.bottom-infocard-desktop {
display: none;
}
.bottom-infocard-mobile {
width: 100%;
}
.bottom-infocards {
flex-direction: column-reverse;
}
.bottom-infocard {
display: flex;
justify-content: center;
padding: 0 32px 0;
}
.bottom-infocard-text {
max-width: 85%;
}
.bottom-infocard-title {
font-size: 24px;
line-height: 29px;
}
2022-10-11 18:25:51 +00:00
}