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

98 lines
1.6 KiB
CSS
Raw Normal View History

2022-10-09 10:13:51 +00:00
/* primeiro background */
.background-main figure img {
width: 100%;
height: 700px;
top: 0;
max-height: 700px;
object-fit: cover;
}
/* primeira seção com imagem e texto */
.first-section {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
margin-top: 73px;
position: relative;
}
.first-section h2 {
font-weight: 400;
font-size: 32px;
line-height: 39px;
text-transform: uppercase;
color: #000000;
}
.first-section h1 {
font-weight: 500;
font-size: 48px;
line-height: 58px;
text-transform: uppercase;
color: #000000;
margin-bottom: 28px;
}
.first-section figure {
display: flex;
align-items: center;
flex-direction: column;
}
.first-section figcaption {
font-weight: 400;
font-size: 16px;
line-height: 24px;
color: #000000;
max-width: 766px;
margin-bottom: 73px;
}
2022-10-09 10:13:51 +00:00
@media screen and (max-width: 1024px) {
.background-main figure img {
height: 100%;
min-height: 598px;
}
.first-section {
padding: 0 28px;
}
.first-section h2 {
font-size: 20px;
line-height: 24px;
}
.first-section h1 {
font-size: 28px;
line-height: 34px;
text-align: center;
}
.first-section figure img {
width: 100%;
max-width: 239px;
}
.first-section figcaption {
text-align: center;
}
2022-10-09 10:13:51 +00:00
}
@media screen and (min-width: 2500px) {
.background-main figure img {
width: 100%;
height: 100%;
top: 0;
object-fit: cover;
position: relative;
}
}