@font-face{
    font-family:"PlayWrite-400";
    src: url('../fonts/PlaywriteAUQLD-Regular.ttf');
}
@font-face{
    font-family:"Bitcount";
    src:url('../fonts/BitcountPropSingle-Regular.ttf');
}
@font-face {
    font-family: "Exo2";
    src: url('../fonts/Exo2-Medium.ttf');
}

/* --------------------Nav Bar----------------------- */
nav{
    z-index: 2;
    position:sticky;
    top: 0;
    overflow: hidden;
    display: flex;
    border: solid black 2px;
    border-radius: 10px;
    font-family:"Exo2";
    text-align: center;
    background-color: white;
    & a{
        font-size: 30px;
        flex: 1;
        display: block;
        padding-right: 5%;
        color: black;
        padding: 5px 5px 10px 10px;
        text-decoration: none;
    }
    & a:hover{
        transition: ease 0.7s;
        flex: 3;

        &:nth-child(1){background-color: black;color: white;}
        &:nth-child(2){background-color: rgb(38, 122, 190);color: white;}
        &:nth-child(3){background-color: rgb(104, 31, 230);color: white;}
        &:nth-child(4){background-color: rgb(20, 93, 53);color: white;}
    }
    & a:not(:hover){
        transition: ease-in-out 0.5s ;
    }
}

/* --------------------Body Elements----------------------- */

body #pfp{
    margin-top: 5%;
    transition: linear 1s;
}
body #pfp #push{
    position: absolute;
        width: 80px;
        height: 80px;
        left: 69%;
        top: 61%;
        display: none;
        transition: linear 1s;
}

body #pfp #hello{
    font-family:"Playwrite-400";
    font-weight: 400;
    font-size: xx-large;
    width: 100%;
    text-align: center;

}
#pfpimage{
    transition: linear 1s;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    display: block;
    height: 20%;
    width: 20%;
    border-radius: 15%;
    pointer-events: none;
}

body #aboutme{
    display: grid;
    position: absolute;
    width: 45%;
    font-family:"Bitcount";
    font-weight: 600;
    font-size: 29px;
    margin-left: 50%;
    margin-right: 10%;
    transition: linear 2s;
    opacity: 0;
    pointer-events: none;
}

#btn {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    display: block;
    background: transparent;
    color: #000000;
    border: 2px solid black;
    border-radius: 0;
    overflow: hidden;
    line-height: 70%;
    width: 20%;
    height: 37px;
    transition: color 0.3s, border-radius 0.7s;

    &::before {
    content: "";
    position: absolute;
    inset: 0;
    background: cornflowerblue;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s;
    z-index: -1;
    }

    &:hover::before {
    transform: scaleX(1);
    }

    &:hover {
    color: #fff;
    border-radius: 35px;
    cursor: help;
    }
}
/* #hobbies{
    background-color: blue;
} */
#links{
    display: grid;
    /* background-color: aquamarine; */
    margin-left: 10%;
    margin-right: 10%;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3,1fr);
    gap: 20px;
    /* margin-top: 19%; */
    padding-top: 20%;
    padding-bottom: 10%;
    button{
        border: 2px black solid;
        width: 100%;
        height: 150%;
        cursor: pointer;
        transition: ease 0.3s;
    }
    a{    transition: ease 0.3s;text-decoration: none;}
}
#Linkedin{
    grid-column: 1;grid-row: 1;
    height: 5vb;
    button:hover{background: #2864B4;color: white;}
} 
#Git{
    grid-column: 1;grid-row: 3;
    height: 5vb;
    button:hover{background: #709193;color: aliceblue;}
}
#Resume{
    grid-column:2;grid-row: 2;
    justify-self: center;
    margin-right:4px ;
    button{
        border-radius: 15px;
        &:hover{transform: scale3d(1.2,1.2,1);}
    }
}
#Egg{
    grid-column: 3;grid-row: 3;
    height: 5vb;
    &:hover{filter: invert();}
}
#Mail{
    grid-column: 3;grid-row: 1;
    height: 5vb;
    button:hover{background: #FF9801;}
}
#links 
.LinkButton {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    padding-left: 10px;
    img{
    height: 24px; 
    width: auto;
    }
}




@media screen and (max-width: 600px){

    nav a {
        font-size: x-large;
        &:nth-child(1){
        display: none;
        }
        margin-left: 1px;
    }
    #pfpimage{
        width: 50%;
        height: 50%;
    }
    #pfp #hello{
        font-size: 48px ;
    }
    #pfp #btn{
        width: 35%;
        line-height: 90%;
        height: 60px;
    }
    #links{
        /* margin-right: 5%; */
        margin:0;    
        margin-top: 50px;
        padding-bottom: 100px;
    }
    #Resume button{background: bisque;}
}

