practice-time-landing-page/assets/styles/main.css

149 lines
2.4 KiB
CSS

*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
font-family: 'Inter', sans-serif;
color: #000;
}
.page-header{
background-color: #000;
display: flex;
justify-content: center;
padding: 28px 0 28px 0;
}
.page-header-logo{
display: block;
}
.main-banner{
display: block;
width: 100%;
}
.top-infocard{
display: flex;
align-items: center;
justify-content: center;
gap: 124px;
padding: 80px 0 96px 0;
}
.top-infocard-text{
max-width: 766px;
}
.top-infocard-subtitle{
text-transform: uppercase;
font-weight: 400;
font-size: 32px;
}
.top-infocard-title{
margin-bottom: 24px;
text-transform: uppercase;
font-weight: 500;
font-size: 48px;
}
.top-infocard-description{
font-weight: 400;
font-size: 16px;
line-height: 24px;
}
.top-cards{
padding: 74px 0;
display: grid;
grid-template-columns: repeat(3, max-content);
background-color: #F0F0F0;
justify-content: center;
gap: 20px;
}
.top-card{
display: flex;
flex-direction: column;
gap: 26px;
padding: 0 26px;
align-items: center;
background-color: #FFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.top-card-image{
display: block;
margin-top: 35px;
}
.top-card-description{
max-width: 300px;
font-weight: 400;
font-size: 16px;
line-height: 24px;
text-align: center;
}
@media screen and (max-width: 414px){
.main-banner-desktop{
display: none;
}
}
@media screen and (max-width: 768px){
.top-cards{
grid-template-columns: 1fr;
padding: 36px 26px;
gap: 16px;
}
.top-infocard{
padding: 84px 26px 158px;
}
}
@media screen and (min-width: 769px) and (max-width:1200px){
.top-cards{
grid-template-columns: repeat(2, max-content);
}
.top-infocard{
padding-bottom: 96px;
}
}
@media screen and (max-width: 992px){
.top-infocard{
flex-direction: column;
gap: 68px;
}
.top-infocard-subtitle{
font-size: 20px;
}
.top-infocard-title{
font-size: 28px;
}
.top-infocard-image{
width: 100%;
max-width: 240px;
}
}
@media screen and (min-width: 993px) and (max-width: 1280px){
.top-infocard-text{
max-width: 436px;
}
}
@media screen and (min-width: 415px){
.main-banner-mobile{
display: none;
}
}