html {
  font-size: 14px;
  --color-royal-purple: rgb(120,81,169);
  --color-electric-blue: rgb(0,125,255);
  --color-silver-grey: rgb(192,192,192);
  --color-charcoal-black: rgb(54,69,79);
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.btn {
  color: #fff !important;
  background-color: var(--color-electric-blue) !important;
  border: none !important;
}

.btn.btn-success {
  background-color: var(--color-electric-blue) !important;
  color: #fff !important;
}

.btn.btn-secondary {
  background-color: var(--color-charcoal-black) !important;
  color: #fff !important;
}

.btn.btn-outline-primary {
  color: var(--color-electric-blue) !important;
  border-color: var(--color-electric-blue) !important;
  background: transparent !important;
}

.btn.btn-outline-primary:hover, .btn.btn-outline-primary:focus {
  background-color: var(--color-electric-blue) !important;
  color: #fff !important;
}

html {
  position: relative;
  min-height: 100%;
}

html, body {
  width: 100%;
  padding: 0;
  margin: 0;
}

body {
  margin-bottom: 60px;
}

body:not(.home-page) main h1:first-of-type,
body:not(.home-page) main h2:first-of-type {
  margin-top: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.homepage-fullwidth-row {
  width: 100%;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 0;
}

.homepage-fullwidth-row > .col-12,
.homepage-fullwidth-row > .col-md-4 {
  padding: 0 !important;
  margin: 0 !important;
}

.homepage-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-image-placeholder img {
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.homepage-image-placeholder:hover img {
    transform: scale(1.05);
}

.homepage-image-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    color: #fff;
    text-shadow: 0 2px 8px #000, 0 0 4px #000;
    z-index: 2;
}

.homepage-image-title {
    color: #eee;
    font-size: 3rem;
    font-weight: 600;
    text-shadow: 0px 0px 10px #000, 0px 0px 12px #000;
    text-transform: uppercase;
}

.homepage-image-link {
    color: #eee;
    font-size: 1.5rem;
    text-shadow: 0 5px 8px #000, 0 0 4px #000;
    text-decoration: none;
    font-weight: bold;
}

.homepage-image-link:hover {
    color: #e0e0e0;
    text-decoration: none;
    background: rgba(0,0,0,0.7);
    border: 1.5px solid #EEE;
    border-radius: 0.3em;
    padding: 0.15em 0.5em;
    transition: background 0.2s, border 0.2s;
}

/* Custom navbar overlay styles */
.navbar.custom-navbar {
    background: rgba(0,0,0,0.7) !important;
    color: #f8f9fa !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1050;
    border: none;
    box-shadow: none;
}

.navbar.custom-navbar .navbar-brand,
.navbar.custom-navbar .nav-link,
.navbar.custom-navbar .dropdown-toggle {
    color: #f8f9fa !important;
}

.navbar.custom-navbar .dropdown-menu {
    background: rgba(30,30,30,0.95);
}

.navbar.custom-navbar .dropdown-item {
    color: #f8f9fa !important;
}

.navbar.custom-navbar .dropdown-item:hover,
.navbar.custom-navbar .dropdown-item:focus {
    background: #343a40;
    color: #fff !important;
}

.navbar.custom-navbar .navbar-nav > .nav-item:not(:last-child) {
    margin-right: 20px;
}
