/* General */

body {
	min-width: 28em;
	max-width: 75em;
	margin: auto;
	font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica, Neue, sans-serif;
    color: rgb(34, 34, 34);
	background: rgb(240, 240, 240);
}

.clearfix {
	clear: both;
}

h1 {
	display: block;
	text-align: center;
	font-size: 1.75em;
	font-weight: bold;
	font-variant: small-caps;
}

h2 {
	display: block;
	font-size: 1.75em;
	font-weight: bold;
	padding: 0.25em 0 0;
}

a {
    text-decoration: none;
    color: rgb(51, 51, 153);
}

a:hover, a:focus {
    color: rgb(30, 30, 90);
    text-decoration: underline;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: rgb(240, 240, 240);
    border-bottom: 0.25em solid rgb(51, 51, 153);
}

header sname {
    float: left;
    width:40%;    
    display: block;
}

header sname a {
    text-decoration: none;
    color: rgb(34, 34, 34);
}

header sname a:hover {
    color: rgb(34, 34, 34);
}

header smenu {    
    float: right;
    width: 60%;
    margin: 0;
    padding: 0;
    color: rgb(51, 51, 153);
    text-transform: capitalize;
}

header smenu ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    overflow: hidden;
    font-weight: bold;
}

header smenu ul li {
    width: 33%;
    float: left;
    display: block;
}

header smenu ul li a {
    display: block;
    background: rgb(51, 51, 153);
    border-top: 1.6em solid rgb(51, 51, 153);
    border-bottom: 1.6em solid rgb(51, 51, 153);
    color: rgb(245, 245, 245);
    text-align: center;
    text-decoration: none;
}

header smenu ul li .active {
    background: rgb(30, 30, 90);
    border-top: 1.6em solid rgb(30, 30, 90);
    border-bottom: 1.6em solid rgb(30, 30, 90); 
    color: rgb(245, 245, 245);
}

header smenu ul li a:hover {
    background: rgb(85, 95, 130);
    border-top: 1.6em solid rgb(85, 95, 130);
    border-bottom: 1.6em solid rgb(85, 95, 130);
    color: rgb(245, 245, 245);
    text-decoration: none;
}

/* Sections */
section {
    width: 100%;
	position: relative;
}

section:after {
    content: "";
    display: table;
    clear: both;
}

/* Photo section */
sphoto, sintroduction {
    display: flex;
    justify-content: center;
    align-items: center;
}

sphoto {
    display: block;
    float: left;
    width: 25%;
    padding: 1.25em 0 1.25em 10%;
}

sphoto img {
    height: 80%;
    width: 80%;
    border-radius: 50%;
}

/* Introduction section */
sintroduction {
	display: block;
	float: right;
    width: 58%;
    padding: 0.25em 0;
    margin-left: 6%;
    margin-right: 1%;
    color: rgb(34, 34, 34);
}

sintroduction ul {
	margin: 0;
	padding: 0.25em 0.5em 1em;
	list-style: none;
	text-decoration: none;
}

sintroduction ul li {
	padding-bottom: 0.25em;
}

/* Papers section */
spapers {
	display: block;
	float: left;
	width: 93%;
	padding: 0.25em 0;
	margin-left: 5%;
	margin-right: 2%;
	background: rgb(240, 240, 240);
	color: rgb(34, 34, 34);
}

spapers ul {
	font-size: 1.2em;
	margin: 0;
	padding: 0 2%;
	list-style: square;
}

spapers ul li {
	font-size: 1em;
	padding: 0.5em 0;
}

spapers ul li p1 {
	width: 100%;
	font-size: 0.9em;
	padding: 0;
	text-align: left;
}

spapers ul li p1 a {
    color: rgb(230, 40, 55);
}

spapers ul li p1 a:hover {
    color: rgb(127, 0, 0);
}

/* Footer */
footer {
	width: 100%;
	padding: 2em 0;
    border-top: 0.25em solid rgb(51, 51, 153);
	font-size: 1em;
	text-align: center;
	color: rgb(30, 30, 30);
}

footer a {
	color: rgb(30, 30, 30);
	font-weight: bold;
}

/* Mobile styles */
@media screen and (max-width: 40em) {
	body {
	    max-width: 100%;
		font-size: 13px;
		margin-left: 0;
		margin-right: 0;
	}

	header sname {
        display: block;
        width: 50%;
    }

	header smenu {
        display: block;
        width: 50%;
    }
	
    header smenu ul li {
        display: block;
        width: 100%;
        text-align: center;
    }

	sphoto {
	    display: block;
	    float: left;
		width: 80%;
		padding: 1em 0 0 5%;
		margin: 0 20% 0 5%;
	}

	sphoto img {
		width: 70%;
		height: 70%;
	    border-radius: 50%;
		margin: 0 30% 0 0%;
	}
    
	sintroduction {
	    display: block;
	    float: right;
		width: 90%;
		padding: 0 0 0 10%;
	}

	sintroduction ul {
		padding-left: 0;
		font-size: 1.1em;
	}
	
	spapers {
		width: 95%;
		padding: 1em 0 0 5%;
	}
}
