challenge-landing-page/styles/main.css

162 lines
2.4 KiB
CSS
Raw Normal View History

2022-10-11 14:05:41 +00:00
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
img{
display: block;
}
2022-10-11 16:40:02 +00:00
body{
color: #000;
font-family: 'Inter', sans-serif;
text-align: center;
}
2022-10-11 14:05:41 +00:00
.page-header{
display: flex;
justify-content: center;
background: #000000;
padding: 29px 0;
}
.main-banner{
width: 100%;
}
2022-10-11 16:40:02 +00:00
.top-infocard{
2022-10-11 18:27:45 +00:00
margin: 73px 0 187px;
2022-10-11 16:40:02 +00:00
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%;
}
2022-10-11 18:27:45 +00:00
.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){
2022-10-11 16:40:02 +00:00
.main-banner-desktop{
display: none;
}
2022-10-11 17:55:36 +00:00
.top-infocard-text{
max-width: 86%;
}
.top-infocard-subtitle{
font-weight: 400;
font-size: 20px;
line-height: 24px;
}
2022-10-11 18:27:45 +00:00
2022-10-11 17:55:36 +00:00
.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){
2022-10-11 16:40:02 +00:00
.main-banner-mobile{
display: none;
}
2022-10-11 17:55:36 +00:00
.top-infocard-description{
text-align: left;
}
2022-10-11 16:40:02 +00:00
}
@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;
}
2022-10-11 18:27:45 +00:00
.top-card-text{
font-size: 32px;
line-height: 48px;
}
2022-10-11 14:05:41 +00:00
}