/* CSS du SITE */
/* ----------- */
/* ----------- */

/* Background de la page */
body{
    background-color: #fcfcfc !important;
    user-select: none;
}
body.results-page{
    background-color: coral !important;
}

#navbar.results-page{
    background-color: #fcfcfc;
}
#navbar img{
    cursor: pointer;
}

.banner{
    text-align: center;
    position: relative;
    height: auto;
    overflow: hidden;
}

.banner img{
    display: block;
    width: 100%;
    opacity: 0.6;
    filter: brightness(0.9) contrast(1.1) hue-rotate(-10deg) saturate(1.5);
}
.banner-text{
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
}
.banner-text h1{
    font-family: Bebas Neue;
    font-size: 100px;
    color: #383838;
    margin-bottom: 0;
}
.banner-text h1 span:first-child{
    color: #ffffff;
}
.banner-text h1 span:nth-child(2){
    color: #e2733c;
}
.banner-text p{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 30px;
    line-height: 0;
    margin-bottom: 0;
}

.banner svg{
    position: absolute;
    width: 100%;
    height: 120px;
    bottom: 0;
    left: 0;
}

/* Ligne de séparation commune */
hr{
    border-top: 3px solid coral !important;
    width: 100%;
    opacity: 100% !important;
}

.select-div{
    display: grid;
    justify-content: center;
    margin-top: 10vh;
}

.select-text{
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    line-height: 0.8;
    margin: 0;
}
.select-text span{
    color: #e2733c;
}
.select-div hr{
    margin-bottom: 3vh !important;
}

.container-form{
    display: flex;
    justify-content: center;
}
form{
    width: 50%;
}

.mode-options{
    display: flex;
    gap: 2vw;
    margin-bottom: 3vh;
}
#animes, #characters{
    display: none;
}
#animes + label, #characters + label{
    flex: 0 1 50%;
    align-content: center;
    font-family: Bebas Neue;
    font-size: 40px;
    color: #ffffff;
    text-align: center;
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    cursor: pointer;
    width: 400px;
    height: 130px;
    filter: brightness(0.9) contrast(1.1) hue-rotate(-10deg) saturate(1.5);
    transition: transform 0.3s ease;
}
#animes + label{
    background-image: url("/img/animes.png");
}
#characters + label{
    background-image: url("/img/characters.png");
}
#animes + label:hover, #characters + label:hover{
    transform: scale(1.1);
}
#animes:checked + label, #characters:checked + label{
    border: 5px solid #e2733c;
}

label[for="genre"], label[for="username"], label[for="list"]{
    font-family: Bebas Neue;
    font-size: 30px;
    line-height: 0.8;
    color: #383838;
}

.genre-wrapper{
    position: relative;
    width: 100%;
    margin-bottom: 1.5vh;
}

.genre-toggle{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    background-color: coral;
    color: #ffffff;
    border: none;
    border-radius: .25rem;
    cursor: pointer;
    padding: 1vh 11px;
}

.genre-options{
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1vh;
}

.genre-options button{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    background-color: #ffffff;
    color: coral;
    border: 2px solid coral;
    border-radius: 20px;
    transition: all 0.2s ease;
    padding: 6px 12px;
}
.genre-options button:hover{
    background-color: coral;
    color: white;
}

/* Zone de séparation */
form hr:nth-of-type(1){
    margin-top: 3vh;
}
.select-text small{
    font-style: italic;
    font-size: 17px;
}
.select-text small span{
    color: #e2733c;
}
form hr:nth-of-type(2){
    margin-bottom: 3vh;
}

#username{
    font-family: Arial, Helvetica, sans-serif;
    background-color: coral;
    color: #ffffff;
    border: none;
    border-radius: .25rem;
    caret-color: #ffffff; /* Couleur du curseur */
    width: 100%;
    padding: 1vh 11px;
    margin-bottom: 2vh;
}
#username:-webkit-autofill{
    box-shadow: 0 0 0 1000px coral inset !important;
    -webkit-text-fill-color: #ffffff !important;
}
#username:focus{
    border: 2px solid #ff5423;
    outline: none;
}
#username::placeholder{
    color: #fcfcfc;
}

.list-options{
    line-height: 1.1;
    margin-bottom: 3vh;
}
input[type="checkbox"]{
    accent-color: #383838;
    vertical-align: middle;
    zoom: 1.5;
    margin-top: -2px;
}
input[type="checkbox"] + label{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    color: coral;
    vertical-align: middle;
}
input[type="checkbox"] + label:not(:last-child){
    margin-right: 1.5vw;
}

.error-text{
    display: none;
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
    font-size: 17px;
    font-weight: bold;
    color: #ef4444;
    text-align: center;
    line-height: 0.8;
    margin-bottom: 1vh;
}

.generate-button{
    display: flex;
    justify-content: center;
    margin-bottom: 10vh;
}

.generate-button button{
    font-family: Bebas Neue;
    font-size: 30px;
    background-color: coral; 
    color: #ffffff;
    border: none;
    border-radius: .25rem;
    box-shadow: 0px 0px 12px -2px rgba(0,0,0,0.5); 
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 8px 62px;
}
.generate-button button span{
    color: #383838;
    transition: color 0.3s ease;
}
.generate-button button:hover{
    color: #383838;
    transform: scale(1.03);
}
.generate-button button:hover span{
    color: #ffffff;
}

/* Affichage des résultats */
.results{
    flex-direction: column;
    justify-content: center;
    position: relative;
    width: 100vw;
    height: calc(100vh - 84.66px);
}

.img-wrapper{
    position: relative;
    margin-bottom: 1rem;
}
.img-wrapper img{
    border: 10px solid white;
    border-radius: 10px;
}

.next-btn{
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 35%;
    transform: translateY(-50%) rotate(-90deg);
}
.next-btn span{
    display: block;
    border-right: 5px solid white;
    border-bottom: 5px solid white;
    width: 1.5vw;
    height: 1.5vw;
    transform: rotate(45deg);
    animation: animate 2s infinite;
    margin: -10px;
}
.next-btn span:nth-child(2){
    animation-delay: -0.2s;
}
.next-btn span:nth-child(3){
    animation-delay: -0.4s;
}
@keyframes animate{
    0%{ opacity: 0; transform: rotate(45deg) translate(-20px, -20px); }
    50%{ opacity: 1; }
    100%{ opacity: 0; transform: rotate(45deg) translate(20px, 20px); }
}

.results h3{
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    line-height: 0.8;
    margin: 0;
}
.results h3 small{
    font-style: italic;
    font-size: 17px;
}