body {
    background-color: #101018;
    overflow-x: hidden;
}

h2 {
    text-align: center;
}

.box {
    background: goldenrod;
    width: 300px;
    height: 300px;
    margin: 30px auto;
    transition: all 1s linear;
    display: block;
}

.start-button {
    transition: all 1s linear;
}

#main-enigma {
    transition: all 3s linear;
    min-width: 500px;
    width: 100%;
}

.hidden {
    display: none;
}

.visuallyhidden {
    opacity: 0;
}

button {
    display: block;
    margin: 0 auto;
}

code {
    color: firebrick;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30vh;
}

#main-enigma {
    display: flex;
    flex-direction: column;
    align-items: center;
}

canvas.draggable_strip {
    /* Gestion bande individuelle canva */
    border: 2px solid;
    width: 100%;
    max-width: 60px;
    box-sizing: border-box;
    position: relative;
    background-color: white;
    margin: 2px;
    /*max-height: 1000px;*/
}

canvas.draggable_strip.category1 {
    border-width: 2px 2px 0 2px;
    margin-bottom: 0;
}

canvas.draggable_strip.category2 {
    border-width: 0 2px 2px 2px;
    margin-top: 0;
}


.category1 a.list-group-item.list-group-item-action {
    margin-bottom: 0;
    /*border-bottom-width: 0;*/
}

.category2 .list-group-item.list-group-item-action {
    margin-top: 0;
    /*border-top-width: 0;*/
}

.list-group {
    /* Gestion sous-groupe haut et bas*/
    width: 100%;
    display: flex;
    flex-direction: row;
    max-height: 760px;
    position: relative;
}

.list-group-item.list-group-item-action {
    /* gestion balise a qui contient canva*/
    width: 10%;
    max-width: 60px;
    height: 100%;
    padding: 2px;
    max-height: 760px;
    box-sizing: border-box;
    margin-right: 2px;
    margin-left: 2px;
    background-color: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    border-width: 0;
    border-style: solid;
    top: 0;
}

a.category1.list-group-item.list-group-item-action {
    border-radius: 10px 10px 0 0;
    padding-bottom: 0px;
}

a.category2.list-group-item.list-group-item-action {
    border-radius: 0 0 10px 10px;
    padding-top: 0px;
}


.dragdrop_box {
    /* Taille du jeu avec bandes */
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 1000px;
    margin-top: 0;
    margin-bottom: 55px;
}

.affichage-dragdrop {
    background-color: rgb(23, 23, 34);
    padding-left: 20%;
    padding-right: 20%;
    max-width: 1500px;
}

#skip {
    background-color: #101018;
    color: #dedeff;
    font-family: Orbitron;
    border: none;
    margin-top: 30px;
    font-size: 2em;
    transition: all 3s linear;
}

.list-group-item.list-group-item-action.highlight {
    background-color: rgb(148, 0, 0);
}

/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Gestion bordure dynamique +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

.fancy {
    /*--offset: 3px;*/
    /*background-color: red;*/
    position: relative;
    /*height: 55px;*/
    /*width: 200px;*/
    max-width: 100%;
    overflow: hidden;
}

.fancy::before {
    content: '';
    background-color: red;
    /* Couleur rouge */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 1;
    width: 200px;
    /* Largeur du carré */
    height: 100%;
    /* Hauteur du carré */
    animation: blink 4.5s linear infinite;
    overflow: hidden;
}

@keyframes blink {
    0% {
        opacity: 1;
        /* Invisible */
    }

    50% {
        opacity: 0.2;
        /* Visible */
    }

    100% {
        opacity: 1;
        /* Invisible */
    }
}

#container {
    max-width: 2000px;
}

/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Gestion compact mod +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

.main-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: all 3s linear;
}

.subcontainer0 {
    display: flex;
    flex-direction: column;
}

.subcontainer1 {
    display: flex;
    flex-direction: row;
}

.subcontainer2 {
    display: flex;
    flex-direction: row;
}

.affichage-dragdrop {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.pastille {
    width: 100%;
    padding-top: 0;
}

.dragdrop_box.mt-5 {
    margin-top: 30px !important;
    margin-bottom: 30px !important;
}

/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Gestion bouton aide affiche soumettre +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

canvas.canvas_solution {
    /* Style solution */
    border: 2px solid;
    max-width: 1000px;
    max-height: 600vh;
}


canvas.canvas_solution_compact {
    /* Style solution */
    border: 0px solid;
    max-width: 1000px;
}

.content-download {
    padding-left: 20%;
    padding-right: 20%;
    max-width: 1500px;
    width: auto;
}

#solution {
    /* Apparition solution */
    display: none;
    align-items: center;
}

#solution-compact {
    /* Apparition solution */
    display: none;
    align-items: center;
}

.canvas-solution-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.canvas-solution {
    background-color: #1d1d2a;
    border: none;
}

#button-solution {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1500px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.end-button {
    width: 35%;
}

#submit-box {
    flex-direction: column;
    display: flex;
    align-items: center;
}
/*
#submit-box p {
    font-family: Orbitron;
    color: white;
    text-align: center;
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
    word-wrap: break-word;
    max-width: 95%;
}*/

