body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-image: url('/img/backgrounds/lightgreen-circuitboard-bg-trans_125x125.png');
    font-size: 1.1em;
}

.hdr {
    display: flex;
    font-weight: bold;
    background-color: white;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.hdr img {
    height: 60px;
    width: auto;
    display: block;
}

.hdr img:hover {
    opacity: 60%;
    cursor: pointer;
}

.hdr-digital {
    color: darkgreen;
}

.hdr-junction {
    color: green;
}

.hdr-cymru {
    color: red;
}

.navbar {
    background-color: rgb(0, 55, 0) !important;
}

.navbar .nav-link {
    color: white !important;
}

.navbar .nav-link:hover {
    color: black !important;
    background-color: lightgreen !important;
}

.navbar .active {
    color: white !important;
    font-weight: bold !important;
    background-color: rgb(0, 95, 0) !important;
}

.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.navbar .navbar-toggler {
    border-color: rgba(255,255,255,0.75) !important;
}

.navbar .nav-link:focus-visible {
    outline: 2px solid white !important;
    outline-offset: 2px;
}

.navbar .navbar-toggler:focus-visible {
    outline: 2px solid white !important;
    outline-offset: 2px;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 99;
}

#menubar {
    position: sticky;
    top: 0;
    z-index: 99;
}

.bg-digital-light {
    background-image: url('/img/backgrounds/lightgreen-circuitboard-bg-trans_125x125.png');
}

.bg-digital-dark {
    background-image: url('/img/backgrounds/darkgreen-circuitboard-bg-trans_125x125.png');
}

.opacity-50 {
    opacity: 50%;
}

.opacity-75 {
    opacity: 75%;
}

.opacity-dim {
    opacity: 90%;
}

.link {
    text-decoration: underline;
    color: green;
}

.link:hover {
    text-decoration: underline;
    color: darkgreen;
    font-weight: bold;
}

/* =========================================================
   Route Panels – Gaming & Other Route Landing Pages
   ========================================================= */

/* Base panel appearance */
.route-panel {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

/* Hover state (mouse / pointer) */
.route-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12);
    border-color: rgba(25, 135, 84, 0.5); /* Bootstrap success green */
}

/* Keyboard focus state (accessibility) */
.route-panel:focus-within {
    outline: 3px solid rgba(25, 135, 84, 0.6);
    outline-offset: 2px;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* CTA feedback */
.route-panel-cta {
    font-weight: 500;
}

.route-panel:hover .route-panel-cta,
.route-panel:focus-within .route-panel-cta {
    text-decoration: underline;
}

/* Arrow micro-interaction */
.route-panel-cta i {
    transition: transform 0.15s ease;
}

.route-panel:hover .route-panel-cta i {
    transform: translateX(4px);
}

/* Featured panel (Steam Deck) */
.route-panel-featured {
    border-left: 6px solid #198754; /* success */
    background: linear-gradient(
        to right,
        rgba(25, 135, 84, 0.05),
        #ffffff 30%
    );
}

.route-panel-featured:hover {
    border-left-color: #146c43;
}

a:focus-visible .route-panel {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.route-panel {
    cursor: pointer;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .route-panel,
    .route-panel-cta i {
        transition: none;
    }
}

.footerbar {
  background-color: var(--bs-dark);
}

.footerbar .footer-link {
  color: #4dff9a; /* higher-contrast green */
  text-decoration: none;
}

.footerbar .footer-link:hover,
.footerbar .footer-link:focus {
  color: #7dffb3; /* brighter hover */
  text-decoration: underline;
}

.footerbar .text-success {
  color: #4dff9a !important;
}

.footerbar .fw-bold {
  letter-spacing: 0.02em;
}

.footerbar .btn-outline-success {
  color: #4dff9a;
  border-color: #4dff9a;
}

.footerbar .btn-outline-success:hover,
.footerbar .btn-outline-success:focus {
  background-color: #4dff9a;
  color: #0b0b0b; /* very dark for contrast */
  border-color: #4dff9a;
}

.footerbar .btn-outline-success:focus-visible {
  outline: 2px solid #7dffb3;
  outline-offset: 2px;
}
