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

356 lines
5.9 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
color: #000000;
}
.page-header {
display: flex;
justify-content: center;
background-color: #000000;
}
.header-logo {
display: block;
padding: 28px 0;
max-width: 226px;
width: 100%;
}
.main-banner {
width: 100%;
}
.top-infocard{
margin: 73px 0 180px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 0 28px;
}
.top-infocard-text {
display: flex;
align-items: center;
flex-direction: column;
}
.top-infocard-subtitle {
font-weight: 400;
font-size: 32px;
line-height: 39px;
text-transform: uppercase;
}
.top-infocard-title {
font-weight: 500;
font-size: 48px;
text-transform: uppercase;
}
.top-infocard-description {
font-weight: 400;
font-size: 16px;
line-height: 24px;
max-width: 766px;
padding: 28px 0 74px;
}
.top-cards {
display: grid;
grid-template-columns: repeat(3, 350px);
justify-content: center;
gap: 22px;
}
.top-card {
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
padding-top: 26px;
}
.top-card-image {
max-width: 102px;
display: block;
margin: 0 auto;
}
.top-card-description {
margin: 0 auto;
font-weight: 400;
font-size: 16px;
line-height: 24px;
text-align: center;
padding: 28px 26px 28px 26px;
max-width: 300px;
}
.middle-banner {
display: flex;
margin-top: 80px;
background: #E0E0E0;
justify-content: center;
padding: 0 72px;
}
.middle-banner-image-wrapper {
display: flex;
gap: 40px;
justify-content: center;
position: relative;
top: 32px;
}
.middle-banner-image img {
max-width: 566px;
width: 100%;
}
.bottom-cards {
padding-top: 130px;
display: grid;
grid-template-columns: repeat(4, max-content);
justify-content: center;
gap: 16px;
}
.bottom-card {
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
padding-top: 26px;
}
.bottom-card-image {
max-width: 102px;
display: block;
margin: 0 auto;
}
.bottom-card-description {
margin: 0 auto;
font-weight: 400;
font-size: 16px;
line-height: 24px;
text-align: center;
padding: 28px 26px 28px 26px;
max-width: 300px;
}
.bottom-infocard {
margin-top: 108px;
padding: 32px;
}
.bottom-infocard-title {
font-weight: 600;
font-size: 32px;
line-height: 39px;
text-align: center;
}
.bottom-infocard-description {
font-weight: 400;
font-size: 16px;
line-height: 24px;
max-width: 550px;
text-align: center;
margin: 0 auto;
padding-bottom: 50px;
}
.bottom-infocard-image {
display: flex;
justify-content: center;
width: 100%;
margin-bottom: 116px;
}
.bottom-infocard-image img {
max-width: 1360px;
width: 100%;
margin: 0 280px;
}
footer {
background-color: #000000;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
padding: 38px 0;
}
.footer-text{
color: #BDBDBD;
font-weight: 400;
font-size: 10px;
line-height: 12px;
text-transform: uppercase;
padding-top: 17px;
text-align: center;
}
.footer-icon {
display: flex;
column-gap: 16px;
}
@media screen and (min-width:2499px) {
.top-infocard-description {
font-size: 18px;
}
.top-card-description {
font-size: 18px;
}
.bottom-card-description {
font-size: 18px;
}
.bottom-infocard-description{
font-size: 18px;
}
}
@media screen and (min-width: 769px) and (max-width: 1270px) {
.top-cards,.bottom-cards {
grid-template-columns: repeat(2, max-content);
}
}
@media screen and (max-width: 768px) {
.top-infocard-subtitle {
font-size: 20px;
line-height: 24px;
}
.top-infocard-title {
font-size: 28px;
}
.top-infocard-description {
font-size: 16px;
text-align: center;
}
.top-infocard-image img {
max-width: 240px;
width: 100%;
}
.top-cards {
grid-template-columns: 1fr;
padding: 0 32px;
}
.middle-banner {
padding: 0;
}
.middle-banner-image-wrapper {
display: grid;
grid-area: auto;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto;
grid-template-areas:
"b a"
"c c";
column-gap: 14px;
row-gap: 24px;
width: 90%;
margin: 0 32px;
}
.middle-banner-image img {
max-width: unset;
}
.middle-banner-image.a {
grid-area: a;
width: 100%;
}
.middle-banner-image.b {
grid-area: b;
width: 100%;
}
.middle-banner-image.c {
grid-area: c;
width: 100%;
}
.bottom-cards {
grid-template-columns: 1fr;
padding: 0 32px;
margin-top: 190px;
}
.bottom-infocard-text {
padding: 0 32px;
}
.bottom-infocard-title {
font-size: 24px;
}
.bottom-image {
content: url('../image/bottom-banner-mobile.png');
width: 100%;
}
.bottom-infocard {
display: flex;
flex-direction: column-reverse;
padding: 0;
}
.bottom-infocard-image {
margin-bottom: 50px;
}
}
@media screen and (max-width: 415px) {
.main-banner {
content: url('../image/main-banner-mobile.png');
}
.header-logo {
padding: 24px 0 33px;
}
footer {
padding: 32px 18.35%;
}
}
@media screen and (max-width: 290px) {
.top-infocard-title {
font-size: 26px;
}
}