1+ /*
2+ phone 0 - 600px;
3+ tab-port < 900px;
4+ tab-land < 1200px;
5+ normal < 1800px;
6+ big-desk > 1800px
7+ //default 1rem = 16px;
8+ inside media query rem and em are same, set to browser defaule
9+ but research suggests em is better than rem in media query;
10+ */
111/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
212/**
313 * 1. Set default font family to sans-serif.
411421/* For example: General styles, Navigation styles, Hero styles, Footer etc. */
412422/* TIP: When using Flexbox, remember the items you want to move around need to be inside a parent container set to 'display: flex' */
413423.header {
414- padding : 0 0.938rem ;
415- margin : 0 auto;
416424 min-width : 37.5rem ;
417425 height : 4.375rem ;
418426 background-color : # fff ;
@@ -432,18 +440,33 @@ th {
432440}
433441
434442.container {
435- width : 60 % ;
443+ width : 65 % ;
436444 display : flex;
437445 justify-content : space-between;
438446}
439447
448+ @media (max-width : 56.25em ) {
449+ .container {
450+ width : 100% ;
451+ padding : 0 1rem ;
452+ justify-content : space-around;
453+ }
454+ }
455+
440456.navigation {
441- width : 65 % ;
457+ width : 75 % ;
442458 display : flex;
443459 justify-content : center;
444460 align-items : center;
445461}
446462
463+ @media (max-width : 37.5em ) {
464+ .navigation {
465+ opacity : 0 ;
466+ visibility : hidden;
467+ }
468+ }
469+
447470.navigation__list {
448471 width : 100% ;
449472 display : flex;
@@ -482,17 +505,37 @@ th {
482505 flex-direction : column;
483506}
484507
508+ @media (max-width : 37.5em ) {
509+ .intro__content {
510+ padding : .5rem ;
511+ }
512+ }
513+
485514.intro__h1 , .intro__h3 {
486515 color : white;
487516 font-weight : 300 ;
488517 font-size : 3.125rem ;
489518 margin-bottom : 1rem ;
490519}
491520
521+ @media (max-width : 37.5em ) {
522+ .intro__h1 , .intro__h3 {
523+ font-size : 2.5rem ;
524+ text-align : center;
525+ }
526+ }
527+
492528.intro__h3 {
493529 font-size : 1.563rem ;
494530}
495531
532+ @media (max-width : 37.5em ) {
533+ .intro__h3 {
534+ font-size : 1.5rem ;
535+ text-align : center;
536+ }
537+ }
538+
496539.intro__buttons {
497540 color : white;
498541 text-align : center;
@@ -534,6 +577,14 @@ button:hover {
534577 color : # 1d1e21 ;
535578}
536579
580+ @media (max-width : 56.25em ) {
581+ .cases__content {
582+ width : 100% ;
583+ padding : 1rem ;
584+ margin : 0 ;
585+ }
586+ }
587+
537588.cases__content > h2 {
538589 font-size : 2.75rem ;
539590 margin : 1.625rem 0 4.125rem ;
@@ -542,12 +593,31 @@ button:hover {
542593 align-self : center;
543594}
544595
596+ @media (max-width : 56.25em ) {
597+ .cases__content > h2 {
598+ font-size : 2rem ;
599+ margin : 0 ;
600+ }
601+ }
602+
603+ @media (max-width : 37.5em ) {
604+ .cases__content > h2 {
605+ font-size : 1.5rem ;
606+ }
607+ }
608+
545609.cases__devices {
546610 list-style : none;
547611 display : flex;
548612 justify-content : space-between;
549613}
550614
615+ @media (max-width : 37.5em ) {
616+ .cases__devices {
617+ flex-direction : column;
618+ }
619+ }
620+
551621.cases__devices > li {
552622 display : flex;
553623 flex-direction : column;
@@ -567,6 +637,7 @@ button:hover {
567637 font-weight : 400 ;
568638 font-size : 1.563rem ;
569639 margin : 2.5rem 0px 1.875rem ;
640+ text-align : center;
570641}
571642
572643.social {
@@ -583,6 +654,12 @@ button:hover {
583654 flex-direction : column;
584655}
585656
657+ @media (max-width : 37.5em ) {
658+ .social__content {
659+ width : 100% ;
660+ }
661+ }
662+
586663.social__content > hr {
587664 border : 0 ;
588665 border-top : 1px solid # eaebec ;
0 commit comments