  
  /* css for the vcf selector app */

/* Job status overlay – border color by state (override inline/W3) */
#overlay.job-overlay-border-pending { border: 2px solid #9e9e9e !important; }
#overlay.job-overlay-border-submitted { border: 2px solid #2196f3 !important; }
#overlay.job-overlay-border-running { border: 2px solid #ff9800 !important; }
#overlay.job-overlay-border-success { border: 2px solid #4caf50 !important; }
#overlay.job-overlay-border-failure { border: 2px solid #f44336 !important; }

/* Align all step headings - ensure consistent left alignment */
.vcf-step-heading {
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  clear: both;
  display: block;
}

/* Force alignment: Remove left padding from first column AND pull heading left */
.w3-row-padding > .w3-half:first-child {
  padding-left: 0 !important;
  padding-right: 8px !important;
}

/* Pull step 1 heading to match step 3's position exactly */
.w3-row-padding > .w3-half:first-child .vcf-step-heading {
  margin-left: 0 !important;
  padding-left: 0 !important;
  position: relative;
  left: -8px !important; /* Compensate for any remaining padding */
}

.w3-tag {
  margin: 4px;
  cursor: pointer;
}

.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.scroll-box {
  max-height: 200px;
  min-height: 200px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #ccc;
}

.scroll-box-pop {
  max-height: 100px;
  min-height: 100px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #ccc;
}

