html, body {
    min-height: 100%;
    margin: 0; /* Remove margens padrão */
}

body {
    font-family: 'Arial', sans-serif;
    background-image: url('https://wallpapers.com/images/hd/hogwarts-desktop-2nrhdvob4psp8hfc.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribui o espaço entre o conteúdo e o rodapé */
    text-align: center;
}

main {
    flex-grow: 1; /* Faz com que o conteúdo principal cresça para ocupar o espaço disponível */
    padding: 20px; /* Adiciona espaçamento ao conteúdo principal */
}

h1 {
    margin: 20px 0;
    color: #ffd633;
}

h2 {
    margin: 20px 0;
    color: #ffd633;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
}

.photo-card {
    padding: 10px;
    border: 3px dashed gold;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-align: center;
}

.photo-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-card:hover img {
    transform: scale(1.1);
}

.btn-voltar, .btn-modal {
    padding: 10px 20px;
    background-color: #ffcc00;
    color: #000;
    border-radius: 50px;
    text-decoration: none;
    margin: 20px 10px;
    display: inline-block;
    font-weight: bold;
    border: 2px solid gold;
    transition: background-color 0.3s;
}

.btn-voltar:hover, .btn-modal:hover {
    background-color: #ffd633;
}


.footer {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    color: white; /* ou a cor que você deseja */
    text-align: center; /* Este é o importante para centralizar o texto */
    padding: 10px; /* Ajuste conforme necessário */
    z-index: 1000; /* Para garantir que o rodapé esteja acima de outros conteúdos */
}

.footer-content {
    max-width: 800px; /* Defina um limite de largura se desejar */
    margin: 0 auto; /* Isso centraliza o conteúdo dentro do footer */
}

.social-links {
    list-style: none;
    padding: 0;
}

.social-links li {
    display: inline;
    margin: 0 15px;
}

.social-links a {
    color: #f1c40f;
    text-decoration: none;
    font-weight: bold;
}

.social-links a:hover {
    text-decoration: underline;
}

/* Modal Estilo */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Responsividade */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn-voltar, .btn-modal {
        width: 90%;
        margin: 10px 0;
    }

    .top-button {
        bottom: 15px;
        right: 15px;
    }

    .footer {
        flex-direction: column; /* Garante a centralização em telas menores */
    }
}

.video-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 20px auto;
}

.video-card {
    color: #ffd633; /* Corrige cor do texto */
    padding: 10px;
    border: 3px dashed gold;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-align: center;
}

.video-card video {
    color: #ffd633;
    width: 100%;
    height: auto;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.5s ease;
}

.video-card:hover video {
    transform: scale(1.1);
}

.video-card .date {
    font-size: 1.1rem;
    color: #ffd633;
    margin: 5px 0 10px;
}

.video-card .stats {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.video-card .stats p {
    font-size: 1rem;
    color: #ffd633;
    margin: 0;
}

@media (max-width: 768px) {
    .video-container {
        color: #ffd633;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }

    .video-card {
        color: #ffd633;
        width: 90%;
        margin-bottom: 15px;
        position: relative;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
        border: 2px dashed #fff;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        transform: translateY(-5px);
    }

    .video-info, .date, .views, .likes {
        color: #ffd633;
        z-index: 2;
        text-align: center;
    }

    .video-info {
        margin-top: 10px;
        font-size: 20px;
    }

    .date {
        font-size: 14px;
    }

    .views, .likes {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

/* Estilo base para botões flutuantes */
.btn-harry-potter-floating,
.top-button {
    position: fixed;
    bottom: 20px; /* Mesma altura para ambos os botões */
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Ambos com bordas arredondadas */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Consistência na sombra */
    z-index: 1000; /* Sempre visíveis acima de outros elementos */
    cursor: pointer; /* Cursor de mão */
    transition: transform 0.3s ease, background-color 0.3s ease; /* Animação suave */
}

/* Botão de subir ao topo (à direita) */
.top-button {
    right: 50px; /* Alinhado ao canto direito */
    background-color: #f1c40f; /* Cor amarela */
    color: white;
}

/* Botão dos livros (à esquerda) */
.btn-harry-potter-floating {
    left: 50px; /* Alinhado ao canto esquerdo */
    background-color: #6a5acd; /* Cor roxa */
    color: white;
}

/* Efeito hover para ambos */
.btn-harry-potter-floating:hover,
.top-button:hover {
    transform: scale(1.1); /* Aumenta levemente ao passar o mouse */
    background-color: #4b0082; /* Roxo mais escuro (para o botão dos livros) */
}

.top-button:hover {
    background-color: #4b0082; /* Amarelo mais claro para o botão de subir */
}


