challenge-landing-page-nico.../assets/styles.css
2022-10-10 13:51:41 -03:00

172 lines
2.7 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
color: #000000;
font-family: 'Inter', sans-serif;
}
/* HEADER E BANNER */
.page__header {
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;
padding: 0 0 80px;
}
.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;
}
/* MEDIAS QUERIES */
@media screen and (min-width: 769px) and (max-width: 1200px) {
.top-cards {
grid-template-columns: repeat(2, max-content);
}
}
@media screen and (max-width: 1200px) {
.top__cards {
grid-template-columns: 1fr;
padding: 0 32px 80px;
}
}
@media screen and (max-width: 1024px) {
.main__banner-desktop {
display: none;
}
.main__banner-mobile {
display: block;
width: 100%;
}
}
@media screen and (max-width: 992px) {
.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;
}
}
@media screen and (min-width: 993px ) and (max-width: 1280px) {
.top-infocard-text {
max-width: 520px;
margin-right: 70px;
}
}