/* CSS Reset: http://meyerweb.com/eric/tools/css/reset */

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;
}

/**************************************************/

#body{
  font-family: 'Asap', roboto, sans-serif;
  font-size: 1em;
  line-height: 1.5em;
  color: #150c21;
}

#main {
  width: 54em;
  margin: 0px auto;
  position: relative;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: rgb(20, 110, 190);
}

a:hover {
  text-decoration: none;
  border-bottom: 1px solid rgb(20, 110, 190);
}

i {
  font-style: italic;
}

b {
  font-weight: 700;
}

h1 {
  font-size: 2.4em;
  line-height: 2.4em;
  font-weight: 500;
}

/**************************************************/
/* Profile image and description. */

#intro {
  padding-top: 6em;
  display: flex;
}

#intro-text {
  width: 40em;
  float: left;
}

#intro-image {
  margin: 3em 0 0 2em;
  width: 12em;
  height: 12em;
  float: left;
  overflow: hidden;
  border-radius: 1em;
}

#intro-image img {
  width: 12em;
}

/**************************************************/
/* Section buttons. */

#menu {
  display: flex;
}

.menu-item {
  float: left;
  margin-right: 2em;
}

h2 {
  font-size: 1.6em;
  line-height: 2.4em;
  margin-top: 0.5em;
  color: #a0a8b0;
}

.selected h2 {
  color: #150c21;
}

.button {
  display: inline-block;
  cursor: pointer;
  border: none;
  background: none;
  color: #a0a8b0;
  font-size: 1.6em;
  line-height: 2.4em;
  margin-top: 0.5em;
  margin-right: 1em;
  float: left;
  padding: 0;
}

.button:hover {
  color: #150c21;
}

.button:active,
.button.is-checked {
  color: #150c21;
}

.button-group:after {
  content: '';
  display: block;
  clear: both;
}

/**************************************************/
/* Isotope grid list of items. */

.grid {
  padding-bottom: 6em;
}

/* clear fix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

.description {
  margin-bottom: 0.3em;
  padding-bottom: 0.3em;
}

.list-item {
  width: 100%;
  line-height: 1em;
  margin-top: 1em;
}

/* Isotope show/hide animation */

.list-item {
  transition: none;
  will-change: auto;
}

.isotope-hidden {
  opacity: 1;
  transform: none;
  pointer-events: none;
  display: none;
}

.list-item {
  overflow: hidden;
}

.list-item .thumbnail,
.list-item .research-description {
  transition: none;
  will-change: auto;
}

.isotope-hidden .thumbnail,
.isotope-hidden .research-description {
  transform: none;
  opacity: 1;
}

.list-item p.date {
  display: inline-block;
  width: 3em;
  color: #a0a8b0;
}

/**************************************************/
/* Toggle buttons for showing more or less. */

.toggle-button {
  margin-top: 1em;
}

.toggle-button a {
  color: #a0a8b0;
}

.toggle-button a:hover {
  color: rgb(20, 110, 190);
}

/**************************************************/
/* Publication details (thumbnail media, title, and description). */

.thumbnail {
  width: 18%;
  float: left;
  margin-right: 2%;
  height: 7.3em;
  overflow: auto;
}

.thumbnail:hover {
  border-bottom: none;
}

.thumbnail img,
.thumbnail video {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

h3 a {
  color: #150c21;
}

h3 a:hover {
  color: rgb(20, 110, 190);
}

.research-description {
  width: 80%;
  float: left;
}

.research-description h3 a{
  font-size: 1.1em;
  font-weight: 500;
  line-height: 1.2;
  color: rgb(49, 144, 232);
}

.research-description h3 a:hover{
  color: rgb(161, 35, 183);
  border-bottom: none;
}

.research-description p {
  font-size: 0.95em;
  font-weight: 300;
  color: rgb(74, 84, 93);
  line-height: 1.4em;
  letter-spacing: 0.2px; 
}
.research-description p a{
  font-size: 0.95em;
  font-weight: 500;
  color: rgb(88, 101, 112);
  letter-spacing: 0.2px;
}

/**************************************************/
/* Project cards. */

.project-description {
  width: 80%;
  float: left;
}

.project-description h3 a {
  font-size: 1.1em;
  font-weight: 500;
  line-height: 1.2;
  color: rgb(49, 144, 232);
}

.project-description h3 a:hover {
  color: rgb(161, 35, 183);
  border-bottom: none;
}

.project-description p {
  font-size: 0.95em;
  font-weight: 300;
  color: rgb(74, 84, 93);
  line-height: 1.4em;
  letter-spacing: 0.2px;
  margin-top: 0.2em;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.3em !important;
}

.project-date {
  font-size: 0.85em !important;
  color: #a0a8b0 !important;
}

.project-links {
  margin-top: 0.3em !important;
}

.project-links a {
  font-size: 0.95em;
  font-weight: 500;
  color: rgb(88, 101, 112);
}

/**************************************************/
/* Category tags / badges. */

.tag {
  display: inline-block;
  padding: 0.15em 0.55em;
  border-radius: 4px;
  font-size: 0.78em !important;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.6;
  text-transform: uppercase;
}

.tag-course {
  background: #e3f2fd;
  color: #1565c0;
}

.tag-participation {
  background: #f3e5f5;
  color: #7b1fa2;
}

.tag-github {
  background: #e8f5e9;
  color: #2e7d32;
}

/**************************************************/
/* Project sub-filter buttons. */

.sub-button-group {
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}

.sub-button {
  display: inline-block;
  cursor: pointer;
  border: 1.5px solid #d0d5da;
  background: none;
  color: #a0a8b0;
  font-size: 0.95em;
  line-height: 1.8em;
  padding: 0 0.8em;
  border-radius: 20px;
  transition: all 0.15s;
  font-family: inherit;
}

.sub-button:hover {
  color: #150c21;
  border-color: #150c21;
}

.sub-button.is-sub-checked {
  color: #fff;
  background: #150c21;
  border-color: #150c21;
}

/**************************************************/
/* Subtle footer at the bottom of the page. */

#footer {
  color: #a0a8b0;
  position: absolute;
  bottom: 0;
  line-height: 2.5em;
}
