challenge-landing-page-well.../css/style.css

154 lines
2.4 KiB
CSS

* {
margin: 0;
box-sizing: border-box;
}
body{
font-family: 'Inter', sans-serif;
color: #000000;
}
/*** HEADER ***/
.page-header{
display: flex;
justify-content: center;
align-items: center;
background-color: #000000;
padding: 28px 0;
}
.header-logo{
display: block;
}
/*** MAIN BANNER ***/
.main-banner-desktop{
display: block;
width: 100%;
}
.main-banner-mobile{
display: block;
width: 100%;
}
/*** TOP INFOCARD ***/
.top-infocard {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 74px;
}
.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;
}
.top-infocard-description{
font-weight: 400;
font-size: 16px;
line-height: 24px;
margin-top: 28px;
max-width: 40%;
}
.top-infocard-image{
display: block;
margin-top: 74px;
}
/*** TOP CARDS ***/
.top-cards{
margin-top: 180px;
display: grid;
grid-template-columns: repeat(3, 18%);
gap: 20px;
justify-content: center;
}
.card{
width: 100%;
justify-content: center;
align-items: center;
text-align: center;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.card-image{
margin-top: 36px;
}
.card-description{
margin: 28px 26px;
}
@media screen and (max-width: 1024px){
/*** MAIN BANNER ***/
.main-banner-desktop{
display: none;
}
/*** TOP INFOCARD ***/
.top-infocard{
padding: 0 28px 0;
}
.top-infocard-subtitle{
font-size: 20px;
line-height: 24px;
text-align: center;
}
.top-infocard-title{
text-align: center;
font-size: 28px;
line-height: 34px;
}
.top-infocard-description{
max-width: 100%;
text-align: center;
}
.top-infocard-image{
margin-top: 65px;
width: 100%;
}
/*** TOP CARDS ***/
.top-cards{
grid-template-columns: repeat(1, 100%);
padding: 0 28px 0;
margin-top: 90px;
gap: 24px;
}
.card{
font-size: 16px;
line-height: 24px;
}
}
@media screen and (min-width: 1025px){
/*** MAIN BANNER ***/
.main-banner-mobile{
display: none;
}
}