/* ==========================================================================
   FICHIER : style.css
   DESCRIPTION : Feuille de style complète (CV + TP + Code Python)
   THÈME : Cyber / Tech (Sombre avec accents Néon Cyan & Rouge)
   AUTEUR : Lillian Lachize
   ========================================================================== */

/* --- 1. VARIABLES GLOBALES (PALETTE DE COULEURS) --- */
:root {
    --primary-color: #00d4ff;   /* Cyan Néon (Couleur principale) */
    --secondary-color: #1e1e2f; /* Fond sombre global */
    --text-color: #e0e0e0;      /* Texte gris clair */
    --card-bg: #2a2a40;         /* Fond des cartes */
    --section-bg: #232336;      /* Fond alternatif */
    --enemy-color: #ff0055;     /* Rouge Néon (Adversaire / Erreur) */
    --highlight-bg: rgba(0, 212, 255, 0.1); /* Fond léger pour les survols */
    
    /* Couleurs Syntaxe Python  */
    --code-bg: #1e1e1e;
    --code-header: #252526;
    --code-keyword: #569cd6;
    --code-class: #4ec9b0;
    --code-function: #dcdcaa;
    --code-string: #ce9178;
    --code-comment: #6a9955;
    --code-number: #b5cea8;
}

/* --- 2. ANIMATIONS (KEYFRAMES) --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
}

/* --- 3. STYLE GÉNÉRAL (BASE) --- */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    animation: fadeIn 0.8s ease-out;
}

a { 
    color: var(--primary-color); 
    text-decoration: none; 
    transition: color 0.3s ease; 
}

a:hover { 
    text-decoration: underline; 
    text-shadow: 0 0 5px var(--primary-color);
}

/* --- 4. EN-TÊTE (HEADER) --- */
header {
    background: linear-gradient(135deg, #161625 0%, #2a2a40 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.profile-photo {
    width: 150px; 
    height: 150px;
    border-radius: 50%;
    object-fit: cover; 
    border: 4px solid var(--primary-color); 
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    margin-bottom: 1.5rem; 
    animation: fadeInUp 1s ease-out; 
}

h1 {
    font-size: 3rem;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-top: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 10px;
}

.alert-box {
    background-color: var(--highlight-bg);
    border: 1px solid var(--primary-color);
    color: #fff;
    padding: 15px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 8px;
    font-weight: bold;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    font-size: 1.1rem;
    animation: fadeIn 1s ease-out 0.5s backwards;
}

/* --- 5. STRUCTURE ET SECTIONS --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    background-color: var(--section-bg);
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease-out backwards;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Délais d'animation en cascade */
.section:nth-child(1) { animation-delay: 0.2s; }
.section:nth-child(2) { animation-delay: 0.4s; }
.section:nth-child(3) { animation-delay: 0.6s; }
.section:nth-child(4) { animation-delay: 0.8s; }
.section:nth-child(5) { animation-delay: 1.0s; }
.section:nth-child(6) { animation-delay: 1.2s; }

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
/* Style général du tableau */
.antivirus-table {
    border-collapse: collapse; /* Pour éviter les doubles bordures */
    width: 100%;
}

/* Style commun pour les cellules d'en-tête et de données */
.antivirus-table th, 
.antivirus-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

/* Style spécifique pour l'en-tête */
.antivirus-table th {
    text-align: left;
   
}
/* --- 6. ÉLÉMENTS DU CV (TAGS & TIMELINE) --- */
.skill-tag {
    background-color: var(--primary-color);
    color: #000;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    margin: 3px;
    transition: all 0.3s;
    cursor: default;
}

.skill-tag:hover {
    background-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--primary-color);
}

.timeline-item {
    border-left: 2px solid var(--primary-color);
    padding-left: 20px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 25px;
    border-radius: 0 8px 8px 0;
}

.timeline-item::before {
    content: '';
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: -7px;
    top: 5px;
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.5);
    background-color: #fff;
    box-shadow: 0 0 10px var(--primary-color);
}

