:root {
    --main-background: darkgreen;
    --header-footer-bg: whitesmoke;
    --header-footer-color: darkgreen;
    --section-bg: darkolivegreen;
    --section-color: whitesmoke;
    --default-border: 5px solid black;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

body {
    background-color: var(--main-background);
}

/* HEADER AND NAVIGATION */
header {
    display: flex;
    width: auto;
    align-items: center;
    justify-content: space-between;
    background-color: var(--header-footer-bg);
    color: var(--header-footer-color);
    margin: 5px;
    padding: 1%;
    border: var(--default-border);
}

header h1 {
    font-size: 3.5em;
    text-shadow: 3px 3px rgba(0, 0, 0, 0.3);
}

header nav {
    border: var(--default-border);
}

header nav a {
    padding: .3em;
    font-size: 2.5em;
    text-decoration: none;
    display: inline-block;
    position: relative;
    color: var(--header-footer-color);
}

/* NAVIGATION UNDERLINE ANIMATION */
header nav a:hover:after {
    transform: scaleX(1);
    transform-origin: initial;
}

header nav a:after {
    content: '';
    position: absolute;
    background-color: darkolivegreen;
    transition: transform 0.3s ease-out;
    width: 100%;
    align-content: center;
    transform: scaleX(0);
    height: 3px;
    left: 0;
    right: 0;
    bottom: 10px;
  }
  
  /* ABOUT ME AND HERO IMAGE */
.about-me-images {
    display: flex;
    margin: 5px;
}
article {
    display: flex;
    flex-direction: column;
    background-color: var(--section-bg);
    color: var(--section-color);
    border: var(--default-border);
    width: 50%;
}
article h2 {
    text-align: center;
    font-size: 2em;
    text-shadow: 3px 3px rgba(0, 0, 0, 0.5);  
}

article img {
    width: 30%;
    align-self: center;
    border: var(--default-border);
}

article p {
    font-size: 1.5em;
    text-indent: 5%;
    padding: 2%;
    text-shadow: 3px 3px rgba(0, 0, 0, 0.4); 
}

.hero {
    display: flex;
    max-width: auto;
    max-height: auto;
    border: var(--default-border);
}

/* MY WORK PORTFOLIO */
.my-work h2 {
    text-align: center;
    margin: 5px;
    color: var(--section-color);
    font-size: 30px;
    text-shadow: 3px 3px rgba(0, 0, 0, 0.5);
}

/* TOP PROJECT - MINIS */
.minis-project {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.minis-project a {
    width: 60%;
}

.minis-project img {
    border: 0.5em solid green;
    box-shadow: 10px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
}
.minis-project figcaption {
    border: 0.2em solid green;
    font-size: 2rem;
    padding: 0.3em;
    width: auto;
    text-align: center;
    background: var(--section-bg);
    color: var(--section-color);
    text-shadow: 0.11em 0.11em rgba(0, 0, 0, 0.5);
    box-shadow: 0.22em 0.22em rgba(0, 0, 0, 0.2);
}

/* PLACEHOLDER PROJECT SPACE */
.placeholder1,
.placeholder2,
.placeholder3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1em;
}

.placeholder1 img,
.placeholder2 img,
.placeholder3 img {
    width: 40%;
    border: 5px solid green;
    box-shadow: 10px 10px rgba(0, 0, 0, 0.2);
}

.placeholder1 figcaption,
.placeholder2 figcaption,
.placeholder3 figcaption {
    border: 0.2em solid green;
    font-size: 1.5em;
    padding: 0.3em;
    width: auto;
    text-align: center;
    background: var(--section-bg);
    color: var(--section-color);
    text-shadow: 0.11em 0.11em rgba(0, 0, 0, 0.5);
    box-shadow: 0.22em 0.22em rgba(0, 0, 0, 0.2);
}

/* PORTFOLIO IMAGE SHADING */
.minis-project img:hover,
.placeholder1 img:hover,
.placeholder2 img:hover,
.placeholder3 img:hover {
    box-shadow: 0px 30px 30px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease-out
}

/* CONTACT ME FOOTER */
footer {
    display: flex;
    width: auto;
    text-align: center;
    justify-content: space-between;
    flex-direction: column;
    background-color: var(--header-footer-bg);
    color: var(--header-footer-color);
    margin: 5px;
    padding: 1%;
    border: var(--default-border);
}

footer h2 {
    font-size: 50px;
    text-align: center;
    text-shadow: 3px 3px rgba(0, 0, 0, 0.3);
}

footer nav p {
    padding: .3em;
    font-size: 20px;
    display: inline;
    position: relative;
    color: var(--header-footer-color);
}

footer a {
    text-decoration: none;
    color: var(--header-footer-color);
}

/* CONTACT ME FOOTER ANIMATIONS*/
footer nav p:hover:after {
    transform: scaleX(1);
    transform-origin: initial;
}

footer nav p:after {
    content: '';
    position: absolute;
    background-color: darkolivegreen;
    transition: transform 0.3s ease-out;
    width: 100%;
    align-content: center;
    transform: scaleX(0);
    height: 3px;
    left: 0;
    right: 0;
    bottom: 0px;
  }

  @media (max-width: 1400px) {
    .about-me-images {
        display: flex;
        justify-content: center;
    }
    
    .hero img {
        display: none;
    }
  }