body {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: lighter;
  background-color: rgb(0, 0, 0);
  margin: 0%;
  padding: 40px 80px 0px 60px;
}
h1 {
  color: rgb(185, 255, 216);
  font-size: 18pt;
  margin-block-start: 0%;
  margin: 0%;
  text-transform: uppercase;
}

h2 {
  color: white;
  font-size: 12pt;
  font-weight: lighter;
  margin-inline-end: 0%;
  margin: 0%;
}
/* project-title */
h3 {
  color: rgb(255, 255, 255);
  font-size: 18pt;
  font-weight: bold;
  margin: 0%;
  text-transform: uppercase;
  line-height: 1.1;
}

h4 {
  color: white;
  font-size: 12pt;
  margin: 0%;
  font-weight: lighter;
  line-height: 1.5;
}

h5 {
  color: rgb(185, 255, 216);
  font-size: 12pt;
  margin: 0%;
  font-weight: lighter;
  line-height: 1.5;
}

h6 {
  font-size: 18pt;
  margin-top: 5px;
  margin-bottom: 10px;
}
h7 {
  font-size: 12pt;
  line-height: 1.5;
}
.alt {
  font-size: 12pt;
  line-height: 1.5;
  text-align: right;
  color: rgb(185, 255, 216);
  font-style: italic;
}

a:link {
  font-weight: lighter;
  text-decoration: none;
}

a:visited {
  font-weight: lighter;
  text-decoration: none;
}
.name-link:hover{
  color:rgb(168, 168, 168);
  cursor:pointer;
}
#first-row {
  position: fixed;
  padding-top: 30px;
  padding-bottom: 20px;
  top: 0px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  z-index: 1000;
}

#description {
  width: 450px;
  padding-right: 140px;
  text-align: end;
  line-height: 1.5;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#new-media {
  color: rgb(185, 255, 216);
}

#white {
  color: rgb(255, 255, 255);
}

.short-description {
  padding-top: 20px;
  text-align: left;
}

.short-description {
  width: 95%;
}
a:visited {
  color: white;
  font-weight: lighter;
  text-decoration: none;
}
.link:visited {
  color: white;
}

#second-row {
  padding-top: 100px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  height: 580px;
}

p {
  /* padding-bottom: 40px; */
  animation: animate 4s linear infinite;
  color: white;
  text-align: center;
}

a:link {
  color: white;
  font-weight: lighter;
  text-decoration: none;
}

.spacer {
  padding: 30px;
  height: 20px;
}

.preview-detail {
  margin-top: 30px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: row;
  justify-content: space-between ;
}

.project-info-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30%;
  padding-right: 2%;
}
.project-info-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30%;
  padding-left: 2%;
}

.project-image-link {
  display: inline-block; /* Ensure the link respects dimensions */
  overflow: hidden; /* Hide overflowing content */
  position: relative; /* Establish positioning context */
  width:65%;
  height: 100%; /* Adjust as needed */
}
.image-2 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
}
.image-2 img {
  width: 49.5%;
  margin-bottom: 10px;
}

.image-3 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
}

.image-3 img {
  width: 32.33%;
  margin-bottom: 10px;
}

.image-4 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
  }
  .image-4 img {
    width: 24%;
    margin-bottom: 10px;
  }
  .image-4 video{
    width: 24%;
    margin-bottom: 10px;
  }

  .learn-more-container {
    width: 100%;
    margin: 5px 0px 5px 0px;
}

.learn-more-btn {
    background-color: transparent;
    color: rgb(255, 255, 255);
    border: 1px solid rgb(255, 255, 255);
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    text-align: left;
margin-bottom: 10px;
    border-radius: 0; /* Square corners */
    letter-spacing: 0.5px;
    font-weight: 400;
}

.learn-more-btn:hover {
    background-color: rgba(185, 255, 216, 0.1);
}

.learn-more-btn::after {
    content: '+';
    float: right;
    font-weight: bold;
}

.learn-more-btn.active::after {
    content: '-';
}

.research-details-content {
    display: none;
    transition: all 0.3s ease;
    line-height: 1.6;
}

/* When active, show content */
.research-details-content.show {
    display: block;
}

