@keyframes fadeIn {
    from {
        opacity: 0.2;
    }

    to {
        opacity: 1;
    }
}

@keyframes leftEnter {
    from {
        left: -50%;
    }

    to {
        left: 15px;
    }
}

@keyframes leftLeave {
    from {
        left: 15px;
    }

    to {
        left: -50%;
    }
}

body {
    margin: 0;
}

.home main {
    background: #c175753b;
}

body.home {
    background-image: url('./images/background-large.jpg');
    background-position: center;
    background-size: 100%;
}

body.home .landing-content {
    border-bottom: 4px solid #291f02;
    padding-left: 10%;
    width: 90%;
}

p,
h1,
h2,
h3,
h4,
a,
label,
input,
textarea,
.close {
    color: #291f02;
    font-family: 'Poppins', sans-serif;
    text-shadow: #f89ecb 1px 0 5px;
}

input[type="email"],
input[type="text"],
textarea {
    font-family: monospace;
}

nav ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    width: 100%;
}

nav ul li {
    list-style-type: none;
}

nav ul li a {
    font-size: 28px;
    line-height: 40px;
    margin: 20px 20px 20px 0;
    text-decoration: none;
}

nav ul li a:hover {
    font-size: 32px;
}

nav ul li a.active {
    text-decoration: underline;
}

h1,
h2 {
    width: fit-content;
}

h1 {
    font-size: 70px;
    margin-bottom: 0;
}

h2 {
    font-size: 34px;
    margin-top: 5px;
}

.project h2 {
    font-size: 28px;
    margin-bottom: 0px;
    margin-top: 20px;
}

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

.project .details .link {
    display: flex;
    justify-content: flex-end;
    width: 70%;
}

.project img {
    background: white;
    border: 1px solid #2a1f02;
    margin-top: 15px;
    min-width: 285px;
    object-fit: contain;
    padding: 8px;
    width: 60%;
}

.portfolio .inner-container {
    margin: 0 auto;
    width: 95%;
}

form {
    display: flex;
    flex-direction: column;
    width: 630px;
}

input {
    height: 30px;
    width: 300px;
}

textarea {
    height: 100px;
    margin-bottom: 30px;
}

input,
textarea {
    background: #f8efef;
    border: 1px solid #2a1f02;
}

label,
input[type="submit"] {
    font-size: 18px;
}

input[type="submit"] {
    background: #2a1f02;
    border-radius: 4px;
    color: #f8efef;
    font-size: 16px;
    height: 48px;
    width: 250px;
}

input[type="submit"]:hover {
    cursor: pointer;
}

footer img {
    display: block;
    filter: brightness(0) saturate(100%) invert(13%) sepia(65%) saturate(503%) hue-rotate(7deg) brightness(92%) contrast(103%);
    margin: 50px auto;
    width: 30px;
}

footer img:hover {
    width: 32px;
}


.landing-content {
    border-bottom: 4px solid #291f02;
    border-top: 4px solid #291f02;
    margin: 0 auto;
    margin-top: 40px;
    min-height: 500px;
    padding-bottom: 20px;
    width: 100%;
}

.name-email {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
}

.name-email .form-group:first-of-type {
    margin-right: 20px;
}

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

.error-message,
.success-message {
    display: none;
}

.contact h2 {
    margin-bottom: 15px;
}

.about nav ul,
.contact nav ul,
.experience nav ul,
.portfolio nav ul {
    display: flex;
    flex-direction: row;
}

.about .landing-content {
    padding: 0 !important;
}

.about .landing-content .selfie {
    border-bottom: 4px solid #2a1f02;
    border-left: 2px solid #2a1f02;
    border-right: 2px solid #2a1f02;
    border-top: 3px solid #2a1f02;
    margin-left: 50px;
    object-fit: cover;
    outline: 1px solid #d083d0;
    max-width: 300px;
    min-width: 240px;
}

.about .landing-content .linkedin {
    width: 20px;
}

.about .landing-content p {
    display: block;
}

.about .inner-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 50px auto;
    width: 70%;
}

.about .landing-content .inner-container p:first-of-type {
    margin-top: 0;
}

.about h1,
.contact h1,
.experience h1,
.portfolio h1 {
    margin: 0 auto;
}

.about header h1 a,
.contact header h1 a,
.experience header h1 a,
.portfolio header h1 a {
    text-decoration: none;
}

.about nav li a:hover ,
.contact nav li a:hover,
.experience nav li a:hover,
.portfolio nav li a:hover {
    font-size: 28px;
}

