/* CAPTCHA------------------------------------- */

@keyframes error {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

#captcha_container {
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    

    width: 50vw;
    min-width: 300px;
    max-width: 650px;

    display: none;

    background-color: black;
    opacity: 1;
    background-image: var(--ledBackground);
    background-size: 2px 2px;

    border: transparent solid 5px;
    border-image: url(../SRC/IMAGES/bordure_classic.png) 150 / 15px;
    border-image-outset: 7px;
}

#captcha_container button:active {
    transform: translate(5px, 2px);
}

#captcha_titre {
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.8);
}

#captcha_titre h1 {
    transform: scale(1, 0.5);

    text-align: center;
    color: var(--lowGrey);
}

#captcha_content {
    padding: 5px;
    color: var(--lightGrey);
}

#captcha_description {
    font-size: 1em;
    margin: 10px 0;
}

#captcha_description button {
    color: rgb(0, 158, 158);
    text-decoration: underline;
}

#captcha_description span {
    filter: opacity(0);
    pointer-events: none;
    font-size: 0.8em;
}

#captcha_image_container {
    width: 100%;
    height: auto;
}

.captcha_image_content {
    display: inline-block;
    vertical-align: top;
}

#captcha_image {
    position: relative;
    width: 85%;
    height: fit-content;
}

#captcha_image img {
    width: 100%;
    opacity: 0.7;
}

#captcha_image_border {
    position: absolute;
    top: 0;
    left: 2px;
    width: calc(100% - 2px);
    height: calc(100% - 7px);

    border-image: url(../SRC/IMAGES/bordure_classic.png) 150 / 10px;
    border-image-outset: 7px;

    pointer-events: none;
}

#captcha_image_buttons_container {
    width: 8%;
    height: fit-content;
    margin-left: 10px;
    padding-top: 5px;
}

.captcha_image_buttons {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;

    
    border-image: url(../SRC/IMAGES/bordure_classic.png) 150 / 5px;
    border-image-outset: 2px;

    background-color: var(--lightGrey);
}

.captcha_image_buttons img {
    width: 100%;
    height: 100%;

    image-rendering: pixelated;

    box-shadow: black 0 0 5px;
}

#captcha_input_container {
    font-size: 2em;
}

#captcha_content input {
    padding: 5px 0;

    font-family: VT323;
    font-size: 2em;
    color: var(--lightGrey);
    text-align: center;

    border-image: url(../SRC/IMAGES/bordure_classic.png) 150 / 5px;
    border-image-outset: 2px;

    background-color: rgba(0, 0, 0, 0.9);
}

#captcha_submit {
    vertical-align: bottom;
    padding: 1px 5px;
    margin-top: 10px;

    font-size: 1.2em;
    color: rgb(15, 15, 15);
    background-color: var(--lightGrey);

    border-image: url(../SRC/IMAGES/bordure_classic.png) 150 / 5px;
    border-image-outset: 2px;
}