* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
}

#quiz {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90%;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

#question {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.choice {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background-color: #f8f8f8;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.choice:hover {
    background-color: #e0e0e0;
}

.selected {
    background-color: #2196F3;
    color: white;
}

#submit {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#submit:hover {
    background-color: #1976D2;
}

.hide {
    display: none;
}

#score {
    text-align: center;
}

#score h2 {
    margin-bottom: 10px;
}

#score p {
    margin-bottom: 20px;
}

#restart {
    padding: 10px 20px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#restart:hover {
    background-color: #1976D2;
}

.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    display: block;
    height: 100%;
    background-color: #2196F3;
    transition: width 0.3s ease;
    width: var(--progress, 0%);
}

.progress-text {
    text-align: center;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.question-counter {
    color: #999;
}

/* Neue Animationen */
@keyframes correctAnswer {
    0% { 
        background-color: #4CAF50; /* Material Green */
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
    100% { 
        background-color: #f8f8f8;
        transform: translateX(0);
    }
}

@keyframes wrongAnswer {
    0% { 
        background-color: #f44336;
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
    100% { 
        background-color: #f8f8f8;
        transform: translateX(0);
    }
}

.correct-answer {
    animation: correctAnswer 0.6s ease;
}

.wrong-answer {
    animation: wrongAnswer 0.6s ease;
}

#start-screen {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90%;
    text-align: center;
}

#player-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

#player-form input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#player-form input:focus {
    outline: none;
    border-color: #2196F3;
}

#player-form button {
    padding: 12px 24px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#player-form button:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#player-form button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#answer-review {
    margin: 20px 0;
    text-align: left;
}

.answer-item {
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    background-color: #f8f8f8;
}

.answer-item.correct {
    border-left: 4px solid #4CAF50;
}

.answer-item.wrong {
    border-left: 4px solid #f44336;
}

#highscores {
    margin: 20px 0;
}

#highscore-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#highscore-table th,
#highscore-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#highscore-table th {
    background-color: #f5f5f5;
}

#toggle-answers {
    padding: 10px 20px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0;
    transition: all 0.3s ease;
}

#toggle-answers:hover {
    background-color: #1976D2;
}

#answer-list {
    margin-top: 15px;
}

#answer-list.hide {
    display: none;
}

#password-screen,
#admin-dashboard {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 90%;
}

.dashboard-section {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

#new-question-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#new-question-form input,
#new-question-form select {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

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

#players-list {
    margin-top: 15px;
}

.player-entry {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

#admin-logout {
    background-color: #f44336;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

#admin-logout:hover {
    background-color: #d32f2f;
}

/* Styles für die Fragenübersicht */
#questions-list {
    margin-top: 15px;
}

.question-item {
    background-color: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.question-item h3 {
    margin-bottom: 10px;
}

.question-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.edit-btn, .delete-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn {
    background-color: #2196F3;
    color: white;
}

.delete-btn {
    background-color: #f44336;
    color: white;
}

.edit-btn:hover {
    background-color: #1976D2;
}

.delete-btn:hover {
    background-color: #d32f2f;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
}

.modal.hide {
    display: none;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.modal-buttons button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-buttons button[type="submit"] {
    background-color: #2196F3;
    color: white;
}

.modal-buttons button[type="button"] {
    background-color: #f44336;
    color: white;
}

/* Styles für den neuen "Frage hinzufügen" Button */
.add-question-btn {
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    background-color: #f8f8f8;
    border: 2px dashed #2196F3;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2196F3;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.add-question-btn:hover {
    background-color: #e3f2fd;
    transform: translateY(-2px);
}

.plus-icon {
    font-size: 1.5rem;
    margin-right: 10px;
    font-weight: bold;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #2196F3;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modal-content input:focus,
.modal-content select:focus {
    outline: none;
    border-color: #2196F3;
}

.danger-btn {
    background-color: #f44336;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.danger-btn:hover {
    background-color: #d32f2f;
}

/* Styles für die Passwort-Abfrage */
#password-screen {
    text-align: center;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
}

#password-screen h2 {
    color: #2196F3;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

#password-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#admin-password {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
}

#admin-password:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.2);
}

#password-form button {
    background-color: #2196F3;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#password-form button:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#password-form button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Styles für das Passwort-Ändern-Formular */
#change-password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#change-password-form input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#change-password-form input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.2);
}

.primary-btn {
    background-color: #2196F3;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Styles für die Admin-Buttons */
.admin-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    align-items: center;
    justify-content: center;
}

#admin-logout,
#change-password-btn {
    background-color: #2196F3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 150px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#admin-logout {
    background-color: #f44336;
}

#admin-logout:hover {
    background-color: #d32f2f;
}

#change-password-btn:hover {
    background-color: #1976D2;
}

/* Verbessere das Passwort-Modal */
#password-modal .modal-content {
    max-width: 400px;
    padding: 25px;
}

#password-modal h2 {
    color: #f44336;
    margin-bottom: 20px;
    text-align: center;
}

#change-password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#change-password-form input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#change-password-form input:focus {
    outline: none;
    border-color: #f44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.2);
}

#password-modal .modal-buttons button {
    padding: 12px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

#password-modal .modal-buttons button[type="submit"] {
    background-color: #f44336;
    color: white;
}

#password-modal .modal-buttons button[type="submit"]:hover {
    background-color: #d32f2f;
}

#password-modal .modal-buttons button[type="button"] {
    background-color: #e0e0e0;
    color: #333;
}

#password-modal .modal-buttons button[type="button"]:hover {
    background-color: #bdbdbd;
}

/* Styles für den No-Questions-Screen */
#no-questions-screen {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

#no-questions-screen h2 {
    color: #f44336;
    margin-bottom: 15px;
}

#no-questions-screen p {
    margin-bottom: 20px;
    color: #666;
}

#back-to-start {
    background-color: #2196F3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#back-to-start:hover {
    background-color: #1976D2;
} 