* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Prepreči težave z velikostjo */
}

body { 
    height: 100vh; 
    background-color: black; 
    display: flex;
    flex-direction: column; /* Postavi elemente enega pod drugega */
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
}
/* Posoda za točke desno zgoraj */
#ui-container {
    width: 800px;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

#score-board {
    color: #8A2BE2;
    font-family: 'Courier New', Courier, monospace;
    font-size: 24px;
    font-weight: bold;
    border: 3px solid #8A2BE2;
    padding: 5px 15px;
    background: black;
}

/* Game Over Okno */
#game-over-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#game-over-box {   
    position: relative;
    background: black;
    border: 8px double #8A2BE2; /* Pixel art rob */
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 20px #8A2BE2;
}

#game-over-box h1 {
    color: white;
    font-family: 'Courier New', Courier, monospace;
    font-size: 60px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

#game-over-box p {
    color: #8A2BE2;
    font-size: 24px;
    margin-bottom: 30px;
}

#close-overlay {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 35px;
    color: #8A2BE2;
    cursor: pointer;
    font-family: Arial, sans-serif;
    line-height: 1;
    transition: color 0.2s ease;
}

#close-overlay:hover {
    color: white;
    text-shadow: 0 0 10px #8A2BE2;
}

#credits{
    margin-top: 40px;
    text-align: right;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.6;
}

#credits p {
    margin-bottom: 5px;
    color: white; /* Da ostane belo, kot si želel */
}

#maze-container {
    margin-bottom: 20px; /* Razmik med labirintom in gumbi */
}
/*
canvas {
    max-width: 90vw;
    max-height: 70vh;
}
*/
#button-container {
    display: flex;
    gap: 20px; /* Razmik med gumboma */
}

/* Stil za gumbe po tvojih željah */
button {
    background-color: black;
    color: #8A2BE2;        /* Viola barva (BlueViolet) */
    border: 2px solid #8A2BE2;
    padding: 10px 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 5px;
}

button:hover {
    background-color: #8A2BE2;
    color: black;
    box-shadow: 0 0 15px #8A2BE2; /* "Neon" efekt ob prehodu */
}

button:active {
    transform: scale(0.95);
}