body {
    background-color: #121212;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #1e1e1e;
    padding: 10px 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
}

nav ul li a:hover {
    background-color: #575757;
    border-radius: 5px;
}

.container {
    max-width: 600px;
    margin: 80px auto 0;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 8px;
}

h1 {
    text-align: center;
}

.rule-group {
    margin: 20px 0;
}

.toggle-button {
    cursor: pointer;
    background-color: #1e1e1e;
    color: #ffffff;
    border: 1px solid #575757;
    padding: 15px;
    font-size: 18px;
    width: 100%;
    text-align: left;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.toggle-button:hover {
    background-color: #575757;
}

.rules {
    background-color: #2c2c2c;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    border: 1px solid #575757;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.3s ease;
    opacity: 0;
}

.rules.open {
    max-height: 10000px; /* Groß genug, um den Inhalt zu zeigen */
    opacity: 1;
}

.language-box {
    display: none;
}

.language-box.active {
    display: block;
}

#translate-button {
    background-color: #1e90ff; /* Blaues Farbschema */
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#translate-button:hover {
    background-color: #63a4ff; /* Helleres Blau bei Hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#translate-button:active {
    background-color: #0d6efd; /* Dunkleres Blau beim Klicken */
    transform: scale(0.95);
}
