/* The basics for all .css codes */

@font-face { 
  font-family: Arial; 
} 

html {
  height: auto;
  background-color: #fefefe;
  margin: 0;
  padding: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing:border-box;
}

body {
  font: normal 100% Arial, Helvetica, sans-serif;
  line-height: 1.6;
  margin: 20px;
  color: #333;
  background-color: #ffffff;
}

/* HTML5 elements as block */
article, aside, figure, footer, header, hgroup, nav, section { 
  display: block;
}

/* For all paragraphs */
p {
  padding: 0 0 10px 0;
  color: #000000;
  line-height: 1.7em;
  font-size: 110%;
}

/* For all headers  */
h1, h2, h3, h4, h5, h6 {
  font-family: 'News Cycle', Arial, sans-serif;
  color: #333; /* Dark color for headers */
}

h2 {
  font: bold 165% 'News Cycle', Arial, sans-serif;
}

h3 {
  font: bold 130% 'News Cycle', Arial, sans-serif;
}

h4 {
  margin: 0;
  padding: 0;
  font: normal 150% 'News Cycle', Arial, sans-serif;
  color: #000000;
  line-height: 1.5em;
  list-style-type: square;
}

h5 {
  font-size: 1.3em;
  font-weight: bold;
  color: #007512;
  margin-top: 20px;
  margin-bottom: 10px;
  text-transform: uppercase; /* Optional: Makes text all caps */
}


a, a:hover {
  color: #0066cc; /* A more distinct blue */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #004d99; /* Darker blue on hover */
}

/* ul is unordered lists and ol is ordered lists */

/* List and list items styles for better readability */
ul {
  margin-left: 20px;
  list-style-type: square; /* Square bullet style */
}

ul li {
  font-size: 16px; /* Slightly smaller font size for list items */
  color: #333; /* Darker color for list items */
}

ol {
  margin: 8px 0 22px 20px;
}

ol li {
  margin: 0 0 11px 0;
}

/* For all parts of the html website */
#main, header, #banner, #menubar, #site_content, footer, #content_grey, nav {
  margin-left: auto; 
  margin-right: auto;
}

#main {
  background: #ffffff ;
}

header { 
  text-align: center;
  background-color: white;

}

/* For the banner at the top of the webpage */
.banner-container {
  width: auto; /* Full page width */
  display: flex;
  justify-content: center;
  background-color: #ffffff;
  border: 2px solid #0077c3;
  height: 450px; /* Set a fixed height for the banner container */
}

.banner-img {
  width: 100%; /* Change the width to make the banner smaller */
  height: auto; /* Ensure it scales proportionally */
}

#banner {
  text-align: center;
  background-color: rgb(255, 255, 255)
}
/* Close banner CSS */



/* Navigation Bar underneath banner */
.navbar {
  overflow: hidden;
  background-color: #0077c3;
  display: flex;
  flex-wrap:wrap;
  justify-content: space-around;
  padding: 4px 4px; 
}

/* Links inside the navbar */
.navbar a {
  float: left;
  font-size: 16px;
  font: bold 120% Arial, Helvetica, sans-serif;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

/* The dropdown container */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Dropdown button */
.dropdown .dropbtn {
  font-size: 16px;
  font: bold 120% Arial, Helvetica, sans-serif;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit; /* Important for vertical align on mobile phones */
  margin: 0; /* Important for vertical align on mobile phones */
}

/* Add a red background color to navbar links on hover */
.navbar a:hover, .dropdown:hover .dropbtn {
  background-color: #035e97;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Highlight the current page link */
/* Style for regular active links */
.navbar a.active {
  background-color: #035e97; /* Slightly darker shade for current page */
  color: white; /* Ensure text remains visible */
}

/* Style for active dropdown buttons */
.dropdown .dropbtn.active {
  background-color: #035e97; /* Slightly darker shade for current page */
  color: white; /* Ensure text remains visible */
}

/*End of Navigation Bar CSS*/


/* Default styles for the research groups section */
.research-group-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns */
  gap: 20px;
  margin: 20px;
}

.research-group-card {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  text-align: center;
}

.research-group-card img {
  width: 100%;
  border: 2px solid #0077c3;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.research-group-card h4 {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
}

.research-group-card p {
  font-size: 1.1em;
  margin: 5px 0;
}

.research-group-card strong {
  font-weight: bold;
}

.research-group-link {
  color: #0066cc;  /* Blue color for the link */
  text-decoration: underline;
}

.research-group-link:hover {
  color: #004d99;  /* Darker blue on hover */
}


footer {
  width: 100%;
  margin-top: auto;
  max-width: 1600px;
  background: #007F3E; /* Dark green background */
  color: white;
  text-align: center;
  padding: 10px 0;
  position: relative;
  bottom: 0;
}

.footer-container {
  max-width: 1600px; /* Controls width */
  margin: 0 auto; /* Center-aligns the footer */
  margin-bottom: 0;
}

.footer-links {
  margin-bottom: 10px; /* Space between links and copyright */
}

.footer-links a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-size: 20px;
}

.footer-links a:hover {
  text-decoration: underline; /* Hover effect */
}

footer p {
  font-size: 18px;
  margin-top: 10px;
}


/* For large screens (1600px and above) */
@media screen and (min-width: 1600px) {
  body {
    background-color: #f0f0f0;
  }

  #main {
    max-width: 1600px;
    margin: 0 auto;
    background-color: white;
  }

  .navbar {
    padding: 8px;
  }

  .research-group-container {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for larger screens */
    gap: 30px;
  }

  .footer-container {
    max-width: 1600px;
    margin: 0 auto;
  }
}

/* For medium to small screens (up to 768px) */
@media (max-width: 768px) {
  body {
    background-color: #f0f0f0;
  }

  #main {
    max-width: 768px;
    margin: 0 auto;
  }

  .research-group-container {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .footer-container {
    max-width: 768px;
    margin: 0 auto;
  }

  .footer-links a {
    display: block;
    margin-bottom: 10px;
  }
}
