﻿/* 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. */

/* global accents */
.text-brand {
    color: var(--brand) !important;
}

.bg-brand {
    background-color: var(--brand) !important;
}

.border-brand {
    background-color: var(--brand) !important;
}

.border-primary {
    background-color: var(--primary-color) !important;
}


.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    /* ☞ add explicit properties with !important */
    color: #fff !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    --bs-btn-hover-bg: color-mix(in srgb,var(--primary-color) 85%,#000);
    --bs-btn-hover-border-color: var(--bs-btn-hover-bg);
    --bs-btn-active-bg: color-mix(in srgb,var(--primary-color) 75%,#000);
    --bs-btn-active-border-color: var(--bs-btn-active-bg);
}

.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    /* ☞ add explicit properties with !important */
    color: #fff !important;
    background-color: var(--brand) !important;
    border-color: var(--brand) !important;
    --bs-btn-hover-bg: color-mix(in srgb,var(--brand) 85%,#000);
    --bs-btn-hover-border-color: var(--bs-btn-hover-bg);
    --bs-btn-active-bg: color-mix(in srgb,var(--brand) 75%,#000);
    --bs-btn-active-border-color: var(--bs-btn-active-bg);
}

/* banner */
.hero-banner {
    background: var(--brand);
    border-bottom-left-radius: 3rem;
    border-bottom-right-radius: 3rem;
    /* space above heading so avatar isn’t cropped */
    padding-top: 6rem;
    /* no bottom padding: bottom of banner must touch avatar centre */
    padding-bottom: 0;
    position: relative;
    overflow: visible; /* let avatar hang out */
}

@media (max-width:575.98px) { /* Bootstrap’s XS range */
    .hero-banner {
        padding-top: 8.5rem;
    }
    /* +2.5 rem ≈ badge height + gap */
}

/* badge inside the coloured header ---------------------------------- */
.hero-banner .powered-by 
{
    position: absolute; /* place relative to .hero-banner      */
    top: 1rem;
    left: 1rem; /* ↖︎ distance from the edges           */
    display: flex;
    gap: .4rem;
    align-items: center;
    color: #fff; /* white text                          */
    font-size: .9rem;
    font-weight: 600;
}

.hero-banner .powered-by img 
{ /* icon size                           */
    height: 22px;
    width: auto;
}

/* circular photo ------------------------------------------------*/
.hero-avatar {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 0 30px rgba(0,0,0,.1);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -110px; /* -- 50 % of avatar’s height  */
    z-index: 1;
}


a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}
