html {
  font-size: 14px;
}

@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;
}

.min-vh-75 {
    min-height: 75vh;
}

html {
    overflow-y: scroll;
}

body, html {
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.nav-link {
    color: white !important;
}
.nav-link:hover {
    color: lightgray !important;
    text-decoration: underline;
}

.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;
}

.bg-brand-blue {
    background-color: var(--bs-brand-darkblue) !important;
}

.btn-primary {
    --bs-btn-bg: var(--bs-brand-darkblue);
    --bs-btn-border-color: var(--bs-brand-darkblue);
    --bs-btn-hover-bg: #002d5a; /* A slightly lighter shade for the hover effect */
    --bs-btn-hover-border-color: #002d5a;
}

.container-fluid {
    width: 80vw;
    flex: 1 0 auto;
}
h1, h2 {
    font-size: 28px;
}
h2 {
    font-weight: normal;
}

table thead {
    position: sticky;
}

.dt-layout-table {
    padding-top: 8px;
    padding-bottom: 8px;
}

.dt-scroll-body {
    border-bottom-width: 1px !important;
    border-color: var(--bs-gray-300) !important;
}

#contractorRatingsTable thead tr th:nth-child(1) { /* "Ratings", hidden column for padding */
    padding-right: 2px;
    visibility: hidden;
}
#contractorRatingsTable thead tr th:nth-child(2) { /* Rating Code */
    width: 130px;
}
#contractorRatingsTable thead tr th:nth-child(2),
#contractorRatingsTable thead tr th:nth-child(3) {
    padding: 0 10px;
}
#contractorRatingsTable tbody tr td {
    padding: 0 10px;
    border: none;
}

#btnBackToTop {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: 1px solid white;
    outline: none;
    background-color: var(--bs-brand-darkblue);
    color: white;
    cursor: pointer;
    font-size: 40px;
    padding: 0px 10px;
}
#btnBackToTop:hover {
    background-color: #0084ff;
}

footer {
    width: 100%;
    height: 100px;
    z-index: 3;
}
footer a {
    color: white;
    text-decoration: none;
    margin-right: 5px;
}
footer a:hover {
    color: lightgray;
    text-decoration: underline;
}