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

261 lines
3.7 KiB
CSS

* {
margin: 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;
}
.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%;
}
/*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;
}
.top-cards {
width: 100%;
padding: 0 30px 80px;
}
.top-card {
min-width: initial;
}
.top-card-description {
font-size: 14px;
}
.top-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%;
}
}
/*4K*/
@media screen and (min-width: 2500px) {
/*top infocard*/
.top-infocard-subtitle {
font-size: 64px;
line-height: 80px;
}
.top-infocard-title {
font-size: 98px;
line-height: 116px;
}
.top-infocard-description,
.top-card-description {
font-size: 32px;
line-height: 48px;
}
}