@@ -13,19 +13,20 @@ header {
1313 justify-content : space-between;
1414 padding : 1% 2% ;
1515 background-color : # A1B5D8 ;
16+ box-sizing : border-box;
1617}
1718
1819.logo img {
19- height : 40 px ;
20+ height : clamp ( 24 px , 5 vw , 60 px ) ;
2021 width : auto;
21- max-width : 100 % ;
22+ max-width : 100 vw ;
2223 display : block;
2324}
2425
2526.navlinks {
2627 display : flex;
2728 align-items : center;
28- gap : 20px ;
29+ gap : clamp ( 10 px , 2 vw , 20px ) ;
2930}
3031
3132.navlinks a {
@@ -37,8 +38,9 @@ header {
3738.slideshow {
3839 display : flex;
3940 justify-content : space-between;
40- padding : 2% ;
41- gap : 20px ;
41+ box-sizing : border-box;
42+ padding : 5vh ;
43+ gap : clamp (10px , 2vw , 20px );
4244 background-color : # 1F2937 ;
4345}
4446
@@ -50,11 +52,13 @@ header {
5052 display : flex;
5153 justify-content : center;
5254 align-items : center;
53- padding : 2% 10% ;
55+ padding : 2vh 5vw ;
56+ text-align : center;
5457}
5558
5659.slide-image img {
57- height : 300px ;
60+ max-width : 70vw ;
61+ height : auto;
5862 border-radius : 20px ;
5963}
6064
@@ -64,8 +68,9 @@ header {
6468 align-items : center;
6569 background-color : # 738290 ;
6670 justify-content : center;
67- gap : 20px ;
71+ gap : clamp ( 10 px , 2 vw , 20px ) ;
6872 padding : 2% ;
73+ box-sizing : border-box;
6974}
7075
7176.contact-section h2 {
@@ -75,15 +80,16 @@ header {
7580.contacts {
7681 display : flex;
7782 justify-content : center;
78- gap : 20px ;
83+ gap : clamp ( 10 px , 2 vw , 20px ) ;
7984}
8085
8186.contacts img {
82- height : 80 px ;
87+ height : 6 vw ;
8388}
8489
8590.contacts div {
86- padding : 2% ;
91+ box-sizing : border-box;
92+ padding : 2vw ;
8793 border : 2px solid black;
8894 border-radius : 20% ;
8995}
@@ -94,11 +100,12 @@ header {
94100 display : flex;
95101 flex-direction : column;
96102 justify-content : center;
103+ box-sizing : border-box;
97104}
98105
99106.quote em {
100107 font-family : 'Playfair Display' , serif;
101- font-size : 32px ;
108+ font-size : clamp ( 16 px , 2 vw , 32px ) ;
102109}
103110
104111.author {
@@ -114,4 +121,25 @@ footer {
114121 padding : 1em 0 ;
115122 font-size : 0.9rem ;
116123 color : # 333 ;
124+ box-sizing : border-box;
125+ }
126+
127+ @media only screen and (max-width : 768px ) {
128+
129+ .header {
130+ align-items : center;
131+ justify-content : center;
132+ flex-wrap : wrap;
133+ }
134+
135+ .slideshow {
136+ flex-direction : column;
137+ align-items : center;
138+ }
139+ .slide-text {
140+ order : 1 ;
141+ }
142+ .quote em {
143+ font-size : 4vw ;
144+ }
117145}
0 commit comments