/* C 2012 Arjun Asthana.
 * Modification and redistribution allowed under CC BY-NC-SA 3.0.
 * http://creativecommons.org/licenses/by-nc-sa/3.0/
 *
 * Template: http://github.com/guzt/cv/
 *
 * TODO: Figure out a way to add non-JS show/hide for sections
 *       Cleanup CSS, remove unused/unneeded code
 *       Properly separate code for screen and print media
 *       Create CSS for mobile media
 *       Use proper HTML5 tags instead of <div>s and <span>s
 */

a {
	text-decoration: inherit;
	color: inherit;
}

body {
	padding-top: 1em;
	padding-bottom: 1.5em;
	background-image: -ms-linear-gradient(left, #EEEEEE 0%, #FFFFFF 100%);
	background-image: -moz-linear-gradient(left, #EEEEEE 0%, #FFFFFF 100%);
	background-image: -o-linear-gradient(left, #EEEEEE 0%, #FFFFFF 100%);
	background-image: -webkit-gradient(linear, left top, right top, color-stop(0, #EEEEEE), color-stop(1, #FFFFFF));
	background-image: -webkit-linear-gradient(left, #EEEEEE 0%, #FFFFFF 100%);
	background-image: linear-gradient(to right, #EEEEEE 0%, #FFFFFF 100%);
	/* http://ie.microsoft.com/testdrive/graphics/cssgradientbackgroundmaker/default.html
	 * http://www.colorzilla.com/gradient-editor/
	 */
	 font-family: monospace;
}

ul {
	margin: 0px;
}

dl {
	margin: 0px;
}

dt:before {
	content: "• ";
}

.resumeContent {
	padding-top: 3em;
	margin-left: 10%;
	margin-right: 10%;
}

.resumeContent * {
	color: #444;
}

.resumeHeader {
	font-size: x-large ;
	font-variant: small-caps;
	text-align: center;
	background-color: #ccc;
	position: fixed;
	top: 0;
	right: 10%;
	left: 10%;
	padding-left: 0.5ex;
}

.resumeHeader .name:after {
	font-size: 16px;
	content: " [Resume]";
}

.footerContact {
	font-variant: normal;
	font-size: medium;
	border-top:#000 1px solid;
}

.footerContact span {
	float: left;
	width: 33%;
}

.footerContact span::after {
	content: "; ";
}

.email:before {
	content: "\2709:  ";
}

.mobile:before {
	content: "\2706:  ";
}

/*.resumeFooter .landline:before {*/
.landline:before {
	content: "\260E:  ";
}

.resumeContent .section:hover {
	color: black;
	-webkit-box-shadow: #999 0px 0px 10px;
	-moz-box-shadow: #999 0px 0px 10px;
	box-shadow: #999 0px 0px 10px;
}

.resumeContent .section:before {
	content: attr(header);
	font-variant: small-caps;
	font-weight: bold;
	text-align: center;
	background: #eee;
	color: #000;
	display: block;
}

.resumeContent .section td {
	vertical-align: text-top;
}

.resumeContent .section td ol {
	margin-top: 0;
	margin-bottom: 0;
}

.resumeContent .section ol {
	margin-top: 0.5ex;
	margin-bottom: 0;
	padding-left: 2em;
}

.resumeContent .section em {
	text-decoration: underline;
	color: #000;
	font-style: normal;
}

.resumeContent .section .date {
	/*width: 14ex;*/
	font-size: smaller;
	white-space: nowrap;
	padding-right: 0.5ex;
	text-align: center;
	border-right: solid 1px;
	border-radius: 10px;
}

.resumeContent .section .subsection {
	margin-left: 1.5ex;
}

.resumeContent .section .subsection:before {
	content: attr(header) ":";
	color: #000;
	padding-right: 1ex;
	margin-left: -1ex;
}

.resumeContent .publication {
	font-variant: small-caps;
	color: #000;
}

.resumeContent .publication:before {
	content: attr(authors);
	font-variant: normal;
	color: #333;
}

.resumeContent .publication:after {
	content: ". " attr(publisher) ".";
	font-variant: normal;
	color: #333;
}

cv-role {
	font-size: smaller;
}

cv-role::before {
	content: "[";
}

cv-role::after {
	content: "]";
}

.resumeContent .role {
	font-size: smaller;
}

.resumeContent .role::before {
	content: "[";
}

.resumeContent .role::after {
	content: "]";
}

input[type='checkbox'].collapse_toggle {
	display: none;
}

@media only screen and (max-width: 1100px), only screen and (max-device-width: 1100px) {
	body {
		padding-top: 0;
		padding-bottom: 0;
	}

	.resumeHeader {
		position: static;
		right: auto;
		left: auto;
		top: auto;
		bottom: auto;
		border-top: 1px solid #999;
	}

	.resumeContent {
		margin-right: 0;
		margin-left: 0;
		width: auto;
	}
}


@media screen {
	.resumeContent .section:before {
		-webkit-box-shadow: #ccc 0px 0px 10px;
		-moz-box-shadow: #ccc 0px 0px 10px;
		box-shadow: #ccc 0px 0px 10px;
		margin-left: -1ex;
		margin-right: -1ex;
		margin-bottom: 5px;
	}

	.resumeContent .section {
		margin: 0.5ex;
		padding: 0.5ex;
	}

	.resumeFooter, .resumeHeader {
		-webkit-box-shadow: #BBB 0px 0px 10px;
		-moz-box-shadow: #BBB 0px 0px 10px;
		box-shadow: #BBB 0px 0px 10px;
		border-right: 1px solid #999;
		border-left: 1px solid #999;
	}

	.resumeHeader {
		border-bottom: 1px solid #999;
	}

	.resumeFooter {
		border-top: 1px solid #999;
		text-align: center;
	}

	.resumeFooter .screen {
		text-align: justify;
		height: 1.1em;
		padding-left: 0.8ex;
	}

	.resumeFooter .screen:after {
		content: "";
		display: inline-block;
		width: 100%;
	}

	.resumeContent .section:before {
		border: 1px solid #aaa;
	}

	/* https://www.digitalocean.com/community/tutorials/css-collapsible */
	.collapse_label {
		margin-left: 1ex;
	}

	.collapse_label::before {
		content: "＋";
		float: left;
		font-size: smaller;
		font-weight: 900;
		border: #000 solid 1px;
		border-radius: 5px;
	}

	.collapse_label:hover::before {
		content: "[＋show projects]";
	}

	.collapse_toggle:checked + .collapse_label::before {
		content: "[－]";
	}

	cv-collapse {
		display: block;
		max-height: 0px;
		overflow: hidden;
		transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
	}

	.collapse_toggle:checked + .collapse_label + cv-collapse {
		display: block;
		max-height: 40em;
		transition: max-height 0.5s ease-in;
	}

	.print {
		display: none;
	}
}

@media print {
	.screen {
		display: none;
	}

	* {
		-webkit-print-color-adjust: exact;
	}

	.resumeHeader {
		position: static;
		top: 0;
	}

	body {
		padding-top: 0;
		padding-bottom: 0;
		background: none;
	}

	.resumeHeader {
		position: static;
		left: 0;
		right: 0;
	}

	/*.resumeHeader #pages:before {
		font-size: 16px;
		float: right;
		content: "Pg " counter(page) "/" counter(pages);
	}*/

	.resumeContent {
		margin-left: 0;
		width: auto;
	}

	.resumeContent .section {
		border: none;
		margin-top: 1ex;
	}

	.resumeContent .section:before {
		/*
		margin-left: auto;
		margin-right: auto;
		display: table;
		padding-left: 0.3ex;
		padding-right: 0.3ex;
		white-space: nowrap;
		*/
		border: 1px solid #aaa;
	}

	.resumeContent .section .date {
		font-size: smaller;
	}

	/*
	a[href]:after {
		content: " [" attr(href) "] ";
	}
	 */

	.resumeHeader .icons {
		display:none;
	}

	.footer {
		position: fixed;
		bottom: 0;
		margin-right: 0;
		padding-right: 0;
		display: none;
	}

	.left {
		left: 0;
	}

	.right {
		right: 0;
	}

	cv-role {
		display:none;
	}

}
