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

244 lines
4.0 KiB
CSS
Raw Normal View History

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
color: #000000;
text-align: center;
}
2022-10-09 23:58:09 +00:00
.page-header {
display: flex;
justify-content: center;
background: #000000;
2022-10-11 20:17:11 +00:00
padding: 1.51vw 0;
2022-10-09 23:58:09 +00:00
}
.main-banner-row {
max-width: 100%;
}
.top-infocard {
display: flex;
justify-content: center;
padding: 73px 0 0;
}
.top-infocard-text {
max-width: 776px;
line-height: 24px;
}
.top-infocard-subtitle {
text-transform: uppercase;
font-size: 32px;
font-weight: 400;
line-height: 39px;
}
.top-infocard-title {
margin-bottom: 28px;
text-transform: uppercase;
font-size: 48px;
font-weight: 500;
line-height: 58px;
}
.top-infocard-description {
font-size: 16px;
line-height: 28px;
text-align: justify;
}
2022-10-09 23:58:09 +00:00
.header-logo {
display: block;
}
.main-banner {
width: 100%;
display: block;
}
.top-infocard-image {
padding: 73px 0 89px 0;
}
.top-card-image {
display: block;
margin-bottom: 26px;
}
.top-cards {
background: #FFFFFF;
grid-template-columns: repeat(3, max-content);
padding: 90px 0 80px;
display: grid;
gap: 20px;
justify-content: center;
}
.top-card {
flex-direction: column;
align-items: center;
display: flex;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
2022-10-10 23:28:41 +00:00
padding: 36px 1.3vw 26px;
}
.top-card-description {
2022-10-10 23:28:41 +00:00
max-width: 15.625vw;
font-size: 16px;
line-height: 24px;
text-align: center;
}
.middle-banner {
width: 100%;
margin: auto;
background-color: #E0E0E0;
position: relative;
height: 27.6vw;
}
.middle-banner-group {
display: grid;
grid-template-columns: repeat(3, 1fr);
2022-10-10 23:28:41 +00:00
padding: 0 72px;
margin-bottom: 62px;
position: absolute;
2022-10-10 23:28:41 +00:00
top: 62px;
gap: 2.03125vw;
}
.middle-banner-item {
width: 100%;
/* max-width: 566px */
}
.middle-banner-image {
max-width: 100%;
}
.bottom-card {
background: #FFFFFF;
2022-10-11 20:17:11 +00:00
grid-template-columns: repeat(4, 1fr);
display: grid;
gap: 0.83vw;
justify-content: center;
2022-10-11 20:17:11 +00:00
padding: 6.71875vw 0 0;
text-align: center;
margin: 0 3.75vw;
width: 92.5%;
}
.bottom-card-group {
flex-direction: column;
align-items: center;
display: flex;
background: #FFFFFF;
2022-10-11 20:17:11 +00:00
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
max-width: 22.5vw;
justify-items: center;
}
.bottom-card-image {
2022-10-11 20:17:11 +00:00
padding: 1.82vw;
}
.bottom-card-text {
font-size: 16px;
line-height: 24px;
width: 15.572vw;
padding: 0 0 3.38vw;
}
2022-10-11 20:17:11 +00:00
.bottom-infocard {
display: flex;
margin: 5.625vw 0 2.604vw;
align-items: center;
justify-content: center;
}
.bottom-infocard-group {
max-width: 28.645vw;
}
.bottom-infocard-tittle {
font-weight: 600;
font-size: 32px;
line-height: 39px;
margin-bottom: 1.979vw;
}
.bottom-infocard-paragraph {
font-weight: 400;
font-size: 16px;
line-height: 24px;
}
@media screen and (max-width: 414px) {
.main-banner-desktop {
display: none;
}
.top-infocard-text {
max-width: 357px;
margin: auto;
}
.top-infocard-title {
font-size: 28px;
margin-bottom: 12px;
line-height: 34px;
}
.top-infocard-subtitle {
font-size: 20px;
line-height: 24px;
}
.top-infocard-description {
line-height: 24px;
font-size: 16px;
text-align: center;
}
.top-infocard-image {
max-width: 239px;
padding: 64px 0 90px 0;
}
.top-cards {
grid-template-columns: 1fr;
padding: 36px 26px;
}
.middle-banner {
padding: 32px 0 0;
width: 100%;
}
.middle-banner-item {
width: 38%;
margin: auto;
padding-bottom: 23px;
}
}
@media screen and (min-width: 415px) {
.main-banner-mobile {
display: none;
}
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
.top-cards {
grid-template-columns: 1fr;
padding: 30px 28px;
}
}