* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../src/bgpkmn.gif');
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: -1;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header p {
    color: #000000;
    font-size: 1.1rem;
}

.hardcoded-student {
    background-image: url(../src/bg_pkmn.png);
    background-size: cover;
    padding: 100px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ffd700;
    margin: 0 auto 30px auto;
    text-align: center;
    width: 100%;
    max-width: 600px;
}
 .mvp {
    font-size: 2rem;
    color: #FFEBEE;
    text-shadow: 0 0 10px rgb(0, 0, 0), 0 0 20px rgb(255, 0, 0), 0 0 30px rgb(0, 0, 0);
 }
 
.destaque-img {
    width: 250px;
    height: 250px;
    object-fit: contain;
}

.score {
    font-size: 3rem;
    font-weight: bold;
    color: #e53935;
    text-shadow: 0 0 10px rgb(0, 0, 0), 0 0 20px rgb(255, 0, 0), 0 0 30px rgb(0, 0, 0);
    margin-top: 50px;
}

.ranking {
    width: 100%;
    max-width: 900px;
}

.ranking h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #444;
}

.filters-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    background-color: #e0e0e0;
    color: #555;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.filter-btn.active#btn-todos {
    background-color: #333;
    color: white;
}

.filter-btn.active#btn-charmander {
    background-color: #e53935;
    color: white;
}

.filter-btn.active#btn-bulbasaur {
    background-color: #43a047;
    color: white;
}

.filter-btn.active#btn-squirtle {
    background-color: #1e88e5;
    color: white;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    table-layout: fixed;
}

th,
td {
    padding: 15px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #ddd;
}

.pokemon-sprite {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

th:nth-child(1),
td:nth-child(1) {
    width: 25%;
}

th:nth-child(2),
td:nth-child(2) {
    width: 20%;
    text-align: center;
}

th:nth-child(3),
td:nth-child(3) {
    width: 25%;
}

th:nth-child(4),
td:nth-child(4) {
    width: 30%;
    text-align: right;
    font-weight: bold;
    font-size: 1.1rem;
}

#rank-table th {
    background-color: #333;
    color: white;
}

tr.theme-charmander td {
    background-color: #FFEBEE;
    border-bottom: 1px solid #EF9A9A;
    color: #B71C1C;
}

tr.theme-charmander:hover td {
    background-color: #FFCDD2;
}

tr.theme-bulbasaur td {
    background-color: #e8f5e9;
    border-bottom: 1px solid #c8e6c9;
    color: #1b5e20;
}

tr.theme-bulbasaur:hover td {
    background-color: #c8e6c9;
}

tr.theme-squirtle td {
    background-color: #e3f2fd;
    border-bottom: 1px solid #bbdefb;
    color: #0d47a1;
}

tr.theme-squirtle:hover td {
    background-color: #bbdefb;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .hardcoded-student {
        padding: 40px 20px;
        margin-bottom: 20px;
    }

    .destaque-img {
        width: 150px;
        height: 150px;
    }

    .mvp {
        font-size: 1.5rem;
    }

    .score {
        font-size: 2rem;
        margin-top: 20px;
    }

    .ranking h2 {
        font-size: 1rem;
    }

.ranking {
    width: 100%;
    max-width: 100vw;
    padding: 0 5px;
    box-sizing: border-box;
}

table,
thead,
tbody,
th,
td,
tr {
    display: block;
}

tr {
    display: flex;
    align-items: center;
    width: 100%;
}

th,
td {
    white-space: normal;
    padding: 10px 5px;
    font-size: 0.85rem;
    border: none;
}

th:nth-child(2),
td:nth-child(2) {
    order: 1;
    width: 30%;
    text-align: left;
}

th:nth-child(1),
td:nth-child(1) {
    order: 2;
    width: 40%;
    text-align: left;
}

th:nth-child(4),
td:nth-child(4) {
    order: 3;
    width: 25%;
    text-align: right;
    padding-right: 0;
}

th:nth-child(3),
td:nth-child(3) {
    display: none;
}

.pokemon-sprite {
    width: 40px;
    height: 40px;
    margin: 0;
}
thead tr {
    background-color: #333;
    color: white;
    border-bottom: none;
}

thead th {
    background-color: transparent;
    color: inherit;
}

tr.theme-charmander {
    background-color: #FFEBEE;
    color: #B71C1C;
}

tr.theme-charmander td {
    background-color: transparent;
    color: inherit;
    border-bottom: none;
}

tr.theme-bulbasaur {
    background-color: #e8f5e9;
    color: #1b5e20;
}

tr.theme-bulbasaur td {
    background-color: transparent;
    color: inherit;
    border-bottom: none;
}

tr.theme-squirtle {
    background-color: #e3f2fd;
    color: #0d47a1;
}

tr.theme-squirtle td {
    background-color: transparent;
    color: inherit;
    border-bottom: none;
}
.filters-container {
    gap: 8px;
    padding: 0 10px;
}

.filter-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    flex: 1 1 40%;
}
}

