/* Import a futuristic font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');

body {
    background-color: #0d0221; 
    color: #c5c6c7;
    font-family: 'Orbitron', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    height: 100vh;
    letter-spacing: 1.5px;
}

h1 {
    margin-bottom: 20px;
    font-size: 3rem;
    color: #9b59b6; 
    text-shadow: 0 0 8px rgba(155, 89, 182, 0.7); 
    letter-spacing: 3px;
}

#game-container {
    position: relative;
    border: 3px solid #4d4dff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(77, 77, 255, 0.4); 
}

canvas {
    display: block;
    background-color: #261c4f;
    border-radius: 5px;
}

#ui-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
}

#score {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #4d4dff;
    text-shadow: 0 0 5px rgba(77, 77, 255, 0.6);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 2, 33, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: all;
}

.overlay h2 {
    font-size: 48px;
    margin: 0;
    color: #9b59b6;
    text-shadow: 0 0 8px rgba(155, 89, 182, 0.7);
    letter-spacing: 2px;
}

.overlay p {
    font-size: 20px;
    margin-top: 10px;
    color: #c5c6c7;
}

.overlay button {
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 18px;
    font-weight: bold;
    color: #e0e0e0;
    background-color: #4d4dff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 10px rgba(77, 77, 255, 0.4);
}

.overlay button:hover {
    background-color: #6c6cff;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(108, 108, 255, 0.7);
}

.hidden {
    display: none;
}

.hidden-score {
    display: none;
}
