html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
}

.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;
}

/* Responsividade e layout */
.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

    .nav-scroller .nav {
        display: flex;
        flex-wrap: nowrap;
        padding-bottom: 1rem;
        margin-top: -1px;
        overflow-x: auto;
        text-align: center;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8;
}

.bd-mode-toggle {
    z-index: 1500;
}

    .bd-mode-toggle .dropdown-menu .active .bi {
        display: block !important;
    }

/* CARD LAYOUT */
.containerFir {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-body {
    flex-grow: 1;
}

.fixed-text {
    height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fixed-title {
    height: 30px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Overlay nos cards */
.overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    transition: 2s ease;
    background-color: black;
}

.containerFir:hover .overlay {
    opacity: 1;
}

.text {
    color: white;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Imagens nos cards */
.image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Botão dos cards */
.button {
    border-radius: 4px;
    background-color: black;
    border: none;
    color: #fff;
    font-size: 15px;
    text-align: center;
    transition: all 0.5s;
    cursor: pointer;
    margin: 5px;
}

    .button strong {
        position: relative;
        display: inline-block;
        transition: 2s;
    }

        .button strong:after {
            content: '\00bb';
            position: absolute;
            opacity: 0;
            top: 0;
            right: -50px;
            transition: 0.5s;
        }

    .button:hover strong {
        padding-right: 109px;
    }

        .button:hover strong:after {
            opacity: 1;
            right: 0;
        }

/* Dropdown Idioma */
.dropbtn {
    background-color: #212529;
    color: lightgray;
    border-radius: 4px;
    padding-right: 35px;
    font-size: 15px;
    border: none;
    transition: 2s;
    text-align: center;
    margin-right: 10px;
}

.dropdown {
    position: relative;
    display: inline-block;
    transition: all 0.5s;
    margin-right: 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 2000;
    background-color: #212529;
    color: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 220px;
    transition: all 0.3s ease;
}

    .dropdown-content button {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 8px;
        background-color: transparent;
        color: lightgray;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

        .dropdown-content button:hover,
        .dropdown-content button.active {
            background-color: lightgray;
            color: black;
        }

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: lightgray;
    color: black;
}

.small-icon {
    width: 35px;
    height: auto;
}

/* Estilos específicos para idiomas */
.language-flag {
    width: 35px;
    height: auto;
    margin-right: 5px;
}

.dropdown-content .language-text {
    color: white;
}

.dropdown-content .selected .language-text {
    color: black;
}
