
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f4;
  color: #222;
}


header {
  background-color: darkblue;
  color: white;
  text-align: center;
  padding: 18px 10px;
}

h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 48px);
}

/*  Navigation bar */

nav {
  background-color: #0b1f4d;
  padding: 0;

  position: sticky;
  top: 0;
  z-index: 1000;

  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  justify-content: flex-start;
  align-items: center;
}

/* Each main menu item */
nav li {
  position: relative;
  margin: 0;
  padding: 0;
}

/* Main navigation links */
nav a {
  display: block;
  padding: 14px 24px;

  color: white;
  background-color: transparent;
  text-decoration: none;
  border: none;
  border-radius: 0;

  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 600;
}

/* Hover effect for main nav links */
nav a:hover {
  background-color: #163a7a;
  color: white;
  text-decoration: underline;
}

/* Dropdown arrow */
.dropdown > a::after {
  
  font-size: 0.7em;
  margin-left: 6px;
}

/* Dropdown menu */
.dropdown_menu {
  display: none;

  position: absolute;
  top: 100%;
  left: 0;

  min-width: 190px;
  background-color: white;

  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);

  z-index: 1001;
}

/* Show dropdown when hovering */
.dropdown:hover .dropdown_menu {
  display: block;
}

/* Dropdown items stacked vertically */
.dropdown_menu {
  flex-direction: column;
  align-items: stretch;
}

/* Dropdown links */
.dropdown_menu a {
  color: #0b1f4d;
  background-color: white;

  padding: 12px 18px;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 500;

  white-space: nowrap;
  border-bottom: 1px solid #e5e5e5;
}

/* Dropdown hover */
.dropdown_menu a:hover {
  background-color: #e9f0ff;
  color: #0b1f4d;
}


/* Normal look of microscope image link */
p a {
  color: #0b4fc3;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-weight: normal;
  text-decoration: none;
}

/* Look of microscope image link when hovering */
p a:hover {
  color: darkblue;
  background: none;
  text-decoration: underline;
}

body > div {
  width: 80%;
  margin: 20px auto;
 
}

img {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  margin: 20px auto;
}

h2 {
  font-size: clamp(20px, 3vw, 34px);
  color: #0b1f4d;
}

h3 {
  font-size: clamp(18px, 2.2vw, 26px);
  color: #163a7a;
}

p {
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.6;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: lightgray;
  color: white;
}

.linkedweb{
  color: white;
  font-weight:normal;
}

#HOFI_head {
  width:50%;
  height:auto;
}

/* Hide preview image normally */
.micro-hover {
  display: none;
  position: fixed;
  top: 90px;
  right: 20px;

  width: 30vw;
  max-width:400px;
  min-width:180px;
  height: auto;
 
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);

  z-index: 3000;
}

/* Show preview when physically hovering OR when highlighted by the SVG */
.micro-link:hover .micro-hover,
.highlighted-link .micro-hover {
  display: block;
}




/* Layout Alignment Grid for All Stages */
.atlas-grid {
  display: flex;
  flex-direction: column;
  gap: 80px; 
}

/* Row-style container for side-by-side rendering */
.media-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.svg-wrapper {
  flex: 1 1 45%;
  max-width: 500px;
  min-width: 320px;
}

.text-content {
  flex: 1 1 45%;
  min-width: 320px;
}

/* Ensure object elements scale fluidly on responsive devices */
.svg-map {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
}

/* Highlight style applied to the target text link on hover */
.highlighted-link {
   color: darkblue;
  background: none;
  text-decoration: underline;
}