/* styles.css */

body {
    margin: 0;
    overflow: hidden;
    background: black;
    font-family: 'Press Start 2P', monospace;
}

canvas {
    display: block;
}

.ui {
    position: fixed;
    color: white;
}

#score {
    position: fixed;
    top: 50px;
    left: 10px;
    font-size: 18px;
    color: yellow;
}

#lives {
    position: fixed;
    bottom: 10px;
    left: 10px;
    font-size: 18px;
    color: white;
}

.cooldown-container {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 150px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
}

#cooldown-bar {
    height: 100%;
    width: 100%;
    background: lime;
    transform-origin: left;
    transform: scaleX(1);
    transition: transform 0.1s linear;
}

#cooldown {
    position: fixed;
    top: 25px;
    right: 10px;
    font-size: 14px;
    color: white;
}

#hyperspace-indicator {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border: 2px solid white;
    text-align: center;
    line-height: 35px;
    font-size: 14px;
    color: white;
    background: red;
}

#hyperspace-indicator.active {
    background: lime;
}


#main-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: black;
    color: white;
    text-align: center;
}

#game-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: cyan;
}

#game-description {
    font-size: 18px;
    margin-bottom: 40px;
    width: 60%;
    line-height: 20px;
}

button {
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    padding: 10px 20px;
    margin: 10px;
    border: 2px solid indigo;
    background: black;
    color: indigo;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: indigo;
    color: white;
}


.tooltip {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: black;
    color: white;
    padding: 10px;
    border: 1px solid indigo;
    border-radius: 5px;
    font-size: 12px;
    display: none;
    white-space: nowrap;
    line-height: 20px;
}

button:hover .tooltip {
    display: block;
}