.radio-option {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.no-link {
   cursor: default !important;
   text-decoration: none !important;
}
/*  Animation freq */
.w3-animate-fading {
  animation: fading 2s infinite; /* faster blink */
}

h2 { color: #009688; }  /* replicate w3-text-teal */
.w3-bar .w3-button:hover {
  background-color: rgba(0, 150, 136, 0.2) !important;
  transition: background-color 0.3s;
}
.w3-bar i {
  transition: transform 0.2s, color 0.3s;
}
.w3-bar i:hover {
  transform: scale(1.1);
  color: #009688;
}

/* Topbar refinements – keep W3 layout, just restyle */
.w3-bar.w3-top.alyra-topbar,
.w3-bar.w3-top.w3-topbar.alyra-topbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-top: 2px solid rgba(0, 150, 136, 0.4) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  overflow: visible;
  padding-top: 0 !important;
  margin-top: 0 !important;
  white-space: nowrap;
}

/* Override any W3.CSS default borders on topbar */
.w3-topbar {
  border-top: 2px solid rgba(0, 150, 136, 0.4) !important;
}

.w3-bar .w3-bar-item.alyra-icon-link {
  padding: 0 12px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-shrink: 1;
  max-width: 120px;
}

@media screen and (max-width: 1400px) {
  .w3-bar .w3-bar-item.alyra-icon-link {
    max-width: 100px;
    padding: 0 8px;
  }
  
  .w3-bar .w3-bar-item.alyra-logo-link {
    max-width: 200px;
    padding: 0 8px;
  }
}

.w3-bar .w3-bar-item.alyra-icon-link .alyra-icon-img {
  height: 60px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.w3-bar .w3-bar-item.alyra-logo-link {
  padding: 0 12px;
  height: 60px;
  flex-shrink: 1;
  max-width: 250px;
}

.w3-bar .w3-bar-item.alyra-logo-link .alyra-logo-img {
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.w3-bar .w3-bar-item.alyra-nav-item {
  background: transparent !important;
  border-radius: 0;
  color: #374151;
}

.w3-bar .w3-bar-item.alyra-nav-item:hover {
  background-color: rgba(0, 150, 136, 0.08) !important;
  color: #00695c !important;
}

.w3-bar .w3-bar-item.alyra-nav-item.alyra-nav-active {
  background-color: #009688 !important;
  color: #ffffff !important;
}

/* Desktop menu container - prevent wrapping at zoom levels */
.alyra-desktop-menu {
  white-space: nowrap;
  display: inline-block;
  float: right;
}

.alyra-desktop-menu .w3-bar-item {
  float: right;
  white-space: nowrap;
  display: inline-block;
}

/* Ensure menu items stay together and don't wrap */
@media screen and (min-width: 993px) {
  .alyra-desktop-menu {
    display: inline-block !important;
    white-space: nowrap;
    float: right;
  }
  
  .alyra-desktop-menu .w3-bar-item {
    float: right;
    white-space: nowrap;
    display: inline-block;
  }
}

/* Prevent wrapping at any zoom level */
.w3-bar-item.alyra-nav-item {
  white-space: nowrap !important;
  flex-shrink: 0;
}

/* Admixture map toggle - inline block above iframe */
.admixture-iframe-card {
  position: relative;
  overflow: visible;
}

.admixture-overlay-toggle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  justify-content: center;
  pointer-events: auto;
}

.admixture-toggle {
  display: inline-flex;
  border-radius: 999px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.admixture-toggle-btn,
.admixture-toggle-btn:link,
.admixture-toggle-btn:visited,
.admixture-toggle-btn:hover,
.admixture-toggle-btn:active,
.admixture-toggle-btn:focus {
  border: none;
  outline: none;
  padding: 7px 16px;
  font-size: 0.95rem;
  cursor: pointer;
  background: transparent;
  color: #374151;
  white-space: nowrap;
  text-decoration: none !important;
  display: inline-block;
  border-bottom: none !important;
  text-decoration-line: none !important;
  text-decoration-style: none !important;
  text-decoration-color: transparent !important;
}

.admixture-toggle-btn:hover {
  background-color: rgba(0, 150, 136, 0.08);
  text-decoration: none !important;
  border-bottom: none !important;
}

.admixture-toggle-active {
  background-color: #009688;
  color: #ffffff;
}

/* Home page layout */
.hero-banner {
  position: relative;
  margin-top: 0;
  height: calc(100vh - 75px);
  overflow: hidden;
  background-image: url('/static/images/alyra.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.hero-content {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 90%;
  max-width: 900px;
  padding: 0 16px 20px 16px;
  z-index: 2;
  pointer-events: none;
}

.hero-content h1 {
  pointer-events: auto;
  margin-bottom: 0;
}

.hero-cards-overlay {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 3;
}

/* Ensure proper spacing - prevent overlap on medium screens */
@media screen and (max-width: 1200px) and (min-height: 700px) {
  .hero-content {
    top: 20%;
  }
  
  .hero-cards-overlay {
    bottom: 50px;
  }
}

/* Adjust text position on smaller screens to avoid overlap with cards */
@media screen and (max-width: 992px) {
  .hero-content {
    top: 15%;
    padding-bottom: 20px;
  }
  
  .hero-cards-overlay {
    bottom: 40px;
  }
}

/* Medium screens - ensure enough space */
@media screen and (max-width: 992px) and (min-height: 600px) {
  .hero-content {
    top: 12%;
  }
  
  .hero-cards-overlay {
    bottom: 50px;
  }
}

.hero-feature-card {
  height: 220px;
  background-color: #fffef7;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 4;
}

.hero-card-icon {
  margin-bottom: 16px;
}

.hero-card-icon i {
  font-size: 3.5rem;
}

/* Fix scrolling and text visibility on small screens */
@media screen and (max-width: 600px) {
  .hero-banner {
    height: auto;
    min-height: calc(100vh - 75px);
    overflow-y: auto;
  }
  
  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 90%;
    padding: 40px 16px 20px 16px;
    margin: 0 auto;
  }
  
  .hero-content h1 {
    font-size: 1.5rem !important;
    line-height: 1.3;
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(0,0,0,0.8) !important;
    margin-bottom: 0;
  }
  
  .hero-cards-overlay {
    position: relative;
    bottom: auto;
    padding: 20px 16px 40px 16px;
    margin-top: 0;
  }
}

/* Additional breakpoint for very small heights to prevent overlap */
@media screen and (max-height: 700px) and (min-width: 601px) {
  .hero-content {
    top: 10%;
    padding-bottom: 10px;
  }
  
  .hero-cards-overlay {
    bottom: 30px;
  }
  
  .hero-content h1 {
    font-size: 1.8rem !important;
    line-height: 1.2;
  }
}

/* Medium width screens with potential overlap issues */
@media screen and (min-width: 601px) and (max-width: 992px) {
  .hero-content {
    top: 12%;
    max-width: 85%;
  }
  
  .hero-content h1 {
    font-size: 2rem !important;
    line-height: 1.3;
  }
}

.section-heading {
  margin: 0;
  font-weight: 600;
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 150, 136, 0.12);
  display: grid;
  place-items: center;
  margin: auto;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:hover .glass-card {
  transform: translateY(-2px);
  border-color: rgba(0, 150, 136, 0.35);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.hero-banner .w3-button {
  box-shadow: 0 6px 20px rgba(0, 150, 136, 0.25);
}

/* Contact page */
.contact-card {
  background-color: rgba(0, 0, 0, 0.18);
  background-blend-mode: darken;
  cursor: pointer;
  flex: 1 1 360px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  min-height: 460px;
}

/* Align card background images so both logos are visible and similarly positioned */
.contact-card-novikova {
  background-position: center 35%;
}
.contact-card-kolar {
  background-position: center top;
}

.contact-card-header {
  background-color: #009688 !important;
  color: #ffffff !important;
  backdrop-filter: none;
}

.contact-card-header h3 {
  color: #ffffff !important;
  margin: 0;
  padding: 16px 0;
}

.contact-info-panel {
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: none;
  border-radius: 16px;
  margin: 12px;
}

.contact-footer {
  background-color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-email-link {
  color: inherit;
  text-decoration: none;
  margin-left: 4px;
}

.contact-email-link:hover {
  color: #00695c;
  text-decoration: underline;
}

@media screen and (max-width: 820px) {
  .contact-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    min-height: 440px;
  }
}

/* Info page styling */
.w3-hover-underline:hover {
  text-decoration: underline;
}

/* Smooth scroll behavior for anchor links */
html {
  scroll-behavior: smooth;
}

/* Section spacing */
.w3-section {
  margin-bottom: 48px;
}

/* Hamburger Menu Styles */
@media screen and (max-width: 992px) {
  /* Hide desktop menu on small screens */
  .alyra-desktop-menu {
    display: none !important;
  }
  
  /* Show hamburger button - ensure it's always visible and right-aligned */
  .alyra-hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 1001;
  }
  
  .alyra-hamburger:hover {
    background-color: rgba(0, 150, 136, 0.08) !important;
  }
  
  .alyra-hamburger i {
    transition: transform 0.2s;
  }
  
  .alyra-hamburger.active i {
    transform: rotate(90deg);
  }
  
  /* Reduce logo sizes on small screens to make room */
  .alyra-icon-img {
    max-height: 50px !important;
    width: auto;
  }
  
  .alyra-logo-img {
    max-height: 50px !important;
    width: auto;
  }
  
  .alyra-icon-link {
    padding: 0 8px !important;
    flex-shrink: 1;
  }
  
  .alyra-logo-link {
    padding: 0 8px !important;
    flex-shrink: 1;
  }
  
  /* Ensure topbar doesn't overflow */
  .alyra-topbar {
    overflow: visible !important;
    flex-wrap: nowrap;
  }
}

/* Extra small screens - further reduce logo sizes */
@media screen and (max-width: 480px) {
  .alyra-icon-img {
    max-height: 40px !important;
  }
  
  .alyra-logo-img {
    max-height: 40px !important;
  }
  
  .alyra-icon-link {
    padding: 0 4px !important;
  }
  
  .alyra-logo-link {
    padding: 0 4px !important;
  }
  
  .alyra-hamburger {
    padding: 0 12px !important;
    min-width: 44px;
  }
}

@media screen and (min-width: 993px) {
  /* Hide hamburger and mobile menu on large screens */
  .alyra-hamburger {
    display: none !important;
  }
  
  .alyra-mobile-menu {
    display: none !important;
  }
  
  /* Show desktop menu */
  .alyra-desktop-menu {
    display: block !important;
  }
}

/* Mobile Menu Overlay */
.alyra-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.alyra-mobile-menu-content {
  background-color: #ffffff;
  width: 100%;
  max-width: 320px;
  height: 100%;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  padding-top: 20px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.alyra-mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background-color 0.2s;
}

.alyra-mobile-menu-item:hover {
  background-color: rgba(0, 150, 136, 0.08);
  color: #00695c;
}

.alyra-mobile-menu-item.alyra-nav-active {
  background-color: #009688;
  color: #ffffff;
}

.alyra-mobile-menu-item i {
  width: 20px;
  text-align: center;
}

