@font-face {
    font-family: 'Minecraft';
    src: url('./assets/font/MinecraftRegular-Bmg3.otf') format('opentype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Minecraft', sans-serif;
}

/* Fond animé */
body {
    background: url('./background5.png') repeat-x center center / cover;
    background-size: 150%;
    min-height: 100vh;
    color: #fff;
    overflow: hidden;
    animation: bg-pan 30s linear infinite alternate;
}

@keyframes bg-pan {
    0% { background-position: 0 center; }
    100% { background-position: -10vw center; } /* déplacement proportionnel */
}

.background {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(0.8vh) brightness(0.85);
    z-index: -1;
}

/* Container : occupe toute la hauteur */
.container {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* centre le bloc global */
    align-items: center;
    gap: 4vh;
}

/* Logo au-dessus du centre */
.header {
    position: absolute;
    top: 10vh; /* espace depuis le haut */
    display: flex;
    justify-content: center;
    width: 100%;
}
.title-logo {
    width: 25vw;
    height: auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 0.5vh 1.2vh rgba(0,0,0,0.4));
}

/* Menu parfaitement centré */
.menu {
    display: flex;
    flex-direction: column;
    gap: 1vh;
    align-items: center;
}
.menu-btn {
    background: rgba(0,0,0,0.55);
    border: 0.15vh solid rgba(255,255,255,0.15);
    padding: 1vh 2.5vw;
    font-size: 1.8vh;
    color: white;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    width: min(20vw, 60vw);
    text-align: center;
}
.menu-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-0.3vh);
}
.play {
    background: #a1b8c9;
    color: #111;
    font-weight: bold;
}
.play:hover {
    background: #bac5ce;
}

/* Footer */
.footer-left,
.footer-right {
    position: fixed;
    bottom: 1.2vh;
    font-size: 1.5vh;
    color: rgba(255,255,255,0.8);
}
.footer-left { left: 1.5vh; }
.footer-right { right: 1.5vh; text-align: right; }
