* {
    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');
}

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

.appBar {
    position: absolute;
    z-index: 1;
    background-color: black;
}

.appBar h3 {
    color: white;
    font-size: clamp(0.5rem, 30px, 1rem);
}

/***** contenu *********/
.content {
    position: absolute;
    top: 0;
    //  flex-direction: colums;
    align-items: stretch;
    width: 100vw;

}

#nume {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

#nume #question {
    font-family: NumerHIC;
    font-size: clamp(10px, 5vw, 30px);
    padding: 5px;
    display: flex;
    position: absolute;
    bottom: 30px;
    right: 0
}

#nume #question p {
    margin: 0;
    border: solid 2px;
    border-radius: 10px;
    text-align: center;
    padding: 10px;
    width: fit-content;
    height: fit-content;
    position: relative;
    background-color: #555;
    color: #fff;
    min-width: 200px
}

#nume #question p.error {
    background-color: red;

}

#nume #question p:before {
    content: "";
    position: absolute;
    bottom: -15px;
    right: 12px;
    height: 25px;
    width: 10px;
    background-color: transparent;
    border-bottom-left-radius: 10px;
    box-shadow: 0 10px 0 0 #555;
    transform: rotate(270deg) scaleY(-1);
}

#nume #question p.error:before {
    box-shadow: 0 20px 0 0 red;
}

#mode {
    cursor: pointer;
    font-size: 1.2em;
    color: lightgray;
    font-family: NumerHIC;
    padding-right: 1%;
    padding-left: 1%;
    width: 100%;
    background-color: black;
}

#mode img {
    transition: transform 0.5s ease;
    width: clamp(30px, 5vw, 50px);
    vertical-align: middle;
}

#mode img:hover {
    transform: scale(1.5);
    transform-origin: center;
}



#numeImg {
    width: clamp(80px, 15vw, 150px);
    height: auto;
}

figure {
    //border: solid 1px;
    margin: 0.1%;
    border-radius: 50%;
}

#mobilier {
    width: 100%;
    padding: 1%;
    height: 70vh;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(auto-fit, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    margin-top: 20px;
}

#mobilier div {
    display: grid;
    padding: 0;
    width: 100%;

}

#mobilier label {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}


#mobilier img {
    cursor: pointer;
    transition: transform 0.5s ease;
    width: clamp(30px, 5vw, 80px);
    height: auto;
}

#mobilier img:hover {
    transform: scale(1.5);
    transform-origin: center;
}

input {
    display: none;
}

input:disabled+label {
    opacity: 0.2
}

input:checked+label img {
    border: solid 2px red;
    border-radius: 5px
}

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

    #mobilier {
        grid-template-columns: repeat(13, 1fr);
        grid-template-rows: repeat(auto-fit, 1fr);
        height: 20vh;
        margin-top: 0;
    }
     #mobilier img {
        width: clamp(25px, 3vw, 30px)
    }

    #nume #question {
        position: relative;
    }
}

@media screen and (orientation: landscape) and (max-height: 800px) {

    #nume #question {
        font-size: clamp(10px, 6vw, 18px);

    }
}

@media screen and (orientation: landscape) and (max-height: 600px) {
    #mobilier {
        height: 60vh;
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(auto-fit, 1fr);
    }

    #mobilier img {
        width: clamp(25px, 3vw, 40px)
    }

    #numeImg {
        width: clamp(60px, 10vw, 100px);
        height: auto;
    }
}

/**********settings*********/
#settings #niveauJeu {
    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: 8vw;
    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[type="radio"]:checked+label figure img {
    border: none;
}

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

.loader p {
    background: rgba(255, 255, 255, 0.9);
    height: fit-content;
    padding: 1%;
}

/****rules****/
#rules {
    padding-bottom: 30px;
    font-size: clamp(0.5rem, 30px, 1rem);
}

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

#rules p.small {
    font-size: small;
    margin-top: 20px
}

#rules ul {
    margin-top: 20px
}

#rules ul img {
    max-width: 50px;
    vertical-align: middle;
}


.copyright {
    display: none;
}
