/* High scores button */
.highscores-btn {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 10px 5px;
}

.highscores-btn:hover {
    background-color: #2980b9;
}

/* High scores modal */
.highscores-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.highscores-modal.active {
    display: flex;
}

.highscores-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.highscores-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
}

.highscores-modal-header h2 {
    color: #2c3e50;
    margin: 0;
}

.highscores-close-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0;
    width: 30px;
    height: 30px;
}

.highscores-close-btn:hover {
    color: #e74c3c;
}

/* Distinction badges */
.distinction-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: bold;
    color: white;
}

.distinction-summa-cum-laude {
    background-color: #f1c40f;
    color: #2c3e50;
}

.distinction-magna-cum-laude {
    background-color: #9b59b6;
}

.distinction-cum-laude {
    background-color: #3498db;
}

.distinction-standard {
    background-color: #95a5a6;
}

/* High scores table */
.highscores-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.highscores-table th,
.highscores-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.highscores-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

.highscores-table tr:hover {
    background-color: #f5f5f5;
}

/* High scores modal footer */
.highscores-modal-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

#clear-highscores-btn {
    background-color: #e74c3c;
}

#clear-highscores-btn:hover {
    background-color: #c0392b;
}