/* Section headers with square bordered style */
.section-header {
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 12px;
    border: 1px solid rgb(185, 255, 216);
    color: rgb(185, 255, 216);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 30px;
  background-color: rgb(0, 0, 0); /* Choose your desired background color */
  color: white; /* Choose your desired text color */
  display: flex;
  flex-direction: row;
  justify-content: right;
}
.project-image-link {
  opacity: 1;
  transition: opacity 1.5s ease-in-out;
}

.project-image-link.fadeInScroll {
  opacity: 1;
}

.divider {
  background-color: white;
  height: 1px;
  margin-top: 10px;
  margin-bottom: 10px;
}

a.link-blink {
    animation: animate 4s ease-in infinite;
    text-decoration: none; /* Optional: Disable underline */
    color: rgb(185, 255, 216);
}
.graphic-body{
  margin: 0px;
  padding: 0px;
}
@keyframes animate {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

a.link-blink:hover {
    animation-play-state: paused; /* Pause animation on hover */
    opacity: 1; /* Ensure full opacity on hover */
    color: white;
    text-decoration: none; /* Optional: Ensure no underline on hover */
}
/* Default styling (for larger screens) */
.tag span {
  display: block; /* Keeps tags in a column by default */
}

/* When the screen width is smaller than 700px */
@media (max-width: 900px) {
  .tag span {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Adds a 10px gap between tags */
  }

  .tag span br {
    display: none; /* Hides the <br /> elements to ensure the tags are in a row */
  }
  #description{
    width: 400px;
}
}



@media only screen and (max-width: 900px) {
     
      #projectsSection{
          padding-right: 20px;
          padding-left: 20px;
  
      }
  
  
   .preview-detail,.animation-graphic {
      flex-direction: column; /* Change flex direction to column for smaller screens */
      text-align: center;
    }
  
    .project-image-link,.title-image-link{
        width: 100%;
    
    }
    
    .animation-graphic-title{
      width: 100%;
    }
    
    .project-image,.title-image{
      padding-bottom: 20px;
    }
    .title-image{
      margin-top: 20px;
    }
  .project-info-left, .project-info-right{
      padding: 0px;
      text-align: left;
      width: 100%;
      order: 1;
  
  }
  .tag{display: flex;
      flex-direction: row;
      justify-content: flex-start;
      flex-wrap: wrap;
      width: 90%;
      margin-top: 20px;
  }
  .tag-detail{
    padding-right: 10px;
  }
  .divider{
    margin-top: 30px;
  }
  
  }
  
  @media only screen and (max-width:700px){
    body{
      padding: 0px;
      padding-top: 60px;
    }
    #first-row {
        padding-left: 20px;
        padding-top: 20px;
        width: 100vw;
         background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7441570378151261) 52%, rgba(0,0,0,0) 100%);

        
      }
      #name{
          width: 100px;
       
      }
      #description{
        width: 120px;

          display: flex;
          flex-direction: column;
          justify-content: flex-start;
      line-height: 1.4;
      padding-right: 40px;

        }
      .graphic-body{
        padding-left: 20px;
        padding-right: 20px;
      }
  }

  .jcsg-1 {
    display: flex; /* Enables Flexbox layout */
    gap: 20px; /* Adds 10px gap between items */
    width: 100%; /* Full width of the parent container */
    height: 380px; /* Set a fixed height for all items */
    margin-bottom: 20px;
  }

  .jcsg-2 {
    display: flex; /* Enables Flexbox layout */
    gap: 10px; /* Adds 10px gap between items */
    width: 100%; /* Full width of the parent container */
    height: 330px; /* Set a fixed height for all items */
  }
  
  
  .item {
    flex: 1; /* Ensures all items grow proportionally */
    height: 100%; /* All items have the same height */
    width: auto; /* Automatically adjust width based on height */
    object-fit: contain; /* Contain the content within its allocated space */
  }
  

.animation-graphic{
  justify-content: space-between;
  flex-direction: row;
  display: flex;
  width: 100%;
}

.animation-graphic-title{
  width: 47%;
}

.title-image-link {
  display: inline-block; 
  overflow: hidden; 
  position: relative; 
  width: 100%; /* Adjust as needed */
  height: 350px; /* Adjust as needed */
  margin-bottom: 10px;
}
.title-image{
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crop the image to cover the container */
  position: absolute; /* Set position to absolute for centering */
  top: 50%; /* Move the image to the center vertically */
  left: 50%; /* Move the image to the center horizontally */
  transform: translate(-50%, -50%); /* Adjust for centering */
  margin-bottom: 10px;
}
