/* universal selector */
* {
    margin: 0;
    padding: 0;
    color: black;
    font-family: "Verdana";
}
/* element selectors */    

html {
    scroll-behavior: smooth;
}

body {
    background-image: url(../images/02.jpg);
    background-size: cover;
    background-repeat: no-repeat;  
}

section {
    margin-bottom: 2%;
}

header nav {
    position: relative;
    background-color: slategray;
    height: 50px;
    width: 100%;
    line-height: 50px;
    border-bottom: 5px solid rgb(20, 20, 20);
}

.icon {
    height: 50px;
    position: relative;
    top: -2px;
    display: none;
}

footer {
    background-color: slategray;
    height: 50px;
    width: 100%;
    line-height: 50px;
    position: fixed;
    margin-top: 2%;
    bottom: 0;
    border-bottom: 5px solid steelblue;
}

h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 40px;
}

main {
    margin-bottom: 75px;
}

nav a {
    float: right;
    line-height: 50px;
    padding-left: 15px;
    padding-right: 20px;
    color: black;
    font-size: 25px;
    font-family: 'Press Start 2P', cursive;
    text-decoration: none;
    border-left: solid black 5px;
}

nav a:hover {
    background-color: rgb(16, 16, 17);
    color: white;
}

input[type=text]:focus {
    background-color: skyblue;
}

/* class selectors */

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.box-name {
    margin-top: 40px;
    text-align: center;
}

.text-center {
    text-align: center;
}

.portfolio {
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    display: flex;
    flex: 1 0 48%;
    margin: 2% 1%;
    justify-content: center;
    position: relative;
}

.portfolio p {
    position: absolute;
    width: 200px;
    background-color: slategray;
    line-height: 20px;
    padding: 10px;
    bottom: 0px;
}

.card img {
    opacity: 75%;
}

.contact-me {
    margin: 2% 0 0 0;
}

.contact-me h3 {
    margin-bottom: 25px;
}

.contact-me input {
    width: 250px;
    height: 25px;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 15px;
    color: black;
}

.contact-me button {
    margin-top: 10px;
    color: black;
    padding: 5px;
}

.endSlash {
    margin: 2% 0
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/* id selectors */

#headImg {
    margin: 2% 0;
}

#project-1 {
    flex: 1 0 98%;
}

@media screen and (max-width: 768px) {
    #project-1 img {
        width: 300px;
        height: auto;
    }

    header nav {
        display: flex;
        flex-direction: column;
        height: fit-content;
    }

    #project-1 p {
        width: 300px;
    }

    #headshot {
    height: 250px;
    }

    h2 {
        overflow: scroll;
        font-size: 25px;
    }

    body {
        background-image: url(../images/02.jpg);
        background-size: cover;
        background-repeat: no-repeat;  
    }
}

@media screen and (max-width: 600px){
    h2 {
        font-size: 30px;
    }

    body {
        background-image: url(../images/02.jpg);
        background-size: cover;
        background-repeat: no-repeat;  
    }
}