challenge-landing-page/styles/main.css

247 lines
3.7 KiB
CSS

*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
img{
display: block;
}
body{
color: #000;
font-family: 'Inter', sans-serif;
text-align: center;
}
.page-header{
display: flex;
justify-content: center;
background: #000000;
padding: 29px 0;
}
.main-banner{
width: 100%;
}
.top-infocard{
margin: 73px 0 187px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 65px;
}
.top-infocard-text{
max-width: 40%;
}
.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: 28px;
}
.top-infocard-description,
.top-card-text,
.bottom-card-text{
font-weight: 400;
font-size: 16px;
line-height: 24px;
}
.top-infocard-figure{
min-width: 16%;
}
.top-infocard-image{
width: 100%;
}
.top-cards{
display: flex;
gap: 21px;
justify-content: center;
margin-bottom: 80px;
}
.top-card{
width: 18%;
background: #FFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
padding: 35px 0 27px;
}
.top-card-figure{
display: flex;
flex-direction: column;
align-items: center;
gap: 27px;
}
.top-card-text{
width: 85%;
}
.top-card-image{
width: 29%;
}
.middle-card-images{
background: #E0E0E0;
margin-bottom: 191px;
}
.middle-card-images-wrapper{
position: relative;
bottom: -62px;
display: grid;
grid-template-columns: repeat(3, 29%);
gap: 39px;
justify-content: center;
}
.middle-card-image{
width: 100%;
}
.bottom-cards{
display: flex;
gap: 16px;
align-items: center;
justify-content: center;
margin-bottom: 108px;
}
.bottom-card{
width: 22%;
background: #FFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
padding: 35px 0 65px;
}
.bottom-card-figure{
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
}
.bottom-card-image{
width: 24%;
}
#bottom-card-image04{
width: 20%;
}
.bottom-card-text{
width: 85%;
}
@media screen and (max-width: 1024px){
.main-banner-desktop{
display: none;
}
.top-infocard-text{
max-width: 86%;
}
.top-infocard-subtitle{
font-size: 20px;
line-height: 24px;
}
.top-infocard-title{
font-size: 28px;
line-height: 34px;
margin-bottom: 46px;
}
.top-infocard-figure{
max-width: 58%;
}
.top-infocard-image{
max-width: 100%;
}
.top-cards{
flex-direction: column;
gap: 24px;
align-items: center;
}
.top-card{
min-width: 85%;
}
.middle-card-images-wrapper{
grid-template-columns: repeat(2, 43%);
column-gap: 14px;
row-gap: 23px;
bottom: -32px;
}
#middle-card02{
order: -1;
}
#middle-card03{
grid-area: 2/1/2/3;
}
.bottom-cards{
flex-direction: column;
}
.bottom-card{
min-width: 89%;
}
.bottom-card-text{
font-size: 14px;
line-height: 24px;
}
}
@media screen and (min-width: 1025px){
.main-banner-mobile{
display: none;
}
.top-infocard-description{
text-align: left;
}
}
@media screen and (min-width: 2500px){
.top-infocard-subtitle{
font-size: 64px;
line-height: 78px;
}
.top-infocard-title{
font-size: 98px;
line-height: 116px;
}
.top-infocard-description,
.top-card-text,
.bottom-card-text{
font-size: 32px;
line-height: 48px;
}
}