/* Universal Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: monospace;
    font-size: 24px;
    line-height: 1.2;
}

/* All header/navigation styling */
header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 12px 0px;
    background: #222222;
    color: #6C92D9;
}

header h1 {
    font-size: 200%;
    color: #222222;
    background-color: rgba(50, 241, 226, 1);
    padding: 12px 10px 0 10px;
}

header nav {
    padding: 25px 40px 0 0;
    margin-right: 20px;
    font-size: 20px;
}

header nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

header nav ul li {
    padding: 0 20px 20px 0;
    display: inline-block;
    margin-left: 35px;
}

header nav ul li a {
    text-decoration: none;
    border-bottom: 3px solid rgba(50, 241, 226, 1);
    padding: 5px;
    color:rgba(50, 241, 226, 1);
    font-size: 120%;
    font-weight: bold;
}

/* highlights navigation links */
header nav ul li a:hover {
    background-color: rgba(50, 241, 226, .2);
}

/* banner/image dividing the header and main body styling */
.banner {
    height: 280px;
    max-width: 100%;
    margin-bottom: 50px;
    background-image: url("../images/header-image-2.jpg");
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.banner h3 {
    padding: 20px 40px 42px 40px;
    background: rgba(34, 34, 34, .7);
    font-size: 150%;
    color: rgba(50, 241, 226, 1);
    font-weight: bold;
}

/* about me section styling and flexbox */
.flexbox-1 {
    display: flex;
    padding-bottom: 5em;
}

.flexbox-1 aside {
    flex: 0 0 20%;
    border-right: 5px solid rgba(34, 34, 34, 1);
    margin-bottom: -50px;
    display: flex;
    justify-content: flex-end;
}

.flexbox-1 aside h3 {
    text-align: right;
    padding: 0 20px 0 0;
    font-size: 50px;
}

.flexbox-1 article {
    max-width: 80%;
    padding: 0 80px 0 50px;
}

.flexbox-1 article p {
    font-size: 30px;
    padding: 0 80px 0 50px;
}

/* projects section styling and flexbox */
.flexbox-2 {
    display: flex;
    padding-bottom: 5em;
}

.flexbox-2 aside {
    flex: 0 0 20%;
    border-right: 5px solid rgba(34, 34, 34, 1);
    margin-bottom: -50px;
    display: flex;
    justify-content: flex-end;
}

.flexbox-2 aside h3 {
    text-align: right;
    padding: 0 20px 0 0;
    font-size: 50px;
}

.flexbox-2 figure{
    max-width: 80%;
    padding: 0 70px 0 90px;
}

.flexbox-2 figure a {
    text-align: center;
}

.flexbox-2 figure a img {
    width: 80%;
    border-radius: 5%;
    border: 3px solid rgba(50, 241, 226, 1);
    margin-bottom: 10px;
}

.projects {
    max-width: 39.5%;
    height: 13em;
    border-radius: 5%;
    border: 3px solid rgba(50, 241, 226, 1);
    margin-bottom: 10px;
}

/* Highlights project images/links */
.flexbox-2 figure a:hover {
    opacity: .8;
}

/* Contact me section styling and flexbox */
.flexbox-3 {
    display: flex;
    padding-bottom: 2em;
}

.flexbox-3 aside {
    flex: 0 0 20%;
    border-right: 5px solid rgba(34, 34, 34, 1);
    padding-bottom: 50px;
    display: flex;
    justify-content: flex-end;
}

.flexbox-3 aside h3 {
    text-align: right;
    padding: 0 20px 0 0;
    font-size: 50px;
}

.flexbox-3 nav {
    max-width: 80%;
    padding: 20px 30px 0 50px;
    display: flex;
}

.flexbox-3 nav ul {
    display: flex;
    flex-wrap: wrap;
}

.flexbox-3 nav ul li {
    display: inline;
    padding: 0 20px;
}

.flexbox-3 nav ul li a {
    text-decoration: none;
    border-bottom: 3px solid rgba(50, 241, 226, 1);
    padding: 5px;
    color:rgba(50, 241, 226, 1);
    font-size: 150%;
    font-weight: bold;
}

/* highlights navigation links */
.flexbox-3 nav ul li a:hover {
    background-color: rgba(50, 241, 226, .2);
}

/* Adjusts webpage sizes and dimensions on screen sizes 1280px - 768px */
@media screen and (max-width: 1280px) {
    header h1 {
        font-size: 150%;
    }
    header nav ul li a {
        font-size: 100%;
        flex-wrap: wrap;
    }
    .banner {
        height: 200px;
        max-width: 100%;
        margin-bottom: 50px;
        background-image: url("../images/header-image-2-small.jpg");
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
    }
    .banner h3 {
        font-size: 100%;
    }
    .flexbox-1 aside h3 {
        text-align: right;
        padding: 0 10px 0 50%;
        font-size: 30px;
    }
    .flexbox-1 article {
        max-width: 80%;
        padding: 0 50px 0 30px;
    }
    .flexbox-1 article p {
        font-size: 22px;
        padding: 0 40px 0 20px;
    }
    .flexbox-2 aside h3 {
        text-align: right;
        padding: 0 10px 0 50%;
        font-size: 30px;
    }
    .flexbox-2 figure{
        max-width: 80%;
        padding: 0 70px 0 50px;
    }
    .flexbox-2 figure a img {
        width: 70%;
        border-radius: 5%;
    }
    .projects {
        max-width: 80%;
        height: auto;
        border-radius: 5%;
        border: 3px solid rgba(50, 241, 226, 1);
    }
    .flexbox-3 aside h3 {
        text-align: right;
        padding: 0 10px 0 50%;
        font-size: 30px;
    }
    .flexbox-3 nav ul li {
        display: inline;
        padding: 5px 20px;
    }
    .flexbox-3 nav ul li a {
        text-decoration: none;
        border-bottom: 3px solid rgba(50, 241, 226, 1);
        padding: 3px;
        color:rgba(50, 241, 226, 1);
        font-size: 100%;
        font-weight: bold;
    }
}

/* Adjusts webpage sizes and dimensions on screen sizes 768px - 576px */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 150%;
    }
    header nav ul li a {
        font-size: 100%;
        flex-wrap: wrap;
    }
    .banner {
        height: 200px;
        max-width: 100%;
        margin-bottom: 50px;
        background-image: url("../images/header-image-2-small.jpg");
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
    }
    .banner h3 {
        font-size: 100%;
        flex-wrap: wrap;
    }
    .flexbox-1 aside h3 {
        text-align: right;
        padding: 0 10px 0 50%;
        font-size: 30px;
    }
    .flexbox-1 article {
        max-width: 80%;
        padding: 0 50px 0 30px;
    }
    
    .flexbox-1 article p {
        font-size: 22px;
        padding: 0 40px 0 20px;
    }
    .flexbox-2 aside h3 {
        text-align: right;
        padding: 0 10px 0 50%;
        font-size: 30px;
    }
    .flexbox-2 figure{
        max-width: 80%;
        padding: 0 70px 0 30px;
        display: flex;
        flex-wrap: wrap;
    }
    .flexbox-2 figure a img {
        width: 80%;
        border-radius: 5%;
    }
    .projects {
        max-width: 90%;
        height: auto;
        border-radius: 5%;
        border: 3px solid rgba(50, 241, 226, 1);
    }
    .flexbox-3 aside h3 {
        text-align: right;
        padding: 0 10px 0 50%;
        font-size: 30px;
    }
    .flexbox-3 nav ul li {
        display: inline;
        padding: 5px 20px;
    }
    .flexbox-3 nav ul li a {
        text-decoration: none;
        border-bottom: 3px solid rgba(50, 241, 226, 1);
        padding: 5px;
        color:rgba(50, 241, 226, 1);
        font-size: 100%;
        font-weight: bold;
    }
}

