/* shadow on scroll */
.main-header {
  transition: .10s;
  -moz-transition: .10s;
  -webkit-transition: .10s;

  font-weight:100; 
    z-index: 100;
    width:100%;
   /* position:fixed;*/
    /*background:#F2F4F7;*/
     background:white;
    height:120px;
   /* box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */
    opacity:.97;
    transition: 0.2s; /* Add a transition effect (when scrolling - and font size is decreased) */
}

.flex-container {
  
    padding: 0;
    margin: 4%;
    margin-left:5%;
    list-style: none;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: row wrap;
    justify-content: space-around;

}
.flex-item:hover {
transform:scale(1.03);
transition: transform 300ms ease-in; 
color:#F0B255;
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1), 0 6px 10px 0 rgba(0, 0, 0, 0.20);
}

.flex-item {
    transition:ease-out 0.3s; 
border-radius: 5%;
margin-bottom:30px;
   
    display:block;
    margin-right:0;
    margin-left:0;

    width: 300px;
    height: 300px;
    
    text-align: center;

}

.box-shadow {
box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.19);
}


/* shadow on scroll end */



#back {
       
    transition:ease-out 0.3s; 
}

#back:hover{
 
    transform:scale(.85);
    transition: transform 200ms ease-in;
}

#limg2 {
       
    transition:ease-out 0.3s; 
}

#limg2:hover{
 
    transform:scale(.75);
    transition: transform 300ms ease-in;
}

#limg3 {
       
    transition:ease-out 0.3s; 
}

#limg3:hover{
 
    transform:scale(.75);
    transition: transform 300ms ease-in;
}            


#limg4 {
       
    transition:ease-out 0.3s; 
}

#limg4:hover{
 
    transform:scale(.75);
    transition: transform 300ms ease-in;
}      
            h1, h2,h3{
            
                font-weight:normal;
                font-family: 'Oswald', sans-serif;
       
            }
        
            p, header{
            
                font-weight: lighter;
        
            }
    
            .button {
                
                background:none;    
                border: black solid 1px;    
                color: black;   
                padding: 9px 15px;    
                text-align: center;   
                text-decoration: none;    
                display: inline-block;   
                font-size: 16px;    
                margin: 4px 2px;
                cursor: pointer;
                transition:ease-out 0.4s;
         
            }
            
    
            .button:hover {
        
                color:black;
                border-radius: 15px;
             
                transition: 0.4s ease-in;
        
            }
            
                 
header {

 
	
	
	
 
	z-index: 1;
}

#menu-icon {
    display: none;
    margin:0;
 
}
        
nav {
    font-size:17px;  
    margin-top:60px;
    margin-right:1%;
    float: right;   
    height:90px;
    z-index:2000;
   
  
} 

    

nav ul {
    
   	margin: 0;
    margin-top:-30px;
    padding: 0;
    list-style-type: none;
    list-style-position: inside;
}

nav li {
          

    display: inline-block;
    padding: 10px;
}



nav li a {

       font-family: 'Lato', sans-serif;
    font-weight: 900; 
    color: #1C1B1B;
    text-decoration: none;
      
}
   
#resume a{
     transition:ease-out 0.3s; 
    text-decoration: none;
   
color:black;
    
}
#resume a:hover{
opacity: .6;
}

#about3 a{
      transition:ease-out 0.3s; 
    text-decoration: none;
    color:black;
}
#about3 a:hover{
     opacity: .6;
}

#proj a{
      transition:ease-out 0.3s; 
    text-decoration: none;
    
    color:black;
}
#proj a:hover{
        opacity: .6;

    
}



nav li a {
    color: black;
    text-decoration: none;
      
}
        
      #limg2 {
       
    transition:ease-out 0.3s; 
}

#limg2:hover{
 
    transform:scale(.75);
    transition: transform 300ms ease-in;
}

#limg3 {
       
    transition:ease-out 0.3s; 
}

