* {
    box-sizing: border-box;
}

body {
    background-color: #F1FFFE;
}

/* NAVBAR */
nav {
    position: fixed;
    top: 0;
    background-color: #D6FFFD;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 60px;
    border-bottom: 3px solid #000000;
}

/* <a> TAG DESIGN */
.button {
    border: 2px solid #05668D;
    margin: 4px 0;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    color: #000000;
    background-color: #F1FFFE;
    border-radius: 10px;
    font-family: 'Oswald', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 30px;
}

.button:hover {
    background-color: #21ACF6;
}

a {
    color: #000000;
    text-decoration: none;
}

.inactiveLink {
    cursor: not-allowed;
}

.inactiveLink:hover {
    background-color: #F1FFFE;
}

/* TOOLTIP */
/* Tooltip text */
.tooltipText {
    visibility: hidden;
    width: 120px;
    top: 75%;
    right: 10%;
    background-color: black;
    color: #FFF;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
}

/* GENERAL TEXT STYLISATION */

h1 {
    text-decoration: underline;
}
h1, h2, p {
    color: #000000;
    font-family: 'Merriweather', serif;
}
p {
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
}

/* INTRODUCTION SECTION */
.intro {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    width: 900px;
    margin: 85px auto 0 auto;
}

.intro h2 {
    border-right: 4px solid #F1FFFE;
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    margin-top: 50px;
    animation: typing 2s steps(40, end), blink-caret 1s step-end infinite;
}

/* TYPING EFFECT */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 140px;
    }
}
/* TYPEWRITER CURSOR EFFECT */
@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #21ACF6;
    }
}
/* PORTFOLIO SECTION */
.portfolio {
    width: 1100px;
    margin: 80px auto 0 auto;
    padding: 2px;
}

.portfolio h1 {
    text-align: center;
    margin-bottom: 50px;
}

.projectImage {
    width: 530px;
    height: 350px;
    border: 3px solid #000000;
    border-radius: 20px;
    margin-right: 100px;
    margin-top: 20px;
}

.projectText {
    display: flex;
    align-items: center;
}

.links {
    display: flex;
    margin: 40px 100px 0 16px;
}

.project {
    display: flex;
}

.projectPlusLinks {
    margin-bottom: 120px;
}

.bottomProject {
    margin-bottom: 40px;
}

.liveProjectLink {
    margin-right: 80px;
}

summary p {
    margin-left: 15px;
}

/* ABOUT ME SECTION */
.about-me {
    display: flex;
    flex-wrap: wrap;
    margin: 85px auto 0 auto;
    width: 900px;
    justify-content: center;
}

.about-story, .about-interests, .about-aspirations {
    display: flex;
}

.selfie {
    border-radius: 15px;
    border: 3px solid #000000;
    height: 500px;
    width: 400px;
    margin: 10px 0 20px 20px;
}

.selfieLeft {
    margin: 10px 20px 20px 0;
}

.landscape {
    width: 800px;
    margin: 80px 0 0 0;
}

.selfie-plus-about {
    display: flex;
}

/* SOCIAL LINKS */
.socialLinks {
    position: fixed;
    display: flex;
    flex-wrap: wrap;
    bottom: 50%;
    right: 0;
}

.socialLinks aside {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin: 4px 8px;
}

.socialLink {
    background-color: #3B5998;
    color: #FFFFFF;
    height: 32px;
    width: 32px;
    border-radius: 5px;
    padding: 8px 0 0 9px;
}

.socialLink:hover {
    border: 2px solid #ED2116;
    padding: 6px 0 0 7px;
    background-color: #21ACF6;
}

/* HOME PAGE MEDIA QUERIES */
@media screen and (max-width: 1200px) {
    .portfolio {
        text-align: center;
    }

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

    .project p {
        margin: 10px 2px 2px 2px;
        width: 80%;
    }

    .projectText {
        justify-content: center;
    }

    .projectImage {
        margin: 20px 0;
    }

    .links {
        justify-content: center;
        margin: 30px 0 0 0;
    }
}
@media screen and (max-width: 1050px) {
    .intro, .portfolio {
        width: 80%;
    }
}
@media screen and (max-width: 750px) {
    .projectImage {
        width: 450px;
        height: 270px;
    }
}
@media screen and (max-width: 520px) {
    .projectImage {
        width: 400px;
    }
}
/* ABOUT ME PAGE MEDIA QUERIES */
@media screen and (max-width: 975px) {
    .about-story, .about-aspirations {
        flex-wrap: wrap;
        justify-content: center;
    }

    .about-story, .about-aspirations, .about-interests {
        margin: 0 30px 40px 30px;
    }

    .about-interests {
        flex-wrap: wrap-reverse;
        justify-content: center;
    }

    .about-story-text, .about-interests-text, .about-aspirations-text {
        margin-bottom: 40px;
    }

    .selfie {
        margin: 0;
    }
}