/* Allgemeine Stile für die gesamte Website */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Container für Seiteninhalte */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Überschrift-Stile */
h1, h2, h3 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

/* Allgemeine Stile für Formulare */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Eingabefelder in Formularen */
input[type="text"], input[type="password"], input[type="file"] {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* Buttons */
button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 0;
}

button:hover {
    background-color: #45a049;
}

/* Links in Formularen */
a {
    color: #4CAF50;
    text-decoration: none;
    margin: 10px 0;
}

a:hover {
    text-decoration: underline;
}

/* Stile für Login und Registrierungsseiten */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Stile für das Dashboard */
.dashboard-container {
    text-align: center;
}

.dashboard-container a {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 5px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
}

.dashboard-container a:hover {
    background-color: #45a049;
}

/* Lernmodus Kartenstil */
.card {
    position: relative;
    width: 300px;
    height: 200px;
    margin: 20px auto;
    perspective: 1000px;  /* 3D-Effekt */
}

/* Vorder- und Rückseite der Karte */
.card div {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;  /* Verhindert das Spiegeln */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s ease-in-out;
}

/* Vorderseite der Karte */
.front {
    z-index: 2;
}

/* Rückseite der Karte */
.back {
    transform: rotateY(180deg);
    background-color: #e0f7fa;  /* Unterschiedliche Farbe für die Rückseite */
}

/* Kartenanimation */
.card:hover .front {
    transform: rotateY(180deg);
}

.card:hover .back {
    transform: rotateY(360deg);
}

/* Stile für den Fortschrittsbereich im Lernmodus */
.learn-container {
    text-align: center;
    margin-top: 20px;
}

.learn-container p {
    font-size: 18px;
    color: #333;
}

/* Tabelle für Statistiken */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px auto;
    text-align: center;
}

.stats-table th, .stats-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.stats-table th {
    background-color: #4CAF50;
    color: white;
}

.stats-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Fehlermeldungen */
.error-message {
    color: red;
    font-weight: bold;
}

/* Erfolgsnachrichten */
.success-message {
    color: green;
    font-weight: bold;
}