.date { color: #aaa; font-style: italic; font-size: 0.9rem; }
.job-title { font-size: 1.2rem; font-weight: bold; color: #fff; }

/* --- 7. CALCULATRICE --- */
table.calculatrice {
    background-color: #161625;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    border-spacing: 8px;
    padding: 15px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
    margin: 0 auto;
}

table.calculatrice td {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: var(--card-bg);
}

table.calculatrice td:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.ecran {
    background-color: #0a0a12;
    color: var(--primary-color);
    text-align: right;
    padding-right: 15px;
    font-family: 'Courier New', monospace;
    font-size: 28px !important;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
    pointer-events: none;
    border: 1px solid #333 !important;
}

.egal { 
    background-color: var(--primary-color) !important;
    color: #161625 !important;
}
.egal:hover { background-color: #fff !important; }

/* --- 8. JEU D'ÉCHECS --- */
.difficulty-selector {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-diff {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-diff:hover {
    background-color: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.btn-diff.selected {
    background-color: var(--primary-color);
    color: #1e1e2f;
    box-shadow: 0 0 10px var(--primary-color);
}

.btn-diff[data-level="extreme"].selected {
    background-color: var(--enemy-color);
    border-color: var(--enemy-color);
    color: white;
    box-shadow: 0 0 15px var(--enemy-color);
}

.btn {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: var(--secondary-color);
    padding: 12px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--secondary-color);
    /* Responsive de base */
    display: inline-block;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--enemy-color);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--enemy-color);
    text-decoration: none;
}

/* --- RESPONSIVE .btn --- */

/* Tablette (max 768px) */
@media (max-width: 768px) {
    .btn {
        padding: 10px 22px;
        font-size: 1rem;
    }
}

/* Mobile (max 480px) */
@media (max-width: 480px) {
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        width: 100%;
        white-space: normal;
        border-radius: 30px;
    }

    .btn:hover {
        transform: scale(1.03); /* effet réduit sur mobile */
    }
}

.info-tour {
    background-color: var(--highlight-bg);
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid var(--primary-color);
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.echiquier {
    border-collapse: collapse;
    border: 3px solid var(--primary-color);
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    background-color: #000;
}

.echiquier td {
    width: 60px;
    height: 60px;
    padding: 0;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Couleurs Damier */
.echiquier tr:nth-child(odd) td:nth-child(even),
.echiquier tr:nth-child(even) td:nth-child(odd) {
    background-color: #11111a;
}
.echiquier tr:nth-child(odd) td:nth-child(odd),
.echiquier tr:nth-child(even) td:nth-child(even) {
    background-color: #2a2a40;
}

/* Sprites Pièces */
.piece {
    width: 100%;
    height: 100%;
    background-image: url('../img/chess_pieces.png'); /* Vérifier le nom de l'image */
    background-repeat: no-repeat;
    background-size: 600% 200%;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 5;
}

.piece:hover { transform: scale(1.15); }

.piece.blanc { background-position-y: 0%; filter: drop-shadow(0 0 3px var(--primary-color)); }
.piece.noir { background-position-y: 100%; filter: invert(1) drop-shadow(0 0 3px var(--enemy-color)); }

/* Positions Sprite */
.roi      { background-position-x: 0%; }
.reine    { background-position-x: 20%; }
.fou      { background-position-x: 40%; }
.cavalier { background-position-x: 60%; }
.tour     { background-position-x: 80%; }
.pion     { background-position-x: 100%; }

/* États Interactifs */
.case-selected {
    background-color: rgba(0, 212, 255, 0.25) !important;
    box-shadow: inset 0 0 15px rgba(0, 212, 255, 0.4);
    border: 1px solid var(--primary-color) !important;
}

/* --- 9. MODAL DE VICTOIRE --- */
.modal-victoire {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center; align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.contenu-victoire {
    background: #161625;
    padding: 40px;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
    text-align: center;
}

.bouton-rejouer {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    text-transform: uppercase;
    transition: transform 0.3s;
}
.bouton-rejouer:hover { transform: scale(1.1); }

/* --- 10. FENÊTRE DE CODE (STYLE VS CODE - PROJET FOREST) --- */
.code-window {
    background-color: var(--code-bg);
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin: 20px auto;
    max-width: 900px;
    text-align: left;
    overflow: hidden;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    transition: transform 0.3s ease;
}

.code-window:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.1);
    border-color: #555;
}

.code-header {
    background-color: var(--code-header);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.window-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

.filename {
    color: #cccccc;
    font-size: 0.9rem;
    font-weight: bold;
}

.code-content {
    padding: 20px;
    color: #d4d4d4;
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
}

/* Coloration Syntaxique (Simulation VS Code) */
.kwd { color: var(--code-keyword); font-weight: bold; }
.cls { color: var(--code-class); }
.fcn { color: var(--code-function); }
.str { color: var(--code-string); }
.num { color: var(--code-number); }
.cmt { color: var(--code-comment); font-style: italic; }
.dec { color: #9cdcfe; }



/* --- 11. STYLE SPÉCIFIQUE ZOMBIMAN (FOREST SURVIVAL) --- */

/* Conteneur spécifique pour gérer l'overlay */
.game-container {
    position: relative;
    border: 2px solid var(--primary-color); /* Bordure Cyan comme les autres projets */
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
}

#gameCanvas {
    display: block; /* Supprime l'espace vide sous le canvas */
    background-color: #051405;
}

/* Overlay (Menu par-dessus le jeu) */
#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 20, 5, 0.85); /* Fond semi-transparent */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(2px);
}

#ui-title {
    font-family: 'Segoe UI', sans-serif;
    font-size: 3rem;
    color: #c8ff00; /* Vert citron du jeu */
    text-shadow: 0 0 10px rgba(200, 255, 0, 0.5);
    margin-bottom: 10px;
    text-transform: uppercase;
}

#ui-subtitle {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
}

/* Bouton du jeu */
.btnjeu {
    background-color: #285028;
    color: #fff;
    border: 2px solid #c8ff00;
    padding: 12px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(200, 255, 0, 0.2);
}

.btnjeu:hover {
    background-color: #c8ff00;
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(200, 255, 0, 0.6);
}

/* --- 12. PIED DE PAGE --- */
footer {
    text-align: center;
    padding: 20px;
    background-color: #161625;
    font-size: 0.9rem;
    color: #888;
    margin-top: 40px;
    border-top: 1px solid #333;
}

/* --- 13. RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .subtitle { font-size: 1.1rem; }
    header { padding: 2rem 1rem; }
    .contact-info { flex-direction: column; align-items: center; gap: 10px; }
    .grid-2 { grid-template-columns: 1fr; }
    .section { padding: 15px; }
    
    /* Adaptation Échecs Mobile */
    .echiquier td { width: 40px; height: 40px; }
    .btn-diff { padding: 6px 10px; font-size: 0.8rem; }
    
    /* Code window adjustment */
    .code-content { font-size: 0.75rem; }
}

