@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap');
body::before {
    background-position: center;
    background-image: url('/student-experiment/img/main-bg.jpeg') !important;
    background-size: cover !important;
    position: fixed !important;
    filter: brightness(100%) !important;
    background-position: center !important;
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
body {
    color: var(--text-1);
    font-family: "Atkinson Hyperlegible", serif;
    font-weight: 400;
}

.title{
    font-family: "Varela Round", serif;
    font-weight: bold;
}
pre {
   white-space: pre-wrap;             /* CSS3 */
}
.answer-true{
    background-color: #51d19596;
    border: 1px solid #025a31;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}
.answer-false{
    background-color: #e03c4a7c;
    border: 1px solid #6a171f;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}

.form-container {
    max-width: 700px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    background-color: var(--bg-1)
}
.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
}

.thank-you-message {
    display: none;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    min-height: 60vh;
}
#code {
    font-size: 1.5rem;
    font-weight: bold;
    color: #155724;
    border: 2px solid #155724;
    padding: 10px;
    border-radius: 15px;
    width: fit-content;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 30px;
    background-color: var(--bg-1);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}
p {
    line-height: 1.6;
}
.section-title {
    font-weight: bold;
    margin-top: 20px;
    color: var(--text-1);
}
.hidden {
    display: none;
}
/* Cacher les boutons radio */
input[name="answer-qcm"] {
    display: none;
}

/* Style des labels comme des boutons */
.answer-label-qcm {
    display: block;
    padding: 10px;
    border: 1px solid #0d6efd;
    border-radius: 5px;
    text-align: center;
    color: #0d6efd;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

/* Style pour le label lorsqu'il est sélectionné */
input[name="answer-qcm"]:checked + .answer-label-qcm {
    background-color: #0d6efd;
    color: white;
}
.answer-correct {
    background-color: #51d19596 !important;
    border: 1px solid #025a31 !important;
    color: white !important;
}
.answer-incorrect {
    background-color: #e03c4a7c !important;
    border: 1px solid #6a171f !important;
    color: white !important;
}

.container-custom {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .iframe-wrapper {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.button-filler-container {
    position: relative;
    text-align: center;
}

.button-filler {
    position: relative;
    width: 300px;
    height: 60px;
    background-color: #6bbf76;
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 18px;
    cursor: not-allowed;
    overflow: hidden;
    outline: none;
}

.button-filler span {
    position: relative;
    z-index: 1;
}

.button-filler .fill-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #4fa85a;
    transition: width 0.5s ease;
}

.dropzone, .items {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px dashed #ccc;
    padding: 10px;
    background-color: var(--bg-2);
    min-height: 260px;
}

.dropzone {
    background-color: var(--bg-2);
    border: 1px double #008820;
    position: relative;
}

#dd-content img.item:not(.img-half) {
    width: 80%;
    cursor: grab;
    max-width: 500px;
}
img.img-half {
    width: 35%;
}

#dd-content .fa-angles-right, #dd-content .fa-angles-down {
    align-self: center;
    justify-self: center;
}

#thank-you #code{
    cursor: pointer;
}
#thank-you #code:hover{
    color: white;
    background-color: var(--vitta-green);
}

.table{
    color: var(--text-1);
}

#accountStep {
    padding: 10px;
    display: block;
    border: 1px solid var(--text-3);
    border-radius: 10px;
    text-align: center;
    background-color: var(--bg-1);
}

#accountStep hr {
    border-top: 1px solid var(--text-1);
}

#separatorOr,
#accountStep hr {
    opacity: 0.5;
    width: 60%;
    margin: 1rem auto;
}

#accountStep ul {
    text-align: left;
    margin: 0 auto;
    width: 56%;
}
#leftPartNoUser {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
}
#separatorOr {
    width: 100%;
    margin: 0.25rem auto;
    background: var(--bg-1);
    text-align: center;
    position: relative;
    z-index: 1;
    font-weight: 700;
    text-shadow:
        2px 0 0 var(--bg-1),
        -2px 0 0 var(--bg-1),
        0 2px 0 var(--bg-1),
        0 -2px 0 var(--bg-1),

        3px 0 0 var(--bg-1),
        -3px 0 0 var(--bg-1),
        0 3px 0 var(--bg-1),
        0 -3px 0 var(--bg-1),

        1px 1px var(--bg-1),
        1px -1px 0 var(--bg-1),
        1px -1px 0 var(--bg-1),
        -1px 1px 0 var(--bg-1),

        1px 1px var(--bg-1),
        1px -2px 0 var(--bg-1),
        1px -2px 0 var(--bg-1),
        -2px 1px 0 var(--bg-1);

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#separatorOr::before {
    content: ' ';
    position: absolute;

    width: 100%;
    top: 50%;
    left: 0px;

    z-index: -1;
    height: 1px;

    background-color: var(--text-1);
    border: none;
}