/* Adjusts webpage size, dimensions, and layout on screens 576px or smaller */
@media screen and (max-width: 576px) {
    header h1 {
        font-size: 100%;
    }
    header nav {
        padding: 10px 0 0 0;
    }
    header nav ul {
        flex-wrap: wrap;
        display: flex;
    }
    header nav ul li{
        margin: 10px;
        padding: 0;
    }
    header nav ul li a {
        font-size: 60%;
    }
    .banner {
        height: 200px;
        max-width: 100%;
        margin-bottom: 50px;
        background-image: url("../images/header-image-2-small.jpg");
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
    }
    .banner h3 {
        font-size: 100%;
        flex-wrap: wrap;
    }
    .flexbox-1 {
        display: flex;
        align-items: center;
        flex-direction: column;
        padding-bottom: 10%;
    }
    .flexbox-1 aside {
        margin-bottom: 25px;
        border-bottom: 5px solid rgba(34, 34, 34, 1);
        border-right: none;
        display: flex;
        justify-content: center;
    }
    .flexbox-1 aside h3 {
        font-size: 24px;
        padding: 0;
    }
    .flexbox-1 article {
        display: flex;
        max-width: 100%;
        padding: 0;
        flex-direction: column;
    }
    .flexbox-1 article p {
        font-size: 14px;
        padding: 0 15px;
    }
    .flexbox-2 {
        display: flex;
        align-items: center;
        flex-direction: column;
        padding-bottom: 10%;
    }
    .flexbox-2 aside {
        margin-bottom: 25px;
        border-bottom: 5px solid rgba(34, 34, 34, 1);
        border-right: none;
        display: flex;
        justify-content: center;
    }
    .flexbox-2 aside h3 {
        padding: 0;
        font-size: 24px;
    }
    .flexbox-2 figure{
        max-width: 100%;
        padding: 0;
    }
    .flexbox-2 figure a img {
        width: 60%;
        border-radius: 5%;
        border: 1px solid rgba(50, 241, 226, 1);
    }
    .flexbox-3 {
        display: flex;
        align-items: center;
        flex-direction: column;
    }
    .flexbox-3 aside {
        margin-bottom: 25px;
        border-bottom: 5px solid rgba(34, 34, 34, 1);
        border-right: none;
        display: flex;
        justify-content: center;
        padding: 0;
    }
    .flexbox-3 aside h3 {
        text-align: right;
        padding: 0;
        font-size: 24px;
    }
    .flexbox-3 nav {
        padding: 10px;
    }
    .flexbox-3 nav ul {
        display: flex;
        justify-content: space-between;
    }
    .flexbox-3 nav ul li {
        display: inline;
        padding: 5px 19px;
    }
    .flexbox-3 nav ul li a {
        font-size: 60%;
        padding: 2px;

    } 
}