@media (max-width: 480px) {
    table.calculatrice td { width: 50px; height: 50px; font-size: 18px; }
    .echiquier td { width: 34px; height: 34px; }
}
/* --- 14. Géométridash --- */

/* Classes spécifiques à Géométridash pour éviter les conflits */

.geometridash-game-wrapper {
    width: 100%;
    text-align: center;
}

.geometridash-page {
    background: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.geometridash-container {
    background-color: var(--section-bg);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    max-width: 900px;
    width: 100%;
    padding: 30px;
}

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

.geometridash-header h1,
.geometridash-header h2 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    font-weight: bold;
}

.geometridash-header h2 {
    font-size: 2em;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
}

.geometridash-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-color);
    flex-wrap: wrap;
    margin-top: 15px;
}

.geometridash-stats div {
    background: var(--card-bg);
    padding: 10px 20px;
    border-radius: 10px;
    min-width: 150px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.geometridash-stats span {
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.geometridash-game-container {
    background: #0a0a14;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    border: 2px solid var(--primary-color);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.geometridash-canvas {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    background: #0a0a14;
}

.geometridash-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.geometridash-btn {
    padding: 12px 25px;
    font-size: 1em;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.geometridash-btn-primary {
    background: transparent;
    color: var(--primary-color);
}

.geometridash-btn-primary:hover:not(:disabled) {
    background: var(--primary-color);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.geometridash-btn-secondary {
    background: transparent;
    color: #ff9500;
    border-color: #ff9500;
}

.geometridash-btn-secondary:hover:not(:disabled) {
    background: #ff9500;
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 149, 0, 0.6);
}

.geometridash-btn-danger {
    background: transparent;
    color: var(--enemy-color);
    border-color: var(--enemy-color);
}

.geometridash-btn-danger:hover:not(:disabled) {
    background: var(--enemy-color);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.6);
}

.geometridash-btn-info {
    background: transparent;
    color: #00bfff;
    border-color: #00bfff;
}

.geometridash-btn-info:hover:not(:disabled) {
    background: #00bfff;
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.6);
}

.geometridash-instructions {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.geometridash-instructions h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.geometridash-instructions p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 10px;
}

.game-over-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.game-over-screen.hidden {
    display: none;
}

.game-over-content {
    background: var(--section-bg);
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    animation: popIn 0.5s ease;
    border: 2px solid var(--primary-color);
}

.game-over-content h2 {
    color: var(--enemy-color);
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

.final-stats {
    margin: 30px 0;
    font-size: 1.3em;
}

.final-stats p {
    color: var(--text-color);
    margin: 10px 0;
}

.final-stats span {
    color: var(--primary-color);
    font-weight: bold;
}

@keyframes popIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.leaderboard-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.leaderboard-screen.hidden {
    display: none;
}

.leaderboard-content {
    background: var(--section-bg);
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: popIn 0.5s ease;
    border: 2px solid var(--primary-color);
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.leaderboard-header h2 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.geometridash-btn-close {
    background: transparent;
    color: var(--enemy-color);
    border: 2px solid var(--enemy-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.geometridash-btn-close:hover {
    background: var(--enemy-color);
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.leaderboard-table thead {
    background: transparent;
}

.leaderboard-table th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.leaderboard-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--text-color);
}

.leaderboard-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.1);
}

.leaderboard-table .rank {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1em;
}

.leaderboard-table .score {
    color: var(--primary-color);
    font-weight: bold;
}

.leaderboard-table .level {
    color: var(--primary-color);
}

@media (max-width: 600px) {
    .geometridash-container {
        padding: 20px;
    }

    .geometridash-header h1 {
        font-size: 2em;
    }

    .geometridash-stats {
        flex-direction: column;
        gap: 10px;
    }

    .geometridash-stats div {
        min-width: auto;
    }

    .geometridash-instructions {
        font-size: 0.9em;
    }
}
