body {
	font-family: "Fira Sans";
}

#timeline {
	max-width: 46%;
	margin-left: 26%;
	margin-top: 50px;
	padding: 0 0%;
	border-top: 3px solid #ffcb48;
	list-style: none;
	display: flex;
}

#timeline li {
	padding-top: 30px;
	position: relative;
	flex: 1;
}

/*#timeline li:hover {}*/

#timeline li:hover label {
	opacity: 1;
	background-color: #1b9bd6;
	color: #ffffff;
}

#timeline li:hover label:after {
	border-bottom-color: #1b9bd6; /*segitiga*/
}

#timeline li:hover .date {
	font-size: 27px;
	font-weight: bolder;
	color: #00008b;
}

#timeline li:hover .circle {
	width: 5px;
	height: 5px;
	margin-left: -5px;
	background: #1b9bd6;
	border: 5px solid #1b9bd6;
	border-radius: 50%;
	position: absolute;
	top: -8px;
	left: 50%;
}

label {
	max-width: 180px;
	margin: 0 auto;
	padding: 35px 10px;
	border-width: 2px;
	background-color: #c1c8cf;
	border-radius: 5px;
	position: absolute;
	left: 0;
	right: 0;
	cursor: pointer;
	opacity: 1;
}

label:before,
label:after {
	content: "";
	width: 0;
	height: 0;
	border: solid transparent;
	position: absolute;
	bottom: 100%;
	pointer-events: none;
}

label:after {
	/*segitiga*/
	border-bottom-color: #c1c8cf;
	border-width: 12px;
	left: 50%;
	margin-left: -12px;
}

label span {
	font-size: 16px;
	min-height: 70px;
	text-align: center;
	overflow: hidden;
	display: block;
	color: #333333;
}

.date {
	width: 100%;
	padding-bottom: 30px;
	text-align: center;
	font-size: 25px;
	font-weight: bolder;
	position: absolute;
	top: -45px;
	display: block;
}

.dates {
	width: 100%;
	padding-bottom: 30px;
	text-align: center;
	margin-left: -80%;
	margin-top: 13%;
	font-size: 21px;
	font-weight: bolder;
	position: absolute;
	top: -45px;
	display: block;
}

.circle {
	width: 5px;
	height: 5px;
	margin-left: -5px;
	background: #ffcb48;
	border: 5px solid #ffcb48;
	border-radius: 50%;
	position: absolute;
	top: -8px;
	left: 50%;
}

.radio {
	display: none;
}

.radio:checked + label {
	opacity: 1;
}

.radio:checked ~ .circle {
	background: #0781f4;
}

.radio:checked ~ .content {
	z-index: 999;
}

.radio:checked ~ .content h3,
.radio:checked ~ .content p {
	opacity: 1;
}

@media (max-width: 500px) {
	#timeline {
		max-width: 100%;
		margin: 50px auto 0;
		padding: 0 0%;
		border-top: 3px solid #eb2029;
		list-style: none;
		display: block;
	}

	.date {
		width: 100%;
		padding-bottom: 30px;
		text-align: left;
		font-size: 25px;
		font-weight: bolder;
		position: initial;
		top: -45px;
		display: block;
	}

	/* Experiences */
	ul.experiences {
		margin-top: 35px;
		padding-left: 30%;
	}

	ul.experiences li {
		padding-left: 33px;
		margin-bottom: 4.5em;
		list-style: none;
		background: url("../img/misc/list-bullet-blue.png") no-repeat;
	}

	ul.experiences li.green {
		background: url("../img/misc/list-bullet-green.png") no-repeat;
	}

	ul.experiences li.blue {
		background: url("../img/misc/list-bullet-blue.png") no-repeat;
	}

	ul.experiences li.pink {
		background: url("../img/misc/list-bullet-pink.png") no-repeat;
	}

	.where {
		font-size: 1.2857em;
		/* 18/16 -> 18px */
		font-weight: 300;
		display: inline;
		margin-right: 0.5em;
	}

	.what {
		font-size: 0.75em;
		/* 12/16 -> 12px */
		font-weight: 700;
		text-transform: uppercase;
		color: #fff;
		background-color: #444444;
		display: inline-block;
		padding: 0 12px;
		margin: -5px 0.5em 0 0 !important;
		-webkit-border-radius: 3px;
		-moz-border-radius: 3px;
		border-radius: 3px;
	}

	.what.green {
		background-color: #c4df9b;
	}

	.what.blue {
		background-color: #6dcff6;
	}

	.what.pink {
		background-color: #f06eaa;
	}

	.when {
		float: right;
		color: #b9b9b9;
		font-style: italic;
	}

	.description {
		display: block;
		margin-top: 0.5em;
	}

	ul.experiences li {
		position: relative;
		/* so that pseudoelements are positioned relatively to their "li"s*/
		/* use padding-bottom instead of margin-bottom.*/
		margin-bottom: 0;
		/* This overrides previously specified margin-bottom */
		padding-bottom: 3em;
	}

	ul.experiences li:after {
		/* bullets */
		content: url("https://upload.wikimedia.org/wikipedia/commons/8/8a/BlueDisc.svg");
		position: absolute;
		left: -26px;
		/*adjust manually*/
		top: 0px;
	}

	ul.experiences li:before {
		/* lines */
		content: "";
		color: blue;
		position: absolute;
		left: -16px;
		/* adjust manually */
		border-left: 1px solid black;
		height: 100%;
		width: 1px;
	}

	ul.experiences li:first-child:before {
		/* first li's line */
		top: 6px;
		/* moves the line down so that it disappears under the bullet. Adjust manually */
	}

	ul.experiences li:last-child:before {
		/* last li's line */
		height: 6px;
		/* shorten the line so it goes only up to the bullet. Is equal to first-child:before's top */
	}
}

