@font-face {
    font-family: 'Minecraftia';
    src: url('./assets/fonts/Minecraftia-Regular.ttf') format('truetype');
}

* {
    box-sizing: border-box;
    image-rendering: pixelated; /* Pour garder l'aspect net des textures */
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #1e1e1e;
    font-family: 'Minecraftia', sans-serif;
    color: white;
}

/* Couches de menus */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10;
}

.game-title {
    font-size: 60px;
    color: #AAAAAA;
    text-shadow: 4px 4px #333333;
    margin-bottom: 40px;
}

.menu-card {
    background: #444;
    border: 4px solid #000;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 350px;
}

/* Boutons style Minecraft */
button {
    font-family: 'Minecraftia', sans-serif;
    background: #666;
    color: white;
    border: 3px solid #000;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background: #888;
    border-color: #FFF;
}

button.danger { background: #aa3333; }

input {
    font-family: 'Minecraftia', sans-serif;
    padding: 10px;
    background: #222;
    border: 2px solid #000;
    color: white;
}

/* Interface en jeu (HUD) */
#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
    pointer-events: none;
}

#hotbar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border: 3px solid #111;
}

.slot {
    width: 50px;
    height: 50px;
    border: 3px solid #888;
    margin: 0 2px;
    background: rgba(255, 255, 255, 0.1);
}

.slot.active {
    border-color: #FFF;
    background: rgba(255, 255, 255, 0.3);
}

.control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}