/*Main styling on both mobile, tablet and desktop*/

body {
    box-sizing: border-box;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.sr-only {                 /*Screen reader only*/
    position:absolute;
    left:-10000px;
    top:auto;
    width:1px;
    height:1px;
    overflow:hidden;
}

p {
    font-size:18px;
}

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

.header {
    background-image: url(./images/jean-beller-tdivXu6b5_Q-unsplash.jpg);
    background-size: cover;
    height:520px;
    background-position-x: 33%;
    position: relative;  
}

.header-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.social-logos {
    position:absolute;
    right: 24px;
    top: 48px;
}

.fab {
    border-radius: 50%;
}

.fab:hover {
    opacity: 0.5;
}

.fa-2x {
    color:#fff;
    border: solid 2px #fff;
    width: 31px;
    padding: 10px;
}

.header-overlay {
    position: absolute;
    top:0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(126, 126, 126, 0.5);             /*Fourth number making the overlay being seethrough*/
}

.header-text-group {
    color:#fff;
    position: absolute;
    top: 121px;
    left: 24px;
    width: 220px;
}

.portfolio, .name {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    line-height: 18px;
}

.name {
    font-weight: bold;
}

h1, h2 {
    margin: 0;
}

h1 {
    font-size: 40px;
    font-weight: 900;
    line-height: 50px;
}

h2 {
    font-size: 30px;
    line-height: 40px;
}

.profile-img {
    width: 180px;
    border-radius: 50%;
    border: solid #fff;
    position: absolute;
    bottom: -16px;
    right: 24px;
}

.presentation {
    margin: 0;
}

.line {
    border: solid #E74A3C;
    width: 40px;
    display: inline-block;
    margin-bottom: 4px;
    margin-right: -6px;
}

.dot {
    height: 10px;
    width: 10px;
    margin-bottom: 1.5px;
    background-color: #E74A3C;
    border-radius: 50%;
    display: inline-block;
    font-size: 0;
}

.container {
    width: 375px;        /*Lowest supported width value for mobile*/
    margin: 0 auto;
}

.section:nth-child(2n) {
    background-color: #F4F4F4;
    padding: 50px 0 50px 0;
}

.section:nth-child(2n + 1) {
    background-color:#fff;
    padding: 50px 0 50px 0;
}

article {
    margin-bottom: 30px;
}

.title-div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    background-color: #FA382F;
    color: #fff;
    display: inline;
    font-size: 24px;
    line-height: 30px;
    text-align: center;
    padding: 0 5px 0 5px;
}

h4 {
    color:#FA382F;
    font-size: 20px;
}

h5 {
    color:#FA382F;
    font-size: 18px;
}

h6 {
    color:#FA382F;
    display: inline;
    font-size: 16px;
}

.project-link {
    color:#000;
}

.project-image, .thoughts-image {
    width: 100%;
    display: inherit;                      /*Inherits the display:block from parent div*/
}

.image-group {
    position: relative;
}

.desktop-align h5 {
    text-decoration: underline;
}

.tech {
    text-align: center;
}

.language-box {
    background-color: #F5D8E0;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 35px;
    padding: 4px;
    margin-left: 10px;
}

.overlay {
    position: absolute;
    top:0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(53, 69, 119, 0.5);               
    transition: 0.5s ease;
}

.overlay:hover {
  background-color: transparent;
}

.thoughts-text {
    color: black;
}

.more-thoughts {
    font-weight: bold;
    text-decoration: underline;
}

.thoughts-date {
    color: red;
    font-weight: 400;
}

.my-skills {
    display: flex;
    flex-wrap: wrap;
}

.nested-skills {
    width: 175px;
    display: flex;
    flex-direction: column; 
}

.fa-3x {
    color:#FA382F;
    border: solid 2px #FA382F;
    width: 46.5px;
    padding: 20px;
}

.more-logos {
    display: flex;
    flex-direction: row;
}

.more-title {
    text-align: center;
}

.more-links {
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.more-links h6:hover {
    color: #072BCE;
}

footer {
    background-color: #072BCE;
    color:#fff;
    padding: 50px 0 50px 0;
}

.contact-info {
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

a[href^="tel"]{
    color:inherit;
    text-decoration:none;
}


@media (max-width: 1024px){   /*Styling for mobile and tablet size*/

    .project-text-group, .desktop-align, .thoughts-text-group  {
        padding-left: 10px;
    }

	.hidden-projects {
	    display: none;
	}

}

@media (min-width: 1025px){                  /*Styling for desktop*/
    
    .header-text-group {
        top: 121px;
        left: 250px;
        width: 220px;
    }

    .social-logos {
        right: 250px;
        top: 48px;
    }

    .profile-img {
        bottom: -16px;
        right: 250px;
    }

    .container {
        width: 1025px;
    }

    article {
       width: 485px;
    }
   
    .list-of-projects {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .desktop-align {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .project-image, .thoughts-image {
        height: 316px;
    }

    .hidden-other {
        display: none;
    }

    .other-link {
        color:#FA382F;
        font-weight: bold;
        text-decoration: underline;
    }
}