@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    /*font-family: 'Minecraftia', sans-serif;*/
    font-family: 'Press Start 2P', cursive;
}

body {
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background-image: url("ozadje.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}

.game-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.title {
    text-align: center;
    color: #fff;
    font-size: 48px;
    text-shadow: 4px 4px 8px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.health-bars {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 40px;
}

.player-health {
    flex: 1;
}

.player-name {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.health-bar-bg {
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid #fff;
}

.health-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, rgb(151, 17, 17), rgb(233, 162, 162));
    transition: width 0.3s ease;
}

canvas {
    display: block;
    background: #000000; /*nee dela glej ctx.fillStyle v HTMLju*/
    border: 5px solid #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}


.controls {
    margin-top: 20px;
    text-align: center;
    color: #ffffff;
    font-size: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.controls div {
    margin: 8px 0;
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
}

.key {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 5px;
    margin: 0 5px;
    font-weight: bold;
}

.game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    font-size: 36px;
    display: none;
    z-index: 1000;
}

.game-over button {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 24px;
    background: #ce5367;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;

}

.game-over button:hover {
    background: #972639;
}


/*toj sam da fixira skroling meu*/
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;/*<<<*/
}
