﻿/* Estilos Gerais */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

h2 {
    font-size: 3em; /* Ajuste o tamanho conforme necessário */
    text-align: center;
    margin-top: 20px; /* Ajuste o espaçamento acima */
    margin-bottom: 20px; /* Ajuste o espaçamento abaixo */
    background-image: linear-gradient(to bottom right, #107c10, #055d05);
    -webkit-background-clip: text; /* Aplica o gradiente no texto */
    color: transparent; /* Torna o texto transparente para que o gradiente seja visível */
}


h1 {
    font-size: 3em; /* Ajuste o tamanho conforme necessário */
    text-align: center;
    margin-top: 20px; /* Ajuste o espaçamento acima */
    margin-bottom: 20px; /* Ajuste o espaçamento abaixo */
    color: #fff;
    -webkit-background-clip: text; /* Aplica o gradiente no texto */

}


header {
    background: #ffffff;
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

    header.dark-mode {
        background: #1e1e1e;
    }

    header h1 {
        margin: 0;
        font-size: 240px;
        color: #107C10;
    }

.logo {
    font-size: 24px;
    background-image: linear-gradient(to bottom right, #107c10, #055d05);
    font-weight: 700;
    font-family: 'Press Start 2P', cursive;
    text-transform: uppercase;
    -webkit-background-clip: text;
    color: transparent; /* Faz o texto ficar transparente para que o gradiente seja visível */
}


nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

    nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        gap: 30px;
    }

        nav ul li {
            display: inline-block;
            position: relative;
        }

            nav ul li a {
                text-decoration: none;
                font-size: 16px;
                color: #333;
                font-weight: 500;
                padding: 10px 15px;
                border-radius: 5px;
                transition: background-color 0.3s, color 0.3s;
                position: relative;
                overflow: hidden;
            }

                nav ul li a::after {
                    content: '';
                    position: absolute;
                    left: 50%;
                    bottom: 0;
                    width: 0;
                    height: 3px;
                    background: #107C10;
                    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
                }

                nav ul li a:hover::after {
                    width: 100%;
                    left: 0;
                }

                nav ul li a:hover {
                    color: #107C10;
                }

.banner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background-image: url(images/banner.gif);
    color: white;
    padding: 70px;
}

.banner-content {
    display: flex;
    width: 100%;
    max-width: 1200px;
    align-items: center;
    justify-content: space-between;
}

.banner-text {
    max-width: 50%;
    text-align: left;
}

.banner-button {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.download-button {
    background: linear-gradient(75deg, #107c10, #033803);
    color: white;
    padding: 20px 60px;
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.3s ease; /* Suaviza tanto a cor quanto o aumento */
}

    .download-button:hover {
        background: linear-gradient(75deg, #033803, #107c10 83.61%);
        transform: scale(1.1); /* Aumenta o botão em 10% */
    }

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .banner-text {
        max-width: 100%;
        text-align: center;
    }

    .banner-button {
        justify-content: center;
        margin-top: 20px;
    }
}

.features {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature {
    width: 340px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
    cursor: pointer;
    background: linear-gradient(75deg, #107c10, #033803);
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.5s ease;
    border: 2px solid #107c10;
}

    .feature:hover {
        transform: scale(1.08);
        box-shadow: 0 8px 16px rgba(0, 255, 0, 0.5);
        background: linear-gradient(75deg, #033803, #107c10 83.61%);
    }

    .feature img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .feature h3, .feature p {
        padding: 15px;
    }
/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #e0e0e0;
    transition: background-color 0.3s;
}

    footer.dark-mode {
        background: #1e1e1e;
    }

    footer p {
        margin: 0;
        font-size: 14px;
        color: #666;
    }

    footer.dark-mode p {
        color: #bbb;
    }

/* Button para Alternar Modo */
.toggle-mode {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    background-color: #6ABE30;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

    .toggle-mode:hover {
        background-color: #2F5127;
    }




/* Estilo do container de cards */
.grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Colunas: o primeiro card é maior */
    gap: 20px;
    justify-content: center;
    grid-auto-rows: auto;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilo dos cards */
.card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%; /* Garante altura balanceada */
}

    /* Estilo das imagens nos cards */
    .card img {
        width: 100%;
        height: auto;
        border-radius: 20px 20px 0 0;
        transition: transform 0.3s ease-in-out;
    }

    /* Efeito de zoom na imagem ao passar o mouse */
    .card:hover img {
        transform: scale(1.05);
    }

/* Estilo do conteúdo do card */
.card-content {
    padding: 20px;
    text-align: center;
    flex-grow: 1; /* Faz o conteúdo ocupar o espaço disponível */
}

/* Títulos, autoria e excertos */
.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.card .author {
    font-size: 14px;
    color: #777;
}

.card .excerpt {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}

/* Mosaico: o primeiro card ocupa 2 colunas e 2 linhas */
.card.large-card {
    grid-column: span 2;
    grid-row: span 2;
}

/* Cards pequenos ocupam 1 coluna e 1 linha */
.card.small-card {
    grid-column: span 1;
    grid-row: span 1;
}

/* Responsividade para telas menores */
@media screen and (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr; /* Todos os cards em 1 coluna */
    }

    .card-content h3 {
        font-size: 16px;
    }

    .card-content .author,
    .card-content .excerpt {
        font-size: 12px;
    }

    /* Cards grandes também ficam empilhados em telas menores */
    .card.large-card {
        grid-column: span 1; /* Ocupa 1 coluna */
        grid-row: span 1; /* Ocupa 1 linha */
    }
}

@media screen and (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr; /* Todos os cards em 1 coluna */
    }

    .card-content h3 {
        font-size: 14px;
    }

    .card-content .author,
    .card-content .excerpt {
        font-size: 10px;
    }
}






/* Rodapé */
.footer-map {
    background-color: #222;
    color: #fff;
    padding: 60px 20px 20px;
    text-align: center;
}

/* Container principal */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

/* Estilos para o menu */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

    nav ul li {
        display: inline-block;
    }

        nav ul li a {
            text-decoration: none;
            color: #333;
            font-weight: 500;
            padding: 10px 15px;
            transition: background-color 0.3s, color 0.3s;
        }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

    .menu-toggle .bar {
        width: 30px;
        height: 4px;
        background-color: #333;
        border-radius: 5px;
    }

/* Media Query para telas pequenas */
@media (max-width: 768px) {
    /* Oculta o menu na versão normal */
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 54px; /* Ajuste para a altura do header */
        left: 0;
        padding: 20px 0;
    }

        nav ul li {
            text-align: center;
            width: 100%;
        }

            nav ul li a {
                padding: 15px;
                width: 100%;
                text-align: center;
            }

    /* Exibe o ícone do menu (hamburger) */
    .menu-toggle {
        display: flex;
    }

    /* Menu aberto */
    nav.active ul {
        display: flex;
    }

    /* Ícone do X para fechar o menu */
    nav.active .menu-toggle .bar:nth-child(1) {
        transform: rotate(45deg);
        top: 8px;
    }

    nav.active .menu-toggle .bar:nth-child(2) {
        opacity: 0;
    }

    nav.active .menu-toggle .bar:nth-child(3) {
        transform: rotate(-45deg);
        top: -8px;
    }
}


        /* Estilo de ícones de contato */
        .footer-contact ul li {
            display: flex;
            align-items: center;
            gap: 10px;
        }

            .footer-contact ul li i {
                color: #0f7c10; /* Verde Xbox */
            }

/* Logotipo */
.footer-logo .logo-text {
    font-size: 70px;
    font-family: 'Press Start 2P', sans-serif; /* Fonte estilo Minecraft */
    letter-spacing: 8px; /* Ajuste o espaçamento */
    color: transparent; /* Torna o texto transparente para exibir o degradê */
    text-transform: uppercase;
    filter: contrast(150%) brightness(90%);
    background: linear-gradient(to right, #44D15E, #1B7F3A); /* Degradê do verde Xbox para tom mais escuro */
    -webkit-background-clip: text; /* Aplica o degradê no texto */
    background-size: 100%; /* Garantir que o fundo seja do tamanho do texto */
    display: inline-block; /* Garantir que o texto se comporte corretamente */
}




/* Rodapé Inferior */
.footer-bottom {
    text-align: center;
    padding-top: 15px;
    margin-top: 30px;
    border-top: 2px solid #444;
}

.footer-text {
    font-size: 14px;
    color: #aaa;
}


/* Inicialmente, o popup está oculto */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7); /* Fundo semi-transparente */
    color: black;
    padding: 20px;
    border-radius: 10px;
    width: 90%; /* Ajusta a largura para 90% da tela */
    max-width: 800px; /* Limita a largura máxima */
    max-height: 80vh; /* Limita a altura para 80% da tela */
    overflow: hidden; /* Garante que o conteúdo do popup não ultrapasse as bordas */
}

    /* Quando o popup é exibido */
    .popup.show {
        display: block;
    }

/* Popup - Fundo escurecido */
.popup-overlay {
    display: none; /* Inicialmente escondido */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fundo escuro */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Estilo do conteúdo do popup */
.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    max-width: 150vh;
    max-height: 85vh; /* Limita a altura do conteúdo */
    overflow-y: auto; /* Adiciona a barra de rolagem se o conteúdo exceder o limite de altura */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Estilo para o botão de fechar */
.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: black;
}

/* Estilos adicionais para o título, autor, data e corpo */
#popup-title {
    font-size: 24px;
    margin-bottom: 10px;
}

