/* Starter code */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
/* b, */
/* u, */
/* i, */
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

/* ol,
ul {
    list-style: none;
} */

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}





/* Styling of personal website */

html {
    font-family: "Open Sans", sans-serif;
    box-sizing: border-box;
}

body {
    /* background-image: url("https://images.unsplash.com/photo-1518655048521-f130df041f66?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1770&q=80"); */
    /* background-image: url("https://images.unsplash.com/photo-1527176930608-09cb256ab504?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1774&q=80"); */
    /* background-image: url("https://images.unsplash.com/photo-1490093158370-1a6be674437b?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1428&q=80"); */
    background-size: cover;
    /* background-repeat: no-repeat; */
    background-position: 30% 40%;
    /* max-width: 100%; */

}

.cv-body,
.publications-body,
.projects-body,
.news-body {
    background-image: none;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}



.navbar {
    background-color: #282724;
    /* padding: 20px 0; */
    display: flex;
    flex-direction: row;
    /* width: 300px; */
    justify-content: flex-end;

}

.navbar .nav-button .nav-image {
    width: 55px;
    margin: 5px 0 0 0;
    padding: 0;
    border-radius: 5px;
    /* transform: rotate(-5deg); */
}

.navbar .nav-button a {
    text-decoration: none;
    font-weight: 800;
    font-family: 'Roboto', sans-serif;
    font-size: 1.2em;
    color: #e6edec;
    /* display: block;
    width: 100%; */


}

.navbar .nav-button {
    padding: 20px 40px;

}

/* no padding for nav profile image */
.navbar .nav-button.nav-image-div {
    margin-left: 10px;
    padding: 0px;
    margin-right: auto;
    display: flex;
    flex-direction: row;
}

/* fix margin of Achintha Avin Ihalage */
.navbar .nav-name {
    padding: 20px 20px;
}

/* .navbar .nav-button.myname {
    margin-right: auto;
} */


.navbar .nav-button:last-child {
    margin-right: 30px;
}

.navbar .nav-button:hover {
    /* background-color: rgb(234, 172, 25); */
    text-decoration: underline 4px;
    cursor: pointer;

}


.main-container {
    display: flex;
    justify-content: center;
}

.aside-panel {
    max-width: 900px;
    /* min-height: 100px; */
    /* background-color: white; */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 100px;
    padding-bottom: 50px;
    margin: 20px;
    border-radius: 20px;
}

.profile-pic {
    margin: auto;
    margin-top: 20px;
    /* margin-bottom: 20px; */
    width: 300px;
    border-radius: 50%;
    transform: rotate(3deg);
}


.profile-pic-caption {
    margin: auto;
    margin-top: 10px;
    text-align: center;
    color: rgb(47, 47, 47);
    font-weight: 600;
    font-size: 1.8em;
    /* letter-spacing: -1px; */
    font-family: 'Courier New';
    /* font-family: 'Courier New', Courier, monospace; */
    /* max-width: 220px; */

}


/* sticky icon bar */
/* Fixed/sticky icon bar (vertically aligned 50% from the top of the screen) */
.social-media {
    position: fixed;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    /* background-color: rgb(236, 231, 231); */
    /* border: 1px solid rgb(233, 231, 231); */
    border-radius: 10px;
}


/* Style the icon bar links */
.social-media a {
    display: block;
    text-align: center;
    padding: 10px;
    /* transition: all 0.3s ease; */
    color: white;
    background-color: rgb(236, 231, 231);
    font-size: 20px;
    border: 1px solid rgb(196, 195, 195);
    border-radius: 10px;
    transition: all 0.75s ease;
    box-shadow: 2px 0 1px rgb(160, 159, 159);
}

/* Style the social media icons with color, if you want */
.social-media a:hover {
    background-color: rgb(211, 208, 208);
    color: white;
    box-shadow: 0 0.5em 0.5em -0.4em rgb(160, 159, 159);
    transform: translateY(-2px);
}


.social-media a .social-icon {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}


