/* styles pour les exercices de TRAINING, à améliorer */
html, body {
    font-size: 14pt;
    font-family: Arial;
    text-align: center;
    background-color:rgb(139, 201, 194);

}
p {
    margin:0.6rem;
}
.readme{
    background-color: rgb(139, 201, 194);
    margin:10px;
}
.p-mini {
    font-size: 10pt;
}

div {
    vertical-align: middle;
}

#markdown-content {
    text-align : left;
    font-size : 12pt;
    background-color: rgb(139, 201, 194);
    margin:20px;
}

input,select,button  {
    font-size: 14pt;
    font-family: Arial;
    text-align: center;
    vertical-align: middle;
    min-width:40px;
    border-radius: 5px;
}
button, label {
    border-radius:4pt;
}
.btn-strong {
    /*utilisé pour les boutons "suivant" quand il est nécessaire*/
    color:blue;
    font-size:1.5rem;
    border-radius:4pt;

}
textarea {
    font-size: 14pt;
    font-family: Arial;
    border-radius: 5px;
    text-align: center;
}
.txt10{
    font-size: 10pt;
    font-family: Arial;
}
.big_font {
    font-size: 30pt;
    font-family: Arial;
}
.med_font {
    font-size: 20pt;
    font-family: Arial;
}
.rounded {
    border-radius:5pt;
}
#console {
    display:none;
}

canvas {
    border:1px solid black;
    background-color:#f9d893;
}

table {
    text-align: center;
    vertical-align: middle;
    border : 5px outset #443516;
    margin:auto;
    border-spacing: 10px;
    border-radius:10px;
}
tr,td, th {
    background-color:#cac1ab; 
    width: 300px;
    margin: 6px;
    padding: 6px;
    border-radius:10px;
}

.tblregular {
    table-layout: fixed; /* Imposer une mise en page fixe */
    width: 100%; /* Optionnel : pour que le tableau prenne toute la largeur */
}

.tblregular th,
.tblregular td {
    width: 6.66%; /* 100% divisé par 13 colonnes */
}
.canvas {
    border:1px solid white;
    background-color:#000000;
    margin:5px;
}
.right{
    float:right;
}

.meter {
    height: 20px;
    width:200px;
    position: relative;
    background: #555;
    border-radius: 25px;
    padding: 10px;
    box-shadow: inset 0 -1px 1px rgba(255, 255, 255, 0.3);
}
.meter > span {
    display: block;
    height: 100%;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    background-color: rgb(43,194,83);
    background-image: linear-gradient(to bottom,rgb(43,194,83) 37%,rgb(84,240,84) 69%);
    box-shadow:
            inset 0 2px 9px  rgba(255,255,255,0.3),
            inset 0 -2px 6px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.orange > span {
    background-color: #f1a165;
    background-image: linear-gradient(to bottom, #f1a165, #f36d0a);
}

.red > span {
    background-color: #f0a3a3;
    background-image: linear-gradient(to bottom, #f0a3a3, #f42323);
}

 object {
     width: 100%;
     min-height: 1000px;
 }

.container {
    display: flex;
    flex-wrap: wrap;
    width: 1250px; /* largeur totale (3 * 300px) */
    margin:auto;
    justify-content: center; /* Centre les éléments horizontalement */
}
.box {
    display: flex;
    width: 400px;
    height: 270px; /* hauteur arbitraire */
    background-color: lightblue;
    margin: 2px;
    box-sizing: border-box;
}
.box_500_200 {
    display: flex;
    justify-content: center;
    width: 500px;
    height: 200px; /* hauteur arbitraire */
    background-color: #f9d893;
    margin: 5px;
    padding: 5px;
    box-sizing: border-box;
}
.box_1000_100 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1000px;
    height: 100px; /* hauteur arbitraire */
    background-color: #f9d893;
    margin: 5px;
    box-sizing: border-box;
}
/* pour un checkbox plus grand dans les réponses de QCM */
.response {
    width:50px;
    height:50px;
}

.rangesl {
    /*range de très grande longueur*/
    width: 1000px;
    background-color: #f9d893;
    padding: 0.3rem;
    margin: auto;
}

.rangeml {
    /*range de moyenne longueur*/
    width: 255px;
}
.rangexl {
    /*range de moyenne longueur*/
    width: 500px;
}

/* Style de base pour le menu */
.menu {
    list-style-type: none;
    margin: 20px;
    padding: 3px;
    overflow: hidden;
    background-color: #cac1ab;
    border-radius: 10px;
    text-align: center; /* Centre les éléments à l'intérieur */
}

/* Style pour les éléments du menu */
.menu li {
    display: inline-block;
    /*position: relative; /* Ajoute une position relative pour positionner le sous-menu par rapport à l'élément parent */
}

/* Style pour les liens dans le menu */
.menu li a, .dropbtn {
    display: block;
    color: black;
    text-align: center;
    padding: 10px 12px;
    margin:5px;
    text-decoration: none;
    border-radius:5px;
    border-right: 1px solid #888; /* Ajoute une bordure à droite de chaque élément */
    border-bottom: 1px solid #888; /* Ajoute une bordure à droite de chaque élément */
}
.menu li:last-child {
    border-right: none; /* Supprime la bordure pour le dernier élément */
}
/* Changement de couleur au survol */
.menu li a:hover {
    background-color: #555;
    color:white;
}
.dropdown:hover .submenu {
    display: block;
}


/* Sous-menu */
.submenu {
    display: none;
    position: absolute;
    background-color: #cac1ab;
    min-width: 120px;
    box-shadow: 0px 8px 8px 0px rgba(0,0,0,0.2);
    border-radius: 5px;
    padding-inline-start: 10px;
    /*z-index: 1;*/
 }
.submenu li {
    display: block;
}
.submenu li a {
    display: block;
    color: black;
    text-align: left;
    padding: 10px 12px;
    margin: 5px;
    text-decoration: none;
    border-radius: 5px;
    border-right: none; /* Supprime la bordure à droite des éléments du sous-menu */
    border-bottom: 1px solid #888; /* Ajoute une bordure en bas des éléments du sous-menu */
}

/* Changement de couleur au survol pour les éléments du sous-menu */
.submenu li a:hover {
    background-color: #555;
    color: white;
}

