/**
 *  @ author - eric sandlin
*/

body,
html {
    font-family: Arial, sans-serif;
    padding: 0.9375em;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #808080;
}

/* Layout wrapper */
.wrapper {
    background-color: #e8e8e8;
    margin: 0 auto;
    max-width: 62.5em;
    /* 1000px */
    /*padding: 5em;*/
    box-shadow: 0.625em 5em 5em black;
    /* 10px 80px 80px */
    font-family: Arial, sans-serif;
    padding: 0.9375em;
    text-align: center;
}

/* Flexible container */
.container {
    padding: 1em;
    /* 16px */
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

/* Avatar container */
.imgcontainer {
    text-align: center;
    margin: 1.5em 0 0.75em 0;
    /* 24px 0 12px 0 */
}

/* Responsive image columns */
.responsive,
.column {
    padding: 0 0.375em;
    /* 6px */
    float: left;
    width: 24.99999%;
}

/* Clear floats */
.clearfix::after,
.row::after {
    content: "";
    display: table;
    clear: both;
}

/* Section padding */
#projects {
    padding: 2.5em 0;
    /* 40px */
}

/* Gallery styles */
div.gallery {
    border: 0.0625em solid #ccc;
    /* 1px */
    margin-top: 2em;
}

div.gallery:hover {
    border: 0.0625em solid #777;
}

div.gallery img {
    width: 100%;
    height: auto;
}

div.desc {
    padding: 0.9375em;
    /* 15px */
    text-align: center;
}


/* holds the JSript */
footer {
    margin-top: 1.875em;
    font-size: 0.875em;
    color: #555;
}

/* gets rid of the bullet point */
ul {
    list-style-type: none;
}


/* menu icon hamburger */
.menu-icon {
    width: 30px;
    height: 25px;
    margin: 0.5em auto;
    position: relative;
    cursor: pointer;
    z-index: 1001;
    display: block;
}

.menu-icon span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: #111;
    margin: 6px 0;
    border-radius: 2px;
    transition: all 0.4s ease-in-out;
}

/* Animated "X" effect */
.menu-icon.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Override nav defaults for mobile */
.nav {
    position: absolute;
    /**
  top: 0;
  right: -100%;
  width: 250px;
  height: 100vh;
  z-index: 1000;
  padding-top: 60px;
    */
    top: 60px;
    left: 0;
    right: 0;
    background: #000;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 1em 0;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;

}

.nav.open {
    display: flex;
}

.nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.nav li {
    margin: 20px 0;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
}

/* Navigation bar */
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #007BFF;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav li {
    flex: 1 0 auto;
}

nav li a {
    display: block;
    color: #fff;
    text-align: center;
    padding: 0.875em 1em;
    /* 14px 16px */
    text-decoration: none;
}

nav li a:hover {
    background-color: #111;
    color: #fff;
    text-decoration: none;
}

@media (min-width: 48em) {
    .project-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .project {
        margin: 0.625em;
    }

    /* Moble version */
    .menu-icon {
        display: none;

    }

    .nav {
        position: static;
        display: flex !important;
        background-color: #007BFF;
        flex-direction: row;
        justify-content: center;
        padding: 0;
    }

    .nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

}
