:root {
    /** /
    --bs-blue: #0d6efd;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-black: #000;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --bs-primary-rgb: 13,110,253;
    --bs-secondary-rgb: 108,117,125;
    --bs-success-rgb: 25,135,84;
    --bs-info-rgb: 13,202,240;
    --bs-warning-rgb: 255,193,7;
    --bs-danger-rgb: 220,53,69;
    --bs-light-rgb: 248,249,250;
    --bs-dark-rgb: 33,37,41;
    --bs-white-rgb: 255,255,255;
    --bs-black-rgb: 0,0,0;
    --bs-body-color-rgb: 33,37,41;
    --bs-body-bg-rgb: 255,255,255;
    /**/
}

@keyframes moving-backgrounds {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0px); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0px); }
}

@keyframes moving-background {
      0.00% { background: #ff0000; }
     16.66% { background: #ff7700; }
     33.33% { background: #ffff00; }
     50.00% { background: #00ff00; }
     66.66% { background: #0000ff; }
     83.33% { background: #ff00ff; }
    100.00% { background: #ff0000; }
}

body {
    background: #000 url(/res/img/mountains-1920x1080.png) center / cover fixed;
    background: #000 url(/res/img/bg-law-1632x918.png) center / cover fixed;
    background: #000 url(/res/img/bg-law-1280x853.png) center / cover fixed;
}

.btn {
    --xx--bs-btn-bg: rgb(--bs-primary-rgb);
}

.btn-primary {
    --xx--bs-primary-rgb: 255,0,0;
}

.bg-shadow {
    background: rgba(0, 0, 0, 0.5);
    --box-shadow: 0 2px 5px -2px rgb(0 0 0 / 10%);
}

.bg-trans {
    background: transparent;
}

.background-shade {
    z-index: -1;
    position: fixed;
    width: 100%;
    height: 100%;
    --background: #000;
    --opacity: 0.8;
}

.navbar {
    transition: background 1s ease;
}

.navbar-brand img {
    height: 32px;
    object-fit: contain;
}
.section:not(:last-of-type) {
    padding-bottom: 4em;
}

.text-decoration-stroke {
    --stroke-width: 2px;
    text-shadow: 0 -1px var(--stroke-width) black,
                 1px 0 var(--stroke-width) black,
                 0 1px var(--stroke-width) black,
                 -1px 0 var(--stroke-width) black;
}

.text-decoration-stroke2 {
    --stroke-width: 20px;
    text-shadow: 0 -1px var(--stroke-width) black,
                 1px 0 var(--stroke-width) black,
                 0 1px var(--stroke-width) black,
                 -1px 0 var(--stroke-width) black;
}

.text-decoration-rainbow {
    --gradient-rainbow: linear-gradient(
        90deg,
        red, orange, yellow, green, blue, indigo, violet
    );
    display: inline;
    background-image: var(--gradient-rainbow);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

:is(#home-carousel, #endorsements-carousel) .carousel-inner {
    --height: 400px;
}

:is(#home-carousel, #endorsements-carousel) .carousel-item img {
    --object-fit: contain;
    --transform: translateY(-10%);
    height: 50vh;
    object-fit: cover;
    object-position: center;
    overflow: hidden;
}

:is(#home-carousel, #endorsements-carousel) .carousel-item:before {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 0, 0, 0.5)
    );
}

.carousel-item :is(h5, p) {
    opacity: 0;
}

.carousel-item.active :is(h5) {
    animation: fadeInUp 0.5s ease forwards;
}

.carousel-item.active :is(p) {
    animation: fadeInDown 0.5s ease forwards;
}

.carousel-item.active h5 {
    --animation: fadeInUp 0.5s ease forwards;
}

.carousel-item.active p {
    --animation: fadeInDown 0.5s ease forwards;
}

#contact-form button[type="submit"] {
    z-index: 999;
}