#popup-author, #popup-date {
    font-size: 14px;
    color: #777;
}

#popup-body {
    font-size: 16px;
    margin-top: 15px;
    line-height: 1.5; /* Melhora a leitura do texto */
}





/* Seção de Vídeos */
.videos {
    padding: 40px 20px;
    text-align: center;
}

    .videos h2 {
        font-size: 2.5em;
        margin-bottom: 20px;
    }

/* Container de Grid para os Vídeos */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Ajusta a quantidade de colunas */
    grid-gap: 20px; /* Espaçamento entre os cards */
    justify-content: center;
    padding: 0 20px;
}

/* Estilo dos cards */
.video-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

    /* Efeito de hover nos cards */
    .video-card:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    }

    .video-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .video-card h3 {
        text-align: center;
        padding: 15px;
        font-size: 1.2em;
        color: #333;
    }

/* Popup de Vídeo */
.video-popup {
    display: none; /* Inicialmente invisível */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    position: relative;
    padding: 20px;
    width: 80%;
    max-width: 900px;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
}

.video-container {
    position: relative;
    padding-top: 56.25%; /* Aspect ratio 16:9 */
}

#video-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 99%;
    height: 100%;
}

/* Ajustes no layout em telas pequenas */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Ajusta para telas menores */
        grid-gap: 15px;
    }

    .video-card {
        margin: 0;
        width: 100%;
    }
}