#labs {
	max-width: 180px;
	margin: 0 auto;
	padding: 10px 10px;
	border-width: 2px;
	background-color: #c1c8cf;
	color: #333333;
	border-radius: 5px;
	position: absolute;
	left: 0;
	right: 0;
	cursor: pointer;
	opacity: 1;
	margin-left: 5%;
}

#labs:before,
#labs:after {
	content: "";
	width: 0;
	height: 0;
	border: solid transparent;
	position: absolute;
	bottom: 100%;
	pointer-events: none;
}

/*#labs:after {
	border-bottom-color: #C1C8CF;
  border-width: 12px;
  left: 50%;
  margin-left: -12px;
}*/

#labs span {
	font-size: 12px;
	min-height: 30px;
	font-weight: normal;
	text-align: center;
	overflow: hidden;
	display: block;
}

@media (min-width: 800px) {
	/* Experiences */
	ul.experiences {
		margin-top: 35px;
		padding-left: 30%;
	}

	ul.experiences li {
		padding-left: 33px;
		margin-bottom: 5.5em;
		list-style: none;
		background: url("../img/misc/list-bullet-blue.png") no-repeat;
	}

	ul.experiences li.green {
		background: url("../img/misc/list-bullet-green.png") no-repeat;
	}

	ul.experiences li.blue {
		background: url("../img/misc/list-bullet-blue.png") no-repeat;
	}

	ul.experiences li.pink {
		background: url("../img/misc/list-bullet-pink.png") no-repeat;
	}

	.where {
		font-size: 1.2857em;
		/* 18/16 -> 18px */
		font-weight: 300;
		display: inline;
		margin-right: 0.5em;
	}

	.what {
		font-size: 0.75em;
		/* 12/16 -> 12px */
		font-weight: 700;
		text-transform: uppercase;
		color: #fff;
		background-color: #444444;
		display: inline-block;
		padding: 0 12px;
		margin: -5px 0.5em 0 0 !important;
		-webkit-border-radius: 3px;
		-moz-border-radius: 3px;
		border-radius: 3px;
	}

	.what.green {
		background-color: #c4df9b;
	}

	.what.blue {
		background-color: #6dcff6;
	}

	.what.pink {
		background-color: #f06eaa;
	}

	.when {
		float: right;
		color: #b9b9b9;
		font-style: italic;
	}

	.description {
		display: block;
		margin-top: 0.5em;
	}

	ul.experiences li {
		position: relative;
		/* so that pseudoelements are positioned relatively to their "li"s*/
		/* use padding-bottom instead of margin-bottom.*/
		margin-bottom: 0;
		/* This overrides previously specified margin-bottom */
		padding-bottom: 5.5em;
	}

	ul.experiences li:after {
		/* bullets */
		content: url("https://upload.wikimedia.org/wikipedia/commons/8/8a/BlueDisc.svg");
		position: absolute;
		left: -26px;
		/*adjust manually*/
		top: 0px;
	}

	ul.experiences li:before {
		/* lines */
		content: "";
		color: blue;
		position: absolute;
		left: -16px;
		/* adjust manually */
		border-left: 1px solid black;
		height: 100%;
		width: 1px;
	}

	ul.experiences li:first-child:before {
		/* first li's line */
		top: 6px;
		/* moves the line down so that it disappears under the bullet. Adjust manually */
	}

	ul.experiences li:last-child:before {
		/* last li's line */
		height: 6px;
		/* shorten the line so it goes only up to the bullet. Is equal to first-child:before's top */
	}
}
