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

225 lines
3.3 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
color: #000000;
font-family: 'Inter', sans-serif;
}
.page-header {
display: flex;
padding: 29px 0;
background: #000000;
justify-content: center;
}
.header-logo {
display: block;
}
.main-banner {
width: 100%;
}
.top-infocard {
display: flex;
flex-flow: column;
align-items: center;
padding-bottom: 179px;
justify-content: center;
}
.top-infocard-subtitle {
font-size: 32px;
font-weight: 400;
line-height: 39px;
text-transform: uppercase;
}
.top-infocard-title {
font-size: 48px;
font-weight: 500;
line-height: 58px;
margin-bottom: 28px;
text-transform: uppercase;
}
.top-infocard-text {
padding: 73px 0;
max-width: 766px;
text-align: center;
}
.top-infocard-description {
font-size: 16px;
line-height: 24px;
text-align: justify;
}
.top-cards {
gap: 21px;
display: grid;
justify-content: center;
grid-template-columns: repeat(3, max-content);
}
.top-card {
display: flex;
align-items: center;
background: #FFFFFF;
flex-direction: column;
padding: 26px 25px 36px;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.top-card-image {
margin-bottom: 27px;
}
.top-card-description {
font-size: 16px;
max-width: 300px;
line-height: 24px;
text-align: center;
}
.middle-banners {
background: #E0E0E0;
margin: 80px 0 62px;
}
.middle-banners-wrapper {
gap: 39px;
display: flex;
padding: 0 72px;
justify-content: center;
position: relative;
top: 62px;
}
.middle-banner {
gap: 39px;
display: flex;
}
.middle-banner img {
width: 100%;
height: 100%;
}
.bottom-cards {
}
.bottom-cards-wrapper {
display: grid;
grid-template-columns: repeat(4, max-content);
justify-content: center;
gap: 16px;
}
.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-size: 16px;
line-height: 24px;
text-align: center;
}
.bottom-infocard {
display: flex;
align-items: center;
justify-content: center;
padding: 142px 0 180px;
}
.bottom-infocard-image {
margin-right: 40px;
}
.bottom-infocard-text {
max-width: 550px;
}
.bottom-infocard-title {
margin-bottom: 18px;
font-weight: 600;
font-size: 32px;
line-height: 1;
}
.bottom-infocard-description {
font-size: 16px;
line-height: 24px;
}
@media screen and (max-width: 414px) {
.main-banner-desktop {
display: none;
}
}
@media screen and (min-width: 415px) {
.main-banner-mobile {
display: none;
}
}
@media screen and (max-width: 768px) {
.top-cards {
grid-template-columns: 1fr;
padding: 0 26px;
}
}
@media screen and (max-width: 992px) {
.top-infocard {
padding: 0 28px 90px;
}
.top-infocard-text {
padding-bottom: 65px;
}
.top-infocard-subtitle {
font-size: 20px;
line-height: 24px;
}
.top-infocard-title {
font-size: 28px;
line-height: 34px;
margin-bottom: 15px;
}
.top-infocard-description {
text-align: center;
}
.top-infocard-image {
max-width: 240px;
}
}
@media screen and (min-width: 769px) and (max-width: 1200px) {
.top-cards {
grid-template-columns: repeat(2, max-content);
}
}