44 margin : 0 ;
55 box-sizing : border-box;
66}
7+
8+ /*Format smooth scrolling behavior*/
9+ html {
10+ scroll-behavior : smooth;
11+ }
712/************End of general formatting************/
813
914/************Animation Formatting************/
5459
5560/************Header Formatting************/
5661header {
62+ position : relative;
5763 padding : 20px ;
5864 display : flex;
5965 align-items : center;
@@ -68,6 +74,77 @@ header {
6874 font-size : 7em ;
6975 border : 5px solid black;
7076 border-radius : 8px ;
77+ color : black;
78+ z-index : 3 ;
79+ }
80+
81+ /*Format x icon*/
82+ .bx-x {
83+ padding : 10px ;
84+ font-size : 7em ;
85+ border : 5px solid black;
86+ border-radius : 8px ;
87+ z-index : 4 ;
88+ color : black;
89+ }
90+
91+ /*Format nav menu*/
92+ # navMenu {
93+ position : fixed;
94+ top : 0 ;
95+ right : -500px ;
96+ width : 500px ;
97+ height : 100vh ;
98+ background : lightgray;
99+ color : white;
100+ display : flex;
101+ flex-direction : column;
102+ justify-content : center;
103+ align-items : flex-start;
104+ transition : right 0.5s ease-in-out;
105+ z-index : 3 ;
106+ }
107+
108+ /*Create active nav state*/
109+ # navMenu .active {
110+ right : 0 ;
111+ }
112+
113+ /*Format nav menu links*/
114+ # navMenu ul {
115+ list-style-type : none;
116+ transform : translateY (-90% );
117+ margin-left : 35px ;
118+ }
119+
120+ /*Format nav menu links*/
121+ # navMenu li {
122+ margin : 30px ;
123+ }
124+
125+ /*Format nav menu links*/
126+ # navMenu a {
127+ color : black;
128+ text-decoration : none;
129+ font-family : var (--primary-round-font );
130+ font-size : 6em ;
131+ }
132+
133+ /*Create overlay for nav menu*/
134+ # overlay {
135+ position : fixed;
136+ top : 0 ;
137+ left : 0 ;
138+ width : 100% ;
139+ height : 100% ;
140+ background-color : rgba (0 , 0 , 0 , 0.5 );
141+ display : none;
142+ z-index : 2 ;
143+ }
144+
145+ /*Create active overlay state*/
146+ # overlay .active {
147+ display : block;
71148}
72149
73150/*Format site logo*/
@@ -256,6 +333,59 @@ footer {
256333/**Desktop Media Query Formatting**/
257334@media screen and (min-width : 1300px ) {
258335
336+ /*Format header logo*/
337+ header img {
338+ width : 150px ;
339+ }
340+
341+ /*Format nav bar*/
342+ # hamburger {
343+ display : none;
344+ }
345+
346+ /*Format nav menu*/
347+ # navMenu {
348+ position : static;
349+ width : auto;
350+ height : auto;
351+ background-color : transparent;
352+ display : flex;
353+ flex-direction : row;
354+ align-items : center;
355+ justify-content : flex-end;
356+ transition : none;
357+ }
358+
359+ /*Format nav menu items*/
360+ # navMenu ul {
361+ display : flex;
362+ transform : none;
363+ margin-left : 0 ;
364+ }
365+
366+ /*Format nav menu list*/
367+ # navMenu li {
368+ margin : 0 50px ;
369+ }
370+
371+ /*Format nav menu links*/
372+ # navMenu a {
373+ font-size : 2em ;
374+ transition : 0.5s ease-in;/*Create button hover effect*/
375+ }
376+
377+ /*Create button hover effect*/
378+ # navMenu a : hover {
379+ color : white;
380+ text-decoration : underline;
381+ font-size : 2.5em ;
382+ }
383+
384+ /*Get rid of overlay*/
385+ # overlay {
386+ display : none;
387+ }
388+
259389 /*Format hero section*/
260390 .heroSection {
261391 height : 50vh ;
@@ -298,12 +428,14 @@ footer {
298428 .projectGrid {
299429 grid-template-columns : 1fr 1fr 1fr ;/*Create a 3 column grid*/
300430 gap : 50px ;
431+ align-items : stretch;
301432 padding : 15px ;
302433 }
303434
304435 /*Format project grid items*/
305436 .projectGridItem {
306437 width : 100% ;
438+ height : 100% ;
307439 transition : 0.5s ease-in;/*Create hover outline effect*/
308440 }
309441
@@ -327,6 +459,7 @@ footer {
327459 /*Format project grid item images*/
328460 .projectGridItem img {
329461 width : 100% ;
462+ object-fit : cover;
330463 }
331464}
332465/************End of Media Query Formatting************/
0 commit comments