/* 
    Import reset rules for compatibility with MDB (Material Design for Bootstrap) 
        
    Copyright (c) 2024, Mapache Digital
*/

@import url("mdb.css");

html {
    /* Reset the base font size.  This will equal to 1 rem. */
    font-size: 12px;
}

@media (max-width: 575px) {
    .footer {
        line-height: 42px;
        height: 50px;
        overflow: hidden;
    }

    body {
        margin-bottom: 42px;
    }
}

@media (min-width: 768px) {
    html {
        /* Reset the base font size.  This will equal to 1 rem. */
        font-size: 14px;
    }
}

@media (max-width: 989px) {
    /* Make better use of real state on smaller screens when using bootstrap containers */
    .container {
        max-width: 95% !important;
    }
}

.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;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 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;
}

/* -------------------------------------------------
   Site specific
   -------------------------------------------------- */

/* For showing long descriptions nicely. Place the text inside a <span> to avoid new lines. */
.long-description {
    white-space: pre-wrap;
    display: inline-block;
}

.long-description-container {
    max-height: 6.25rem;
    overflow: hidden;
}

/* General styles */
.roboto {
    font-family: 'Roboto', sans-serif;
}

.bebas {
    font-family: 'Bebas Neue', cursive;
}

.anton {
    font-family: 'Anton', sans-serif;
}

.work-sans {
    font-family: 'Work Sans', sans-serif;
}

.font-size-medium {
    font-size: 1rem !important;
}

.body-container {
    margin-bottom: 61px;
    margin-top: 54px;
    padding-top: 1rem;
}

@media (max-width: 575px) {
    .body-container {
        margin-bottom: 43px;
    }
}

/* Navbar */
.navbar .logo-top {
    height: 30px;
}

/* Add a margin below a form control whenever there are a span for validation errors.*/
.form-control:has(~ span.text-danger) {
    margin-bottom: 0.25rem;
}

.form-control.disabled, .form-control.disabled:focus {
    background-color: var(--bs-secondary-bg);
    opacity: 1;
}

    .form-control.disabled:focus {
        box-shadow: 0 0 0 0.1rem var(--bs-secondary-color);
    }

.content-feat {
    background: #f6f6f6;
    border-radius: 10px;
}


/* Dark mode settings */
@media (prefers-color-scheme: dark) {
    .content-feat {
        background: #313131;
    }

    .table > :not(caption) > * > * {
        color: rgb(var(--bs-body-color-rgb)) !important;
    }
}