/* Estilos específicos para o rodapé */
/* Estilos específicos para o rodapé */
.footer-map {
    background-color: #1a1a1a; /* Cor de fundo escura */
    color: white;
    padding: 0px 0;
    font-family: 'Arial', sans-serif;
}

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

.footer-menu,
.footer-contact,
.footer-logo {
    flex: 1;
    padding: 0 20px;
}

    .footer-menu h3,
    .footer-contact h3 {
        margin-bottom: 15px;
        font-size: 18px;
        font-weight: bold;
        text-transform: uppercase;
        color: #0f7c10; /* Verde Xbox */
    }

    .footer-menu ul,
    .footer-contact ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .footer-menu ul li,
        .footer-contact ul li {
            margin-bottom: 10px;
        }

            .footer-menu ul li a,
            .footer-contact ul li {
                color: #ddd;
                text-decoration: none;
                font-size: 16px;
            }

                .footer-menu ul li a:hover,
                .footer-contact ul li:hover {
                    color: #0f7c10; /* Verde Xbox */
                }

.footer-logo {
    text-align: center;
}

    .footer-logo .logo-text {
        font-size: 60px; /* Tamanho grande do logotipo */
        font-weight: bold;
        letter-spacing: 2px;
        background: linear-gradient(45deg, #58C9A3, #006F3B); /* Gradiente do verde Xbox */
        -webkit-background-clip: text;
        color: transparent;
    }

.footer-bottom {
    background-color: #333; /* Cor de fundo mais escura */
    text-align: center;
    padding: 20px 0;
}

.footer-text {
    margin: 0;
    font-size: 14px;
    color: #ccc;
}

.footer-bottom .footer-text {
    font-style: italic;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-menu,
    .footer-contact,
    .footer-logo {
        margin-bottom: 20px;
    }

        .footer-menu h3,
        .footer-contact h3 {
            font-size: 16px;
        }

        .footer-menu ul li,
        .footer-contact ul li {
            font-size: 14px;
        }

        .footer-logo .logo-text {
            font-size: 40px; /* Reduz o tamanho do logotipo em telas menores */
        }
}


/* Botão de voltar ao topo */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #58C9A3, #006F3B); /* Verde Xbox */
    color: white;
    font-size: 24px;
    font-weight: bold;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, transform 0.3s;
}

/* Efeito hover */
.back-to-top:hover {
    transform: scale(1.1);
    background: linear-gradient(45deg, #81C14E, #004D2B);
}

/* Responsividade */
@media (max-width: 768px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
