* {
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@supports (-webkit-touch-callout: none) {
    img {
        -webkit-touch-callout: none
    }
}

@font-face {
    font-family: NumerHIC;
    src: url('../../nav/fonts/numerhic.otf');
}

body {
    margin: 0;
}

#btnRules,
#btnSettings,
#btnNew {
    display: block
}

/***** contenu *********/
.content {
    position: absolute;
    top: 0;
    //  flex-direction: colums;
    justify-content: flex-start;
    align-items: stretch;
    height: 90vh;
    width: 100vw;
    // border: solid green;

}

canvas {
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

#keyboard {
    //border: solid red;
    width: 100%;
    padding: 1%;
}

#interface {
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#interface input {
    border: solid 1px;
    z-index: 20;
    font-size: min(6vw, 48px);
    line-height: min(5vw, 40px);
    text-align: center;
    font-family: NumerHIC;
    width: min(20vw, 100px);
    padding: 1%;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

#nbEnter {
    display: flex;
    flex-direction: column;
    // border: solid 1px black;
    align-items: center;
    // flex-grow: 2;
    justify-content: center;
    margin-bottom: 30px;

}

#numpad {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 250px;
    max-height: 40vh;
    align-items: center;
    overflow: hidden;
}

#infobulle {
    // border: solid 1px;
    width: 100%;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    //align-items: stretch;
    height: 40vh
}

#infobulle .row {
    //border: solid 1px;
    padding-top: 2px;
    display: flex;
    justify-content: center;
    width: 100%;
    align-self: stretch;

}

#numpad .btn {
    font-family: NumerHIC;
    font-weight: 700;
    color: #111111;
    font-size: min(3vw, 24px);
    width: 30%;
    //height: 50px;
    background: white;
    border: solid 1px #ccc;
    border-radius: 5px;
    margin: 1px;
    /* // font-size: 1.5em;
    //width: 1.5em;
    width: 28%;
    height: 1.8em;
    text-align: center;
    margin: 2px;
    cursor: pointer;
    color: #111111;
    font-weight: 700 */

}

img#propose {
    width: min(10vw, 200px);
}

button#check.btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 1);
    transition: transform 0.5s ease;
    border: none;
    margin: 5px;
    cursor: pointer;
}

button#check.btn img {
    width: 50px;
    height: 50px;
    pointer-events: none;
}

button#check.btn:hover {
    background-image: url(../img/check-circle.svg);
    background-size: contain;
    background-repeat: no-repeat;
    transform: scale(1.2);
    transform-origin: center;
}

button#next.btn {
    font-family: NumerHIC;
    font-weight: 400;
    font-size: 2em;
    width: 110%;
    height: 50px;
    background-color: #04AA6D;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 2px;
    margin: 5px;
}

button#next.btn:hover {
    transition: transform 0.5s ease;
    transform: scale(1.2);
    transform-origin: center;
}

button#next {
    display: none;
}

/***** Intro ****/
#jouer {
    font-size: 2em;
    font-family: NumerHIC;
    padding: 5px;
    border-radius: 10px;
    cursor: pointer;
    background-color: white;
    //transition: pulse 0.5s ease;
    animation: pulse 5s;
    animation-iteration-count: infinite;
    z-index: 3001;
}

#jouer img {
    max-width: 200px
}

@keyframes pulse {
    0% {
        transform: scale(1);
        transform-origin: center;
    }

    50% {
        transform: scale(1.2);
        transform-origin: center;
    }

    100% {
        transform: scale(1);
        transform-origin: center;
    }
}

/*********Infos*********/
#petit,
#grand {
    font-family: NumerHIC;
    font-size: min(1.5em, 5vw);
    text-align: center;
    padding: 0 2%;
    list-style: none;
    visibility: hidden;
    z-index: 1;
    position: absolute;
    top: 40%;
    background-color: rgba(0, 0, 0, .2);
    gap: 5px;
}

.petit,
.grand {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1%;
    height: 40vh;
    list-style: none;
}

#petit {
    left: 0
}


#grand {
    right: 20%;
}

#info {
    position: absolute;
    z-index: 1000;
    bottom: 15vh;
    width: 100vw;
    text-align: center;
    font-size: 3em;
    font-family: NumerHIC;
    // color: white;
}

/*** labels ocean *******/
.label,
.label2 {
    color: black;
    font-family: sans-serif;
    padding: 2px;
    background: rgba(0, 0, 0, .6);
    font-size: min(2vw, 24px);
    font-family: NumerHIC;
    font-weight: 700;
}