.social-media a .social-icon.rg {
    width: 41px;
    height: 41px;
}

.social-media a .social-icon.so {
    border-radius: 20%;
    width: 41px;
    height: 41px;
}


.aside-panel .self-intro {
    font-family: "Roboto" sans-serif;
    margin: 20px;
    color: #3d3c3b;
    font-size: 1.5em;
    line-height: 1.5;
    letter-spacing: 0.5px;
    /* padding-top: 20px;
    border-top: 2px solid rgb(160, 159, 159); */
}


.nav-button {
    list-style: none;
    display: inline;
}

/* Placeholder to fix footer when page is not filled */
article {
    flex: 1;
}


.footer {
    /* position: fixed; */
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: rgb(195, 190, 190);
    color: white;
    text-align: left;
    padding: 20px 20px;

}

.footer a {
    text-decoration: none;
    color: rgb(136, 134, 134);
    margin-left: 50px;
}


/* to reduce text overlapping with background image */

@media (max-width:1200px) and (min-width:750px) {
    .aside-panel {
        max-width: 700px;
    }
}

/* large screens */
@media (min-width:2000px) {
    .aside-panel {
        max-width: 1000px;
    }
}







/* CV arrangement */

.CV {
    max-width: 900px;
    /* width: 800px;
    height: 2100%; */
    /* min-height: 100px; */
    /* background-color: white; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* padding-left: 100px; */
    padding-bottom: 20px;
    margin: 20px;
    margin-left: 100px;
    border-radius: 20px;
}



/* Publications | Projects | News  */
.main-publications .main-projects .main-news {
    display: flex;
    flex-direction: column;
}

.main-publications .journals,
.main-publications .conferences,
.main-publications .tech-articles,
.main-projects .finder,
.main-projects .analogmat,
.main-news .news {
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
    margin: 20px;
    margin-left: 200px;
    border-radius: 20px;
}

.main-publications .journals,
.main-projects .finder,
.main-news .finder-matbench {
    margin-top: 50px;
}


/* Publication type headings */
.h2-publications {
    font-size: 1.8em;
    font-weight: 600;
    font-family: "Roboto" sans-serif;
    margin: 20px 0px 30px 0px;
    letter-spacing: 0.5px;
    /* color: #3d3c3b; */
}

/* Publication list styling */
.main-publications ul {
    list-style-type: square;
    font-size: 1.5em;
    line-height: 1.2;
    color: #3d3c3b;
}

.main-publications li {
    margin: 10px 0px 25px 0px;
}

/* Projects specifics */

.main-projects .finder,
.main-projects .analogmat,
.main-projects .oddc {
    display: flex;
    justify-content: center;
    border: 2px solid black;
    /* background-color: rgb(246, 234, 219); */
    padding: 20px;

}

.h2-projects {
    text-align: center;
    font-size: 1.5em;
    /* font-weight: 600; */
    font-family: "Roboto" sans-serif;
    margin: 20px 0px 20px 0px;
    letter-spacing: 0.5px;

}

.figure-finder #img-finder-architecture,
.figure-analogmat #img-analogmat-architecture {
    width: 60%;
    display: block;
    /*setting left and right margins to auto to center img*/
    margin: 10px auto 20px auto;
}

.main-projects .project-description {
    font-size: 1.5em;
    font-family: "Roboto" sans-serif;
    line-height: 1.2;
    letter-spacing: 0.5px;

}


#slideshow {
    margin: 60px auto;
    position: relative;
    width: 500px;
    height: 300px;
    padding: 10px;
    /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.4); */
}

#slideshow>div {
    position: absolute;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    /* top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px; */
}

#slideshow img {
    border-radius: 10px;
}

.main-news {
    margin-top: 50px;
}

/* News tab specifics */
.main-news .date {
    color: #727170;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
}

.main-news ul {
    list-style-type: square;
    font-size: 1.5em;
    font-family: "Roboto" sans-serif;
    line-height: 1.2;
    letter-spacing: 0.5px;
}