body {
    font-family: 'Press Start 2P', cursive;
    image-rendering: pixelated;
}

.startpage {
    background-image: url("../image/océan.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    width: 100vw;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-start {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    width: 600px;
    height: 250px;

    background-image: url("../image/bouton-jouer.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    color: #000;
    font-size: 52px;

    image-rendering: pixelated;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}


.btn-dialog {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-dialog:hover {
    transform: scale(1.05);
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}


.dialog-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    margin: 0;
    overflow: visible;
    width: 100%;
    max-width: none;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 1.0, 0.2, 1);
    background-size: 100% 100%;
    padding: 30px 4%;
    box-sizing: border-box;
}

.dialog-bottom h2 {
    margin: 0 0 20px 0;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}


.dialog-bottom[open] {
    transform: translateY(0);
}


.avatar-flottant {
    display: block;
    width: 80px;
    height: 80px;
    position: absolute;
    top: -40px;
    left: 30px;
}

.avatar-flottant+.contenu-dialog {
    margin-left: 100px;
}

.village {
    background-image: url("../image/background-final.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    width: 100vw;
    height: 100vh;

    position: relative;
}

.btn-retour {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    padding: 10px 20px;
    background-color: #000;
    color: #4CAF50;
    border: 4px solid #4CAF50;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    transition: all 0.3s ease;
    outline: none;
}

.btn-retour:hover {
    background-color: #4CAF50;
    color: #000;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.8);
}

.btn-retour:focus {
    outline: none;
}

.mide {
    /*violette*/
    position: absolute;
    top: 12.2%;
    left: 48%;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;

    border: none;
    cursor: pointer;
    background-color: transparent;
}

.mbureautique {
    /*orange*/
    position: absolute;
    top: 24.2%;
    left: 66%;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;

    border: none;
    cursor: pointer;
    background-color: transparent;
}

.mos {
    /*bleue*/
    position: absolute;
    top: 22.2%;
    left: 36%;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;

    border: none;
    cursor: pointer;
    background-color: transparent;
}

.mdessin {
    /*jaune*/
    position: absolute;
    top: 30.6%;
    left: 77.2%;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;

    border: none;
    cursor: pointer;
    background-color: transparent;
}

.mmedia {
    /*verte*/
    position: absolute;
    top: 57.8%;
    left: 73.8%;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;

    border: none;
    cursor: pointer;
    background-color: transparent;
}

.mrgpd {
    /*rouge*/
    position: absolute;
    top: 61.8%;
    left: 32%;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;

    border: none;
    cursor: pointer;
    background-color: transparent;
}

.mnird {
    position: absolute;
    top: 37.5%;
    left: 53%;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;

    border: none;
    cursor: pointer;
    background-color: transparent;
}

.hformulair {
    position: absolute;
    top: 80.5%;
    left: 3%;

    width: 80px;
    height: 80px;
    background-image: url("../image/parchemin.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;

    border: none;
    cursor: pointer;
    background-color: transparent;
}

.hsnake {
    position: absolute;
    top: 18.2%;
    left: 54%;

    width: 80px;
    height: 80px;
    background-image: url("../image/arbresansserpent.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;

    border: none;
    cursor: pointer;
    background-color: transparent;
}

.hsnake:hover {
    background-image: url("../image/omgunserpent.png");
}

.hlasergame {
    position: absolute;
    top: 41%;
    left: 29%;

    width: 60px;
    height: 60px;
    background-image: url("../image/cible.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;

    border: none;
    cursor: pointer;
    background-color: transparent;
}