h1 {
  color: rgb(0, 137, 52); }
h4 {
  color: rgb(0, 137, 52);
  letter-spacing: .1rem; }
.social-link {
  cursor: pointer;
  margin-left: 5px;
  margin-right: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  text-decoration: none; }
.social-link:hover {
  color: rgb(0, 137, 52); }
.footer-social .fa {
  font-size: 1.25em; }
.container {
  max-width: 800px; }
.header {
  margin-top: 60px;
  margin-bottom: 60px; 
  text-align: left; }
.main-description h1 {
  margin-bottom: 0px; }
.main-description p {
  margin-bottom: 0px; }
.main-description .fa {
  font-size: 22px;
  margin-top: 5px; }
.paper {
  margin-bottom: 20px }
.paper .title {
  /*text-transform: uppercase; */}
.paper p {
  margin-bottom: 2px }
.paper-buttons {
  margin-top: 5px }
.paper .button {
  display: inline-block;
  height: 25px;
  padding: 0 25px;
  font-weight: 100;
  line-height: 25px;
  text-transform: none; }
.section-header {
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: .2rem;
  font-weight: 600; }
.docs-section {
  border-top: 1px solid #eee;
  padding: 4rem 0;
  margin-bottom: 0;}
.footer {
  text-align: center;
  color: rgba(0, 0, 0, 0.4);
  border-top: 1px solid #eee;
  padding: 15px 0 40px 0;
  margin-bottom: 0;}
.navbar {
  display: none; }
.title-subtitle h3 {
  margin-bottom: 0px; }
.title-subtitle h5 {
  color: rgba(0, 0, 0, 0.60); }
.image {
  text-align: center; }

.anchor{
  display: block;
  height: 6.5rem; /*same height as header*/
  margin-top: -6.5rem; /*same height as header*/
  visibility: hidden;
}

/*  ================ Project styling  ================ */
.project-back {
  font-size: 1.4rem;
  margin-bottom: 2rem;
}
.project-back a {
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
}
.project-back a:hover {
  color: rgb(0, 137, 52);
}
.project-container {
  margin-bottom: 30px;
}
.project-image-container {
  border: 1px solid rgba(0,0,0,0.2);
  padding: 3px;
  transition: 0.3s;
}
.project-image-container:hover {
  transition: 0.3s;
}
.project-image-container:hover img {
  opacity: 0.4;
}
.project-caption {
  padding: 3px;
}

/* Larger than phone */
@media (min-width: 550px) {
  .header {
    margin-top: 5rem; }
}

