html, body {
    margin: 0;
    padding: 0;
}
body {
    zoom: 1;
    touch-action: pan-x pan-y;
  }
  .noscroll {
    overflow: hidden;
  }

.circle_pointer{
    border: 10px solid #f43e47;
    border-radius: 100px;
    width: 60px;
    height: 60px;
    display: block;
    position: absolute;
}

.img-intro{
    grid-area: c;
    height: 100%;
    position: absolute;
    width: 100%;
    object-fit: cover;
}

#control_pannel img{
    width: 100%;
    max-width: 95vw;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.intro {
    background-color: white;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: baseline;
    justify-content: center;
    z-index: 10;
    position: fixed;
}
.introcont {
    display: grid;
    grid-template-columns: 0.6fr 1fr;
    grid-template-rows: 25vh 1fr;
    background: #FFF;
    justify-content: center;
    z-index: 10;
    grid-template-areas:
        "a a"
        "b c";
    /* max-width: 1000px; */
    width: 100%;
    height: 95vh;
    position: fixed;
    top: 0;
    position: relative;
}

#game_container {
}

.option {
    position: fixed;
    bottom: 0;
    width: 100vw;
    background: aliceblue;
    display: grid;
    grid-template-columns: 1fr 100px;
    align-items: center;
    justify-content: center;
--h: 140px;
    height: var(--h);
    z-index: 5;
}

.outils {
    display: grid;
    justify-content: center;
    width: 100%;
    grid-template-columns: repeat(10,1fr);
    gap: 31px;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.outils img {
    max-width: 100%;
    width: 100%;
    height: calc(var(--h) - 30px);
    object-fit: contain;
    justify-self: center;
}

.outils img.inactif {
    filter: saturate(0);
    opacity: 0.5;
}

.loupe svg {
    width: 100%;
    height: 20px;
}

audio {
    display: none;
}

.logo {
    grid-area: a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.regles {
    grid-area: b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

div#control_pannel {
    /* display: none; */
}

.logo svg {
    max-width: 250px;
}
#minimap {
    cursor: zoom-in;
}
@keyframes tada{
    0%{transform:scaleX(1)}
    10%,20%{transform:scale3d(.9,.9,.9) rotate(-3deg)}
    30%,50%,70%,90%{transform:scale3d(2,2,2) rotate(3deg)}
    40%,60%,80%{transform:scale3d(2,2,2) rotate(-3deg)}
    to{transform:scaleX(1)}
}
.outil.active {
    animation: tada 1s 1;
    filter: saturate(1) !important;
    opacity: 1 !important;
}

.fleches {
    position: fixed;
    width: 100vw;
    height: 100vh;
    /* background: red; */
    z-index: 6;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.fleche-gauche {
    left: 10px;
    transform: rotate(90deg);
}

.fleches div {
    position: absolute;
    cursor: pointer;
    pointer-events: all;
}

.fleche-droite {
    right: 10px;
    transform: rotate(-90deg);
}

.fleche-haut {
    top: 10px;
    transform: rotate(180deg);
}

.fleche-bas {
    bottom: 150px;
}

.fleches div svg {
    width: 40px;
    height: 40px;
}

* {
    user-select: none;
}
.reglesimg {
    max-width: 100%;
    height: auto;
}
@media all and (max-width: 600px) {
    .outils {
        grid-template-rows: auto auto;
        grid-template-columns: repeat(5,1fr);
        gap: 0px 10px;
    }
    
    .outils img {--h: 80px;}

    .introcont {
        grid-template-columns: 1fr;
        grid-template-areas:
            "a"
            "b"
            "c";
        grid-template-rows: auto 1fr 1fr;
        height: 100vh;
        gap: 20px;
        padding-top: 20px;
        box-sizing: border-box;
    }

    .reglesimg {
        width: 280px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .logo svg {
        max-width: 100px;
    }
    .fleches {
        display: none;
    }
    img.ed-logo-header {
        width: 110px;
    }
    #ecranmini {
        align-items: center;
    }
    
    .reglesb {
        margin-top: 0;
    }
}

img.ed-logo-header {
    width: 240px;
}

#ecranmini {
    position: fixed;
    top: 0;
    height: 0;
    background: rgb(255 255 255);
    z-index: 8;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: baseline;
    backdrop-filter: blur(10px);
}

.emcont {width: 84vh;}

.reglesb {
    WIDTH: 100%;
    margin-top: 5vh;
    max-width: 90vw;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
#fin {
    display:none;
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: #FFF;
    z-index: 100;
    justify-content: center;
    align-items: center;
    transition: all ease .8s;
    opacity: 0;
}
#fin img {
    width: 80%;
    max-width: 500px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
#fin.active {
    opacity: 1;
}




