
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8e8e8 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 0; /* Garante que não há margens extras */
    width: 100%; /* Ocupa toda a largura */
}

.container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 800px;
    width: calc(100% - 40px); /* Subtrai o padding do body */
    text-align: center;
    margin: 20px 0;
}

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block; /* Importante para transform */
    
}

h1:hover {
    color: #f07d31;
    transform: scale(1.02);
    cursor: pointer;
}

h2 {
    color: #f47d35;
    margin: 25px 0 15px;
    font-size: clamp(1.3rem, 4vw, 1.5rem); /* Tamanho responsivo */
    
}

/* Estilo do Botão */
.btn {
    display: inline-block;
    background-color: #f47d35;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(244, 125, 53, 0.3);
    margin-bottom: 30px;
    font-size: clamp(0.9rem, 3.5vw, 1rem); /* Tamanho responsivo */
    width: auto;
    max-width: 100%;
}

.btn:hover {
    background-color: #e06d2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(244, 125, 53, 0.4);
}

/* Estilo da Tabela de Ranking */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    font-size: clamp(0.8rem, 3vw, 1rem); /* Tamanho responsivo */
}

th, td {
    padding: 12px 8px;
    text-align: center;
    word-break: break-word; /* Evita quebra de layout com textos longos */
}

th {
    background-color: #f47d35;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: clamp(0.7rem, 3vw, 0.9rem); /* Tamanho responsivo */
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:nth-child(odd) {
    background-color: white;
}

tr:hover {
    background-color: #fef0e8;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Estilo para as posições do ranking */
tr td:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-weight: bold;
    color: #2c3e50;
}


/* Estilo para a mensagem de ranking vazio */
p {
    color: #7f8c8d;
    font-style: italic;
    margin: 20px 0;
    font-size: clamp(0.9rem, 3.5vw, 1rem); /* Tamanho responsivo */
}


/* Media Queries para Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 20px 10px;
        border-radius: 10px;
        width: calc(100% - 20px); /* Ajusta para o padding reduzido */
        margin: 10px 0;
    }
    
    body {
        padding: 10px;
        display: flex; /* Mantém flex para centralização */
    }
    
    table {
        width: 100%;
        display: table; /* Mantém como tabela */
        overflow-x: auto;
        white-space: nowrap;
    }
    
    th, td {
        padding: 10px 5px;
        min-width: auto; /* Remove a largura mínima fixa */
        white-space: normal; /* Permite quebra de linha */
    }
    
    .btn {
        padding: 10px 20px;
        width: auto;
        margin: 0 auto 25px;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px 8px;
        width: calc(100% - 16px);
    }
    
    h1 {
        margin-bottom: 15px;
        font-size: 1.5rem;
    }
    
    h2 {
        margin: 15px 0 8px;
        font-size: 1.2rem;
    }
    
    th, td {
        padding: 8px 3px;
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* Opcional: ajuste para nomes muito longos*/ 
    td:nth-child(2) {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
}

/* Estilo do Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #7f8c8d;
    border-top: 1px solid #e8e8e8;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

footer button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

footer button:hover {
    transform: scale(1.05);
}

.git {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.git:hover {
    transform: scale(1.1);
}

/* Ajuste para o container principal */
.container {
    margin-bottom: 60px; /* Adiciona espaço para o footer fixo */
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    footer {
        font-size: 0.7rem;
        padding: 6px 0;
    }
    
    .git {
        width: 18px;
        height: 18px;
    }
    
    .container {
        margin-bottom: 50px;
    }
}

@media (max-width: 480px) {
    footer {
        font-size: 0.65rem;
    }
    
    .git {
        width: 16px;
        height: 16px;
    }
}

