/* Base styles */
body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 2px;
    background-color: #1a1a1a;
}

.container {
    background-color: #222;
    padding: 2px 15px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h1 {
    color: #fff;
    text-align: center;
    margin: 2px 0;
}

/* Mode selection */
#modeSelection {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mode-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.mode-button {
    width: 215px;
    padding: 20px;
    background: #ff8c00;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: opacity 0.3s ease;
}

.mode-button .mode-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.mode-button img {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto 15px auto;
}

.mode-button ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    font-size: 0.9em;
    text-align: center;
}

.mode-button li {
    margin: 8px 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    min-height: 24px;
    white-space: nowrap;
}

/* Style for mode button bullet points specifically */
.mode-button li .bullet-icon {
    width: 15px !important;
    height: 15px !important;
    object-fit: cover;
    flex: none;
    margin: 0;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Adjust list item padding to accommodate absolute positioned bullet */
.mode-button li {
    margin: 8px 0;
    padding: 0 0 0 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    min-height: 24px;
    white-space: nowrap;
    position: relative;
}

/* Keep the original motorcycle.svg in the Next Question button untouched */
.next-question img {
    width: 20px;
    height: 20px;
}

.mode-button:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.mode-button:hover:before {
    opacity: 1;
}

/* Mode box and progress counter */
.mode-box, .progress-counter {
    text-align: center;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
    color: #ccc;
}

/* Start button with animations */
.start-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 40px;
    font-size: 18px;
    background-color: #ff8c00;
    color: white;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    margin: 20px auto;
    transition: all 0.2s;
    position: relative;
    animation: moveInBottom 0.5s ease-out;
}

@keyframes moveInBottom {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

.start-button img {
    width: 20px;
    height: 20px;
    animation: rotateKey 2s infinite;
}

.start-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.start-button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.start-button::after {
    content: "";
    display: inline-block;
    height: 100%;
    width: 100%;
    border-radius: 100px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 0.4s;
    background-color: #ff8c00;
}

.start-button:hover::after {
    transform: scaleX(1.4) scaleY(1.6);
    opacity: 0;
}

@keyframes rotateKey {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Question styles */
.question-container {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 5px;
    color: #fff;
}

.answers {
    display: grid;
    grid-gap: 8px;
    margin: 15px 0;
}

.answer-choice {
    padding: 12px;
    border: 1px solid #444;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #fff;
}

.answer-choice:hover {
    background-color: #333;
}

/* Answer states */
.correct-answer {
    background-color: #1b3a1f;
    border-color: #2a5a2f;
    color: #4caf50;
}

.wrong-answer {
    background-color: #3a1b1b;
    border-color: #5a2f2f;
    color: #ff5252;
}

.full-answer {
    margin-top: 12px;
    padding: 12px;
    border-radius: 5px;
    display: none;
}

.full-answer.correct {
    background-color: #1b3a1f;
    border: 1px solid #2a5a2f;
    color: #4caf50;
}

.full-answer.incorrect {
    background-color: #3a1b1b;
    border: 1px solid #5a2f2f;
    color: #ff5252;
}

/* Next question button */
.next-question {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 18px;
    background-color: #ff8c00;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 20px auto;
    transition: background-color 0.3s;
}

.next-question img {
    width: 20px;
    height: 20px;
}

.next-question:hover {
    background-color: #e67e00;
}

/* Summary screen */
.summary {
    text-align: center;
    padding: 15px;
}

.summary-stat {
    margin: 10px 0;
    font-size: 18px;
    color: #fff;
}

.final-score {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
    color: #ff8c00;
}

/* Source reference */
.source {
    font-size: 0.9em;
    color: #ccc;
    margin-top: 10px;
    font-style: italic;
}

/* Quiz container */
#quizContent {
    display: none;
}
