body {
    background-color: #0b1523; /* Fundo azul escuro */
    color: #f0f0f0;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header {
    background-color: #121e2e;
    padding: 15px 40px;
    border-bottom: 2px solid #2a6a51; /* Borda verde da bandeira */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #42a94f; /* Verde mais escuro */
    margin: 0;
    text-decoration: none;
}

.search-bar input {
    width: 300px;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #333;
    background-color: #1e2a38;
    color: #f0f0f0;
    outline: none;
}

.youtube-button {
    display: flex;
    align-items: center;
    gap: 8px; /* Espaço entre o ícone e o texto */
    text-decoration: none;
    color: white; /* Cor do texto */
    background-color: #ff0000; /* Cor de fundo do botão (vermelho do YouTube) */
    padding: 8px 16px; /* Espaçamento interno */
    border-radius: 20px; /* Bordas arredondadas */
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.youtube-button:hover {
    background-color: #cc0000; /* Escurece a cor no hover */
}

.youtube-icon {
    width: 24px;
    height: 24px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language {
    color: #888;
    font-size: 14px;
}

.main-content {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.sidebar {
    width: 250px;
    background-color: #121e2e;
    padding: 20px;
    border-radius: 8px;
    border-right: 2px solid #2a6a51;
}

.sidebar-title {
    color: #ffd700; /* Dourado/Amarelo */
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
}

.category-list, .mode-list, .platform-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.category-list li, .mode-list li, .platform-list li {
    margin-bottom: 10px;
}

.category-list a, .mode-list a, .platform-list a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.category-list a:hover, .mode-list a:hover, .platform-list a:hover {
    color: #42a94f;
}

.game-grid {
    flex-grow: 1;
}

.section-title {
    color: #f0f0f0;
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ffd700; /* Borda dourada */
    padding-bottom: 5px;
}

/* Estilos do Modal */
.modal {
    display: none; /* Esconde o modal por padrão */
    position: fixed;
    z-index: 10; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fundo semi-transparente */
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.modal-content {
    background-color: #333;
    color: #fff;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #555;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    text-align: center;
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

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

.adsense-ad-placeholder {
    margin: 20px 0;
    padding: 20px;
    background-color: #444;
    border-radius: 8px;
    min-height: 150px; /* Garante um espaço para o anúncio */
    display: flex;
    justify-content: center;
    align-items: center;
}

.download-button-modal {
    background-color: #007BFF;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
}

.download-button-modal:hover {
    background-color: #0056b3;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.game-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.game-card {
    background-color: #1a273a;
    border-radius: 8px;
    overflow: hidden;
    width: calc(25% - 15px);
    transition: transform 0.3s ease;
    border: 1px solid transparent;
    text-decoration: none;
    color: #f0f0f0;
}

.game-card:hover {
    transform: translateY(-5px);
    border: 1px solid #42a94f;
}

.game-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.game-info {
    padding: 15px;
}

.game-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.game-info p {
    margin: 0;
    color: #ccc;
    font-size: 14px;
}

.status-online {
    display: inline-block;
    background-color: #42a94f;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 10px;
}

/* Responsividade */
@media (max-width: 1200px) {
    .game-card {
        width: calc(33.33% - 14px);
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
    }

    .game-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }

    .search-bar input {
        width: 100%;
    }

    .user-info {
        flex-direction: column;
        gap: 5px;
    }

    .game-card {
        width: 100%;
    }
}

/* Estilo para o modal do AdBlocker */
.adblock-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.adblock-modal .modal-content {
    background-color: #333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 500px;
    color: #fff;
}

.adblock-modal h2 {
    margin-top: 0;
    color: #f0f0f0;
}

/* Adicione estas classes ao seu arquivo style.css */
.game-card {
    position: relative; /* Isso é crucial para que o .online-badge seja posicionado corretamente */
    /* Outros estilos do cartão... */
}

.online-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #28a745; /* Um verde vivo e atraente */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10; /* Garante que o selo fique acima da imagem */
}

.adblock-modal p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.adblock-modal button {
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.adblock-modal button:hover {
    background-color: #cc0000;
}
