.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;
}

p {
    font-family: 'Quicksand';
}

.poster-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.poster-box img {
    border-radius: 10px;
    max-width: 400px;
    height: auto;
}

.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;
}

.attempts {
    font-style: italic;
    opacity: 0.8;
}

.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;
}

.propositions-list {
    border: white 2px solid;
    border-radius: 5px;
    position: absolute;
    top: 50%;
    left: 2vw;
    transform: translateY(-50%);
    max-width: 20%;
    padding: 1vw;
    z-index: 10;
}

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

.propositions-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.propositions-list li {
    color: white;
    font-family: 'Quicksand';
    display: flex;
    gap: 1vh;
    margin-bottom: 1.5vh;
    align-items: center;
}

.propositions-list li:last-child {
    margin-bottom: 0;
}

.prop-text {
    max-width: calc(100% - 1vh - 20px);
    text-align: left;
}

.square {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background-color: white;
}

.square.is-red {
    background-color: #E83151;
}

.square.is-green {
    background-color: #01DF7F;
}

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

.poster-box-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vh;
}

.fullsizePoster {
    border-radius: 0 !important;
    height: 60vh !important;
}

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

.result {
    color: #E83151;
    font-size: 3rem;
}

.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;
    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;
}

.propositions-list-mobile {
    display: 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; */
}

#show-poster {
    display: none;
}

@media screen and (max-width: 1024px) {
    .suggestions {
        max-height: 35vh !important;
    }

    .poster-box img {
        width: 100%;
    }

    .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;
    }

    .fullsizePoster {
        width: 60vw;
        height: auto !important;
    }

    .logoResult {
        margin-top: 8vh !important;
    }

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

@media screen and (max-width: 540px) {
    .logoResult {
        margin-top: 10vh !important;
    }

    .btn a {
        font-size: 1rem;
    }
    
    .poster-box img {
        width: 70%;
    }
}