.bg-primary {
    background: var(--mdb-primary) !important;
    color: var(--mdb-white);
}

.bg-secondary {
    background: var(--mdb-secondary) !important;
}

.bg-secondary-soft {
    background: var(--mdb-secondary-soft) !important;

}

.bg-dark {
    background: var(--mdb-dark) !important;
}

.bg-glass {
    background: hsla(0, 0%, 100%, 0.10);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* Force GPU acceleration */
    /* https://graffino.com/til/CjT2jrcLHP-how-to-fix-filter-blur-performance-issue-in-safari */
    transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
}

.bg-glass-dark {
    background: hsla(0, 0%, 0%, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* Force GPU acceleration */
    /* https://graffino.com/til/CjT2jrcLHP-how-to-fix-filter-blur-performance-issue-in-safari */
    transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
}

/* Set jpg as default image. */
.bg-intro {
    background-image: url("/img/jpg/explosion-of-colors.jpg");
    background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    -webkit-background-size: cover;
}

/* Check if WebP image format is supported. */
@supports (background-image: url("/img/webp/explosion-of-colors.webp")) {
    .bg-intro {
        background-image: url("/img/webp/explosion-of-colors.webp");
    }
}

@media (min-width: 992px) {
    .bg-intro {
        background-size: contain;
        -moz-background-size: contain;
        -o-background-size: contain;
        -webkit-background-size: contain;
    }
}