practice-time-landing-page/styles/style.css

355 lines
5.8 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
font-family: 'Inter', sans-serif;
color: #000000;
}
.page-header{
display: flex;
justify-content: center;
align-items: center;
background-color: #000000;
padding: 28px 0;
}
.header-logo{
display: block;
}
.main-banner-desktop, .middle-banner-desktop{
display: block;
width: 100%;
}
.top-infocard{
display: flex;
align-items: center;
justify-content: center;
padding: 80px 0 96px;
}
.top-infocard-text{
max-width: 766px;
margin-right: 124px;
}
.top-infocard-subtitle{
font-weight: 400;
font-size: 32px;
text-transform: uppercase;
}
.top-infocard-title{
margin-bottom: 24px;
font-weight: 500;
font-size: 48px;
text-transform: uppercase;
}
.top-infocard-description{
font-weight: 400;
font-size: 16px;
line-height: 24px;
}
.top-cards{
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 20px;
justify-content: center;
padding: 74px 0;
background: #F0F0F0;
}
.top-card{
display: flex;
flex-direction: column;
align-items: center;
padding: 36px 26px 28px;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.top-card-image{
display: block;
margin-bottom: 26px;
}
.top-card-description{
max-width: 300px;
font-weight: 400;
font-size: 16px;
line-height: 24px;
text-align: center;
}
.bottom-cards-wrapper{
display: grid;
grid-template-columns: repeat(2, max-content);
gap: 20px;
justify-content: center;
position: relative;
top: -60px
}
.bottom-cards{
margin-top: 140px;
background: linear-gradient(180deg, #00C8FF 0%, #15ACD6 100%);
}
.bottom-card{
display: flex;
flex-direction: column;
align-items: center;
padding: 36px 32px 66px;
background: #FFFFFF;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
}
.bottom-card-image{
display: block;
margin-bottom: 14px;
}
.bottom-card-description{
max-width: 368px;
font-weight: 400;
font-size: 16px;
line-height: 24px;
text-align: center;
}
.bottom-infocard{
display: flex;
align-items: center;
padding: 142px 0 180px;
justify-content: center;
}
.bottom-infocard-image{
margin-right: 40px;
}
.bottom-infocard-text{
max-width: 550px;
}
.bottom-infocard-title{
margin-bottom: 18px;
line-height: 1;
font-size: 32px;
font-weight: 600;
}
.bottom-infocard-description{
font-size: 16px;
line-height: 24px;
}
.page-footer{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: #000000;
padding: 38px 0;
}
.footer-icons{
display: flex;
list-style: none;
margin-bottom: 16px;
}
.footer-icon{
margin: 0 8px;
}
.footer-text{
max-width: 404px;
color: #BDBDBD;
font-weight: 400;
font-size: 10px;
line-height: 12px;
text-transform: uppercase;
}
@media screen and (max-width: 414px){
.main-banner-desktop, .middle-banner-desktop{
display: none;
}
}
@media screen and (min-width: 415px){
.main-banner-mobile, .middle-banner-mobile{
display: none;
}
}
@media screen and (max-width: 415px){
.main-banner-mobile, .middle-banner-mobile{
max-width: 415px;
width: 100%;
}
}
@media screen and (max-width: 768px){
.top-cards{
grid-template-columns: 1fr;
padding: 36px 26px;
gap: 16px;
}
.bottom-cards-wrapper{
grid-template-columns: 1fr;
gap: 16px;
}
.bottom-cards{
margin-top: 114px;
padding: 0 16px;
}
.bottom-card-description{
font-size: 14px;
}
.page-footer{
padding-bottom: 26px;
text-align: center;
}
.footer-text{
max-width: 280px;
text-align: center;
}
}
@media screen and (max-width: 992px){
.top-infocard{
flex-direction: column;
padding: 54px 26px 158px;
}
.top-infocard-text{
margin: 0 0 68px;
}
.top-infocard-subtitle{
font-size: 20px;
}
.top-infocard-title{
margin-bottom: 20px;
font-size: 28px;
}
.top-infocard-image{
width: 100%;
max-width: 240px;
}
.bottom-infocard{
padding: 80px 0 135px;
flex-direction: column;
}
.bottom-infocard-image{
width: 100%;
max-width: 596px;
margin: 0 0 50px;
}
.bottom-infocard-text{
padding: 0 26px;
}
.bottom-infocard-title{
font-size: 24px;
font-weight: 600;
}
}
@media screen and (min-width: 769px) and (max-width: 1200px) {
.top-cards{
grid-template-columns: repeat(2, max-content);
}
}
@media screen and (min-width: 769px) and (max-width: 992px) {
.bottom-card-description{
max-width: 280px;
}
}
@media screen and (min-width: 993px) and (max-width: 1280px) {
.top-infocard-text{
max-width: 520px;
margin-right: 70px;
}
.bottom-infocard-image{
max-width: 480px;
}
.bottom-infocard-text{
max-width: 400px;
}
}
@media screen and (min-width: 1281px){
.top-infocard-title{
font-size: 54px;
}
.top-infocard-subtitle{
font-size: 42px;
}
.top-infocard-description{
font-size: 22px;
}
.top-card-description{
font-size: 22px;
}
.bottom-card-description{
font-size: 22px;
}
.bottom-infocard-title{
font-size: 40px;
}
.bottom-infocard-description{
font-size: 22px;
}
.footer-text{
text-align: center;
max-width: 800px;
font-size: 16px;
}
}
@media screen and (min-width: 2000px){
.bottom-cards-wrapper{
grid-template-columns: repeat(4, max-content);
}
}