challenge-landing-page-humb.../assets/style/main.css

127 lines
2.2 KiB
CSS
Raw Normal View History

2022-10-09 19:49:37 +00:00
* {
margin:0;
padding: 0;
box-sizing: border-box;
}
body{
font-family: 'Inter', sans-serif;
color:#000000
}
2022-10-09 19:49:37 +00:00
.page-header{
background: #000000;
display:flex;
justify-content: center;
padding: 29px 0;
}
.header-logo{
display: block;
}
.top-infocard{
display: flex;
align-items: center;
justify-content: center;
gap: 72px;
flex-direction: column;
padding: 84px 38px 179px;
}
.top-infocard-test{
width: 40%;
margin: 0 auto;
}
.top-infocard-subtitle{
text-transform: uppercase;
font-size: 32px;
font-weight: 400;
}
.top-infocard-description{
font-size: 16px;
line-height: 24px;
}
.top-infocard-title{
text-transform: uppercase;
font-size: 48px;
font-weight: 500;
margin-bottom: 24px;
}
.top-infocard-title,
.top-infocard-subtitle{
text-align: center;
}
.main-banner-desktop {
display: block;
width: 100%;
}
.main-banner-mobile {
display: none;
}
.top-cards{
display: grid;
grid-template-columns: repeat(3, max-content);
background: #F0F0F0;
gap: 20px;
justify-content: center;
padding: 178px 0 80px 0;
}
.top-card{
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
display: flex;
flex-direction: column;
align-items: center;
padding: 26px 26px 34px;
}
.top-card-image{
display: block;
margin-bottom: 26px;
}
.top-card-description{
max-width: 300px;
text-align: center;
line-height: 24px;
font-size: 16px;
}
@media (max-width: 1024px) {
.main-banner-desktop {
display: none;
}
.main-banner-mobile {
display: block;
width: 100%;
}
}
@media screen and (max-width:1024px) {
.top-infocard{
padding: 65px 0 90px;
flex-direction: column;
}
.top-infocard-subtitle{
font-size: 20px;
}
.top-infocard-title{
font-size: 28px;
margin-bottom: 20px;
}
.top-infocard-test{
margin: 0 0 66px
}
.top-infocard-image{
max-width: 240px;
width: 100%;
}
}
@media screen and (max-width:1024px){
.top-cards{
grid-template-columns: 1fr;
padding: 90px 32px 80px;
}
}