@import url('https://fonts.googleapis.com/css?family=Lato|Lobster&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@600&display=swap');
html {
	box-sizing:border-box;
	font-size:22px;
}
header {
	position: sticky;
	top: 0;
	z-index: 1000;
}
*, *::before, *::after {
  box-sizing:inherit;
}
h1,h2, h3 {
	text-align: center;
	color: #5B3F20;
	font-family: Lobster, cursive;
    display: block;
    font-size: 1.6em;
    font-weight: bold;
}
/*container*/
.header-container {
	background: white;
	margin: 0 auto;
	max-width:1500px;
	text-align:center;
}
#footer div {
	text-align: center;
	font-size: 0.75em;
}
.header-container {
	display: flex;
}

.body-container {
	/* margin: 2em; */
	background-color:#EEEEEE;
	/* max-width:1800px; */
	text-align:center;
}
.body-content-container {
	background-color:#EEEEEE;
	max-width:1500px;
	text-align:center;
	margin:auto;
}

/*main menu and footer menu*/
#logo, #menu {
	flex:  1 0 0;
}
#logo, #menu {
	margin-top: 1em;
}
#menu {
	margin-top: 2em;
}
#logoLink {
	font-size: 2em;
	margin-right: 0.5em;
	font-family: 'Work Sans', sans-serif;
}
#slogan {
	font-size: 0.8em;
	transform: translateY(-25%);
	color: #5B3F20;
}
#about-me {
	padding: 1em;
}
/*Dropdown menu*/
.dropbtn {
	background-color: white;
	color: #5B3F20;
	border: none;
	font-size: 1.1em;
	margin-bottom: 0.5em;
}
.dropdown {
	position: relative;
	display: inline-block;
}

.dropdown-content {
	display: none;
	position: absolute;
	background-color: #5B3F20;
	color: white;
	text-align: center;
	width: 250px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index: 1;
}
.dropdown-content a:link,
.dropdown-content a:visited {
	color: white;
	text-decoration:none;
}
.dropdown-content a:hover,
.dropdown-content a:active {
	color: lightsteelblue;
}
.dropdown-content a {
	color: white;
	padding: 12px 16px;
	text-decoration: none;
	display: block;
}

.dropdown-content a:hover {
	background-color: #5B3F20;
	color: white;
}

.dropdown:hover .dropdown-content {display: block;}

.dropdown:hover .dropbtn {
	border-bottom: solid;
}

a:link,
a:visited {
  color: #5B3F20;
  text-decoration:none;
}
a:hover,
a:active {
  color: rosybrown;
}
.hidden {
	position:absolute;
	left:-100000px;
	width:1px;
	height:1px;
}
.intro {
	margin: 2em;
}
/*Flex box*/
.content-flex-box {
	display: flex;
	flex-flow: row wrap;
	text-align:center;
}
/*Bio List*/
.grid {
	display: grid;
	grid-template-columns: auto auto;
}
ol {
	list-style-type: none;
}

li {
	position: relative;
	margin: 0 2em;
	padding-bottom: 0.5em;
	padding-left: 20px;
	text-align: left;
}

li:before {
	  content: '';
	  background-color: #c00;
	  position: absolute;
	  bottom: 0px;
	  top: 0px;
	  left: 6px;
	  width: 3px;
}

li:after {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' viewBox='0 0 30 30' focusable='false'%3E%3Ccircle stroke='none' fill='%23c00' cx='15' cy='15' r='10'%3E%3C/circle%3E%3C/svg%3E");
  position: absolute;
  left: 2.3px;
  top: 11px;
  height: 12px;
  width: 12px;
}


/*About me introduction section*/

#writer, #designer {
	flex: 1 0 0;
}
#writer p, #designer p {
	font-size: 1em;
	text-align: left;
	padding: 0 1em 0 1em;
}
#portrait-photo img {
	max-width:40%;	
	height: auto
}
#portrait-photo {
	flex: 2 0 0;
	text-align:center;
}
p {
	font-family: Lato, sans-serif;
}
/*Portfolio section*/
.portfolio div {
	margin-bottom: 2em;
}
 .projectInfo {
	flex: 1 0 0;
	margin-right: 1em;
}
.projectBlogPicture {
	width: 90%;
}
 #restaurant-website {
	 /* margin-left: 0.2em; */
 }
 #appliText {
	 margin-bottom: 1em;
 }
.visitbutton, .readbutton {
	color: white;
	border-radius: 8px;
	background-color:#d35400;
	border: none;
	padding: 20px;
	width: 200px;
	font-size: 15px;
}
.readbutton {
	background-color: #27ae60
}
.readbutton:hover {
	background-color: #2ecc71;
}
.visitbutton:hover {
	background-color: #FF6C0A;
}

.visitbutton:hover span:after, .readbutton:hover span:after {
	opacity: 1;
	right: 0;
}
/*/contact*/
.contact-section {
	text-align:center;
	font-family: Lato, sans-serif;
	padding: 2em;
}


/*Tablet size*/
@media screen and (max-width: 768px) {
	html {
		font-size:18px;
	}
	#portrait-photo {
		flex: 1 0 100%;
		order: 1;
	}
	#portrait-photo img {
		max-width:30%;	
		height: auto
	}	
	#appli-application {
		flex: 1 0 50%;
		order: 1;
		margin-right:0;
	}
	#appli-application img {
		width: 80%;
	}
	#slogan {
		display: none;
	}
	.grid {
		display:block;
	}
	ol.timeline {
		padding-left: 0px;
	}
	.content-flex-box {
		flex-flow: column wrap;
	}
	.infoText {
		margin-bottom: 1em !important;
	}
	.projectInfo {
		margin-bottom: 2em !important;
	}
}

/*Mobile version*/
@media screen and (max-width: 415px) {
	html {
		font-size:16px;
	}
	.visitbutton, .readbutton {
		width: 120px;
		margin: 1em;
		font-size: 10px;
	}
	p {
		font-size: 0.8em;
	}
	.grid {
		display: block;
	}
	.content-flex-box, .header-container {
		flex-direction: column;
	}
	#logo {
		flex: 1 0 100%;
		text-align: center;
	}
	#menu {
		margin: 1em;
		font-size: 1.2em;
		flex: 1 0 100%;
		text-align: center;
	}
	.dropdown-content {
		width: 130px;
		font-size: 0.75em;
	}
	.dropdown-content a {
		padding: 10px 8px;
	}
	#writer p, #designer p {
		font-size: 0.8em;
		margin:2em;
	}
	#writer, #designer {
		flex:1 0 100%;
	}
	#portrait-photo {
		order: -1;
	}
	#designer {
		order: 1;
	}
	#restaurant-website, #hospital-website, #appli-application {
		flex: 1 0 80%;
	}
	#restaurant-website img, #hospital-website img, #appli-application img {
		flex: 1 0 100%;
		width: 80%;
	}

	#footer-nav li {
		font-size:0.7em;
		margin-right:5px;
	}
}
/*Smaller mobile version*/
@media screen and (max-width: 360px) {
	html {
		font-size: 14px;
	}

}