challenge-landing-page-doug.../assets/styles/style.css

217 lines
3.6 KiB
CSS
Raw Normal View History

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
color: #000000;
}
.page-header {
display: flex;
align-items: center;
justify-content: center;
2022-10-09 16:58:46 +00:00
padding: 28px 0;
background-color: #000000;
}
.page-header-logo {
display: block;
}
.main-banner {
display: block;
width: 100%;
}
.top-infocard {
padding: 73px 80px;
}
.top-infocard-text {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.top-infocard-subtitle {
text-transform: uppercase;
font-weight: 400;
font-size: 32px;
line-height: 39px;
text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
.top-infocard-title {
text-transform: uppercase;
font-weight: 500;
font-size: 48px;
line-height: 58px;
color: #000000;
}
.top-infocard-description {
max-width: 766px;
font-weight: 400;
font-size: 16px;
line-height: 24px;
margin-top: 20px;
}
.top-infocard-image {
width: 315px;
height: 315px;
margin-top: 73px;
}
.top-cards {
display: flex;
2022-10-09 16:58:46 +00:00
align-items: center;
justify-content: center;
padding: 179px 0 80px;
gap: 21px;
2022-10-09 14:42:15 +00:00
}
.top-card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
2022-10-09 16:58:46 +00:00
padding: 26px 26px 34px;
max-width: 350px;
2022-10-09 14:50:19 +00:00
}
.top-card-image {
2022-10-09 16:58:46 +00:00
display: block;
margin-bottom: 27px;
2022-10-09 14:50:19 +00:00
}
.top-card-description {
font-size: 16px;
line-height: 24px;
text-align: center;
margin-top: 27px;
}
.middle-images {
display: flex;
align-items: center;
justify-content: center;
background: #E0E0E0;
padding: 0 72px;
gap: 40px;
}
.middle-image {
display: flex;
position: relative;
width: 566px;
bottom: -62px;
}
.middle-bottom-image {
width: 100%;
display: block;
}
.bottom-middle {
padding: 191px 0 0;
}
@media screen and (max-width: 414px) {
2022-10-09 16:58:46 +00:00
.main-banner-desktop,
.top-card-image-desktop,
.image-middle-desktop {
display: none;
}
}
@media screen and (min-width: 415px) {
2022-10-09 16:58:46 +00:00
.main-banner-mobile,
.top-card-image-mobile,
.image-image-mobile {
display: none;
}
}
2022-10-09 17:10:40 +00:00
@media screen and (max-width: 768px) {
.top-infocard {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.top-cards {
display: flex;
flex-direction: column;
padding: 90px 26px;
}
.middle-images {
display: grid;
grid-template-columns: repeat(2, 1fr);
align-items: center;
justify-content: center;
border: 1px solid black;
width: 414px;
}
.middle-image {
border: 1px solid black;
width: 177px;
}
#image-bottom-image-dm {
display: flex;
justify-content: center;
align-items: center;
width: 368px;
}
2022-10-09 17:10:40 +00:00
}
2022-10-09 16:58:46 +00:00
@media screen and (max-width: 992px) {
.top-infocard{
display: flex;
text-align: center;
justify-content: center;
flex-direction: column;
padding: 73px 29px 65px;
}
.top-infocard-text {
max-width: 357px;
}
.top-infocard-subtitle {
font-size: 20px;
}
.top-infocard-title {
font-size: 28px;
line-height: 1;
}
.top-infocard-image {
width: 100%;
max-width: 239px;
}
}
@media screen and (min-width: 769px) and (max-width: 1200px) {
.top-infocard, .top-cards {
display: flex;
flex-direction: column;
align-items: center;
}
}
2022-10-09 17:10:40 +00:00