challenge-landing-page/assets/styles/main.css

343 lines
5.8 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
font-family: 'Inter', sans-serif;
color: #000000;
}
.header-page{
background: #000000;
display: flex;
justify-content: center;
padding: 29px 0;
}
.header-link{
display: flex;
width: 12%;
justify-content: center;
}
.header-img{
width: 100%;
}
.top-banner{
width: 100%;
display: block;
}
.top-infocard{
display: flex;
align-items: center;
text-align: center;
justify-content: center;
flex-direction: column;
}
.top-infocard-text{
width: 40%;
margin: 72px 0;
}
.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;
}
.top-infocard-image{
width: 17%;
margin: 0 0 178px;
}
.top-cards{
display: grid;
grid-template-columns: repeat(3, 18%);
gap: 20px;
justify-content: center;
margin: 0 0 80px;
}
.top-card{
display: flex;
flex-direction: column;
align-items: center;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
padding: 36px 26px 26px;
gap: 27px;
}
.top-card-image{
display: block;
width: 34%;
}
.top-card-description{
font-size: 16px;
line-height: 24px;
text-align: center;
}
.mid-banners{
background: #E0E0E0;
margin: 0 0 192px;
}
.mid-banner-wrapper{
display: grid;
grid-template-columns: repeat(3, 29%);
justify-content: center;
gap: 38px;
position: relative;
top: 62px;
}
.mid-banner-image{
width: 100%;
}
.bottom-cards{
display: grid;
grid-template-columns: repeat(4, 23%);
gap: 16px;
justify-content: center;
margin: 0 0 108px;
}
.bottom-card{
display: flex;
flex-direction: column;
align-items: center;
background: #FFFFFF;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
gap: 16px;
padding: 36px 32px 64px;
}
.bottom-card-image{
display: block;
width: 24%;
height: 100%;
}
.bottom-card-description{
font-size: 16px;
line-height: 24px;
text-align: center;
}
.bottom-section{
display: flex;
align-items: center;
text-align: center;
justify-content: center;
flex-direction: column;
gap: 50px;
margin: 0 0 116px;
}
.bottom-section-text{
width: 29%;
text-align: center;
}
.bottom-section-text-title{
font-weight: 600;
font-size: 32px;
line-height: 39px;
}
.bottom-section-text-description{
font-size: 16px;
line-height: 24px;
}
.bottom-section-image-desktop{
width: 71%;
}
.page-footer{
display: flex;
flex-direction: column;
align-items: center;
padding: 38px 0;
background: #000000;
}
.page-footer-content{
display: flex;
flex-direction: column;
width: 21%;
align-items: center;
text-align: center;
}
.footer-icons{
display: flex;
list-style: none;
margin-bottom: 16px;
justify-content: center;
gap: 16px;
width: 100%;
}
.footer-link{
display: flex;
width: 6%;
}
.footer-text{
font-size: 10px;
line-height: 12px;
text-transform: uppercase;
color: #BDBDBD;
}
@media screen and (min-width: 2500px) {
.top-infocard-subtitle{
font-size: 64px;
line-height: 78px;
}
.top-infocard-title{
font-size: 96px;
line-height: 116px;
}
.bottom-section-text-title{
font-size: 64px;
line-height: 78px;
}
.top-infocard-description,
.top-card-description,
.bottom-card-description,
.bottom-section-text-description {
font-size: 32px;
line-height: 48px;
}
.footer-text{
font-size: 20px;
line-height: 24px;
}
}
@media screen and (min-width: 1025px) {
.top-banner-mobile,
.bottom-section-image-mobile{
display: none;
}
}
@media screen and (max-width: 1024px) {
.top-banner-desktop,
.bottom-section-image-desktop{
display: none;
}
.header-link{
width: 55%;
}
.top-infocard-text{
width: 86%;
margin: 72px 0 64px;
}
.top-infocard-subtitle{
font-size: 20px;
line-height: 24px;
}
.top-infocard-title{
font-size: 28px;
line-height: 34px;
}
.top-infocard-image{
width: 58%;
margin: 0 0 91px;
}
.top-cards{
display: grid;
grid-template-columns: repeat(1, 85%);
gap: 20px;
justify-content: center;
margin: 0 0 80px;
}
.top-card{
padding: 36px 26px 28px;
gap: 24px;
}
.mid-banners{
margin: 0 0 112px;
}
.mid-banner-wrapper{
display: grid;
grid-template-columns: repeat(2, 43%);
justify-content: center;
column-gap: 14px;
row-gap: 24px;
position: relative;
top: 32px;
}
.area2{
grid-area: 1/1/1/1 ;
}
.area3{
grid-area: 2/1/4/3;
}
.bottom-cards{
display: grid;
grid-template-columns: repeat(1, 89%);
gap: 16px;
justify-content: center;
margin: 0 0 98px;
}
.bottom-card-image{
display: block;
width: 29%
}
.bottom-section{
flex-direction: column-reverse;
margin: 0 0 87px;
}
.bottom-section-image,
.bottom-section-image-mobile{
width: 100%;
}
.bottom-section-text{
width: 85%;
text-align: center;
}
.bottom-section-text-title{
font-weight: 600;
font-size: 24px;
line-height: 29px;
}
.page-footer{
padding: 32px 0;
}
.page-footer-content{
width: 63%;
align-items: center;
}
}