challenge-landing-page-leon.../assets/styles/style.css

419 lines
6.8 KiB
CSS

*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body{
font-family: 'Inter', sans-serif;
color: #000000;
}
.page-header{
display: flex;
justify-content: center;
background-color: #000;
}
.logo-header{
margin: 29px 0;
}
.logo-header, .main-banner-desktop{
width: 100%;
display: block;
height: auto;
}
.top-infocard-subtitle{
margin-top: 73px;
font-weight: 400;
font-size: 32px;
line-height: 39px;
text-transform: uppercase;
}
.top-infocard{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.top-infocard-text{
max-width: 766px;
text-align: center;
}
.top-infocard-title{
margin-bottom: 28px;
font-weight: 500;
font-size: 48px;
line-height: 58px;
text-transform: uppercase;
}
.top-infocard-image{
width: 20%;
display: block;
margin-bottom: 177px;
}
.top-infocard-description{
font-size: 16px;
line-height: 24px;
margin-bottom: 84px;
}
.top-card{
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 21px;
padding: 74px 0;
justify-content: center;
margin-bottom: 81px;
}
.card{
display: flex;
flex-direction: column;
align-items: center;
padding: 25px 25px;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.card-image{
width: 20%;
display: block;
margin-bottom: 27px;
}
.card-text{
max-width: 350px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
.middle-photo{
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 39px;
background: #E0E0E0;
padding-left: 72px;
padding-right: 72px;
position: relative;
}
.photo,.photo-desktop{
position: relative;
margin-bottom: -62px;
margin-top: 62px;
max-width: 100%;
width: 100%;
}
.photo-mobile{
display: none;
}
.second-card {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
padding: 191px 0;
justify-content: center;
}
.card-2{
display: flex;
flex-direction: column;
align-items: center;
margin: 0 12px;
padding: 35px 32px 35px 33px;
background: #FFFFFF;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
}
.card2-text{
max-width: 367px;
font-size: 16px;
line-height: 24px;
text-align: center
}
.card2-image{
width: 20%;
display: block;
margin-bottom: 12px;
}
.final-card{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.final-card-info{
max-width: 550px;
text-align: center;
}
.final-card-title{
font-weight: 600;
font-size: 32px;
line-height: 39px;
text-align: center;
}
.final-card-text{
font-size: 16px;
line-height: 24px;
text-align: center;
margin-bottom: 50px;
}
.final-photo-desktop{
width: 70%;
margin-bottom: 116px;
}
footer{
background: #000000;
color: #BDBDBD;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.footer-text{
font-size: 10px;
line-height: 12px;
text-transform: uppercase;
margin-bottom: 38px;
}
.footer-logo{
margin-top: 38px;
margin-bottom: 16px;
}
a {
text-decoration: none;
}
.logo1
{
padding-right: 21px;
}
.logo3
{
padding-left: 21px;
}
@media screen and (max-width:992px) {
.top-infocard-image{
width: 40%;
}
.second-card{
grid-template-columns: 1fr;
margin: 0 23px;
}
.top-infocard-description{
margin: 0 28px 73px;
padding: 26px 36px;
}
.top-infocard-title{
font-size: 28px;
line-height: 34px;
text-transform: uppercase;
}
.top-infocard-subtitle{
font-size: 20px;
line-height: 24px;
}
.second-card{
grid-template-columns: 1fr;
margin: 0 23px;
}
}
@media screen and (min-width: 993px) and (max-width: 1250px){
.second-card {
grid-template-columns: repeat(2, max-content);
margin: 0 23px;
}
}
@media screen and (max-width:414px) {
.main-banner-desktop, .final-photo-desktop{
display: none;
}
.main-banner-mobile, .final-photo-mobile{
display: block;
max-width: 100%;
}
.final-photo-mobile{
margin-bottom: 50px;
}
.footer-text{
font-size: 10px;
line-height: 12px;
max-width: 261px;
text-align: center;
}
}
@media screen and (max-width:768px){
.top-card{
grid-template-columns: 1fr;
padding: 35px 33px 35px 33px;
}
.middle-photo{
gap: 13px;
grid-template-columns: repeat(2, 1fr);
padding-left: 23px;
padding-right: 23px;
text-align: center;
justify-content: center;
}
.photo{
margin-top: 32px;
}
.photo-desktop{
display: none;
}
.middle-photo-mobile{
background-color: #E0E0E0;
display: flex;
align-items: center;
justify-content: center;
}
.photo-mobile{
display: block;
max-width: 80%;
align-items: center;
position: relative;
margin-bottom: -62px;
}
.photo,.photo-desktop{
position: relative;
margin-bottom: 24px;
margin-top: 32px;
max-width: 100%;
width: 100%;
}
}
@media screen and (min-width: 769px) and (max-width: 1250px){
.top-card {
grid-template-columns: repeat(2, max-content);
padding: 35px 33px;
}
}
@media screen and (min-width:415px){
.main-banner-mobile, .final-photo-mobile{
display: none;
}
}
@media screen and (min-width:2500px){
.top-infocard-text {
max-width: 2000px;
}
.top-infocard-title{
font-size: 144px;
line-height: 174px;
margin-bottom: 84px;
}
.top-infocard-subtitle{
margin-top: 219px;
font-size: 96px;
line-height: 117px;
}
.top-infocard-description{
font-size: 48px;
line-height: 72px;
margin-bottom: 252px;
}
.top-card{
padding: 222px 0;
}
.card-text{
max-width: 1050px;
font-size: 48px;
line-height: 72px;
}
.card2-text{
max-width: 1100px;
font-size: 48px;
line-height: 72px;
}
.second-card {
padding: 573px 0;
}
.final-card-info{
max-width: 1050px;
}
.final-card-text{
font-size: 48px;
line-height: 72px;
margin-bottom: 150px;
}
.final-card-title{
font-size: 72px;
line-height: 87px;
}
.footer-text{
font-size: 30px;
line-height: 36px;
text-transform: uppercase;
margin-bottom: 38px;
max-width: 1200px;
}
.logo-header{
width: 300%;
}
}