/* Reset das margens e padding para todos os elementos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url(https://wallpapers.com/images/hd/horror-movie-collage-1920-x-1080-x5qzkf99dsj4b8w7.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

/* Estilização da Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #222, #444); /* Degradê para mais estilo */
    padding: 15px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: fixed; /* Fixa no topo */
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #ff4747; /* Adiciona uma linha sutil abaixo para separação */
}

/* Logo */
.navbar .logo a {
    color: #ff4747; /* Destaque na cor do logo */
    text-decoration: none;
    font-size: 26px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar .logo a:hover {
    color: #fff;
}

/* Estilo para o contêiner de sugestões */
.search-container {
    position: relative;
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.search-bar {
    width: 40%;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 16px;
    outline: none;
    transition: 0.3s ease;
}

.search-bar:focus {
    border-color: #ff4747;
}

/* Estilo para a lista de sugestões */
.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #fff;
    position: absolute;
    width: 40%;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    top: 100%;
    left: 0;
    display: none;
    z-index: 100;
}

.suggestions-list li {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.suggestions-list li:hover {
    background-color: #f0f0f0;
}

/* Links de navegação */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 15px;
    border-radius: 5px;
    transition: 0.3s ease;
}

.nav-links a:hover {
    background-color: #ff4747;
    box-shadow: 0 0 10px rgba(255, 71, 71, 0.8);
}

/* Menu hambúrguer para mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle div {
    width: 30px;
    height: 4px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #222;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        border-radius: 10px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }
}
    

/* Contêiner do carrossel, com largura fixa e centralizado */
.carousel-container {
    width: 80%; /* 80% da largura da tela */
    max-width: 1200px; /* Limita a largura a 1200px, igual ao grid */
    overflow: hidden; /* Esconde o excesso de conteúdo fora do carrossel */
    position: relative; /* Necessário para os botões posicionados */
    margin: 40px auto; /* Centraliza o carrossel e dá uma margem */
    border-radius: 10px; /* Arredonda os cantos */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Adiciona sombra */
    margin-top: 100px; 
}

/* Estilo para o carrossel que contém as imagens */
.carousel {
    display: flex; /* Exibe as imagens lado a lado */
    transition: transform 0.5s ease-in-out; /* Transição suave ao mudar de slide */
}

/* Estilo das imagens dentro do carrossel */
.carousel img {
    width: 100%; /* Cada imagem ocupa 100% do espaço do carrossel */
    min-width: 100%; /* Garante que as imagens não sejam menores que o tamanho do contêiner */
    height: 300px; /* Define a altura fixa das imagens */
    object-fit: cover; /* Faz com que a imagem cubra o contêiner sem distorção */
    flex-shrink: 0; /* Impede que a imagem encolha */
}

/* Contêiner dos botões de navegação (anterior e próximo) */
.buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none; /* Evita que o contêiner interfira nos cliques */
}

/* Estilo dos botões de navegação */
.buttons button {
    background-color: rgba(252, 25, 25, 0.596); /* Fundo semi-transparente branco */
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 20px; /* Tamanho maior para melhor visibilidade */
    border-radius: 50%; /* Botões redondos */
    transition: background-color 0.3s ease, transform 0.2s ease;
    pointer-events: all; /* Permite que os botões sejam clicáveis */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra sutil */
}

/* Estilo dos botões ao passar o mouse */
.buttons button:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1); /* Aumenta levemente o tamanho */
}

/* Grid para itens da página */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    padding: 1px;
    width: 80%;
    max-width: 1200px; /* Limite da largura */
    margin: 10px auto;
    margin-top: 10px;
}

/* Estilo dos itens do grid */
.grid-item {
    background-color: #f4f4f4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: scale(1.05); /* Aumenta ligeiramente o tamanho */
    box-shadow: 0 6px 12px rgba(255, 0, 0, 0.5); /* Brilho avermelhado ao redor */
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilo para a navegação da paginação */
.pagination {
    text-align: center;
    margin: 20px;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    text-decoration: none;
    background-color: #f1f1f1;
    color: #333;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background-color: #ddd;
}

.pagination .prev, .pagination .next {
    font-weight: bold;
}

.pagination .page-number.active {
    background-color: #4CAF50;
    color: white;
}

/* Estilização da Sidebar */
.sidebar {
    width: 300px;
    background-color: #111;
    padding: 10px;
    text-align: center;
}

.sidebar img {
    width: 100%;
    border-radius: 10px;
}

/* Footer */
footer {
    background-color: #121212;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.footer-section {
    max-width: 300px;
    text-align: left;
}

.footer-section h3 {
    margin-bottom: 10px;
    font-size: 18px;
    border-bottom: 2px solid #ff6600;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 8px 0;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-section ul li a:hover {
    color: #ff6600;
}

.social-icons a {
    margin: 0 10px;
}

.social-icons img {
    width: 24px;
    transition: 0.3s;
}

.social-icons img:hover {
    transform: scale(1.1);
}

.footer-bottom {
    background-color: #0d0d0d;
    padding: 10px;
    margin-top: 10px;
    font-size: 14px;
}
