challenge-landing-page/styles/main.css

162 lines
2.4 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{
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: #FFFFFF;
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%;
font-weight: 400;
font-size: 16px;
line-height: 24px;
}
.top-card-image{
width: 29%;
}
@media screen and (max-width: 1024px){
.main-banner-desktop{
display: none;
}
.top-infocard-text{
max-width: 86%;
}
.top-infocard-subtitle{
font-weight: 400;
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%;
}
}
@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{
font-size: 32px;
line-height: 48px;
}
.top-card-text{
font-size: 32px;
line-height: 48px;
}
}