/* ================================= 
  Base Styles
==================================== */

* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    border:0px solid grey;
}

body{
  color: #202020;
  background-color:#FFFFFF;
  font-family: 'Varela Round', sans-serif;
  font-size: .95em;
  line-height: 20px;
}


a:link, a:visited, a:hover { 
    color: black;
    text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}


/* ================================= 
  Base Layout Styles
==================================== */

/* ----- sections  ----- */

.section-intro {
  background: #FFFFFF url(../img/intro-image-cropped.png) no-repeat;
}

.section-subintro {
  background-color: #FFFFFF;
}

.section-recent-projects {
  background-color: #e5e5e5;
  padding-top: 30px;
  padding-bottom: 20px;
}

.section-portfolio {
  background-color: white;
  padding-top: 30px;
  padding-bottom: 20px;
}


/* ----- header ----- */
.header {
    background-color: rgb(252, 211, 0);
}

.header_content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: row;
    padding: 40px 4% 0;
    max-width: 1200px;
    margin: 0 auto;
}


.header_logo {
    text-transform: uppercase;
    font-size: 24px;
    line-height: 1.2;
}

.header_nav {
    display: flex;
    flex-wrap: wrap;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-size: 16px;
}

.header_nav a {
  padding-right: 10px;
}


/* ----- intro ----- */

.intro_content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: row;
    padding: 140px 4% 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.intro_title {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.05em;
}

.intro_skills {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.05em;
    vertical-align: baseline;
    margin-right:100px;
}

.intro_github-button{
  margin-top:20px;
  background-color:rgb(252, 211, 0);
  font-size:.65em;
  padding:15px 0px 15px 15px;
  border: 3px solid black;
  border-radius:5%;
}


/* ----- subintro----- */

.subintro_content{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: row;
  padding: 60px 4% 40px;
  margin: 0 auto;
  max-width: 1200px;
}

.subintro_title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.05em;
  padding-bottom: 30px;
}

.subintro_text {
  background-color: #fff;
  color: grey;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -.05em;
}

.subintro_image {
  align-self: flex-start;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  width: 200px;
}


/* ----- project ----- */
.project_header {
  font-size: 40px;
  padding: 20px 0;
  width: 65%;
  margin: 0 auto;
  max-width: 1200px;
}

.project_content {
  margin-bottom: 10px;
  padding: 20px 0 80px;
  width: 65%;
  margin: 0 auto;
  max-width: 1200px;
}

.project_box_text h2 {
    font-family: sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
}

.project_box_text p {
    font-family: 'Unna', serif;
    font-size: 24px;
    line-height: 1.6;
    margin-right: 10px;
}


/* ----- footer ----- */

.footer {
    background-color: rgb(252, 211, 0);
}

.footer_header {
    font-size: 50px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.05em;
    margin: 0 auto;
    padding: 40px 0 20px;
    width: 90%;
}


.footer_content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1520px;
    padding: 0 4%;
}

.footer_contact_item {
  display:inline;
  font-size: 24px;
  margin: 0 50px 20px 0;
}

.footer_contact_icon {
  margin-right:5px;
}

.footer_contact_text {
  word-break: break-all;
}

.footer_copyright {
   padding-top:60px;
   font-size: 18px;
}

/* ================================= 
  Media Queries
==================================== */
/* 
Target screens 769px and wider.
Start with a simple one column layout and
add advanced layout to this media query.
Set max-width so the content can extend only
to a certain width.
*/
@media (min-width: 768px) {
  .intro_title {
    font-size: 70px;
  }
  .intro_skills {
    font-size: 30px;
  }
  .project_header {
    max-width:1200px;
  }
  .footer_header {
    max-width:1520px;
  }
  .subintro_text {
    max-width:800px;
  }
  .project_box_text{
    max-width: 400px;
  }
  .project_box_image {
    max-width: 400px;
  }
  .subintro_wrapper {
    display: flex;
    flex-direction: row;
  }
  .subintro_image {
    margin: 30px 0 0 20px;
  }
}

@media (min-width: 1000px) {
  .project_content {
    align-items: flex-start;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-around;
  }
  .project_content:nth-child(2n) {
    flex-direction: row;
  }
  .project_content:nth-child(2n) .project_box_text {
    padding: 0 0 0 20px;
  }
  .project_content .project_box_text {
    padding: 0 20px 0 0;
  }
  .project_box_text h2 {
    margin-top: 0;
  }
}

@media (min-width: 1824px) {
  .subintro_text {
    max-width:1200px;
  }
  .project_box_text{
    max-width:950px;
  }
  .project_box_image {
    max-width: 500px;
  }
}
