body {
    font-family: Arial, sans-serif;
    background: #e0e0e0;
    color: #000000;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quiz-container {
    position: relative;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.quiz-question {
    margin-bottom: 20px;
    font-size: 20px;
    line-height: 1.5;
    font-weight: bold;
    color: #000000;
}

.quiz-options {
    list-style: none;
    padding: 0;
}

.quiz-options li {
    margin-bottom: 15px;
}

.quiz-options input[type="checkbox"] {
    display: none;
}

.quiz-options label {
    display: block;
    padding: 15px;
    font-size: 16px;
    background: #f5f5dc;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
    user-select: none;
    color: #000000;
}

.quiz-options label:hover {
    background: #e8e4c9;
}

.quiz-options input[type="checkbox"]:checked+label {
    background: #add8e6;
    border-color: #90caf9;
    box-shadow: 0 0 10px rgba(144, 202, 249, 0.5);
    transform: scale(1.02);
    color: #000000;
}

.quiz-options label.correct {
    background: #98fb98 !important;
    color: #000000;
    border-color: #66bb6a;
}

.quiz-options label.true-choice {
    background: #add8e6;
    border-color: #90caf9;
    box-shadow: 0 0 10px rgba(144, 202, 249, 0.5);
    transform: scale(1.02);
    color: #000000;
}

.quiz-options label.incorrect {
    background: #ffcccb !important;
    color: #000000;
    border-color: #ef9a9a;
}

.quiz-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.quiz-buttons button.btn-next,
.quiz-buttons button.btn-done {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: #90caf9;
    color: #000000;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.quiz-buttons button.btn-next:hover,
.quiz-buttons button.btn-done:hover {
    background: #64b5f6;
    transform: scale(1.05);
}

.quiz-buttons button.btn-next:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.quiz-summary {
    text-align: center;
    margin-top: 20px;
}

.quiz-summary p {
    font-size: 18px;
    margin: 5px 0;
    color: #000000;
}

/* Updated upload container styles */
.upload-container {
    text-align: center;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    /* Added margin to create space between sections */
}

.upload-container h1 {
    font-size: 24px;
    color: #000000;
    margin-bottom: 20px;
}

.upload-label {
    display: inline-block;
    padding: 15px 20px;
    font-size: 16px;
    color: #ffffff;
    background-color: #90caf9;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.upload-label:hover {
    background-color: #64b5f6;
    transform: scale(1.05);
}

.upload-label input[type="file"] {
    display: none;
}

.error-message {
    margin-top: 20px;
    color: #c62828;
    background: #fddede;
    padding: 10px 15px;
    border: 1px solid #d32f2f;
    border-radius: 5px;
    font-size: 14px;
    display: none;
}

.upload-container p {
    font-size: 14px;
    color: #666666;
    margin-top: 15px;
}

.upload-container a {
    color: #1e88e5;
    text-decoration: none;
    font-weight: bold;
}

.upload-container a:hover {
    text-decoration: underline;
}

/* Updated quiz stored styles */
.quiz-stored {
    width: 90%;
    max-width: 500px;
    margin-top: 0;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.quiz-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 50px;
    height: 50px;
}

.quiz-list li p {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 320px;
    display: inline-block;
}

.quiz-list li input {
    width: 310px;
    height: 30px;
}

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

.quiz-list li .quiz-buttons-container {
    display: flex;
    gap: 10px;
}

.btn-get-quiz {
    background: #90caf9;
    color: #000000;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-get-quiz:hover {
    background: #64b5f6;
    transform: scale(1.05);
}

.btn-delete-quiz {
    background: #ff6b6b;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-delete-quiz:hover {
    background: #ff5252;
    transform: scale(1.05);
}

#sound-toggle {
    background-color: #cccccc;
    color: #000000;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
}

#sound-toggle:hover {
    background-color: #aaaaaa;
}

.hidden {
    display: none;
}

.footer {
    text-align: center;
    margin-top: auto;
    padding: 10px;
    color: #666666;
    font-size: 14px;
}

.btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s;
}

.btn-close:hover {
    background: #ff5252;
    transform: scale(1.1);
}