/* Erikov Minecraft - Stili za 3D igro */

/* Osnovno */
.minecraft-body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background-color: #000;
}

/* Glava strani */
.game-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-header h1 {
    margin: 0;
    font-size: 1.5em;
    color: #4CAF50;
}

.game-header nav {
    display: flex;
    align-items: center;
}

.game-header .back-link {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    background-color: #f44336;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.game-header .back-link:hover {
    background-color: #d32f2f;
}

.game-info {
    font-size: 0.9em;
    color: #ccc;
}

/* Canvas za igro */
#gameCanvas {
    position: fixed;
    top: 60px;
    left: 0;
    cursor: crosshair;
}

/* Inventar */
.inventory-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #333;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    padding: 10px;
    display: flex;
    gap: 5px;
    z-index: 100;
}

/* Posamezen slot v inventarju */
.inventory-slot {
    width: 60px;
    height: 60px;
    background-color: #555;
    border: 2px solid #888;
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.inventory-slot:hover {
    background-color: #666;
    transform: translateY(-5px);
}

.inventory-slot.selected {
    border-color: #4CAF50;
    border-width: 3px;
    box-shadow: 0 0 15px #4CAF50, inset 0 0 10px rgba(76, 175, 80, 0.3);
    background-color: #444;
    transform: scale(1.05);
}

/* Predogled bloka */
.block-preview {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 3px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Številka slota */
.slot-number {
    position: absolute;
    top: 2px;
    left: 2px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Ime bloka */
.block-name {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: white;
    white-space: nowrap;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2px 5px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.2s;
}

.inventory-slot:hover .block-name {
    opacity: 1;
}

/* Dodatni efekti */
@keyframes blockPlace {
    0% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes blockBreak {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(0) rotate(90deg);
        opacity: 0;
    }
}

/* Responsive za manjše zaslone */
@media (max-width: 768px) {
    .inventory-slot {
        width: 50px;
        height: 50px;
    }
    
    .block-preview {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .game-info {
        display: none;
    }
}