body {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 40px;
    background-color:#020617 !important;
    color:#020617 !important;
    background-image: url('img.png');
    background-repeat: no-repeat;
    background-position: center;
}

#submit-btn {
    background-color: #ff3d00;
    border: none;
    color: #fff;
    margin-top: 10px;
    padding: 10px;
}

h1 {
    font-size: 50px;
    margin-top: 0;
}

.flame-1 {
    position: absolute;
    top:100px;
    left:0;
    width: 600px;
}

.flame-2 {
    position: absolute;
    bottom:0;
    right:0;
    width: 600px;
}

#quiz-container {
    max-width: 600px;
    margin: auto;
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#quiz-container:after {
    content:'';
    width: 100%;
    height: 100%;
    position: absolute;
    top:0;
    left:0;
    background-color: #fff;
    opacity: 0.9;
    z-index: -1;
}

#timer {
    font-size: 30px;
    color: red;
    margin: 20px 0 40px 0;
}

#question {
    font-size: 34px;
    font-weight: bold;
    margin-bottom: 15px;
}

button {
    padding: 10px 20px;
    margin-top: 20px;
}

#answer-input {
    padding: 10px;
    width: 80%;
    font-size: 16px;
    margin-top: 10px;
}

#start-btn {
    background-color: #ff3d00;
    color:#fff;
    border:none;
    outline:none;
    font-size: 18px;
    cursor: pointer;
    margin-top: 0;
}

#restart-btn {
    margin-top: 30px;
    display: block;
    border:none;
    outline:none;
    cursor: pointer;
    color:#fff;
}

#share-btn {
    background-color: #ff3d00;
    color:#fff;
    border:none;
    outline:none;
    font-size: 24px;
    font-weight: bold;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.6); /* assombrit l’arrière-plan */
    backdrop-filter: blur(4px);           /* floute ce qu’il y a derrière */
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    width: 300px;
    border:2px solid #fff;
    background-color: rgba(0, 0, 0, 0.6); /* assombrit l’arrière-plan */
    backdrop-filter: blur(4px);           /* floute ce qu’il y a derrière */
    color: #fff !important;
}

.hidden {
    display: none;
}

.modal button {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
}


@media(max-width: 798px){
    body {
        padding: 15px;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #question {
        font-size: 20px;
    }

    #quiz-container {
        padding: 15px 15px 40px 15px;
    }

    .modal-content {
        width: 260px;
    }

    .modal-content h2 {
        font-size: 1.3em;
    }
}