
body {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: #292D3E;
}


.navbar {

    background-color: #343a40;
    padding: 10px;
}

.btn-search {
    background-color: #ffb84d;
    color: #fff;
    border: 1px solid #ffb84d;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.btn-search:hover {
    background-color: #fff;
    color: #ffb84d;
    box-shadow: 0px 4px 8px rgba(255, 184, 77, 0.3);
}


.navbar-brand {
    color: #FFB84D;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Bangers';

}

.navbar-nav .nav-item {
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: #fff;
    font-size: 18px;
    padding: 8px 12px;
}

.navbar-nav .nav-link.active {
    background-color: #6c757d;
    border-radius: 4px;
}

.navbar-toggler-icon {
    filter: invert(1);
}


.navbar .form-control {
    border: 1px solid #6c757d;
    color: #fff;
    background-color: transparent;
}




#resultado {
    margin: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 30px 10px;
    justify-content: center;
    margin-top: 50px;
}

#resultado h2 {
    font-family: 'Bangers', cursive;
    color: #42b4ca;
    text-shadow: 2px 2px 0 #000, 4px 4px 0 #2a2a2a;
    letter-spacing: 2px;
    font-size: 3rem;
    margin-bottom: 2rem !important;

}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #FFB84D;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card::before,
.card::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    transition: opacity 0.1s;
    opacity: 0;
}

.card::before {
    transform: scaleX(2) scaleY(1.5);
}

.card::after {
    transform: scaleX(1.5) scaleY(2);
}

.card:hover {
    cursor: pointer;
    transform: scale(1.01);
    box-shadow: 0 6px 20px rgba(255, 184, 77, 0.5);

}

.card:hover::before,
.card:hover::after {
    opacity: 1;
}

.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    font-family: 'Roboto', sans-serif;

}


.card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Bangers', cursive;

}


.card-text {
    font-size: 16px;
    margin-bottom: 5px;
    color: #FFFFFF;
}


select#page {
    width: 150px;
    padding: 8px 12px;
    margin: 30px;
    font-size: 16px;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
}

select#page option[value=""] {
    display: none;
}


.modal-content {
    padding: 20px;
    border-radius: 10px;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
}


.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}


.pagination>div {
    flex: 1;
}


#prevPageButton {
    background-color: #292D3E;
    color: #fff;
    border: 1px solid #ffb84d;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

#prevPageButton:hover {
    background-color: #fff;
    font-weight: bold;

    color: black;
}



#nextPageButton {
    background-color: #292D3E;
    color: #fff;
    border: 1px solid #ffb84d;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

#nextPageButton:hover {
    background-color: #fff;
    color: black;
    font-weight: bold;
}

.footer {
    font-weight: 500;
    color: #fff;
    padding: 40px;

}

.not-found-message {
    color: rgb(255, 255, 255);
    /* Altere para a cor que desejar */
    font-weight: bold;
    text-align: center;
}


/* Estilo personalizado para o select */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    user-select: none;
}


.custom-select {
    display: block;
    width: 200px;
    padding: 9px 16px;
    font-size: 16px;
    font-weight: 500;
    color: rgb(243, 239, 239);
    border: 2px solid #6c757d;
    border-radius: 8px;
    background-color: #343a40;
    cursor: pointer;
}

.custom-select-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    pointer-events: none;
}

.custom-select-icon::before {
    content: '\f078';
    /* Ícone de seta para baixo (Font Awesome) */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    background-color: #fff;
    z-index: 1;
}

.custom-option {
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-option:hover {
    background-color: #f0f0f0;
}

/* Estilo personalizado para a input */
.custom-input {
    position: relative;
}

.custom-input input {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    border: 2px solid #6c757d;
    border-radius: 8px;
    background-color: #333;
}

.custom-input-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    pointer-events: none;
}

.custom-input-icon::before {
    content: '\f002';
    /* Ícone de pesquisa (Font Awesome) */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* Estilos para os botões de favorito */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
}

.card {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.03);
}

/* ESTILOS PARA A PÁGINA DE FAVORITOS */
#resultado h2 {
    font-family: 'Bangers', cursive;
    color: #42b4ca;
    text-shadow: 2px 2px 0 #000, 4px 4px 0 #2a2a2a;
    letter-spacing: 2px;
    font-size: 3rem;
    margin-bottom: 2rem !important;
}

.favorites-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    padding: 1rem;
    margin: 0 auto;
}

.favorite-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 3px solid #42b4ca;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: cardEntrance 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    flex: 0 1 calc(33.333% - 1.5rem);
    min-width: 280px;
    width: 100%;
    max-width: 100%;
}

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.favorite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(66, 180, 202, 0.4);
    border-color: #f0f;
}

.favorite-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #42b4ca;
}

.favorite-card-body {
    padding: 1.2rem;
    color: white;
    font-family: 'Roboto', sans-serif;
}

.favorite-card-title {
    font-family: 'Bangers', cursive;
    color: #42b4ca;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.favorite-card-text {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.favorite-card-text b {
    color: #f0f;
}

.favorite-card-name {
    font-family: 'Bangers', cursive;
    color: #42b4ca;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.favorite-card-info {
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.favorite-card-info b {
    color: #f0f;
}

/* Efeito de portal no fundo */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://i.imgur.com/J5ZQZ9q.png') center/cover no-repeat;
    opacity: 0.1;
    z-index: -1;
}

/* Estilo para quando não há favoritos */
.empty-favorites {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.empty-portal {
    filter: grayscale(80%) brightness(1.5);
    opacity: 0.7;
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.favorite-card {
    animation: portalIn 0.5s ease-out forwards;
    opacity: 0;
    transform: scale(0.8);
}

@keyframes portalIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* BOTÃO DE REMOVER */
.btn-remove {
    display: block;
    width: 100%;
    margin-top: 1rem;
    background: #d9534f;
    border: none;
    padding: 0.5rem;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-remove:hover {
    background: #c9302c;
}

.empty-favorites {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: white;
}

.empty-favorites p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.empty-favorites img {
    opacity: 0.7;
    filter: grayscale(80%) brightness(1.5);
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}