/*
Made By: Nida Khan
Contact: nida.bkhan420@gmail.com

Mobile first design
*/

/*Base Styling Starts*/

body{
    background: linear-gradient(to bottom, #000000, #550505);
    min-height: 100vh;
    color:#E0EEDC;
    font-family: 'Times New Roman', Times, serif;
    display: flex;
    flex-direction: column;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*Base Styling Ends*/
/*Header + Nav Start*/

#fullHeading{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 10px 0;
    }

/*Header Start*/

header img{
    max-width: 130px;
    display:block;
}

/*Header Ends*/

/*Nav Starts*/

nav{
    border-bottom:#9aa797 solid 1px;
    width: 100%;
    padding-bottom: 5px;
}

nav a{
    display: block;
    text-align: center;
    margin: 5px 0 0 0;
    border-top:#9aa797 solid 1px;
    padding-top: 5px;
    text-decoration: none;
    color: #E0EEDC;
    font-size: 1.5em;
}

nav a:hover{
    color:#9aa797;
}

/*Nav Ends*/
/*Header + Nav Ends*/

/*Main Starts*/

main{
    flex:1;
}

#introText{
    text-align: center;
    font-size: 1.5em;
    margin: 1em 1em 2em 1em;
}

.textHeader{
    text-align: center;
    margin: 1em 1em 0 1em;
}

#subText{
    color:#9aa797;
    font-size: 0.75em;
    margin-top: 10px;
}

#subText a{
    color:#9aa797;
    text-decoration: none;
    font-style: italic;
}

#subText a:hover{
    text-decoration: underline;
}

.content{
    color:#9aa797;
    font-size: 0.75em;
    margin-top: 10px;
}

.content a{
    color:#9aa797;
    text-decoration: none;
    font-style: italic;
}

.content a:hover{
    text-decoration: underline;
}

main h2{
    text-align: center;
    margin: 1em;
}

main #wip{
    text-align: center;
    text-decoration: underline;
}

main #subHeader{
    text-align: center;
    margin-bottom: 20px;
}

/*Highlighted Work*/

.highlights{
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 95%;
    max-width: 900px; 
    height: 200px;
    overflow: hidden;
}

.highlights img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlightText{
    font-size: 2.5em;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 1;
    text-align: center;
}

.highlightSub{
    color: #9aa797;
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.5em;
    display: block;
}

#highlightOne img{
    background-color: black;
    width: 900px;
    height: 200px;
    object-fit: cover;
    object-position: center;
    opacity: 35%;
}

#highlightTwo img{
    background-color: black;
    width: 900px;
    height: 200px;
    object-fit: cover;
    object-position: 50% 30%;
    opacity: 35%;
}

#highlightThree img{
    background-color: black;
    width: 900px;
    height: 200px;
    object-fit: cover;
    object-position:50% 30%;
    opacity: 35%;
}

/*Highlights End*/

/*Showcases, item specific, Starts*/

.showcase{
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/*Showcases Ends*/

/*Portfolio Images Start*/

.showcase{
    width: 100%;
    margin: 0 auto;
}

.final{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
}

.showcase .final img{
    width:90%;
    margin: 0 auto 15px auto;
}

/*Portfolio Images End*/

/*Main Ends*/

/*Footer Starts*/

footer{
    background-color: #0000008a;
    padding:15px 0px 10px 10px;
    clear: both;
    flex-shrink: 0;
}

footer a{
    color:#9aa797;
    text-decoration: none;
    font-style: italic;
    display: inline-block;
    margin: 0.2em 0 1em 0;
}

footer a:hover{
    text-decoration: underline;
}

/*Footer Ends*/

/*Animations*/

@keyframes highlightFade {
    0%{opacity: 100%;}
    100%{opacity: 25%;}
}

@keyframes textFadeIn {
    0%{opacity: 0; transform: translate(-50%, 20px);}
    100%{opacity: 100%; transform: translate(-50%, -50%);}
}

/*Laptop+ Viewport*/

@media screen and (min-width:769px) {
    
    /*Header + Nav Start*/
    #fullHeading{
        flex-direction: row;
    }

    /*Nav Starts*/

    nav{
        border-bottom: 1px solid #E0EEDC;
        width: fit-content;
        padding-bottom: 5px;
    }

    nav a{
        display: inline;
        border-top:none;
        padding-top:0;
        margin: 0 20px 0 0;
    }

    /*Nav Ends*/
    /*Header + Nav Ends*/

    /*Highlights Start*/

    #highlightOne img{
        opacity: 1;
    }

    #highlightTwo img{
        opacity: 1;
    }

    #highlightThree img{
        opacity: 1;
    }

    .highlightText{
        opacity: 0;
    }

    .highlights a:hover img{
        animation: highlightFade 1s forwards;
    }

    .highlights a:hover ~ .highlightText{
        animation: textFadeIn 1s forwards;
    }

    /*Highlights End*/


}