challenge-landing-page-nico.../assets/styles.css
2022-10-12 21:44:21 -03:00

487 lines
7.7 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Inter' sans-serif;
color: #000;
}
body {
color: #000000;
font-family: 'Inter', sans-serif;
}
/* HEADER E MAIN BANNER */
.page__header {
width: 100%;
display: flex;
justify-content: center;
background: #000000;
padding: 1.87rem 0;
}
.header__logo {
display: block;
}
.main__banner-desktop {
display: block;
width: 100%;
}
.main__banner-mobile {
display: none;
}
/* TOP TEXTS */
.top__text {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
padding: 84px 30px 179px;
gap: 72px;
}
.top__infocard-text {
width: 40%;
margin: 0 auto;
}
.top__infocard-subtitle {
text-transform: uppercase;
font-weight: 400;
font-size: 32px;
text-align: center;
}
.top__infocard-title,
.top__infocard-subtitle {
text-align: center;
}
.top__infocard-title {
margin-bottom: 24px;
text-transform: uppercase;
font-weight: 500;
font-size: 48px;
}
.top__infocard-description {
line-height: 24px;
font-size: 16px;
}
/* TOP CARDS */
.top__cards {
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 20px;
justify-content: center;
width: 100%
}
.top__card {
display: flex;
flex-direction: column;
align-items: center;
padding: 26px 26px 34px;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.top__card-image {
display: block;
margin-bottom: 26px;
}
.top__card-description {
max-width: 300px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
/* BOTTOM CARDS */
.bottom__cards {
background: #E0E0E0;
padding: 0 72px;
margin: 80px 0 191px;
}
.bottom__cards-container {
width: 100%;
position: relative;
display: grid;
justify-content: center;
margin: 0 auto;
grid-template-columns: repeat(3, 1fr);
transform: translateY(4rem);
gap: 40px;
}
.bottom__card img {
width: 100%;
height: auto;
}
.bottom__card-image {
display: block;
}
.bottom__card-3 {
grid-column: initial;
}
/* BOTTOM INFOCARDS */
.bottom__infocards {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
padding: 0 76px 108px;
width: 100%;
}
.bottom__infocard {
display: flex;
flex-direction: column;
align-items: center;
padding: 33px 32px 65px;
background: #FFFFFF;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
}
.bottom__infocard-image {
display: block;
margin-bottom: 30px;
}
.bottom__infocard-description {
max-width: 300px;
font-size: 16px;
text-align: center;
}
/* BOTTOM BANNER CONTAINER */
.bottom__banner-container {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
flex-direction: column;
}
.bottom__banner-desktop {
width: 100%;
padding: 0 280px 116px;
margin-top: 50px;
}
.bottom__banner-mobile {
display: none;
}
.bottom__title {
font-weight: 600;
font-size: 32px;
}
.bottom__text {
max-width: 550px;
}
.bottom__description {
font-size: 16px;
line-height: 24px;
}
/* FOOTER */
.footer {
display: flex;
flex-direction: column;
align-items: center;
background: #000000;
padding: 38px 0;
}
.footer__icons {
display: flex;
list-style-type: none;
margin-bottom: 16px;
gap: 20px;
}
.footer__text {
text-transform: uppercase;
line-height: 12px;
font-size: 10px;
color: #BDBDBD;
}
/* ---------- MEDIAS QUERIES ---------- */
@media screen and (max-width: 1024px) {
/* MAIN BANNER */
.main__banner-desktop {
display: none;
}
.main__banner-mobile {
display: block;
width: 100%;
}
.bottom__banner-desktop {
display: none;
}
.bottom__banner-mobile {
display: block;
}
/* TOP TEXTS */
.top__text {
flex-direction: column;
padding: 88px 32px 90px;
gap: 65px;
}
.top__infocard-text {
width: 100%;
margin-right: 0;
}
.top__infocard-subtitle {
font-size: 20px;
}
.top__infocard-title {
margin-bottom: 20px;
font-size: 28px;
}
.top__infocard-image {
width: 100%;
max-width: 240px;
}
.top__infocard-description {
text-align: center;
}
/* TOP CARDS */
.top__infocards {
width: 100%;
}
.top__card-image {
align-items: center;
width: 34%;
}
/* ---------- BOTTOM CARDS ---------- */
.bottom__cards {
padding: 0 24px;
margin-bottom: 112px;
}
.bottom__cards-container {
gap: 24px 14px;
grid-template-columns: repeat(2, 1fr);
transform: translateY(2rem);
}
.bottom__card img {
width: 100%;
}
.bottom__card-3 {
grid-column: 1/3;
}
.bottom__card-2 {
grid-row: 1;
}
/* ---------- BOTTOM INFOCARDS ---------- */
.bottom__infocards {
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 20px;
justify-content: center;
padding: 0 0;
width: 100%;
}
.bottom__infocard {
display: flex;
flex-direction: column;
align-items: center;
padding: 26px 26px 34px;
}
.bottom__infocard-image {
align-items: center;
width: 34%;
}
/* ---------- BOTTOM BANNER CONTAINER ---------- */
.bottom__banner-container {
display: flex;
flex-direction: column-reverse;
}
.bottom__title {
font-size: 24px;
}
.bottom__text {
padding: 0 32px 87px;
}
.bottom__banner-desktop {
display: none;
}
.bottom__banner-mobile {
width: 100%;
display: block;
margin-bottom: 50px;
}
/* ---------- FOOTER ---------- */
.page__footer {
padding-bottom: 26px;
display: flex;
flex-direction: center;
align-items: center;
}
.footer__text {
max-width: 280px;
text-align: center;
}
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
.top__cards {
grid-template-columns: repeat(2, 1fr);
}
.bottom__infocards {
grid-template-columns: repeat(2, 1fr);
}
}
@media screen and (max-width: 1200px) {
.top__cards {
grid-template-columns: 1fr;
padding: 0 32px;
}
.bottom__infocards {
grid-template-columns: 1fr;
padding: 0 24px 98px;
}
}
@media screen and (min-width: 2560px) {
/* TOP TEXTS */
.top__text {
padding: 84px 30px 179px;
gap: 72px;
}
.top__infocard-subtitle {
font-size: 64px;
}
.top__infocard-title {
margin-bottom: 48px;
font-size: 96px;
}
.top__infocard-description {
line-height: 48px;
font-size: 32px;
}
/* BOTTOM BANNER CONTAINER */
.bottom__title {
font-size: 64px;
}
.bottom__description {
font-size: 32px;
line-height: 48px;
}
/* FOOTER */
.footer__text {
line-height: 24px;
font-size: 20px;
}
/* TOP CARDS */
.top__cards {
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 20px;
justify-content: center;
width: 100%
}
.top__card-image {
display: block;
margin-bottom: 26px;
}
.top__card-description {
font-size: 32px;
line-height: 48px;
}
/* BOTTOM INFOCARDS */
.bottom__infocard-description {
max-width: 300px;
font-size: 32px;
}
}