body {
    margin : 0;
    padding: 0;
}
.texte {
    position: relative;
    top:0;
    padding: 10px;
    background-color: red;
    color: white;
    font-family: Helvetica, Arial, sans-serif;
    height: 25vw;
}

.check {
    position: absolute;
    top:0;
    right:0;
    display: block;
    width: 30px;
    height: 30px;
    background: red url('images/ui/check.svg') no-repeat;
    border-radius: 100%;
    transform: translate(30%, -30%);
    transition: all .5s ease-in-out;
    opacity: 0;
    box-shadow: 1px 2px 5px rgba(0,0,0, 0.1);

}
.selected .check{
    opacity: 1;
    transition: all .5s ease-in-out;
}

.captcha {

    width: 90vw;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    margin-top: 3em;

    border: 5px solid red;
    background-color: white;
    box-shadow: 5px 5px 5px rgba(0,0,0, 0.2);

}
.images {
    width: calc(100% - 20px);
    margin:10px;
    height: calc(90vw - 20px);
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;

}

.image {
    position: relative;
    display: inline-block;
    width: 25vw;
    height: 25vw;
    background-color: red;
    transition: all .5s ease-in-out;
    background-size: cover;
}
.button-container {
    padding: 10px;
    background-color: red;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.button-container input {
    background-color: red;
    border: none;
    width: 3em;
    height: 3em;
}
.button-container .validate {
    color: white;
    font-size: 1em;
    width: auto;
    box-shadow: 5px 5px 5px rgba(0,0,0, 0.1);
}
.button-container .reload {
    transform: rotate(0deg);
    background: url('images/ui/arrow-reload.svg') no-repeat center;
    transition: all .5s ease-in-out;

}
.button-container .reload:hover {
    transform: rotate(90deg);
    transition: all .5s ease-in-out;

}

.selected {
    transform: scale(0.9);
    transition: all .5s ease-in-out;
    
}
.error {
    outline: 5px solid red;
    outline-offset: -5px;
}
/*
Fonction lancée lorsque le js repère que l'utilisateur.trice s'est trompé.e dans la séléction
*/

.error-animate-1 {
    animation: swing 0.5s ease-in;
}
.error-animate-2 {
    animation: swing 0.5s ease-out 0.2s;
}
.error-animate-3 {
    animation: swing 0.5s ease-in 0.3s;
}
.error-animate-4 {
    animation: swing 0.6 ease;
}

@keyframes swing { 
    0% { transform: translate(10%,0) scale(0.9); }
    20% { transform:  translate(-10%,0) scale(0.9); }
    30% { transform:  translate(10%,-0%) scale(0.9); }
    50% { transform: translate(-10%,00%) scale(0.9); }
    70% { transform: translate(10%,0%) scale(0.9); }
    90% { transform:  translate(-10%,0%) scale(0.9); }
    200% { transform: translate(10%,0%) scale(0.9);; }
}
