h1,
h2,
h3 {
  margin: 10px 0; }

h1 {
  font-size: 2em; }

h2 {
  font-size: 1.4em; }

h3 {
  font-size: 1.2em; }

.navbar {
  overflow: hidden;
  width: 100%;
  background-color: black;
  position: fixed;
  /* Set the navbar to fixed position */
  top: 0;
  /* Position the navbar at the top of the page */
  height: 50px; }

.navbar .nav-inner {
  overflow: hidden;
  width: 800px;
  margin: 0 auto;
  position: relative; }

/* Links inside the navbar */
.navbar a {
  float: right;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none; }

/* Change background on mouse-over */
.navbar a:hover {
  background: #ddd;
  color: black; }

.narrow-height-background {
  background-color: black;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center; }

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 800px;
  margin: 0 auto;
  position: relative; }

.copyright {
  color: #f2f2f2; }

.legal {
  color: #f2f2f2; }

.footer-main a {
  float: right;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none; }

.footer-main .legal a:hover {
  background: #ddd;
  color: black; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  background-color: #f7f7f7; }

.main-content {
  width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0px;
  margin-bottom: 0px;
  margin-top: 50px;
  /* Add a top margin to avoid content overlay */ }

section {
  /* Ensure that when jumping to a section, the nav bar does not cover the title */
  scroll-margin-top: 60px; }

.container h2 {
  margin-top: 0px;
  margin-bottom: 0px; }

.card_block > :last-child {
  margin-bottom: 20px; }

.dashed-div {
  border-bottom: dashed 2px #CCCCCC;
  margin: 10px 0px 10px 0px; }

/* Text centered between two lines */
.line-text {
  display: grid;
  grid-template-columns: 2fr auto 2fr;
  /* Fixing the height */
  grid-template-rows: 50px;
  padding: 0px 0px 0px 0px;
  align-items: center;
  grid-gap: 2rem;
  margin: 0px 0px 0px 0px; }

.line-text:before,
.line-text:after {
  content: "";
  display: block;
  border-top: 3px solid #646464; }

.line-text-sub > :last-child {
  border-bottom: solid 3px #646464;
  display: inline-block;
  margin: 30 0 0 0;
  padding: 0 0 0 0; }

/* Block Text Style */
.text-block {
  text-align: justify; }

/* Individual cards*/
.individual_card {
  padding: 20px 0 0 0; }

.individual_card_inner {
  border-radius: 0px;
  background-color: white;
  padding: 20px 30px 25px 30px;
  box-shadow: 5px 5px 3px 1px rgba(128, 128, 128, 0.1); }

/* Button */
.button ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden; }

.button li {
  float: left;
  margin: 0px 3px 0px 3px; }

.button li a {
  display: inline-block;
  color: white;
  text-align: center;
  padding: 13px 16px 13px 16px;
  text-decoration: none;
  background-color: #333333;
  border-radius: 5px; }

.button li a:hover {
  background-color: #111111; }

/* About card elements */
.about_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 2; }

.about_grid__top-left {
  grid-column: 1;
  grid-row: 1;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  justify-content: center;
  align-items: center; }

.about_grid__top-right {
  grid-column: 2;
  grid-row: 1;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%; }

.about_grid__top-right img {
  display: block;
  border-radius: 10px;
  /* Apply rounded corners to the image */
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
  /* Mild shadow around the image */
  transition: transform 0.3s ease;
  /* Add a smooth transition on hover */ }

.about_grid__bottom {
  grid-column: 1 / span 2;
  grid-row: 2;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  padding: 15px 0px 0px 0px; }

/* Publication card elements */
.publication_container {
  display: grid;
  width: 100%;
  grid-template-columns: auto auto auto;
  column-gap: 20px;
  align-items: flex-start;
  /* Ensures that all elements in the second columns are not evenly spread but flushed to the top */ }

.publication__image {
  width: 100%;
  height: auto;
  grid-column: 1;
  grid-row: 1 / span 10; }

.publication__text_column {
  font-weight: bold;
  text-align: justify; }

.publication__tite {
  grid-column: 2 / span 3;
  display: flex;
  color: black; }

.publication__author {
  color: black;
  display: flex;
  grid-column: 2;
  grid-row: 2; }

.publication__author_detail {
  color: gray;
  display: flex;
  grid-column: 3;
  grid-row: 2; }

.publication__publisher {
  color: black;
  display: flex;
  grid-column: 2;
  grid-row: 3; }

.publication__publisher_detail {
  color: gray;
  display: flex;
  grid-column: 3;
  grid-row: 3; }

.publication__year {
  color: black;
  grid-column: 2;
  grid-row: 4; }

.publication__year_detail {
  color: gray;
  grid-column: 3;
  grid-row: 4; }

@media only screen and (max-width: 600px) {
  .main-content {
    width: 90%; }
  .navbar .nav-inner {
    width: 90%; }
  .about_grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto; }
  .about_grid__top-left {
    grid-column: 1;
    grid-row: 2; }
  .about_grid__top-right {
    grid-column: 1;
    grid-row: 1; }
  .about_grid__bottom {
    grid-column: 1;
    grid-row: 3;
    border-radius: 4px; }
  .about_grid__bottom .button li a {
    display: inline-block;
    color: black;
    text-align: center;
    padding: 0 10px;
    text-decoration: none;
    background-color: transparent;
    border-radius: 0; }
  .about_grid__bottom .button li a:hover {
    color: #111111; }
  .about_grid__bottom .button li a {
    font-size: 0;
    /* Hide the text content */ }
  .about_grid__bottom .button li a i {
    font-size: 25px; }
  /* Publication card elements */
  .publication_container {
    display: grid;
    width: 100%;
    grid-template-columns: 2;
    column-gap: 20px;
    align-items: flex-start;
    /* Ensures that all elements in the second columns are not evenly spread but flushed to the top */ }
  .publication__image {
    text-align: center;
    grid-column: 1 / span 2;
    grid-row: 2; }
  .publication__text_column {
    font-weight: bold;
    text-align: justify; }
  .publication__tite {
    grid-column: 1 / span 2;
    grid-row: 1; }
  .publication__author {
    grid-column: 1;
    grid-row: 3; }
  .publication__author_detail {
    grid-column: 2;
    grid-row: 3; }
  .publication__publisher {
    grid-column: 1;
    grid-row: 4; }
  .publication__publisher_detail {
    grid-column: 2;
    grid-row: 4; }
  .publication__year {
    grid-column: 1;
    grid-row: 5; }
  .publication__year_detail {
    grid-column: 2;
    grid-row: 5; } }
