html {
    height: 100%;
    touch-action: none;
    /*désactive pool down refresh*/
    user-select: none;

}

#enhaut {
    background-color: #f8f9fa;
    padding: 15px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#menupapier {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 15px;
    border-left: 1px solid #dee2e6;
}

.bouton, input[type=button], select {
    cursor: pointer;
    border: 1px solid #ced4da;
    background-color: #ffffff;
    border-radius: 8px;
    color: #495057;
    font-family: 'Gloria Hallelujah', Arial, sans-serif;
    font-size: 1rem;
    padding: 8px 15px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: auto;
    margin: 0;
}

.bouton:hover, input[type=button]:hover, select:hover {
    background-color: #ffd34e;
    border-color: #ffc107;
    color: #212529;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

select {
    appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23495057' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
}

#avecquadrillage {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#enhaut label {
    font-family: 'Gloria Hallelujah', Arial, sans-serif;
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
}

.message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 90%;
    min-width: 320px;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 100vmax rgba(0, 0, 0, 0.5);
    text-align: center;
    font-family: 'Gloria Hallelujah', Arial, sans-serif;
    font-size: 1.4rem;
    z-index: 2000;
    border: none;
}

#resultatbon {
    border-left: 10px solid #4CAF50;
    background-color: #f9fff9;
    color: #2e7d32;
}

#resultatfaux {
    border-left: 10px solid #FF9800;
    background-color: #fffbf0;
    color: #e65100;
}

#resultatperdu {
    border-left: 10px solid #F44336;
    background-color: #fff0f0;
    color: #c62828;
}

.message input[type=button] {
    margin-top: 20px;
    font-size: 1.1rem;
    padding: 10px 25px;
    background-color: white;
    border: 2px solid currentColor;
    border-radius: 8px;
    color: inherit;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    font-weight: bold;
    height: 50px;
}

.message input[type=button]:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

h1 {
    font: 200%/100% Gloria Hallelujah, Arial, Helvetica, sans-serif;
    font-weight: bold;
}

#title {
    background-image: url('allo.png');
    background-position: top right;
    background-repeat: no-repeat;
    background-size: 5%;
}

.consigne {
    border: none;
    text-align: center;
    color: #444444;

    font: 75%/100% Gloria Hallelujah, Arial, Helvetica, sans-serif;
    margin: auto;
    /*margin-bottom: 20px;
    margin-top: 20px;*/
    padding: 5px;
    /*line-height: 2;*/
    text-align: center;

    user-select: text;
    -moz-user-select: text;
    -webkit-user-select: text;
    -ms-user-select: text;
}



#auteur {
    bottom: 0px;
    position: relative;
    opacity: 0.3;

}


.enbas {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

#popup {
    margin: auto;
    padding: 5px;
    width: 30%;
    border: 7px solid rgba(28, 110, 164, 0.83);
    border-radius: 40px;
}

#impression,
#impression2 {
    display: none;

}

#title {
    display: none;
}


.frac {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    letter-spacing: 0.001em;
    text-align: center;

}

.frac>span {
    display: block;
    padding: 0.1em;
}

.frac span.bottom {
    border-top: thin solid black;
}

.frac span.symbol {
    display: none;
}