/* Reset some browser defaults */
body, h1, h2, p {
  margin: 0;
  padding: 0;
}

/* Basic styling for the body */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Header and navigation styles */
header {
  /*background-color: #0080FF; */
  background-color: #228B22;  /* modify the color of catalogue */
  padding: 0.1rem;
}

/* Style the navigation bar */
nav {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem;
}

nav a:hover {
  background-color: #555;
  border-radius: 5px;
}
.logo-link {
  display: inline-block;
  margin-right: 0.5rem;
}

.logo {
  max-height: 90px; /* Adjust the size according to your preference */
  width: auto;
  vertical-align: bottom;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
}

.card {
  flex-basis: 50%;
  display: flex;
}

.card-content {
  background-color: #ffffff;
  padding: 20px;
  margin: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 85%;
  height: auto;
  object-fit: cover;
}

@media only screen and (max-width: 768px) {
  .card {
    flex-basis: 100%;
  }
}

#footer {
  background-color: #f1f1f1;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}

.footer-content {
  display: inline-block;
  margin: 0 auto;
}


/* Main content styles */
main {
  padding: 2rem;
}

/* Welcome section styles */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Main content styles ------------------------------------------------not use1*/
.welcome-content {
  text-align: center;
  max-width: 80%;
  margin: 0 auto;
}

/* Welcome subtitle styles ---previous ---now do not use*/
.welcome-subtitle {
  font-size: 3rem;
  margin-top: 1rem;
  font-style: italic;
  color: black; /* Add this line to set the text color to white */
  }


/* Add some basic styles for the typewriter effect */
.typewriter-text {
  border-right: .15em solid black;
  white-space: nowrap;
  overflow: hidden;
  animation: typewriter 4s steps(44) 1s 1 normal both,
             blink-caret .75s steps(44) infinite;
}

/* The typing effect */
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: black; }
}



#welcome {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('../assets/images/background.png');
  background-size: cover;
  background-position: center;
  text-align: center;
}

/* Main content styles ----------------------------------------------not use1*/


/* Welcome Background image styles--------------works 但只在大屏幕电脑上 */
/*
.bg-image {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48.93cm;
  height: 15.57cm;
  background-image: url('../assets/images/background1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
*/

/* Welcome Background image styles--------------works modify */
/*.bg-image {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('../assets/images/background.png');
  background-size: cover;
  background-position: center;
  text-align: center;
}
*/
#welcome h1 {
  font-size: 4rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeIn 2s ease-in-out;
  
}

/* About and Workshops sections---定义页边距 */
#about, #workshops, #deliverables, #participants, #contact {
  margin-bottom: 2rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* About sections */
/* Project Aim section styles -----------------------------------------do not use 2*/
.about-header {
  display: flex;
  align-items: center;
}

.initiate-logo {
  margin-right: 1rem;
  width: 100px; /* Adjust the width as needed */
  height: auto;
}

.workshop-title {
  display: flex;
  align-items: center;
}

.title-figure {
  margin-right: 2px; /* Adjust the margin as needed */
}

.figure-image {
  width: auto; /* Adjust the width as needed */
  height: 80px;
}


#project-aim {
  background-color: #add8e6; /* Light blue background color */
  padding: 1rem; /* Add padding around the content */
  border: 1px solid #add8e6;
  border-radius: 10px;
}

#project-aim-green {
  background-color: #CCE5FF; /* Light blue background color */
  padding: 1rem; /* Add padding around the content */
  border-radius: 10px;
}

#project-aim-blue {
  background-color: #E5FFCC; /* Light blue background color */
  padding: 1rem; /* Add padding around the content */
  border-radius: 10px;
}

#project-aim h2 {
  margin-top: 0; /* Remove the default margin-top from the h2 element */
}

/* Research Objectives section styles */
#research-objectives {
  padding: 1rem; /* Add padding around the content */
}

#research-objectives h2 {
  margin-top: 0; /* Remove the default margin-top from the h2 element */
}

#research-objectives ul {
  padding-left: 1.5rem; /* Add some space before the bullet points */
}

/* Project Information section styles */
#project-information {
  padding: 1rem; /* Add padding around the content */
}

#project-information h2 {
  margin-top: 0; /* Remove the default margin-top from the h2 element */
}

#project-information p {
  margin-bottom: 0.5rem; /* Add some space below each paragraph */
}

#project-information a {
  color: #0000ff; /* Blue color for the link */
  text-decoration: underline; /* Add underline to the link */
}
/* Project Aim section styles -----------------------------------------do not use 2*/

/* Workshops section styles */
.workshop {
  margin-bottom: 1rem;
}

.workshop img {
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 0 auto;
  margin-bottom: 1rem;
}

/* Workshops section styles */
.workshop {
  padding: 1rem; /* Add padding around the content */
  border-bottom: 1px solid #cccccc; /* Add a bottom border */
}

.workshop:last-child {
  border-bottom: none; /* Remove the bottom border from the last workshop */
}

.workshop h2 {
  margin-top: 0; /* Remove the default margin-top from the h2 element */
}
/* video format */
.video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.video-container video {
  max-width: 80%;  /* Adjust this value to control the maximum width of the video. */
  height: auto;
}
/* Add this CSS rule in your styles.css file */
.green-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: green;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
}

.workshop-image {
  display: block;
  margin: 0 auto;
}


/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: left;
}

th {
  background-color: #f4f4f4;
  font-weight: bold;
}
/* Participants section styles */
#participants {
  padding: 1rem; /* Add padding around the content */
}

#participants h2 {
  margin-top: 0; /* Remove the default margin-top from the h2 element */
}

#participants img {
  max-width: 100%; /* Make the image responsive */
  display: block; /* Display the image as a block element */
  margin: 1rem auto; /* Center the image and add some space above and below */

}

/* Coordinator section styles */
.coordinator {
  padding: 1rem; /* Add padding around the content */
  background-color: #f5f5f5; /* Add a light gray background */
  display: flex; /* Set the section to display as flex */
  align-items: center; /* Align items vertically */
  border-radius: 10px;
}

.coordinator h3 {
  margin-top: 0; /* Remove the default margin-top from the h3 element */
}

.coordinator-content {
  flex-grow: 1; /* Make the coordinator content take up available space */
}

.coordinator-info {
  margin-top: 0.5rem; /* Add a small margin above the coordinator info */
}

.institution-logo {
  max-width: 150px; /* Set a maximum width for the logo */
  margin-left: 1rem; /* Add some space to the left of the logo */
}


/* Add styles for the participant companies section */
.participant-companies {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  background-color: lightblue;
  padding: 1rem; /* Add padding to create space around the content */
  border-radius: 10px;
}

.participant-companies h3 {
  width: 100%;
}


participant-companies .company {
  flex: 1;
  min-width: 250px; /* Adjust the minimum width if needed */
  max-width: 300px; /* Adjust the maximum width if needed */
  text-align: center;
  border-radius: 10px;
}

.participant-companies img {
  max-width: 100%;
  height: auto;
}

.contact-image {
  display: flex;
  justify-content: space-between;
}


#contact {
  position: relative;
}

.social-media-logo {
  width: 24px;
  height: 24px;
}

.poster {
  position: absolute;
  right: 0;
  max-width: 60%;  /* adjust as per your needs */
  height: auto;
}