#limg3:hover{
 
    transform:scale(.75);
    transition: transform 300ms ease-in;
}

        
      
#limg {
       
    transition:ease-out 0.3s; 
}

#limg:hover{
 
    transform:scale(.75);
    transition: transform 300ms ease-in;
}


#timg{
       
    transition:ease-out 0.3s; 
}

#timg:hover{
 
    transform:scale(.75);
    transition: transform 300ms ease-in;
}
   
        
       
            body{
                font-family: 'Open Sans Condensed', sans-serif;
                font-family: 'Lato', sans-serif;
                margin:0 auto;
                overflow-x: hidden;
            }
        
              
          
                    
            .flex-container {
  
                padding: 0;
                margin: 4%;  
                margin-left:5%; 
                list-style: none;
                display: -webkit-box;
                display: -moz-box;
                display: -ms-flexbox;
                display: -webkit-flex;
                display: flex;
                -webkit-flex-flow: row wrap;
                justify-content: space-around;

            }


            .flex-item {
                width: 540px;    
                height: 500px;
        
            }
  

        
            
            footer {
font-weight:100;
    
	background:white;
	color: black;
	text-align: center;
	  height:60px;	 
             
                margin-bottom:20px;

}


  
     
            h1,h2{
                padding-left:40px;
            }
            
        
            @media screen and (max-width:650px) {
    
    
     
                #menu-icon {
        
                    display: block;
                    text-decoration: none;
                    color: black;
                    font-size: 40px;
                }
      
    
                nav ul,
    
                nav ul:active {
        
                    display: none;
                    position: absolute;
                    top: 45px;
                    width: 100%;
                    max-width: 230px;
                    background-color: #161616;
    
    
                }
    
    #menu-icon:hover{
         color:#818181;
     }
    
                nav li {
        
                    text-align: center;
                    width: 100%;
                    padding: 4px 0;
                    margin: 0;
    
                }
    
    
                nav:hover ul {
        
                    display: none;
                }
               
                   iframe{
                    width:350px; 
                    height:260px;
                    margin-left:10px;
                    
                }
                
                 body{
        overflow-x: hidden;
    }

     #limg2{
                   display: none;
                }
                #limg{
                   display: none;
                }
                #limg3{
                   display: none;
                }
                #timg{
                   display: none;
                }
    
            }
    

           /* The Overlay (background) */
.overlay {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */    
    height: 100%;
    width: 0;
    position: fixed; /* Stay in place */
    z-index: 500; /* Sit on top */
    left: 0;
    top: 0;
    background-color: rgb(0,0,0); /* Black fallback color */
    background-color: rgba(0,0,0, 1); /* Black w/opacity */
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */
.overlay-content {
    position: relative;
    top: 15%; /* 25% from the top */
    width: 100%; /* 100% width */
    text-align: center; /* Centered text/links */
    margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
}

/* The navigation links inside the overlay */
.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block; /* Display block instead of inline */
    transition: 0.3s; /* Transition effects on hover (color) */
}

/* When you mouse over the navigation links, change their color */
.overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
}

/* Position the close button (top right corner) */
.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
}

/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
@media screen and (max-height: 450px) {
    .overlay a {font-size: 20px}
    .overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}


@media screen and (max-width:800px) {
    
    
                #menu-icon {
        
                    display: block;       
                    text-decoration: none;
                    color: black;
                    font-size: 40px;
                }
      
    
                nav ul,
    
                nav ul:active {
        
                    display: none;     
                    position: absolute;        
                    top: 45px;       
                    width: 100%;     
                    max-width: 230px;
                    background-color: purple;
                }
    
    
                nav li {
         
                    background-color: #161616;
                    text-align: center;
                    width: 100%;
                    padding: 4px 0;
                    margin: 0;
    
                }
    
   
                nav:hover ul {
        
                    display: none;
    
                }
              #menu-icon:hover{
         color:#818181;
     }
}