/* Allgemeine Stile */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Kopfzeilen */
h1, h2 {
    background-color: #800080;
    color: #fff;
    padding: 2%;
    margin: 0;
    font-size: 1.5em;
}

/* Navigationsleiste */
nav ul {
    list-style-type: none; /* Entfernt Aufzählungspunkte */
    padding: 0;
    margin: 20px 0;
}

nav ul li {
    margin: 10px 0;
}

nav ul li a {
    text-decoration: none;
    display: block;
    background-color: #800080;
    color: #fff;
    padding: 15px;
    border-radius: 4px;
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
    font-size: 1em;
    text-align: center;
}

nav ul li a:hover {
    background-color: #4b0082;
}

/* Allgemeine Buttons */
.button {
    background-color: #800080;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    margin: 10px auto;
    font-size: 2em;
    text-align: center;
    width: 90%;
    max-width: 90%;
}

.button:hover {
    background-color: #4b0082;
}

/* Formular-Stile */
form {
    background-color: #fff;
    padding: 4%;
    margin: 4% auto;
    max-width: 90%;
    text-align: left;
    font-size: 1em;
}

input[type="text"],
input[type="email"] {
    margin: 2% 0;
    font-size: 2em;
}

input[type="password"] {
    margin: 2% 0;
    font-size: 2em;
}

input[type="number"],
input[type="datetime-local"],
select {
    width: 100%;
    padding: 2%;
    margin: 2% 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

input[type="file"] {
    margin: 2% 0;
    font-size: 2em;
}

input[type="submit"],
input[type="button"] {
    background-color: #800080;
    color: #fff;
    padding: 2%;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 2em;
    border: none;
    margin-top: 2%;
}

input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: #4b0082;
}

label {
    display: block;
    margin-top: 2%;
    font-size: 2em;
}

/* Tabellen-Stile */
table {
    margin: 4% auto;
    border-collapse: collapse;
    width: 90%;
    max-width: 90%;
    font-size: 2em;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 2%;
    text-align: center;
}

th {
    background-color: #800080;
    color: #fff;
}

.participated {
    background-color: #d4edda;
}

.not-participated {
    background-color: #f8d7da;
}

.correct {
    background-color: #d4edda;
}

.incorrect {
    background-color: #f8d7da;
}

/* Goldstand-Anzeige */
.gold-stand {
    position: absolute;
    top: 2%;
    right: 2%;
    background-color: #FFD700;
    padding: 2%;
    border-radius: 4px;
    font-size: 1em;
}

/* Benutzerinformationen */
.user-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2%;
}

.profile-image {
    border-radius: 50%;
    width: 30%;
    max-width: 150px;
    height: auto;
    object-fit: cover;
}

.profile-image-large {
    border-radius: 50%;
    width: 30%;
    max-width: 150px;
    height: auto;
    object-fit: cover;
}

/* Chat-Bereich */
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 2%;
    background-color: #fff;
    text-align: left;
}

/* Chat-Nachrichten */
.chat-message {
    margin-bottom: 2%;
}

.system-message {
    color: violet;
    font-weight: bold;
    font-style: italic;
}

.chat-sticker {
    width: 20%;
    max-width: 80px;
    height: auto;
}

.chat-image {
    width: 50%;
    max-width: 200px;
    height: auto;
    object-fit: cover;
    cursor: pointer;
}

/* Bild-Popup */
.image-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.image-popup img {
    max-width: 90%;
    max-height: 90%;
}

/* Chat-Formular als Footer */
.chat-form {
    display: flex;
    align-items: center;
    padding: 2%;
    background-color: #f4f4f4;
}

.chat-form input[type="text"] {
    flex: 1;
    padding: 2%;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.chat-form .send-button {
    background-color: #800080;
    color: #fff;
    padding: 2%;
    border: none;
    border-radius: 4px;
    margin-left: 2%;
    cursor: pointer;
    font-size: 1em;
}

.chat-form .send-button:hover {
    background-color: #4b0082;
}

/* Icon-Buttons */
.icon-buttons {
    display: flex;
    align-items: center;
    margin-left: 2%;
}

.icon-button {
    background: none;
    border: none;
    padding: 2%;
    margin-left: 2%;
    cursor: pointer;
}

.icon-button img {
    width: 24px;
    height: 24px;
}

/* Sticker-Auswahl */
.sticker-selection {
    display: flex;
    overflow-x: auto;
    padding: 2%;
    background-color: #fff;
}

.sticker-button {
    background: none;
    border: none;
    padding: 2%;
    margin-right: 2%;
}

.sticker-icon {
    width: 20%;
    max-width: 80px;
    height: auto;
}

/* Responsive Design */
@media (max-width: 600px) {
    h1, h2 {
        font-size: 1.2em;
    }

    .chat-form input[type="text"] {
        font-size: 0.9em;
    }

    .chat-form .send-button {
        font-size: 0.9em;
    }

    .icon-button img {
        width: 20px;
        height: 20px;
    }

    .sticker-icon {
        width: 15%;
        max-width: 50px;
    }

    .chat-sticker {
        width: 15%;
        max-width: 50px;
    }

    .chat-image {
        width: 40%;
        max-width: 150px;
    }
}
