@font-face {
	font-family: "Charter";
	src: url(/src/fonts/charter/otf/Charter\ Regular.otf);
}

@font-face {
	font-family: "Charter Italic";
	src: url(/src/fonts/charter/otf/Charter\ Italic.otf);
	font-style: italic;
}

@font-face {
	font-family: "Charter Bold";
	src: url(/src/fonts/charter/otf/Charter\ Bold.otf);
	font-weight: bold;
}

@font-face {
	font-family: "Charter Bold Italic";
	src: url(/src/fonts/charter/otf/Charter\ Bold\ Italic.otf);
	font-style: italic;
	font-weight: bold;
}

:root {
	--bg1-color: #c2ecff;
	--bg2-color: #f1fcff;
	--bg3-color: #ffa8fb;
	--button-bg-flat: var(--bg2-color);
	--button-bg-hovr: #8fffd8;
	--text-hl1-colour: #008cff;
	--text-hl2-colour: #8a30ff;
	--text-hl3-colour: #0cae00;
	--text-colour: #0c0d0e;
	--text-link-colour: #0044ab;
	/* --text-font: serif;
	--text-italic-font: serif;
	--text-bold-font: serif; */
	--text-font: "Charter", serif;
	--text-italic-font: "Charter Italic", serif;
	--text-bold-font: "Charter Bold", serif;
	--border-colour: #000000;
}


/* BODY */
body{
	background-color: var(--bg1-color);
	font-family: var(--text-font);
	color: var(--text-colour);
	line-height: 1.5;
	
	background-size: 100%;
	/* background-image: url(src/images/ayylmao.gif); */
	background-repeat:repeat;
	background-size: 50px;
	background-blend-mode: darken;
}

/* * STANDARD TAGS * */
p {
	word-wrap: break-word;
	margin: 0;
	padding-bottom: 10px;
}

/*links*/
a {
	text-decoration: none;
	color: var(--text-link-colour);
}

a:hover{
	color: var(--text-hl1-colour);
}

/*headers*/
h1 {
	text-justify: none;
	color: var(--text-hl1-colour);
	padding: 0px;
	margin: 0px;
	padding-top: 10px;
}

h2 {
	text-justify: none;
	color: var(--text-hl2-colour);
	margin-bottom:5px;
	margin: 0px;
	padding-top: 10px;
}

h3 {
	text-justify: none;
	color: var(--text-hl3-colour);
	margin: 0px;
	padding-top: 5px;
}


/* * CLASS TAGS * */
.link{
	display:inline;
	padding: 1%;
	padding-left: 3%;
	padding-right: 3%;
	/* background-color: var(--button-bg-flat); */
}

.link:hover{
	background-color: var(--button-bg-hovr);
}

.image {
		display: inline;
		float: right;
		max-height: 400px;
		max-width: 300px;
		padding: 10px;
	}

.image img{
	width:60%;
	position:relative;
	left:20%;
	padding-top: 15px;
	padding-bottom: 15px;
}

.small_image img{
	width:20%;
	position:relative;
	left:40%;
}

.medium_image img{
	width:30%;
	position:relative;
	left:35%;
}

.timeline tr {
	vertical-align: top;
}

.timeline td {
	padding: 10px;
	line-height: 1.5;
}

.timeline .date{
	font-style: italic;
}

.box {
	position:relative;
	/*text-align: center;*/
	display: block;
	/*background-color: rgba(225, 225, 225, 0.5);*/
	width: 90%;
	padding:5px;
	overflow-wrap: break-word;
	vertical-align:top;
}

.box a {
	font-style: italic;
	display: block;
	text-align: center;
}

.box b {
	display: block;
	font-size: 10px;
	margin-right: 10px;

	border-top: var(--text-colour) 1px solid;
}

.box p {
	display: block;
	text-align: right;
	margin:0;
}

.post {
	margin-top: 20px;
	padding-right: 10px;
	border-top: 1px solid var(--border-colour);
	border-right: 1px var(--border-colour) solid;
}

.abstract {
	padding-top: 5px;
	padding-bottom: 20px;
}

.hoverreq {
	font-size: 10px;
	visibility: hidden;
}

.textcontrast {
	color:var(--text-hl2-colour);
}

.textalert {
	color:var(--text-hl3-colour);
}


/* * ID TAGS * */
#content{
	position: absolute;
	top: 0;
	left:0;

	text-align: center;
	
	margin: 0px;
	margin-bottom:50px;
	margin-left: 0;
	padding: 3%;
	
	min-height: 100%;
	min-width: 800;
	width: 50%;
	
	background-color: var(--bg2-color);
	border-radius: 2px;
}

#name, #links{
	padding-bottom: 10px;
	padding-top:10px;
	text-align: left;
	align-content: center;
	border-radius: 2px;
}

#name {
	font-size: 24px;
	padding-left: 1%;
}

#tab{
    text-decoration: none;
}

#topbar{
	vertical-align: bottom;
	/* max-width: 98%; */
	min-width: 150px;
	min-height: 100px;
	font-weight: bold;
	margin: 0px;
	margin-bottom: 20px;


}

#stuff{
	/*position:relative;*/
	min-height: 200px;
	text-align:justify;
	display: block;
	padding-bottom: 50px;
	/* border-top:#eee 1px solid; */
	min-width: 800px;
	width: 96%;
	/* margin-top: -20px; */
	font-size: 16px;
	margin: 0px;
}

#foot {
	position: fixed;
	bottom:0px;
	left: 0;
	width: 100%;
	text-align: center;
	background-color: var(--bg3-color);
	padding: 18px;
	margin: 0;
}

#CV iframe{
	width: 100%;
	min-height: 600px;
}

#boxes{
	width:100%;
	height:100%;
	padding:0;
	/*text-align: center;*/
}


/* * SCREEN ADJUSTS * */
@media only screen and (max-width: 860px){
	
	#san-jo{
		visibility: hidden;
		width: 0px;
	}

	.image {
		display: block;
		float: none;
		width: 96%;
		max-width: none;
		max-height: none;
		padding: 10px;
	}

	.image img {
		width: 60%;
	}

	#content{
		max-width: 800px;
		min-width: 0;
		width: 95%;
	}

	#stuff {
		min-width: 0;
		width: 100%;
	}

	body {
		background: var(--bg1-color);
	}
}

@media only screen and (max-width: 500px){
/* 	
	#selfie {
		max-height:200px;
		max-width: 100px;
		display: block;
	} */


	#topbar{
		max-width: 90%;
	}

	#content{
		min-width: 0px;
		max-width: 500px;
		width: 96%;
		left: 0;
		top: 0;
		padding: 10px;
	}

	#stuff{
		/* text-align:left; */
		font-size: 18px;
		max-width: 500px;
		min-width: 0px;
		width: 96%;
		margin-left: 1%;
	}

	.links {
		padding-bottom: 20px;
	}

	.quicklink {
		display: block;
		
	}

	#tab{
		max-width: 100%;
	}

	#CV iframe{
		width: 100%;
	}
}

/* theoremstyles */
.theorem {
	border: solid 1px var(--text-hl1-colour);
	width: 90%;
	margin-left: auto;
	margin-right: auto;
	padding: 20px;
	margin-top: 10px;
	margin-bottom: 10px;
}

.example {
	padding: 2%;
}