/* style.css */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

.popcat-section {
    background: linear-gradient(135deg, #ff6b6b, #ff4d4d);
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.my-score {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.country-selector {
    margin-bottom: 20px;
}

.country-selector label {
    font-size: 1rem;
    margin-right: 10px;
}

.country-selector select {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background-color: rgba(255, 255, 255, 0.2);
    color: #000;
    font-size: 1rem;
    cursor: pointer;
}

#popcat {
    width: 250px;
    height: auto;
    cursor: pointer;
    transition: transform 0.1s ease-out;
}

.click-info {
    font-size: 1.2rem;
    color: #f0f0f0;
    opacity: 0.8;
}

.leaderboard-section {
    background-color: #2b2b2b;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.leaderboard-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    text-align: left;
}

thead th {
    background-color: #444;
    color: #fff;
    padding: 15px;
    font-weight: 600;
}

tbody tr {
    border-bottom: 1px solid #3a3a3a;
    transition: background-color 0.3s ease;
}

tbody tr:hover {
    background-color: #444;
}

td {
    padding: 15px;
    vertical-align: middle;
}

tr:nth-child(1) td { font-weight: 700; color: #ffd700; }
tr:nth-child(2) td { font-weight: 600; color: #c0c0c0; }
tr:nth-child(3) td { font-weight: 600; color: #cd7f32; }