html {
  /* Always show scroll bar so that re-rendering table doesn't shift content */
  overflow-y: scroll;
}

body {
  background: #f7f7f7; /* Light background to contrast with OSU colors */
  color: #333333; /* Darker gray for readability */
  text-align: center;
}

/* link appears to be OSU Scarlet */
a {
  color: #BB0000; /* OSU Scarlet for links */
  text-decoration: none;
}

/* link appears to be OSU Gray when hover */
a:hover {
  color: #666666; /* OSU Gray on hover */
  text-decoration: none;
}

/* To all h1 heading */
h1 {
  font-size: 15pt;
  font-weight: bold;
  color: #BB0000; /* Scarlet for headings */
}

h2 {
  font-size: 15pt;
  color: #BB0000; /* Scarlet for headings */
}

h4 {
  font-size: 13pt;
  color: #333333; /* Darker gray for subheadings */
}

/* p {
  color: #333333;
} */

div.container {
  display: inline-block;
  width: 1500px;
  height: 100%;
  background: #ffffff; /* White for a clean, bright container background */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15px;
  padding: 16px;
  text-align: left;
  border: 1px solid #BB0000; /* Scarlet border */
  box-shadow: 10px 10px 5px #666666; /* OSU Gray for shadow */
  overflow-x: auto;
}

div#header {
  /*max-width: 970px;*/
  margin-left: auto;
  margin-right: auto;
  height: 120px;
}

div.header span {
  position: relative;
  left: 25px;
  top: 30px;
  font-family: sans-serif;
  font-size: 2.1em;
  color: #BB0000; /* OSU Scarlet */
}

.logo {
  cursor: pointer;
  vertical-align: middle;
  height: 100px;
  width: auto;
}

/* Menu container styling */
#menu {
  background-color: #333333; /* Dark gray for menu background */
  padding: 15px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  font-family: 'Alegreya Sans SC', sans-serif;
}

/* Styling for each menu item */
#menu > span {
  margin: 0 15px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border-radius: 5px;
  background-color: #666666; /* OSU Gray for menu items */
}

/* Link styling */
#menu > span a {
  color: #ffffff; /* White for links within menu items */
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Hover effect: OSU Scarlet background */
#menu > span:hover {
  background-color: #BB0000; /* Scarlet on hover */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

#menu > span a:hover {
  color: #ffffff; /* White remains on hover */
}

/* Active link styling */
body#home span#menu-home,
body#about span#menu-about,
body#team span#menu-team,
body#research span#menu-research,
body#news span#menu-news,
body#data span#menu-data,
body#software span#menu-software,
body#visualizations span#menu-visualizations {
  background-color: #BB0000; /* Scarlet for active link */
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

body#home span#menu-home a,
body#about span#menu-about a,
body#team span#menu-team a,
body#research span#menu-research a,
body#news span#menu-news a,
body#data span#menu-data a,
body#software span#menu-software a,
body#visualizations span#menu-visualizations a {
  color: #ffffff;
  text-decoration: none;
}

/* Smooth hover and lift animation */
#menu > span {
  transition: transform 0.2s ease, background-color 0.3s ease;
}

#menu > span:hover {
  transform: translateY(-2px);
}

/* Responsive stacking for smaller screens */
@media (max-width: 768px) {
  #menu {
    flex-direction: column;
    padding: 15px;
  }

  #menu > span {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }
}

div.main_nav {
  width: 190px;
  float: left;
  height: 100%;
  margin-bottom: 2%;
  overflow: auto;
}

div.sub_menu {
  font-family: 'Alegreya Sans SC', sans-serif;
  margin-right: auto;
  margin-top: 25px;
  font-size: 15px;
  width: auto;
  border: 1px solid #666666; /* OSU Gray for submenu border */
  background: #ffffff; /* White for submenu background */
  clear: right;
}

div.sub_menu > div {
  background: #666666; /* OSU Gray for submenu header */
  padding: 5px 5px 5px 10px;
  color: #ffffff;
  width: auto;
}

div.sub_menu a {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: #BB0000; /* Scarlet for submenu links */
  text-decoration: none;
  display: block;
  padding: 3px 0 10px 0;
  background: #ffffff;
}

div.sub_menu p {
  color: #333333;
  padding-left: 10px;
  background: #ffffff;
}

div.sub_menu a:hover {
  color: #666666;
  text-decoration: none;
  display: block;
  padding: 3px 0 10px 0;
  background: #ffffff;
}

div.content {
  margin-top: 25px;
  margin-left: 230px;
  font-size: 10pt;
  color: #333333; /* Dark gray for content text */
}

.button {
  background: #666666; /* OSU Gray for button background */
  color: #ffffff;
  border: 0;
  padding: 0;
}

a .abstract {
  display: none;
  font-weight: normal;
  text-decoration: none;
  text-shadow: none;
}

a:hover .abstract {
  display: block;
  float: right;
  text-align: left;
  font-size: 8pt;
  line-height: 10pt;
  padding: 20px;
  margin: 0 0 20px 0;
  border: 1px solid #666666;
  color: #333333;
  background: #f7f7f7;
}

div.sub_menu ol {
  padding: 0 5px 0 5px;
  margin: 10px 0 5px 0;
  list-style-type: none;
}

div.sub_menu ol > li {
  padding: 0;
  margin: 0 5px 0 5px;
}

#d3orgnet {
  text-align: center;
}

footer {
  display: flex;
  justify-content: space-between;
  background: #333333;
  font-size: 13px;
  padding: 20px;
  clear: both;
  margin: 0 -20px -20px;
  height: 85px;
  color: #ffffff;
}

footer > div {
  display: flex;
  align-self: center;
}

footer p {
  color: #ffffff;
  text-shadow: 1px 1px 1px #333333;
}

footer a {
  text-shadow: none;
  align-self: center;
  color: #ffffff;
}

#support, #cc {
  width: 45%;
}

#support > p {
  margin-left: 20px;
}

#cc > p {
  margin-right: 20px;
  text-align: right;
}

/* Footer styles */
.site-footer {
  background-color: #BB0000; /* Scarlet for footer */
  color: #ffffff;
  padding: 40px 0 20px;
  text-align: center;
  font-size: 14px;
}

.site-footer .footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px;
}

.footer-section {
  margin: 20px;
  flex: 1;
  min-width: 200px;
}

.footer-section h3 {
  color: #ffffff;
  margin-bottom: 15px;
}

.footer-section p, .footer-section a {
  color: #ffffff;
  text-decoration: none;
}

.footer-section a:hover {
  color: #f7f7f7;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #ffffff;
  text-decoration: none;
}

.footer-section ul li a:hover {
  color: #f7f7f7;
}

/* Footer bottom section */
.footer-bottom {
  background-color: #666666; /* OSU Gray for bottom footer */
  color: #ffffff;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom .socials a img {
  width: 20px;
  margin: 0 10px;
  filter: brightness(0) invert(1); /* White icons */
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-bottom .socials a img:hover {
  opacity: 1;
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
  .site-footer .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-bottom .socials {
    margin-top: 10px;
  }
}
