@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');

:root {
    --primary-neon: #00ffff;
    --secondary-neon: #ff00ff;
    --danger-neon: #ff1f1f;
    --xp-color: #f0ff4d;
    --bg-color: #050505;
    --text-color: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    user-select: none; /* Metin seçimini engelle */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#gameCanvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.menu-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background: rgba(5, 5, 5, 0.5);
}

.glass-panel {
    background: rgba(20, 20, 40, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    max-width: 90%;
    width: 400px;
}

.glass-panel h1 {
    font-size: 3rem;
    color: var(--primary-neon);
    text-shadow: 0 0 10px var(--primary-neon), 0 0 20px var(--primary-neon);
    margin-bottom: 0;
}

.glass-panel h2 {
    font-size: 1.5rem;
    color: var(--secondary-neon);
    text-shadow: 0 0 5px var(--secondary-neon), 0 0 10px var(--secondary-neon);
    margin-bottom: 20px;
}

.glass-panel p {
    margin-bottom: 30px;
    font-weight: 300;
}

.glass-panel button {
    background: var(--primary-neon);
    color: var(--bg-color);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--primary-neon), inset 0 0 5px rgba(255, 255, 255, 0.5);
}

.glass-panel button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--primary-neon), 0 0 40px var(--primary-neon), inset 0 0 5px rgba(255, 255, 255, 0.5);
}

#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    text-shadow: 0 0 5px rgba(0,0,0,0.7);
    pointer-events: none; /* HUD'ın tıklamaları engellememesi için */
}

#score-container {
    background: rgba(0,0,0,0.3);
    padding: 10px 15px;
    border-radius: 10px;
}

#level-container {
    background: rgba(0,0,0,0.3);
    padding: 10px 15px;
    border-radius: 10px;
    width: 200px;
    text-align: center;
}

#xp-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(0,0,0,0.5);
    border-radius: 5px;
    margin-top: 5px;
    overflow: hidden;
}

#xp-bar {
    width: 0%;
    height: 100%;
    background: var(--xp-color);
    border-radius: 5px;
    transition: width 0.3s ease-out;
    box-shadow: 0 0 10px var(--xp-color);
}