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

139 lines
2.2 KiB
CSS

*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
}
/* Cabeçalho */
.header-logo {
width: 100%;
display: block;
}
.page-header {
display: flex;
padding: 28px 0;
justify-content: center;
background: #000;
}
/* Banner principal */
.main-banner{
width: 100%;
display: block;
}
/* Primeiro infocard */
.top-infocard, .top-infocard-subtitle, .top-infocard-title, .top-infocard-description {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.top-infocard-text {
width: 40%;
max-width: 100%;
margin: 72px 0 72px;
}
.top-infocard-subtitle {
font-weight: 400;
font-size: 32px;
line-height: 39px;
text-transform: uppercase;
}
.top-infocard-title {
font-weight: 500;
font-size: 48px;
line-height: 58px;
text-transform: uppercase;
margin-bottom: 22px;
}
.top-infocard-description {
font-size: 16px;
line-height: 24px;
}
.top-infocard-figure {
width: 16%;
}
.top-infocard-image {
width: 100%;
display: block;
margin-bottom: 178px;
}
/* Cards de cima */
.top-cards {
width: 100%;
display: flex;
justify-content: center;
grid-template-columns: repeat(3, 1fr);
gap: 1%
}
.top-card {
width: 18%;
display: flex;
flex-direction: column;
align-items: center;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.top-card-image {
width: 30%;
margin: 13% 0 9%;
}
.top-cards-description {
width: 85%;
margin-bottom: 9%;
font-size: 16px;
line-height: 24px;
text-align: center;
}
/* Responsividade */
@media screen and (min-width: 821px) {
.main-banner-mobile {
display: none;
}
}
@media screen and (max-width: 820px) {
.main-banner-desktop {
display: none;
}
.top-infocard-text {
width: 86%;
max-width: 100%;
margin: 68px 0 68px;
}
.top-infocard-subtitle {
font-size: 20px;
line-height: 24px;
}
.top-infocard-title {
font-weight: 500;
font-size: 28px;
line-height: 34px;
}
.top-infocard-figure {
width: 58%;
}