.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    gap: 3vh;
    color: white;
    width: 100%;
}

h1, p {
    margin: 0;
}

h1 {
    font-family: 'Tilt Warp';
    font-weight: lighter;
    font-size: 2.5rem;
}

.poster-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vh;
    position: relative;
}

.poster-loader {
    position: absolute;
    inset: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
    background-color: #2a2a2a;
    height: 40vh;
    aspect-ratio: 2 / 3;
    animation: pulseOpacity 1.4s ease-in-out infinite;
    z-index: 2;
}

#poster-img.loading {
    visibility: hidden;
}

#poster-img {
    display: block;
    border-radius: 10px;
    height: 40vh;
    z-index: 1;
}

@keyframes pulseOpacity {
    0%   { opacity: 0.4; }
    50%  { opacity: 0.7; }
    100% { opacity: 0.4; }
}

#instruction {
    font-family: 'Quicksand';
    width: 30%;
}

.guess-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3vh;
    width: 30vw;
}

.choices {
    width: 100%;
    margin-bottom: 0;
    font-family: 'Quicksand', sans-serif;
}

.choices__inner {
    background-color: #222 !important;
    color: white;
    border-radius: 8px;
    width: calc(100% - 2vw - 1px);
    min-height: unset;
    padding: 2vh 1vw !important;
    /* border: none; */
}

.choices__list--dropdown {
    background-color: #333 !important;
    scrollbar-width: none !important;  
    -ms-overflow-style: none !important;
    z-index: 20 !important;
}

.choices__list--dropdown::-webkit-scrollbar {
    display: none !important;
}

.choices__list--single {
    width: unset;
    padding: 0;
}

.choices__list--dropdown,
.choices__list--dropdown .choices__list,
.choices__list--dropdown .choices__item {
    overflow: auto !important;               /* garde le scroll fonctionnel */
    -webkit-overflow-scrolling: touch !important;
}

/* Cache la scrollbar sur WebKit (Chrome, Safari, Opera) */
.choices__list--dropdown::-webkit-scrollbar,
.choices__list--dropdown .choices__list::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Cache la scrollbar sur Firefox */
.choices__list--dropdown,
.choices__list--dropdown .choices__list {
    scrollbar-width: none !important;
}

/* Cache la scrollbar pour IE/Edge legacy */
.choices__list--dropdown,
.choices__list--dropdown .choices__list {
    -ms-overflow-style: none !important;
}

.choices__list--dropdown .choices__item--selectable:hover {
    background-color: #ED637B !important;
}

.choices__list--dropdown .choices__item {
    background-color: rgb(235, 235, 235) !important;
    color: black;
}

.movieTitle {
    background-color: #E83151;
    padding: 1vh 1vw;
    font-family: 'Anton';
    text-transform: uppercase;
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 1.5px;
    text-align: center;
    color: white;
    width: fit-content;
}

.infos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1vh;
}

.btn {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    display: none;
    gap: 1rem;
    margin: 1rem;
}

.btn a {
    background-color: #740401;
    color: white;
    padding: 5px 10px !important;
    margin-right: 5px;
    font-family: 'Oswald';
    font-size: 1rem;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    font-weight: 800;
    text-decoration: none;
}

.guess-form button {
    cursor: pointer;
}

.suggestions div {
    color: black;
    border-bottom: 1px solid black;
    text-align: left;
}

.suggestions div:last-child {
    border-bottom: none;
}

.suggestions {
    max-height: 20vh !important;
}

#error {
    color: #FF4C4C;
    font-family: 'Quicksand', sans-serif;
    /* margin-bottom: -2vh; */
    /* height: 2vh; */
}

.score {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.propositions-list {
    position: absolute;
    top: 50%;
    left: 2vw;
    transform: translateY(-50%);
    max-width: 20%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    max-height: 60%;
    overflow-y: auto;
    border: white 2px solid;
    border-radius: 5px;
    padding: 1vw;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.propositions-list h3 {
    margin-top: 0;
    font-family: 'Tilt Warp';
    font-size: 1.5rem;
    font-weight: lighter;
    text-align: center;
    color: white;
}

.propositions-list::-webkit-scrollbar {
    display: none;
}

.prop-ul {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.proposition-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.movie-card img {
    width: 6vw;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.arrow {
    font-size: 40px;
    color: #e85b6c;
}

.propositions-list-mobile {
    display: none;
}

.score.final-score {
    position: relative;
    top: unset;
    left: unset;
}

.end-symbol {
    width: 6vw;
    aspect-ratio: 2/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: bold;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
}

.end-symbol.pending {
    color: white;
}

.end-symbol.fail {
    color: #e74c3c;
}

.end-symbol.pending {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.failed-card {
    position: relative;
}

.failed-card img {
    border-radius: 6px;
    filter: brightness(0.4);
}

.fail-cross {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    font-weight: bold;
    color: #e74c3c;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
}

@media screen and (max-width: 1024px) {
    #instruction {
        width: 80%;
    }

    .score {
        position: relative;
        top: unset;
        left: unset;
    }

    .suggestions {
        max-height: 35vh !important;
    }

    .poster-box img {
        width: 50%;
        height: auto !important;
        min-height: 40vh;
    }

    .guess-form {
        width: 100%;
    }

    .guess-form button {
        padding: 1vh 5vw;
    }

    .propositions-list-laptop {
        display: none;
    }

    .propositions-list-mobile {
        display: block;
        border: white 2px solid;
        border-radius: 5px;
        position: static;
        transform: none;
        max-width: 100%;
        padding: 2vh;
        margin-bottom: 5vh;
        max-height: 40vh;
    }

    .btn a {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 540px) {
    .poster-box img {
        width: 70%;
    }

    .btn a {
        font-size: 1rem;
    }

    .movie-card img {
        width: 10vh;
    }

    .end-symbol {
        width: 10vh;
    }
}