.label2 {
    font-size: 1em;
    font-weight: normal;
}

.labelWin {
    color: green;
    font-family: sans-serif;
    font-size: larger;
    padding: 2px;
    background: rgba(0, 0, 0, .6);
    font-size: 2em;
    font-family: NumerHIC;
    font-weight: 700
}

.labelWin.hidden {
    display: none
}

@media screen and (orientation: portrait) {
    .content {
        flex-direction: column;
    }

    #ocean {
        width: 100%
    }

    #keyboard {
        flex-grow: 2;
        justify-content: center;
    }

    #infobulle {
        height: auto;
    }

    #interface {
        display: flex;
        flex-direction: row;
        justify-items: center;
        align-items: center;
        justify-content: space-around;
    }

    #interface input {
        flex-grow: 2;
    }

    #numpad {

        max-height: 25vh;
    }

    #numpad .btn {
        height: 30px;

    }

    #petit,
    #grand {
        top: 30%;
    }

    .petit,
    .grand {
        height: 30vh;
    }

    #grand {
        right: 0;
    }

}

/*********coffres********/
#coffres {
    position: absolute;
    top: 0;
    z-index: 150;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.8)
}

#coffres figure {
    //display: inline-block;
    font-family: NumerHIC;
    font-size: min(18px, 2vw);
    text-align: center;
    border: solid 1px #666666;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 1px;
}

#coffres img {
    width: min(6vw, 50px);
}

#coups {
    position: absolute;
    left: min(80px, 10vw);
    display: flex;
}

/****level****/
#level {
    position: absolute;
    z-index: 1;
}

#level img {
    max-width: 80px;
    width: 10vw;
}

/*********Ruler******/
#ruler-container {
    background-image: url(../img/carte_tresor.png);
    background-repeat: no-repeat;
    background-position: center 40%;
    background-size: contain;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
}

#ruler-container.visible {
    visibility: visible;
    animation: fade-in 5s forwards;
    z-index: 1;
}

#ruler-container.visible.fade-out {
    animation: fade-out 3s forwards;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.ruler {
    position: absolute;
    width: 70vw;
    height: 50px;
    margin: 10px;
    //margin-top: -5%;
    top: 40vh;
    padding: 0 10px 0 10px;
}

.stick-container,
.minor-stick-container {
    display: flex;
    justify-content: space-between;
    height: 50%;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.minor-stick-container {
    height: 70%;
}

.stick-container {
    .stick {
        margin-top: 25px;
        flex-grow: 1;
        height: 100%;
        border-left: 2px solid;

        &:last-child {
            flex-grow: 0;
            width: 2px;
            background-color: ;
        }
    }
}

.minor-stick-container {
    li {
        width: 1px;
        height: 80%;
        background-color: #333333;

        &:first-child,
        &:last-child {
            width: 0px;
        }
    }

    li.line5 {
        width: 2px;
        height: 100%;

    }

    li.x::after {
        content: "X";
        position: absolute;
        top: 0;
        transform: translateX(-50%) translateY(25%);
        color: indigo;
        font-weight: bold;
        font-size: 2.2em;
        font-style: italic;
    }

}

.stick-value {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    color: #000000;
    font-weight: bold;
    font-size: 1.2em;
    font-family: NumerHIC;
}

/**********settings*********/
#settings #niveauJeu {
    /* display: flex;
  justify-content: center;
  gap: 10px; */
    margin-bottom: 10px;
}

#settings figure {
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    padding: 5px;
    border: solid transparent 10px;
    display: flex;
    align-items: center;
}

#settings #niveauJeu figure>img {
    max-width: 10vw;
    padding-right: 1vw;
}

#settings #niveauJeu figcaption {
    font-size: clamp(0.5rem, 50px, 1rem);
}

#settings #niveauJeu figcaption img {
    width: min(40px, 3vw);
    vertical-align: middle;
}

#settings figure:hover {
    background: rgba(255, 255, 255, 0.5);
}

#settings input[type="radio"]:checked+label figure {
    border: solid red 10px;
    border-radius: 5px;
    box-sizing: border-box;
    color: white;
    background: rgba(255, 255, 255, 0.5);
}

#settings input {
    display: none;
    cursor: pointer;
}

.loader {
    z-index: 3001;
}

/****rules****/
#rules p span {
    font-family: icons;
    font-size: large;
}

.navDrawer { z-index:150 }
.appBarBottom { z-index:151 }