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

412 lines
6.1 KiB
CSS
Raw Permalink Normal View History

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
}
/*Header*/
.header-page {
display: flex;
justify-content: center;
background: #000;
}
.header-page-logo {
display: block;
padding: 30px 0;
}
/*Main Banner*/
.main-banner {
width: 100%;
}
.main-banner-desktop {
display: block;
}
.main-banner-mobile {
display: none;
}
/* Top Infocard */
.top-infocard {
display: flex;
flex-direction: column;
align-items: center;
padding: 74px 0;
}
.top-infocard-content {
width: 40%;
}
.top-infocard-subtitle,
.top-infocard-title {
text-align: center;
}
.top-infocard-subtitle {
text-transform: uppercase;
font-weight: 400;
font-size: 32px;
line-height: 39px;
}
.top-infocard-title {
text-transform: uppercase;
font-weight: 500;
font-size: 48px;
line-height: 58px;
padding-bottom: 28px;
}
.top-infocard-description {
font-weight: 400;
font-size: 16px;
line-height: 24px;
padding-bottom: 73px;
}
.top-infocard-image-container {
width: 16%;
}
.top-infocard-image {
width: 100%;
}
/*top cards*/
.cards {
display: flex;
justify-content: center;
}
.top-cards {
gap: 21px;
width: 57%;
margin: 0 auto;
padding-bottom: 80px;
}
.card {
display: flex;
align-items: center;
flex-direction: column;
text-align: center;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.top-card {
padding: 36px 26px 26px;
min-width: 300px;
}
.top-card-image {
width: 34%;
padding-bottom: 28px;
}
.top-card-description {
font-weight: 400;
font-size: 16px;
line-height: 24px;
}
/*grid area para o middle images*/
.middle-image-1 {
grid-area: image1;
}
.middle-image-2 {
grid-area: image2;
}
.middle-image-3 {
grid-area: image3;
}
/*middle images*/
.middle-images {
background: #E0E0E0;
margin-bottom: 190px;
}
.middle-images-wrapper {
position: relative;
top: 62px;
display: grid;
grid-template-areas: "image1 image2 image3";
gap: 39px;
width: 92.50%;
margin: 0 auto;
}
.middle-image {
width: 100%;
}
/*bottom cards*/
.bottom-cards {
gap: 16px;
width: 92.50%;
margin: 0 auto;
padding-bottom: 108px;
}
.bottom-card {
padding: 35px 32px 45px;
}
.bottom-card-image {
width: 29%;
padding-bottom: 18px;
}
.bottom-card-description {
font-weight: 400;
font-size: 16px;
line-height: 24px;
text-align: center;
}
/*bottom infocard*/
.bottom-infocard {
display: flex;
flex-direction: column;
align-items: center;
padding-bottom: 116px;
}
.bottom-infocard-content {
width: 29%;
}
.bottom-infocard-title {
font-weight: 600;
font-size: 32px;
line-height: 39px;
text-align: center;
}
.bottom-infocard-description {
font-weight: 400;
font-size: 16px;
line-height: 24px;
text-align: center;
padding-bottom: 50px;
}
.bottom-infocard-image-container {
width: 71%;
}
.bottom-infocard-image {
width: 100%;
height: 276px;
object-fit: cover;
}
/*footer*/
.footer-page {
display: flex;
align-items: center;
flex-direction: column;
background: #000;
padding: 38px 0;
}
.footer-icons {
list-style: none;
display: flex;
gap: 16px;
padding-bottom: 16px;
}
.footer-icons > li:last-child {
margin: auto 0;
}
.footer-text {
color: #BDBDBD;
font-weight: 400;
font-size: 10px;
line-height: 12px;
text-transform: uppercase;
text-align: center;
}
/*mobile*/
@media screen and (max-width: 1024px) {
/*Banner*/
.main-banner-desktop {
display: none;
}
.main-banner-mobile {
display: block;
max-height: 598px;
object-fit: cover;
}
/*Top infocard*/
.top-infocard {
padding: 74px 30px 90px 30px;
}
.top-infocard-content {
width: 100%;
}
.top-infocard-subtitle {
font-size: 20px;
line-height: 24px;
}
.top-infocard-title {
font-size: 28px;
line-height: 34px;
}
.top-infocard-description {
text-align: center;
}
.top-infocard-image-container {
width: 58%;
max-width: 239px;
}
/*top cards*/
.cards {
flex-direction: column;
width: 100%;
}
.top-cards {
padding: 0 30px 80px;
}
.top-card {
min-width: initial;
}
.top-card-description {
font-size: 14px;
}
.top-card-image,
.bottom-card-image {
max-width: 150px;
}
/*middle images*/
.middle-images {
padding: 0 23px;
margin-bottom: 112px;
}
.middle-images-wrapper {
top: 32px;
grid-template-areas: "image2 image1" "image3 image3";
column-gap: 14px;
row-gap: 24px;
width: 100%;
}
/*bottom cards*/
.bottom-cards {
padding: 0 23px 89px;
}
.bottom-infocard {
flex-direction: column-reverse;
padding-bottom: 88px;
}
.bottom-infocard-image-container {
width: 100%;
}
.bottom-infocard-image {
width: 100%;
height: auto;
object-fit: initial;
}
.bottom-infocard-content {
width: 100%;
padding: 50px 32px 0;
}
.bottom-infocard-title {
font-size: 24px;
line-height: 29px;
padding-bottom: 10px;
}
.bottom-infocard-description {
padding-bottom: 0;
}
.footer-text {
width: 261px;
}
}
/*4K*/
@media screen and (min-width: 2500px) {
/*infocard e cards*/
.top-infocard-subtitle {
font-size: 64px;
line-height: 80px;
}
.top-infocard-title {
font-size: 98px;
line-height: 116px;
}
.top-infocard-description,
.top-card-description,
.bottom-card-description,
.bottom-infocard-description {
font-size: 32px;
line-height: 48px;
}
.bottom-infocard-title {
font-size: 64px;
line-height: 78px;
}
/*footer*/
.footer-text {
font-size: 20px;
line-height: 24px;
}
}