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-position: inside;
  padding-left: 1.5em;
}

li {
  margin-bottom: 5px;
}

p {
  margin-bottom: 1em;
}

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-landing-page {
  width: 60em;
  margin: 0px auto;
  position: relative;
  min-height: 100vh;
}

#main {
  max-width: 50em;
  margin: 0px auto;
  position: relative;
  min-height: 100vh;
  padding: 0 1em;
}

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: 3em;
  font-weight: 500;
}

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

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

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

#intro-image {
  /* margin: 2em 0 0 2em; */
  /* margin: 3em 0 0 2em; */
  margin: 3em 0 0 2em;


  width: 14em;
  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.5em;
  font-weight: bold;
  line-height: 3em;
  margin-top: 2.5em;
  /* margin-bottom: 0.5em; */
  text-align: center;
  color: #150c21;

}

/* .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: 1em;
}

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

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

/**************************************************/
/* Gallery of 3 preview videos. */

.previews {
  display: grid;
  grid-template-columns: max-content max-content auto;
  gap: 10px;
  grid-auto-rows: minmax(100px, auto);
  height: 12.5em;
}

.previews video {
  border-radius: 5px;
}

.previews a:hover {
  border: none;
}

.preview1 {
  grid-column: 1;
  height: 150px
}

.preview2 {
  grid-column: 2;
  height: 150px
}

.preview3 {
  grid-column: 3;
  height: 150px
}

/**************************************************/
/* Buttons for showing more or less highlights. */

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

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

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

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

.thumbnail {
  /*  width: 21%;*/
  width: 18%;
  float: left;
  margin-right: 2%;
}

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

.thumbnail img {
  margin-top: 0.4em;
  border-radius: 5px;
  width: 100%;
  height: 100%;
}

.thumbnail video {
  margin-top: 0.4em;
  border-radius: 5px;
  width: 100%;
  height: 100%;
}

h3 {
  font-size: 1em;
  line-height: 1.5em;
}

h3 a {
  color: #150c21;
}

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

.publication {
  margin-bottom: 0.5em;
}

.publication p {
  font-size: 1em;
  line-height: 1.5em;
  color: #a0a8b0;
}

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

/**************************************************/
/* Project page styles */

.video-container {
  margin-bottom: 2em;
}

.video-container video {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.project-section {
  margin-bottom: 2em;
}

.project-section img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-top: 1em;
}

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

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

/* ========================================== */
/* ========= Mobile Responsive Styles ========= */
/* ========================================== */

@media (max-width: 768px) {

  /* 1. Make the main container fluid */
  #main-landing-page {
    width: 90%;
    /* Use percentage instead of a fixed 'em' value */
  }

  /* 2. Stack the intro text and image vertically */
  #intro {
    flex-direction: column;
    /* Change flex direction from row to column */
    padding-top: 2em;
  }

  #intro-text {
    width: 100%;
    /* Allow text to take full width */
  }

  #intro-image {
    width: 10em;
    /* Adjust image size for mobile */
    height: 10em;
    margin: 1em 0;
    /* Center the image with vertical margin */
  }

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

  /* 3. Make filter buttons a bit smaller and centered */
  .button {
    font-size: 1.2em;
  }

  #filters {
    text-align: center;
  }

  #filters .button {
    float: none;
    /* Remove float to allow text-align to work */
  }


  /* 4. Stack the 3-column "Highlights" grid */
  .previews {
    grid-template-columns: 1fr;
    /* Change from 3 columns to 1 column */
    height: auto;
    /* Let height be determined by content */
    gap: 15px;
  }

  .previews .preview1,
  .previews .preview2,
  .previews .preview3 {
    width: 100%;
    /* Make each video take the full width of the container */
    grid-column: 1;
    /* Ensure each item is in the first (and only) column */
  }

  /* 5. Stack project/research items vertically */
  .list-item .thumbnail {
    float: none;
    /* Remove the float */
    width: 80%;
    /* Make thumbnail wider */
    display: block;
    /* Make it a block element */
    margin: 0 auto 1em auto;
    /* Center the thumbnail and add space below */
  }

  .list-item .project-description {
    float: none;
    /* Remove the float */
    width: 100%;
    /* Make description take full width */
    text-align: center;
    /* Center the text for a cleaner look */
  }

  .list-item .project-description p {
    padding-bottom: 1em;
    /* Add some space at the bottom of each item */
  }

  /* 6. Adjust job listing text for better readability */
  .list-item.jobs {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .list-item.jobs .date {
    width: auto;
    margin-bottom: 0.25em;
  }
}