* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    background: #FFA500;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    width: 500vw;
    height: 500vh;
    background: repeating-conic-gradient(
        from 0deg,
        #FFA500,
        #FFB84D 2deg,
        #FFA500 4deg
    );
    animation: rotate 60s linear infinite;
    z-index: 0;
    transform-origin: center;
    transform: translate(-50%, -50%);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    position: relative;
    padding-top: 60px;  /* Ajout d'un padding en haut pour le compteur */
}

.counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 15px;
    color: white;
    background-color: #1a237e;
    padding: 10px 20px;
    border-radius: 10px;
    border: 4px solid white;
    z-index: 2;
    display: none;
}

.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    border: none;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    color: white;
    text-transform: uppercase;
    border: 4px solid #1a237e;
    transition: transform 0.2s;
    min-width: 200px;
    position: relative;
    z-index: 2;
    background-color: #0086e6;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-play {
    background-color: #FF5722;
}

.btn-true {
    background-color: #4CAF50;
}

.btn-false {
    background-color: #f44336;
}

#quiz-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#quiz-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

#question {
    font-size: 24px;
    color: #0086e6;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    border: 4px solid #1a237e;
}

#answers {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
}

@media (max-width: 768px) {
    .btn {
        font-size: 20px;
        padding: 12px 24px;
        min-width: 160px;
    }
}

.feedback {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px 40px;
    border-radius: 10px;
    color: white;
    font-size: 24px;
    z-index: 1000;
    animation: slideDown 1s ease-in-out;
}

.feedback.correct {
    background-color: #4CAF50;
    border: 4px solid #1a237e;
}

.feedback.incorrect {
    background-color: #f44336;
    border: 4px solid #1a237e;
    animation: slideDown 2s ease-in-out;
}

@keyframes slideDown {
    0% { 
        opacity: 0;
        transform: translate(-50%, -100%);
    }
    20% { 
        opacity: 1;
        transform: translate(-50%, 0);
    }
    80% { 
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% { 
        opacity: 0;
        transform: translate(-50%, -100%);
    }
}

#category {
    font-size: 20px;
    color: #1a237e;
    margin-bottom: 30px;
    display: inline-block;
    line-height: 1em;
    text-transform: uppercase;
}

#category::first-letter {
    font-size: 50px;
    margin-right: 10px;
    vertical-align: middle;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    width: 200px;
    height: 200px;
    animation: gentleRotate 10s ease-in-out infinite;
}

@keyframes gentleRotate {
    0% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    100% { transform: rotate(-5deg); }
}

.btn-back {
    background-color: #1a237e;
}

#end-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    z-index: 2;
    position: relative;
}

#end-screen h1 {
    color: #1a237e;
    font-size: 30px;
    text-transform: uppercase;
}

.final-score {
    font-size: 72px;
    color: #1a237e;
    font-weight: bold;
}


.attribution-box {
    background-color: #383e4e;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.attribution-box img.otdb-logo {
    width: 87px;
    height: 40px;
}

.attribution-box p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.attribution-box a {
    color: #FFA500;
    text-decoration: none;
}

.attribution-box a:hover {
    text-decoration: underline;
}

.difficulty-indicator {
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
}

.difficulty-icon {
    width: 100px;
    height: 50px;
}

.helper-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.helper-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0086e6;
    color: white;
    border: 4px solid #1a237e;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.helper-btn:hover {
    transform: scale(1.1);
}