#submit-box h3 {
    font-family: Orbitron;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
    margin-left: 10px;
    margin-right: 10px;
    font-size: 1.3em;
}

#buttonPrev,
#buttonNext,#buttonPrev2,
#buttonNext2 {
    background-color: transparent;
    border: none;
    padding: 0;
}

.nextprev {
    width: 32px;
    /* ajustez la taille de l'icône selon vos besoins */
    height: 32px;
    /* ajustez la taille de l'icône selon vos besoins */
    border: none;
}

.help {
    background-color: rgb(23, 23, 34);
}

.help button {
    margin-bottom: 20px;
    margin-top: 20px;
    font-size: 1.3em;
}

#option {
    background-color: rgb(23, 23, 34);
}

#submit-box {
    background-color: rgb(23, 23, 34);
}

#printSoluc {
    background-color: transparent;
    border: none;
    padding: 10px;
    font-family: Orbitron;
    color: white;
    text-shadow: 0 0 10px rgb(183, 183, 183);;
    font-size: 1.3em;
    width: 100%;
}

#printSoluc:hover {
    text-shadow: 0 0 1px rgb(183, 183, 183);;
    transition: 0.5s;
    z-index: 1;
    transition: all 0.5s linear;
}

.ressource_h3 {
    background-color: transparent;
    border: none;
    padding: 10px;
    font-family: Orbitron;
    color: white;
    font-size: 1.3em;
    text-align: center;
    margin-top: 10px;
}

#back {
    background-color: transparent;
    border: none;
    padding: 10px;
    font-family: Orbitron;
    color: white;
    text-shadow: 0 0 7px rgb(183, 183, 183);
    font-size: 1.3em;
    text-align: center;
    text-decoration: none;
}

#back:hover {
    text-shadow: 0 0 1px rgb(183, 183, 183);;
    transition: 0.5s;
    z-index: 1;
    transition: all 0.5s linear;
}

#ressources {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

#ressource1 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#ressource2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 25px;
}

#ressources ul {
    margin-top: 25px;
    list-style: none;
}

#ressources li{
    font-size: 1em;
    color: white;
    font-family: Orbitron;
    padding-bottom: 10px;
    margin-right: 10px;
}

#ressources li a{
    font-size: 1em;
    color: rgb(189, 189, 189);
    font-family: Orbitron;
    text-decoration: none;
}

#ressources li a:hover{
    font-size: 1em;
    color: rgb(128, 128, 128);
    font-family: Orbitron;
}

#help-paragraph {
    font-size: 1em;
    text-align: justify;
    color: white;
    padding-left: 30px;
    padding-right: 30px;
    max-width: 800px;
    font-family: Orbitron;
}

#help-paragraph > a {
    font-size: 1em;
    text-align: justify;
    color: rgb(207, 205, 202);
    text-decoration: none;
    height: 20%;
}

#help-paragraph-div {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80%;
}

.canva_solution_compact {
    max-width: 800px;
}

.prevention-message {
    display: none;
    position: absolute;
    background-color: #272737;; /* couleur de fond du message */
    color: #ffffff; /* couleur du texte */
    padding: 2px 5px; /* espacement interne */
    border-radius: 5px; /* arrondi des coins */
    font-size: 0.7em;
  }
  
  #extend-mod-label:hover + #prevention-message1 {
    display: block;
  }

  #compact-mod-label:hover + #prevention-message2 {
    display: block;
  }

  #auto-lock-label:hover + #prevention-message3 {
    display: block;
  }

  .rectangle {
    width: 1px; /* Largeur du rectangle */
    height: 1px; /* Hauteur du rectangle */
    background-color: rgba(255, 255, 255, 0.574); /* Jaune semi-transparent */
    /* Centrage horizontal */
    position: relative;
    z-index: 10;
    top:0;
}



.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, #d20000, #dc0000);
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.param-strip {
    width: 90%;
}

.modal-content h2 {
    font-size: 1.2em;
}

.param-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.valeur-param {
    display: flex;
    align-items: center;
    justify-content: center;
}

#indication {
    text-align: center;
    margin-left: 20px;
    margin-right: 20px;
}

#from_file {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 90%;
}


.helpFile {
    position: relative;
    display: inline-block;
    color: black;
}

#helpButton {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
}

#file_title {
    margin-bottom: 20px;
}

.helpFile .helpFiletext {
    visibility: hidden;
    min-width: 600px;
    width: auto;
    max-width: 1200px;
    top: -30vh;
    color: black;
    text-align: left;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    left: -500px;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.7s;
    background-color: #ebebeb;
    padding: 10px 20px;
}

.helpFile:hover .helpFiletext {
    visibility: visible;
    opacity: 1;
}

#myRange2 {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
}

#confetti {
    overflow-y: hidden;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    margin: 0;
    transition: all 3s linear;
    position: absolute;
  }

  .win-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .win-container h2{
    font-size: 2em;
    font-weight: bold;
  }

  .win-container p{
    font-size: 1em;
  }

  #back2 {
    width: 100%;
    justify-content: center;
    font-size: 1em;
    font-weight: bold;
  }