
body {
	background: var(--blackish);
	font-family: "Roboto", serif;
	color: var(--whitish);
	margin: 0;
	padding: 0;
	width: 100%;
	line-height: 1.5;
	font-size: 18px;
}

body::-webkit-scrollbar {
	background-color: var(--darker-gray);
}

body::-webkit-scrollbar-thumb {
	background-color: var(--gray);
}

body::-webkit-scrollbar-thumb:hover {
	background-color: var(--lightish-gray);
}

html {
	overflow-y: scroll;
}

h3 {
	font-weight: normal;
	font-size: xx-large;
	margin-bottom: 16px;
}

h4 {
	font-size: x-large;
	font-weight: normal;
	margin-bottom: 8px;
	margin-top: 8px;
}

p {
	margin-top: 0;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:visited {
	color: var(--accent-shade);
}

a:hover {
	color: var(--accent-tint);
	text-decoration: underline 3px;
}

small {
	color: var(--lighter-gray);
}

ul {
	padding: 0;
}

li {
	list-style-type: none;
	margin-bottom: 10px;
}

/* ------------------------------------
    HEADER
------------------------------------ */
#header {
	background: var(--darker-gray);
	padding-left: 10px;
	padding-top: 10px;
	text-align: center;
	position: sticky;
	top: 0;
	z-index: 999;
}

.tablinks {
	background: var(--darker-gray);
	color: var(--light-gray);
	border: none;
	border-radius: 10px 10px 0 0;
	cursor: pointer;
	padding-bottom: 2px;
	margin-right: 15px;
	margin-bottom: 5px;
	font-size: 1.5em;
}

#me {
	border-bottom: #0000 solid 6px;
	padding-bottom: 0;
	margin-bottom: 5px;
	font-size: 2em;
}

#me:hover, .tablinks:hover {
	border-bottom: var(--gray) solid 6px;
}

.tablinks.active {
	color: var(--whitish);
	border-bottom: none;
}

#me.active {
	color: var(--accent);
	border-bottom: #0000 solid 6px;
}

.cv {
	display: none;
}


/* ------------------------------------
    TAB CONTENTS
------------------------------------ */
.tabcontent {
	display: none;
	animation: fadeEffect 0.8s;
	padding: 3%;
	width: 60%;
	margin: auto;
}

@keyframes fadeEffect {
	from {opacity: 0;}
	to {opacity: 1;}
}

@media only screen and (max-width: 768px) {
	.tabcontent {
		width: 95%;
	}
}

/* ------------------------------------
    ME
------------------------------------ */
#tab_me div:first-child {
	/* the side div */
	flex: 0 0 30%;
	line-height: 2;
}

#tab_me div:first-child p {
	line-height: 1.3;
}

#tab_me div:nth-child(2) {
	/* the content div */
	flex: 1;
	margin-left: 1em;
}

#tab_me div:nth-child(2) h3:first-child {
	margin-top: 0;
}

#tab_me > div > div {
	display: inline-block;
	margin-right: 1em;
}

#tab_me ul {
	display: inline-block;
	vertical-align: top;
}

#tab_me ul:last-child {
	margin-top: 0;
	line-height: 1.5;
}

#tab_me h4 {
	margin-bottom: 0;
}

#tab_me > div > div > img {
	background-color: var(--darker-gray);
	border-radius: 5px;
	padding: 20px;
	padding-bottom: 0;
}

#tab_me div:first-child img {
	vertical-align: middle;
	margin-left: 3ex;
}

#tab_me div:first-child img:nth-child(1) {
	vertical-align: middle;
	margin-left: 0;
}

#tab_me div:first-child li > img {
	margin-right: 5px;
}


@media only screen and (max-width: 768px) {
	/* For mobile phones: */
	#tab_me {
		flex-direction: column;
	}

	#tab_me div:first-child {
		flex-direction: row;
	}
}
  

/* ------------------------------------
    PAPERS
------------------------------------ */
#tab_papers {
	flex-direction: column;
}


/* ------------------------------------
    Talks
------------------------------------ */
#tab_talks {
	flex-direction: column;
}



/* ------------------------------------
    Teaching
------------------------------------ */
#tab_teaching {
	flex-direction: column;
	width: 80%;
}

#tab_teaching > div {
	display: flex;
	flex-direction: column;
	margin: -4ex;
	margin-top: 0;
}

#tab_teaching h4 {
	display: inline-block;
	margin: 2ex 0 0 0;
}

#tab_teaching > div > div {
	margin: 2ex 4ex 0 0;
	display: block;
	flex-direction: row;
}

#tab_teaching > div > div > div {
	display: inline-block;
    vertical-align: top;
    margin: 0 1ex 0 0;
	width: 25%;
}

#tab_teaching > div > div > div:hover {
	transform: scale(1.05);
	position: relative;
}

#tab_teaching > div > div > a {
	display: block;
}

.language_color {
	position: relative;
	top: 1px;
	display: inline-block;
	width: 12px;
	height: 12px;
	border: 1px solid rgb(240 246 252 / 20%);
	border-radius: 50%;
	margin-right: 5px;
}

@media only screen and (max-width: 768px) {
	#tab_teaching > div > div > div {
		width: 100%;
	}
}