/*The default settings for the entire document*/
* {
    list-style: none; /*Remove any default styling on list items*/
    text-decoration: none; /*Remove any default styling on text elements*/
    font: normal normal 100%/1.5 sans-serif; /*font shorthand for: style:normal, Variant: no set, Weight:normal, Stretch: no set, Size: 100% (16px), Height:1.5x, Family: sans-serif */ 
    letter-spacing: .03vw; /* added less than .03 of letter spacing for view width*/
    box-sizing: border-box; /*content area, border, and padding will fit inside of parent element*/
    overflow-wrap: break-word;
    padding: 0px;
    margin: 0px;
}

/*Adding a linear gradient for the background of the webpage*/
body {
    min-height:100%;
    display: grid;
    background-color: cadetblue;
    color:rgb(0, 0, 0);
    background-repeat: no-repeat;
    margin: 0;
}

/*for each section within the body, there will be a border, padding */
body section {
    font-size: 2.4vh;
    display: flex;
    justify-items: center;
    place-items: center;
    overflow: hidden; /*prevents image from overflowing beyond section (parent) container since it is a float*/
    border: medium solid rgb(0, 0, 0); /* border shorthand for: Width: medium, Style: ridge, Color: RGB 138, 138, 138*/
    background-color: rgb(255, 255, 255);
    opacity: .90;
}

/*Settings of H1 element*/
h1 {
    text-align: left; 
    font-size: 4vh; /*Element will take around 3.5% of window height*/
    font-weight: bolder;
    width: 20%;
    margin: 0; 
    border-right:1px dotted whitesmoke;
}

/*Setting font size, color for anchor tags withing lists.*/
li a,
nav-link{   
    color: rgb(0, 0, 0);
    font-size: 2.5vh;
    font-weight:bold;
    transition: color 1s, background 2s, font-size 2s;
}

/*links */
.links {
    display: table;
    width: 70%;
    height: 100%;
}
  
.links ul {
    display: flex;
    justify-content: space-around;
}

.links li {
    height: 100%;
    width: 100%;
    justify-items: center;
    margin-left: 12%;
    margin-top: 2%;
}

.links a {
    color:black;
}
/*Pseudo-class hover will change font weight, color, size and background image. transitions will go into effect */
.links a:hover,
.nav-link:hover {
    font-size: 3.0vh;
    font-weight: bolder;
    color: rgb(95, 119, 170);
}

/*Heading 3 element settings*/
h3 {
    font-size: 3.5vh;
    font-weight: bold;
    width: 20%;
    height: 100%;
    margin-right: 2vw;
    border-right: 1px dotted whitesmoke;
}

.navi ul, 
.contact ul{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

navbar {
    color:black;
}

/* About me Section */

/*Text  element orientation*/
.about-me p{
    width: 75%;
    text-align: justify;
    padding: 2vw;
}

.about-me img {
    width: 12vw;
    height: 12vw;
    border-radius: 50%;
}


/* Work Section Items */

.my-work {
    display:flex;
    overflow:auto;
    height:auto;
}

.work-container {
    display: grid;
    text-align: center;
    width: 70%;
    /* height: 100%; */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-items: center;
}

.card {
    width: 90%;
    margin-top: 1%;
    
}

.card-title {
    color: black;
    font-weight: bolder;
}

.card-body {

    background-color: rgb(155, 153, 185);
    display: grid;
    justify-items: center;
    
}

.card-body img {
    width: 80%;
    height: 80%;
    justify-self: center;
}

.card-link {
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-weight: bold;
    text-align: center; 
}

.card-link::before {
    content: "🔗";
}

/* a.fill-div {
    color:rgb(255, 255, 255);
    font-weight: bolder;
    height:auto;
    width: 100%;
    transition: color 1s, background 2s, font-size 2s;
} */

/* a.fill-div:hover{
    font-size: 1.3em;
    font-weight: bolder;
    border-radius: 10%;
    background-color: rgb(95, 119, 170);
} */


@media only screen and (max-width:50em){
    h1 {
        font-size : 2.8vw;
    }

    h3 {
        font-size: 2.5vw;
    }

    .navi ul, 
    .contact ul{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .card-body img{
        width: 12vw;
        height: 12vw;
        padding: 0;
    }

    .card-link {
        text-decoration: none;
        color: rgb(0, 0, 0);
        font-size: 2.2vw;
        font-weight: bold;
        text-align: center; 
    }
 
}


/* changing settings when screen is smaller than 450px */
@media only screen and (max-width: 35em) {
    * {
        letter-spacing: 0;
    }

    .my-work {
        display:flex;
        overflow:hidden;
        height:auto;
    }
    
    h1 {
        font-size: 3.6vw;
    }

    li a {
        font-size: 3.2vw;
    }

    h3 {
        font-size: 3.2vw;
    }

    .card-link {
        font-size: 2.5vw;
        padding:0px;
    }

    .card-body img {
        width: 15vw;
        height: 15vw;
    }
  
}