challenge-landing-page-gabr.../assets/CSS/main.css

150 lines
2.6 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap%27');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Inter", sans-serif;
color: #000000;
}
.page-header {
display: flex;
justify-content: center;
background: #000000;
padding: 28px 0;
}
.header-logo {
display: block;
}
.main-banner-desktop, .main-banner-mobile {
display: block;
width: 100%;
}
.top-infocard {
display: flex;
align-items: center;
justify-content: center;
padding: 72px 0 0 0;
}
.top-infocard-text {
max-width: 768px;
}
.top-infocard-subtitle {
text-transform: uppercase;
font-size: 32px;
font-weight: 400;
text-align: center;
}
.top-infocard-title {
text-transform: uppercase;
font-size: 48px;
font-weight: 500;
margin-bottom: 24px;
text-align: center;
}
.top-infocard-description {
font-size: 16px;
text-align: left;
line-height: 24px;
}
.top-infocard-image {
display: flex;
flex-direction: column;
align-items: center;
padding: 90px 0 180px;
margin: 0 auto;
}
.top-cards {
display: grid;
grid-template-columns: repeat(3,max-content);
gap: 22px;
justify-content: center;
width: 100%;
}
.top-card {
display: flex;
flex-direction: column;
align-items: center;
padding: 26px 26px 34px;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
width: 100%;
}
.top-card-image {
display: block;
margin-bottom: 26px;
}
.top-card-description {
display: flex;
margin: 0 auto;
max-width: 300px;
font-weight: 400;
font-size: 16px;
text-align: center;
}
@media screen and (max-width:768px) {
.top-infocard {
flex-direction: column;
padding: 90px 0 0 0;
}
.top-infocard-subtitle {
font-size: 20px;
}
.top-infocard-title {
margin-bottom: 20px;
font-size: 28px;
}
.top-infocard-description {
padding: 0 28px 0 28px;
text-align: center;
}
.top-infocard-image {
width: 100%;
max-width: 240px;
padding-top: 64px;
padding-bottom: 90px;
}
.top-cards {
grid-template-columns: 1fr;
padding: 0 32px ;
}
}
@media screen and (min-width: 769px) and (max-width: 1200px) {
.top-cards {
grid-template-columns: repeat(2, max-content);
}
}
@media screen and (min-width: 415px) {
.main-banner-mobile {
display: none;
}
}
@media screen and (max-width: 414px) {
.main-banner-desktop {
display: none;
}
}