

body {
	/*background-color: #464242;*/
	background-image: url("./images/pink-dust.png");
	color: #FFFFF0;
	margin: 0;
    padding: 0;
    width: 100%;

}

.headline-title {
	/*margin: auto;*/
	display: flex;
	flex-direction: row;
	justify-content: center;
}

.social {
	padding-top: 96px;
    margin-left: 24px;
}

.social a {
	color: #FFFFF0;
	font-size: 20px;
	margin: 2px 4px;

	/*remove underline*/
	text-decoration: none;
}

.title {
	font-weight: bold;
	text-align: center;
	font-size: 70px;
	margin-bottom: 14px;
	margin-left: 80px;
}

.introduction {
	text-align: right;
    width: 80%;
    margin: auto;  
}

.introduction p {
	line-height: 140%;
	color: #C0C0C0;
	font-size: 18px;
}


/******* MAIN BODY *******/
.main-body {
	display: flex;
  	flex-direction: row;
  	text-align: center;
}

.main-profile {
	flex: 1;

	/*make the main-profile on the same level as container*/
	margin-top: 40px;

/*	position: fixed;
	overflow-x: hidden;*/
}
.timeline {
	/*centering the box*/
	/*margin: auto;*/

	width: 50%;
	flex: 2;
}

.container {
	/*use flexbox to display info and image horizontally*/
	display: flex;
  	flex-direction: row;

  	width: 900px;
  	height: 350px;
  	border: #FFFFF0 0.5px solid;
  	border-radius: 4px;
  	margin-bottom: 40px;
  	margin-top: 40px;

  	background-color: #4f4848;
  	
}

.info {
	margin: 0 30px 6px 40px;
	text-align: left;
	position: relative;
}

.headline {
	margin-bottom: 0px;
	margin-top: 0px;
}

.date {
	margin-bottom: 4px;
}

p {
	font-family: 'Inconsolata', monospace;
}

img {
	border-radius: 4px;
}


.profile-image {
	border-radius: 50%;
	border: #FFFFF0 0.5px solid;
}


.call-to-action {
	height: 20px;
	width: 490px;
	border-top: solid 0.5px #FFFFF0;

	/* keep the CTA stay at the bottom of info*/
	position: absolute;
    bottom: 0;
    
    padding-top: 10px;
}

.call-to-action a {
	text-decoration: none;
	color: #FFFFF0;
	font-weight: bold;
	font-size: 16px;
}

.call-to-action a:hover {
	color: #2ecc71;
}

.list-of-links a {
	text-decoration: none;
	color: #FFFFF0;
	font-size: 16px;
}

.list-of-links a:hover {
	color: #2ecc71;
}


/* LEFT SIDE INFO*/
/******** GRAPH BAR ********/

.graph-bar {
  width: calc(100% - 40px);
  width: 70%;
  margin: 50px auto 20px auto;
}


/*using flexbox to align p and the bar chart on the same line*/
.graph-line {
	display: flex;
  	flex-direction: row;
}

.graph-line p {
	flex: 1;
	text-align: left;
	font-weight: bold;
	font-size: 14px;
}

.bar{
  height: 30px;
  max-width: 800px;
  margin: 0 auto 10px auto;
  line-height: 30px;
  font-size: 16px;
  color: #4f4848;
  padding: 0 0 0 4px;
  position: relative;

  /* make sure the bar size is bigger than the <p>*/
  flex: 2;
}

.bar::before{
  content: '';
  width: 100%;
  position: absolute;
  left: 0;
  height: 30px;
  top: 0;
  z-index: -2;
  background: #ecf0f1;
}

.bar::after{
  content: '';
  background: #2ecc71;
  height: 30px;
  transition: 0.7s;
  display: block;
  width: 100%;
  -webkit-animation: bar-before 1 1.8s;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
.bar1::after{
  max-width: 90%;
}
.bar2::after{
  max-width: 80%;
}
.bar3::after{
  max-width: 70%;
}
.bar4::after{
  max-width: 50%;
}

.founders-coders {
	margin-top: 30px;
}

.freecodecamp {
	width: 160px;
    margin-right: 20px;
}

.github {
	width: 30px;
}

.codewars {
	width: 40px;
	margin-top: 10px;
}

	/********* RESPONSIVE  *********/
	/* Portrait and Landscape */
	/* iphone 6/7/8 */
	@media only screen 
	  	and (min-device-width: 320px) 
  		and (max-device-width: 812px) 
	  	and (-webkit-min-device-pixel-ratio: 3) {

	  		/* I cant find the way to make the smaller screen take the whole width*/
	  		/*hence i added margin-left in to make sure the page is in the middle*/
	  		body{
	  			 margin-left: 2%;
	  			 font-size: 26px;
	  		}


	  		.introduction {
				text-align: center;
			}

			.introduction p {
				font-size: 16px;
			}

	  		.main-body {
			    display: flex;
			    flex-direction: column;
			}

			.profile-image {
				width: 400px;
				height: 420px;
			}

			.graph-line p {
				font-size: 26px;
			}

			.github {
			    width: 60px;
			}

			.freecodecamp {
			    width: 260px;
			    margin-right: 20px;
			}

			.codewars {
    			width: 60px;
    		}

			.timeline {
    			/*margin: auto;*/
			    width: 100%;
			}

			.container {
				/* move the container in the middle of timeline*/
				margin-left: 3%;
				height: 800px;

			}

			.image {
				display: none;
			}

			.call-to-action {
				width: 820px;
			}

			.paragraph {
				font-size: 34px;
			}

			.headline {
				font-size: 46px;
			}

			.date {
				font-size: 36px;
			}

			.headline-title {
				flex-direction: column;
				text-align: center;
			}

			.call-to-action {
				font-size: 30px;
			}

			.call-to-action a {
				font-size: 32px;
			}

			.social {
			    text-align: center;
    			padding-top: 0;
			}

			.intro-headline {
				font-size: 48px;
			}

			.coding-groups {
				height: 540px;
			}

			.code-bar {
				height: 860px;
			}
	}

	/* iphone 4/5 */
	@media only screen 
	  and (min-device-width: 320px) 
	  and (max-device-width: 568px)
	  and (-webkit-min-device-pixel-ratio: 2) {
	  	body{
	  			 margin-left: 2%;
	  			 font-size: 26px;
	  		}


	  		.introduction {
				text-align: center;
			}

			.introduction p {
				font-size: 16px;
			}

	  		.main-body {
			    display: flex;
			    flex-direction: column;
			}

			.profile-image {
				width: 400px;
				height: 420px;
			}

			.graph-line p {
				font-size: 26px;
			}

			.github {
			    width: 60px;
			}

			.freecodecamp {
			    width: 260px;
			    margin-right: 20px;
			}

			.codewars {
    			width: 60px;
    		}

			.timeline {
    			/*margin: auto;*/
			    width: 100%;
			}

			.container {
				/* move the container in the middle of timeline*/
				margin-left: 3%;
				height: 800px;

			}

			.image {
				display: none;
			}

			.call-to-action {
				width: 820px;
			}

			.paragraph {
				font-size: 34px;
			}

			.headline {
				font-size: 46px;
			}

			.date {
				font-size: 36px;
			}

			.headline-title {
				flex-direction: column;
				text-align: center;
			}

			.call-to-action {
				font-size: 30px;
			}

			.call-to-action a {
				font-size: 32px;
			}

			.social {
			    text-align: center;
    			padding-top: 0;
			}

			.intro-headline {
				font-size: 48px;
			}

			.coding-groups {
				height: 540px;
			}

			.code-bar {
				height: 860px;
			}
	}






