diff --git a/assets/CSS/main.css b/assets/CSS/main.css index db9fbaf..35f7ce6 100644 --- a/assets/CSS/main.css +++ b/assets/CSS/main.css @@ -67,16 +67,36 @@ body { margin: 0 auto; } -@media screen and (min-width: 415px) { - .main-banner-mobile { - display: none; - } +.top-cards { + display: grid; + grid-template-columns: repeat(3,max-content); + gap: 22px; + justify-content: center; + width: 100%; } -@media screen and (max-width: 414px) { - .main-banner-desktop { - display: none; - } +.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 { @@ -97,11 +117,33 @@ body { padding: 0 28px 0 28px; text-align: center; } - + .top-infocard-image { width: 100%; max-width: 240px; padding-top: 64px; padding-bottom: 90px; } -} \ No newline at end of file + + .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; + } +}