/* Larger than tablet */
@media (min-width: 750px) {
  /* Navbar */
  .navbar + .docs-section {
    border-top-width: 0; }
  .navbar,
  .navbar-spacer {
    display: block;
    width: 100%;
    height: 6.5rem;
    background: #fff;
    z-index: 99;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee; }
  .navbar-spacer {
    display: none; }
  .navbar > .container {
    width: 100%; }
  .navbar-list {
    list-style: none;
    margin-bottom: 0; }
  .navbar-item {
    position: relative;
    float: left;
    margin-bottom: 0; }
  .navbar-link {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2rem;
    margin-right: 32px;
    text-decoration: none;
    line-height: 6.5rem;
    color: #222; }
  .navbar-link.active {
    color: #49CFA5; }
  .has-docked-nav .navbar {
    position: fixed;
    top: 0;
    left: 0; }
  .has-docked-nav .navbar-spacer {
    display: block; }
  /* Re-overiding the width 100% declaration to match size of % based container */
  .has-docked-nav .navbar > .container {
    width: 80%; }

  /* Popover */
  .popover.open {
    display: block;
  }
  .popover {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    top: 92%;
    left: -50%;
    -webkit-filter: drop-shadow(0 0 6px rgba(0,0,0,.1));
       -moz-filter: drop-shadow(0 0 6px rgba(0,0,0,.1));
            filter: drop-shadow(0 0 6px rgba(0,0,0,.1)); }
  .popover-item:first-child .popover-link:after, 
  .popover-item:first-child .popover-link:before {
    bottom: 100%;
    left: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none; }
  .popover-item:first-child .popover-link:after {
    border-color: rgba(255, 255, 255, 0);
    border-bottom-color: #fff;
    border-width: 10px;
    margin-left: -10px; }
  .popover-item:first-child .popover-link:before {
    border-color: rgba(238, 238, 238, 0);
    border-bottom-color: #eee;
    border-width: 11px;
    margin-left: -11px; }
  .popover-list {
    padding: 0;
    margin: 0;
    list-style: none; }
  .popover-item {
    padding: 0;
    margin: 0; }
  .popover-link {
    position: relative;
    color: #222;
    display: block;
    padding: 8px 20px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.0rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: .1rem; }
  .popover-item:first-child .popover-link {
    border-radius: 4px 4px 0 0; }
  .popover-item:last-child .popover-link {
    border-radius: 0 0 4px 4px;
    border-bottom-width: 0; }
  .popover-link:hover {
    color: #fff;
    background: #49CFA5; }
  .popover-link:hover,
  .popover-item:first-child .popover-link:hover:after {
    border-bottom-color: #49CFA5; }
}

/* ======== Image Styling ========= */
.image-container {
  display: flex;
  flex-wrap: wrap;
}

.image-container img {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  border: 2px solid #fff; /* Add a 2px black border to each image */
  box-sizing: border-box; /* Include the border in the total width of the image */
}

@media (max-width: 767px) {
  .image-container img {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    border: 2px solid #fff; /* Add a 2px black border to each image */
    box-sizing: border-box; /* Include the border in the total width of the image */
  }
}

/* ======== Modern Scrollbar ======== */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background-color: #f3f3f3;
  border-radius: 5px; /* Rounded corners */
}

::-webkit-scrollbar-thumb {
  background-color: #c5c5c5;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #bbb;
}

/* ======== Open-Source Projects Styling ======== */
.opensource-project {
  background: #fff;
  padding: 20px 20px 20px 0;
  margin-bottom: 20px;
}

.project-content {
  display: flex;
  align-items: flex-start;
  gap: 25px;
}

.project-logo {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
}

.project-logo-img {
  width: 175px;
  height: 175px;
  object-fit: cover;
  border: 1.5px solid #e1e4e8;
  border-radius: 8px;
}

.project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  margin: 0 0 10px 0;
  font-size: 1.6rem;
  font-weight: normal;
  color: #24292e;
}

.project-link {
  color: #0B9A6D;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: #49CFA5;
  text-decoration: underline;
}

.github-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 0px;
}

.stat-badge {
  display: inline-block;
  height: 38px;
  padding: 0 6px;
  color: #555;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: .1rem;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border-radius: 4px;
  border: 1px solid #bbb;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.stat-badge:hover {
  color: #333;
  border-color: #888;
  outline: 0;
}

.stat-badge i {
  margin-right: 6px;
  color: #555;
  font-size: 11px;
}

.stat-label {
  margin-right: 4px;
  font-weight: 500;
}

.stat-value {
  font-weight: 600;
  color: #24292e;
}

.project-description {
  margin-top: 15px;
  line-height: 1.6;
}

.project-description p {
  margin-bottom: 2px;
  color: #24292e;
}

.project-description strong {
  color: #24292e;
  font-weight: 600;
}

.project-description em {
  color: #656d76;
  font-style: italic;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  /* Left align all text content */
  .header,
  .main-description,
  .docs-section,
  .paper,
  .project-content,
  .project-description,
  .title-subtitle,
  .section-header {
    text-align: left !important;
  }
  
  /* Left align project content */
  .project-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
  }
  
  .project-logo-img {
    width: 160px;
    height: 160px;
  }
  
  .github-stats {
    justify-content: flex-start;
  }
  
  /* Ensure buttons and links are left aligned */
  .paper-buttons {
    text-align: left;
  }
  
  /* Left align navigation if visible */
  .navbar-list {
    text-align: left;
  }
  
  /* Left align footer content */
  .footer {
    text-align: left;
  }
}