.about nav li a,
.contact nav li a,
.experience nav li a,
.portfolio nav li a {
    border-right: 1px solid #2a1f02;
    padding-right: 10px;
}

.about nav li:last-of-type a,
.contact nav li:last-of-type a,
.experience nav li:last-of-type a,
.portfolio nav li:last-of-type a {
    border-right: none;
}

.experience .inner-container {
    margin: 20px auto;
    width: 90%;
}

.experience .work-columns {
    display: flex;
}

.experience .work-columns .full-time {
    width: 100%;
}

.experience .work-columns .freelance {
    margin-left: 40px;
    width: 60%;
}

.work-experience h2 {
    margin-bottom: 15px;
}

.experience-listing {
    margin-bottom: 30px;
}

.experience-listing h3,
.experience-listing h4 {
    margin: 0 0 5px 0;
}

.contact .inner-container {
    margin: 25px auto;
    width: 630px;
}

.mobile-nav {
    display: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    margin: 15px;
}

.hamburger div {
    background: #2a1f02;
    box-shadow: 1px 1px 2px #f89ecb;
    height: 5px;
    margin-top: 5px;
    width: 30px;
}

.close {
    display: none;
    font-size: 30px;
    font-weight: bold;
    margin: 15px;
}

.mobile-nav nav {
    background: white;
    box-shadow: 1px 1px 2px #2a1f02;
    left: -50%;
    position: absolute;
    top: 55px;
    z-index: 1;
}

nav.show {
    animation-duration: 0.5s;
    animation-name: leftEnter;
    left: 15px;
}

nav.hide {
    animation-duration: 0.5s;
    animation-name: leftLeave;
}

.sentiment-analysis {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px dashed #fdd1e6;
}

@media only screen and (max-width: 991px) {
    .project .details {
        flex-direction: column;
    }

    .project .details .link {
        justify-content: unset;
    }

    .about .inner-container {
        width: 90%;
    }
}

@media only screen and (max-width: 748px) {

    header {
        align-items: center;
        display: flex;
        height: 70px;
        margin-bottom: -15px;
        position: relative;
        top: 8px;
    }

    .about .landing-content .inner-container {
        flex-direction: column;
        margin: 25px auto;
        width: 90%;
    }

    .about .landing-content .selfie {
        margin-left: 0;
    }

    .mobile-nav {
        display: block;
    }

    .desktop-nav {
        display: none;
    }

    .about nav ul,
    .experience nav ul,
    .portfolio nav ul,
    .contact nav ul {
        flex-direction: column;
        margin-bottom: 0;
    }

    .about nav ul li,
    .experience nav ul li,
    .portfolio nav ul li,
    .contact nav ul li {
        border-bottom: 1px solid #2a1f02;
        padding-left: 8px;
    }

    .about nav ul li a,
    .experience nav ul li a,
    .portfolio nav ul li a,
    .contact nav ul li a {
        border-right: none;
        display: block;
        margin: 5px 15px 5px 5px;
        padding-right: 0;
        width: 100%;
    }

    .hamburger div {
        height: 8px;
        width: 50px;
    }
}

@media only screen and (max-width: 585px) {
    body:not(.home) h1 {
        font-size: 45px;
    }
}

@media only screen and (max-width: 480px) {
    body.home {
        background: #c175753b;
    }

    body.home .landing-content {
        width: 90%;
    }

    h2 {
        font-size: 28px;
    }

    header {
        align-items: unset;
        height: 30px;
        margin-bottom: unset;
        position: unset;
    }

    .hamburger div {
        height: 5px;
        width: 30px;
    }

    body:not(.home) h1 {
        float: right;
        font-size: 40px;
        position: absolute;
        right: 35px;
        top: 3px;
    }

    .project img,
    .project .details .link {
        width: 100%;
    }

    .experience .work-columns {
        flex-direction: column;
    }

    .experience .work-columns .freelance {
        margin-left: 0;
        width: 100%;
    }

    .about .landing-content .selfie {
        margin-left: 0;
        width: 100%;
    }

    .about .landing-content .inner-container {
        flex-direction: column;
        margin: 25px auto;
        width: 90%;
    }

    .about .text {
        margin-bottom: 10px;
    }

    .name-email {
        flex-direction: column;
    }

    textarea {
        width: 300px;
    }

    .contact .inner-container,
    .contact form {
        width: 90%;
    }
}
