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

460 lines
7.4 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
color: #000000;
text-align: center;
}
.page-header {
display: flex;
justify-content: center;
background: #000000;
padding: 29px 0;
}
.main-banner-row {
max-width: 100%;
}
.top-infocard {
display: flex;
justify-content: center;
padding: 4% 0 0;
}
.top-infocard-text {
width: 45% ;
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;
}
.header-logo {
display: block;
}
.main-banner {
width: 100%;
display: block;
}
.top-infocard-image {
padding: 7% 0;
width: 41%;
align-items: center;
}
.top-card-image {
display: block;
margin-bottom: 1.40vw;
}
.top-cards {
background: #FFFFFF;
grid-template-columns: repeat(3, max-content);
padding: 6% 4% 4%;
display: grid;
gap: 48px;
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);
padding: 36px 1.3vw 26px;
}
.top-card-description {
max-width: 15.5vw;
font-size: 16px;
line-height: 24px;
text-align: center;
}
.middle-banner {
max-width: 100%;
margin: auto;
background-color: #E0E0E0;
position: relative;
height: 27.6vw;
}
.middle-banner-group {
display: grid;
grid-template-columns: repeat(3, 1fr);
padding: 0 72px;
position: absolute;
top: 58px;
gap: 39px;
}
.middle-banner-item {
max-width: 100%;
}
.middle-banner-image {
max-width: 100%;
}
.bottom-card {
background: #FFFFFF;
grid-template-columns: repeat(4, 4fr);
display: grid;
justify-content: center;
text-align: center;
margin: 0 4%;
padding-top: 7%;
max-width: 100%;
gap: 16px;
}
.bottom-card-group {
flex-direction: column;
align-items: center;
display: flex;
background: #FFFFFF;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
gap: 16px;
}
.bottom-card-image {
padding-top: 8% ;
}
.bottom-card-text {
font-size: 14px;
line-height: 24px;
padding: 0 20px 10px;
}
.bottom-infocard-desktop {
margin: 6% 30% 3%;
}
.bottom-infocard-tittle {
font-weight: 600;
font-size: 32px;
line-height: 39px;
margin-bottom: 2%;
}
.bottom-infocard-paragraph {
font-weight: 400;
font-size: 16px;
line-height: 24px;
}
.bottom-banner-image {
width: 100%;
padding: 3% 15% 6%;
}
.page-footer {
display: flex;
flex-direction: column;
align-items: center;
padding: 2% 0;
background-color: #000000;
}
.footer-icons {
display: flex;
list-style: none;
padding-bottom: 26px;
}
.footer-icon {
margin: 0 8px;
}
.footer-text {
text-transform: uppercase;
line-height: 12px;
color: #BDBDBD;
text-align: center;
}
.mobile {
display: none;
}
@media screen and (max-width: 1025px) {
.desktop {
display: none;
}
.mobile {
display: flex;
}
.bottom-banner-image-desktop {
display: none;
}
.main-banner-desktop {
display: none;
}
.bottom-infocard-desktop {
display: none;
}
.top-infocard-text {
margin: 0 7%;
width: 100%;
}
.top-infocard-title {
font-size: 28px;
margin-bottom: 12px;
line-height: 34px;
}
.top-infocard-subtitle {
font-size: 20px;
line-height: 24px;
margin-top: 18%;
}
.top-infocard-description {
line-height: 24px;
font-size: 16px;
text-align: center;
}
.top-infocard-image {
padding: 64px 0 90px 0;
width: 74%;
}
.top-cards {
grid-template-columns: 1fr;
padding: 0 20px 112px;
gap: 6%;
}
.top-card-description {
padding: 0 10px;
max-width: 100%;
}
.middle-banner-group {
grid-template-columns: repeat(2, 1fr);
align-items: center;
top: 32px;
gap: 3.38vw;
padding: 32px 0 0;
position: static;
margin-bottom: 0;
max-width: 88%;
width: 100%;
}
.middle-banner {
/* height: 138.647vw; */
flex-direction: column;
align-items: center;
height: fit-content;
padding-bottom: 82.125vw;
}
.middle-banner-image {
width: 100%;
}
.middle-banner-item {
width: 100%;
margin: auto;
}
.img-full {
max-width: 88%;
position: absolute;
bottom: -32px;
}
.middle-banner-item:last-child img {
width: 100%;
}
.bottom-infocard-tittle {
font-size: 24px;
}
.bottom-card-group {
grid-template-columns: 1fr;
width: 100%;
}
.bottom-card {
display: flex;
flex-direction: column;
gap: 15px;
padding: 19% 0 24%;
}
.bottom-card-text {
font-size: 14px;
padding: 0 20px 20px;
}
.bottom-banner-image-mobile {
padding: 0;
}
.bottom-infocard-group {
margin: 12% 2% 21%;
}
.bottom-infocard-mobile {
padding: 0 3%;
}
.page-footer {
padding: 20px 0;
font-size: 12px;
}
}
@media screen and (min-width: 1025px) {
.main-banner-mobile {
display: none;
}
.bottom-banner-image-mobile {
display: none;
}
.bottom-infocard-mobile {
display: none;
}
}
@media screen and (min-width: 680px) and (max-width: 1025px) {
.main-banner-mobile {
display: none;
}
.main-banner-desktop {
display: block;
}
.bottom-infocard-desktop {
display: block;
margin: 0 15%;
padding-bottom: 50px;
}
.bottom-infocard-mobile {
display: none;
}
.bottom-banner-image-mobile {
display: none;
}
.bottom-banner-image-desktop {
display: block;
}
.bottom-infocard-group {
margin: 0;
}
.bottom-infocard-group {
padding: 0;
margin: 0;
}
.bottom-infocard-tittle {
font-size: 24px;
}
.bottom-infocard-paragraph {
font-size: 14px;
}
.bottom-card {
padding-bottom: 90px;
}
.top-infocard-subtitle {
margin-top: 0;
}
.top-infocard-image {
width: 30%;
}
}
@media screen and (min-width: 2000px) {
.middle-banner-desktop {
width: 0%;
}
.top-infocard-title {
font-size: 70px;
}
.top-infocard-subtitle {
font-size: 50px;
margin-bottom: 35px;
}
.top-infocard-description {
font-size: 22px;
padding-top: 20px;
}
.top-card-description {
font-size: 22px;
}
.bottom-card-text {
font-size: 22px;
margin: 0 5px 10px;
}
.bottom-infocard-tittle {
font-size: 50px;
}
.bottom-infocard-paragraph {
font-size: 26px;
line-height: 40px;
}
.middle-banner-group {
padding: 0 15%;
top: 35%;
margin: 0;
height: 100%;
}
}