﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification\
for details on configuring this project to bundle and minify static web assets. */

html {
    scroll-behavior: smooth;
}

/* Main navbar stays pinned to the top of the viewport while scrolling */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* Sub-nav sticks just below the main navbar; JS sets the exact top value on load/resize */
/* Background, border, and link colors are defaults — override in Site{nnnn}.css per site */
.sub-nav {
    position: sticky;
    top: 56px; /* fallback — JS overrides with measured navbar height */
    z-index: 1010;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.sub-nav .nav-link {
    color: #495057;
}

.sub-nav .nav-link:hover {
    color: #000;
}

/* Offset scroll targets so neither sticky bar overlaps them; JS overrides with measured total */
[id^="section-"] {
    scroll-margin-top: 110px; /* fallback */
}

body {
    padding-bottom: 20px;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Carousel */
.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
}

/* Make .svg files in the carousel display properly in older browsers */
.carousel-inner .item img[src$=".svg"] {
    width: 100%;
}

/* QR code generator */
#qrCode {
    margin: 15px;
}

/* Hide/rearrange for smaller screens */
@media screen and (max-width: 767px) {
    /* Hide captions */
    .carousel-caption {
        display: none;
    }
}
