body { 
    margin: 0; 
    overflow: hidden; 
    background-color: #4A102A;
}

h1 {
    color: #FCF259;
}


/* Styling für die Checkbox-Karten */
.multiply-option {
    cursor: pointer;
    transition: all 0.3s;
}

.multiply-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.multiply-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.multiply-option .card-body {
    text-align: center;
    padding: 1.5rem 0.5rem;
}

/* Styling für ausgewählte Karten - jetzt konsistent mit Bootstrap */
.multiply-option input[type="checkbox"]:checked + .card {
    background-color: #ffd684 !important;
    border-color: #fec886 !important;
}

/* Entfernt manuelle Hintergrundfarben */
.multiply-option .card.selected {
    background-color: inherit;
    border-color: inherit;
}

.antwort-btn {
    font-size: 1.5rem;
    padding: 15px;
    margin: 5px;
    transition: all 0.3s;
}

.antwort-btn:hover {
    transform: scale(1.05);
}

/* Feedback */
#feedback.correct {
    background-color: #d4edda;
    color: #155724;
}

#feedback.incorrect {
    background-color: #f8d7da;
    color: #721c24;
}

/* Antwort-Button Zustände */
.btn-success {
    animation: pulse 0.5s ease-in-out;
    color: #000;
    background-color: #ffc107 !important;
    border-color: #ffd684;
}

.btn-danger {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

.btn-secondary {
    background-color: #6c757d !important;
    color: white !important;
    border-color: #6c757d !important;
    opacity: 0.7;
}

.btn-success, .btn-danger {
    animation: pulse 0.5s ease-in-out;
    
}

.btn-success:focus {
    animation: pulse 0.5s ease-in-out;
}

.btn-success:hover {
    
    background-color: green;
    border-color: #ffd684;
}

.btn:disabled{
    border-color: #ffd684;
  
}

/* Animation für Feedback */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}



/* Fortschrittsanzeige */
#progress {
    height: 5px;
    margin-bottom: 15px;
}

.multiply-option .card.selected {
    background-color: #fff;
    border-color: rgba(0, 0, 0, 0.175);
}

/* Button Styling */
#toggleAll {
    transition: all 0.3s;
}

#toggleAll:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Timer Animation */
@keyframes pulseWarning {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#timer {
    font-size: 1rem;
    animation: pulseWarning 1s infinite;
}

.bg-warning {
    background-color: #ffc107 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
    animation: none;
}

.bg-success {
    background-color: #28a745 !important;
}

/* Footer Styling */
.card-footer {
    border-top: 2px solid rgba(0,0,0,0.1);
    background-color: #f8f9fa !important;
}

/* Beenden Button im Footer */
#beendenBtn {
    transition: all 0.3s;
    border-width: 2px;
    font-weight: 500;
    min-width: 150px;
}

#beendenBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

/* Icon Animation */
.bi-x-circle {
    transition: transform 0.3s;
}

#beendenBtn:hover .bi-x-circle {
    transform: scale(1.1);
}


/* Grundlegende Layout-Anpassungen */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

#wrapper {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    width: 100%;
}

footer a {
    text-decoration: none;
    transition: all 0.3s;
}

footer a:hover {
    color: var(--bs-primary) !important;
    transform: translateY(-2px);
}

/* Social Icons */
.bi {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.bi:hover {
    transform: scale(1.2);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    html {
        height: -webkit-fill-available; /* Für mobile Browser */
    }
    
    body {
        min-height: -webkit-fill-available;
        overflow-y: auto;
    }
    #wrapper {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Für iOS Smooth Scrolling */
        padding-bottom: 20px; /* Platz für Footer */
    }
    
    footer {
        position: relative; /* Für mobile Ansicht */
    }
    
    body {
        overflow-x: hidden; /* Verhindert horizontales Scrollen */
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .bi {
        font-size: 1.2rem;
    }
}



/* Responsive Anpassungen */
@media (max-width: 576px) {
    .multiply-option .card-body {
        padding: 1rem 0.25rem;
    }
}

.endoption-option {
    cursor: pointer;
    transition: all 0.3s;
}

.endoption-option:hover .card {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.endoption-option .card {
    transition: all 0.3s;
}

.endoption-option input[type="radio"]:checked + .card {
    background-color: #ffd684 !important;
    border-color: #fec886 !important;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .endoption-option .card-body {
        padding: 1rem;
    }
}

/* Highscore Styling */
#highscore-area .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#highscore-list tr:first-child td {
    font-weight: bold;
    font-size: 1.1em;
}

#highscore-list tr:first-child td:first-child::after {
    content: " 👑";
}

#highscore-form input {
    border-right: none;
}

#highscore-form .input-group-text {
    background-color: white;
}

/* Platzierung Badge */
.badge.bg-warning {
    font-size: 0.9em;
    padding: 0.5em;
}

#highscore-position{
    background-color: #ffd684 !important;
    border-color: #fec886 !important;
}

#submit-score{
    background-color: #ffc107;
    border-color: #fec886 !important;
    color: #000;
}

/* Highscore Krone */
#show-highscores {
    transition: all 0.3s;
}

#show-highscores:hover {
    transform: scale(1.2);
}

/* Modal Tabs */
.nav-tabs .nav-link {
    font-weight: 500;
    color: darkgrey;
}

.nav-tabs .nav-link.active {
    font-weight: bold;
    border-bottom: 3px solid var(--bs-warning);
    background-color: #ffd684;
}

/* Platzierung Marker */
tr.table-warning td:first-child::after {
    content: " 🏆";
    opacity: 0.7;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 25px 10px;
    }
}

/* Score-Text Stil */
.score-text {
    color: #333;
    font-weight: 600;
    font-size: 0.9em;
}

/* Timer-Text Stil */
.timer-text {
    color: #333;
    font-weight: 600;
    font-size: 0.9em;
    background-color: #FFD700;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Trennlinie */
.divider {
    height: 20px;
    width: 1px;
    background-color: #eee;
}

/* Sternen-Symbol */
.star-icon {
    color: #FFD700;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.5);
}

/* Sternen-Zähler */
.star-count {
    color: #333;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* Responsive Anpassungen */
@media (max-width: 576px) {
    .score-text, .timer-text {
        font-size: 0.8em;
    }
    .divider {
        margin: 0 5px;
    }
}

/* Animationen */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes starGrow {
    0% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Hilfe-Modal Inhalte */
.help-content h4 {
    color: #2c3e50;
    border-bottom: 2px solid #f0c10d;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.help-content p {
    margin-bottom: 1rem;
}

/* Button-Anpassung */
.btn-outline-warning {
    border-color: darkgrey;
    color: darkgrey;
}

.btn-outline-warning:hover {
    background-color: #f0c10d;
    color: #000;
}

/* Feedback-Styling */
.star-rating {
    color: #ddd;
    cursor: pointer;
    margin: 0.5rem 0;
}

.star-rating .bi-star-fill {
    transition: all 0.2s;
    padding: 0 3px;
}

.star-rating .bi-star-fill:hover,
.star-rating .bi-star-fill.active {
    color: #FFD700;
    transform: scale(1.2);
}

#feedbackForm .form-label {
    font-weight: 500;
    color: #4A102A;
}

/* Mobile-Optimierung */
@media (max-width: 576px) {
    .star-rating .bi-star-fill {
        font-size: 2rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

#feedbackknopf{
    border-color: #4A102A;
    color: #4A102A;
}

#feedbackknopf:hover{
    background-color: #4A102A;
    color: white;
}

#formulardanke{
    background-color: #4A102A;
    color: white;
}

