body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #2c003e;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    background: url('images/background__Millionaire_1.jpg');
    background-position-y: -1rem;
    background-size: cover;
}

.container {
    text-align: center;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.menu {
    margin-top: 20px;
}

#themescroll {
    margin-top: 8rem;
    overflow-y: auto;
    max-height: 300px;
    scrollbar-width: thin;
    scrollbar-color: #6a0dad #4b0082;
    scroll-padding-top: 20px;
}

#themescroll::-webkit-scrollbar {
    width: 6px;
}

#themescroll::-webkit-scrollbar-track {
    background: #4b0082;
}

#themescroll::-webkit-scrollbar-thumb {
    background: #6a0dad;
}

.menu button,
.menu select {
    display: block;
    width: 200px;
    margin: 10px auto;
    padding: 10px;
    font-size: 18px;
    color: white;
    background-color: #4b0082;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.menu button:hover,
.menu select:hover {
    background-color: #6a0dad;
}

.menu select {
    color: white;
    background-color: #6a0dad;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: white !important;
    line-height: normal !important;
    white-space: normal !important;
}

.sound-button,
.return-button {
    position: absolute;
    top: 50px;
    right: 20px;
    padding: 10px;
    font-size: 14px;
    color: white;
    background-color: #4b0082;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.sound-button:hover,
.return-button:hover {
    background-color: #6a0dad;
}

.select2-container--default .select2-selection--single {
    background-color: #4b0082 !important;
    border: none !important;
    border-radius: 5px !important;
    color: white !important;
    padding: 10px !important;
    height: auto !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: white !important;
    line-height: 28px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    color: white !important;
}

.select2-dropdown {
    background-color: #4b0082 !important;
    color: white !important;
    border: none !important;
    border-radius: 5px !important;
}

.select2-results__option {
    padding: 10px !important;
}

.select2-results__option--highlighted {
    background-color: #6a0dad !important;
}

.select2-selection__placeholder {
    font-family: Arial, sans-serif !important;
    font-size: 18px !important;
    color: white !important;
}

/* Styles pour la question et les réponses */
.question-box {
    background-color: #4b0082;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    width: 60%;
    font-size: 28px;
    margin-top: -150px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.answers {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 70%;
    margin: 0 auto;
}

.answer-btn {
    background-color: #6a0dad;
    border: none;
    padding: 20px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-size: 22px;
    margin: 10px;
    width: 45%;
    transition: background-color 0.3s;
}

.answer-btn:hover {
    background-color: #9b30ff;
}
#point-container {
            position: fixed;
            top: 10px;
            right: 10px;
            background-color: #6495C4;
            padding: 8px 12px;
            border-radius: 8px;
            font-weight: bold;
            font-size: 18px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }
        #plus-one {
    position: fixed;
    top: 100px;
    right: 40px;
    font-size: 20px;
    font-weight: bold;
    color: green;
    opacity: 0;
    transition: transform 1s ease-out, opacity 1s ease-out;
    pointer-events: none;
    z-index: 1000;
}

#plus-one.show {
    opacity: 1;
    transform: translateY(-30px);
}

/* ✅ Mobile responsive adjustments */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        justify-content: center; /* Ensure vertical centering */
        align-items: center;     /* Ensure horizontal centering */
        padding: 20px;
        background-position: center;
        height: 100vh; /* Ensure full screen height on mobile */
        overflow-y: auto;
    }
    
    #point-container {
        position: fixed;
        top: 10px;
        right: 10px;
        background-color: #6495C4;
        padding: 8px 12px;
        border-radius: 8px;
        font-weight: bold;
        font-size: 18px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1001;
    }

    /* ✅ Rewrite #plus-one to be absolutely positioned inside #point-container */
    #point-container {
        position: fixed;
        top: 10px;
        right: 10px;
    }

    #plus-one {
        position: absolute;
        top: -30px; /* appear just above the point container */
        right: 0;
        font-size: 20px;
        font-weight: bold;
        color: green;
        opacity: 0;
        transition: transform 1s ease-out, opacity 1s ease-out;
        pointer-events: none;
        z-index: 1002;
    }

    #plus-one.show {
        opacity: 1;
        transform: translateY(-10px);
    }


    .question-box {
        width: 90%;
        font-size: 20px;
        padding: 20px;
        margin-top: 20px;
    }

    .answers {
        flex-direction: column;
        width: 100%;
    }

    .answer-btn {
        width: 90%;
        font-size: 18px;
        padding: 15px;
    }

    .menu button,
    .menu select {
        width: 90%;
        font-size: 16px;
        padding: 10px;
    }

    .sound-button,
    .return-button {
        top: 10px;
        right: 10px;
        font-size: 12px;
        padding: 8px;
    }

    #themescroll {
        max-height: 200px;
        margin-top: 4rem;
    }

    .logo img {
        width: 80%;
    }
   


}
