* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a2e;
    color: #e6e6e6;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Cabeçalho */
header {
    background-color: #0f0f1a;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
    gap: 20px; /* Espaço entre os elementos */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

.studio-name {
    margin-left: 15px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #6ac4ff;
    text-shadow: 0 0 10px rgba(106, 196, 255, 0.5);
}

.topo-direita {
    display: flex;
    gap: 10px;
    align-items: center;
}

.botao-imagem {
    border: none;
    background: none;
    cursor: pointer;
}

.botao-imagem img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: #e6e6e6;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #6ac4ff;
    background-color: rgba(106, 196, 255, 0.1);
}

/* Conteúdo Principal */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    width: 100%;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #6ac4ff;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 300px));
    gap: 2rem;
    width: 100%;
    margin-bottom: 3rem;
}

.game-card { 
    background-color: #16213e;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.game-image {
    width: 100%;
    height: 200px; /* Altura fixa para a imagem */
    background-color: #0f3460;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mudado para cover para preencher melhor o espaço */
}

.game-info {
    padding: 1.5rem;
    flex: 1; /* Faz o game-info ocupar o espaço restante */
    display: flex;
    flex-direction: column;
}

.game-info h3 {
    margin-bottom: 0.5rem;
    color: #6ac4ff;
}

.game-info p {
    flex: 1; /* Faz o parágrafo ocupar o espaço disponível */
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    background-color: #6ac4ff;
    color: #0f0f1a;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #4fa8e6;
    transform: scale(1.05);
}

/* Rodapé */
footer {
    background-color: #0f0f1a;
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: #e6e6e6;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #6ac4ff;
}

.copyright {
    color: #6b6b6b;
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .studio-name {
        margin: 10px 0;
    }
    
    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .topo-direita {
        margin-top: 1rem;
        position: static;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
}