challenge-landing-page/assets/css/style.css

344 lines
5.3 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Inter", sans-serif;
color: black;
}
.page-header {
background: black;
display: flex;
justify-content: center;
padding: 29px 0;
}
.header-logo {
display: block;
}
.banner {
width: 100%;
display: block;
}
.top-infocard {
align-items: center;
justify-content: center;
display: grid;
column-gap: 65px;
margin-top: 73px;
width: 100%;
}
.top-infocard-text {
width: 62%;
text-align: center;
justify-content: center;
position: relative;
margin-left: auto;
margin-right: auto;
}
.top-infocard-subtitle {
font-weight: 400;
font-size: 32px;
text-transform: uppercase;
}
.top-infocard-title {
font-weight: 500;
font-size: 48px;
text-transform: uppercase;
font-weight: bold;
margin-bottom: 28px;
}
.top-infocard-description {
line-height: 24px;
font-size: 16px;
}
.top-infocard-image {
width: 38%;
margin-top: 73px;
margin-bottom: 179px;
}
.top-cards {
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 21px;
margin-bottom: 80px;
width: 100%;
height: auto;
justify-content: center;
}
.top-card {
display: flex;
flex-direction: column;
align-items: center;
min-height: 287px;
box-shadow: 0px 4px 20px 0px #0000003b;
padding: 35px 0px 27px;
}
.top-card-image {
width: 35%;
margin-bottom: 27px;
}
.top-card-description {
font-size: 16px;
align-items: center;
line-height: 24px;
text-align: center;
max-width: 350px;
}
.middle-banners {
background: #f0f0f0;
display: grid;
grid-template-columns: repeat(3, max-content);
justify-content: center;
width: 100%;
}
.middle-banner {
width: 60%;
display: flex;
flex-direction: column;
align-items: center;
position: relative;
bottom: -64px;
margin-left: auto;
margin-right: auto;
}
.middle-banner-wrapper {
position: relative;
display: flex;
bottom: -130px;
justify-content: center;
align-items: center;
}
.middle-banner-first-row {
padding: -98px 14px 24px;
/*130 - 32 = 98 de diferença*/
}
.bottom-cards {
margin: 193px 0 136px;
/*64 do bottom negativo + 129 que e de fato a margem entre o middle-banners e bottom-cards*/
display: grid;
grid-template-columns: repeat(4, max-content);
justify-content: center;
gap: 16px;
background: #fff;
}
.bottom-card {
display: flex;
flex-direction: column;
align-items: center;
max-width: 300px;
padding: 36px 0px 14px;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
}
.bottom-card-description {
padding: 14px 32px 66px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
.bottom-card-image {
width: 35%;
margin-bottom: 14px;
}
.bottom-infocard {
align-items: center;
justify-content: center;
display: grid;
gap: 30px;
width: 100%;
}
.bottom-infocard-image-desktop {
margin-bottom: 116px;
width: 95%;
height: auto;
position: relative;
margin-left: auto;
margin-right: auto;
}
.bottom-infocard-text {
text-align: center;
align-items: center;
justify-content: center;
width: 50%;
position: relative;
margin-left: auto;
margin-right: auto;
}
.bottom-infocard-title {
font-weight: 600;
font-size: 32px;
line-height: 20px;
margin-bottom: 18px;
}
.bottom-infocard-description {
font-size: 16px;
line-height: 24px;
margin-bottom: 32px;
}
.page-footer {
background: black;
display: flex;
flex-direction: column;
align-items: center;
padding: 38px 0;
}
.footer-icons {
display: flex;
list-style: none;
margin-bottom: 16px;
}
.footer-icon {
margin: 0 8px;
}
.footer-text {
color: #bdbdbd;
font-size: 10px;
line-height: 12px;
text-transform: uppercase;
}
@media screen and (min-width: 2500px) {
.top-infocard-subtitle {
font-size: 64px;
}
.top-infocard-title {
font-size: 96px;
}
.top-infocard-description,
.top-infocard-description,
.top-card-description,
.bottom-card-description,
.bottom-infocard-description {
line-height: 48px;
font-size: 32px;
}
.bottom-infocard-title {
font-size: 64px;
line-height: 40px;
}
.footer-text {
font-size: 20px;
line-height: 24px;
}
}
@media screen and (min-width: 1025px) {
.banner-mobile,
.middle-banner-mobile,
.bottom-infocard-image-mobile {
display: none;
}
}
@media (max-width: 1024px) {
.banner-desktop,
.middle-banner-desktop,
.bottom-infocard-image-desktop {
display: none;
}
.top-infocard {
gap: 80px;
}
.top-infocard-text {
max-width: 250px;
}
.top-infocard-subtitle {
font-size: 20px;
}
.top-infocard-title {
font-size: 28px;
margin-bottom: 18px;
}
.top-infocard-description {
max-width: 330px;
}
.top-infocard-image {
max-width: 240px;
width: 100%;
margin-top: 66px;
}
.top-cards {
grid-template-columns: 1fr;
}
.bottom-cards {
grid-template-columns: 300px;
margin-right: 0;
}
.bottom-infocard {
gap: 80px;
}
.bottom-infocard {
gap: 104px;
}
.bottom-infocard-text {
max-width: 250px;
}
.bottom-infocard-title {
font-size: 24px;
}
.bottom-infocard-description {
max-width: 250px;
}
.page-footer {
padding: 42px 0 26px;
}
.footer-text {
max-width: 280px;
text-align: center;
}
}
@media screen and (max-width: 820px) {
}
@media screem amd (max-width: 320px) {
}