body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-title {
    font-family: 'Arial', sans-serif;
    font-size: 20pt;
    font-weight: bold;
    text-align: left;
    background-color: #BF0000;
    color: #ffffff;
    padding: 40px 0;
    padding-left: 175px;
    margin: 0;
    background-image: url('https://dl.ccb-online.de/informatik/HTML-Applets/Logo.svg');
    background-repeat: no-repeat;
    background-position: 40px center;
    background-size: contain;
    width: 100%;
    box-sizing: border-box;
}

.layout3 {
    padding-top: 20px;
    margin-top: 20px;
    max-width: 600px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    position: relative;
}

#reset-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #BF0000;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

#reset-button:hover {
    background-color: #a30000;
}

#dice-container {
    perspective: 1000px;
    margin-top: 20px;
}

.dice {
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateY(0deg);
    animation: roll 1s ease-in-out forwards;
    cursor: pointer;
}

.dice div {
    position: absolute;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: bold;
    background: #BF0000;
    border: 2px solid #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.face1 { transform: rotateY(0deg) translateZ(50px); }
.face2 { transform: rotateY(90deg) translateZ(50px); }
.face3 { transform: rotateY(180deg) translateZ(50px); }
.face4 { transform: rotateY(-90deg) translateZ(50px); }
.face5 { transform: rotateX(90deg) translateZ(50px); }
.face6 { transform: rotateX(-90deg) translateZ(50px); }

@keyframes roll {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(720deg) rotateY(720deg); }
}

#options-container {
    display: flex;
    flex-wrap: wrap; /* Checkboxen brechen in eine neue Zeile um */
    gap: 15px;
    margin-top: 20px;
}

#options-container label {
    cursor: pointer;
}

/* Checkbox-Haken rot färben */
#options-container input[type="checkbox"]:checked {
    accent-color: #BF0000;
}

#result-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 5px;
    max-width: 80%;
    justify-content: center;
}

.result {
    font-size: 1.5em;
    background: #BF0000;
    border-radius: 5px;
    padding: 5px 10px;
    color: #fff;
    width: 32px; /* Schmalere Zeichenboxen */
    text-align: center;
}

#copy-container {
    margin-top: 20px;
    cursor: pointer;
    color: #BF0000;
    font-size: 2em;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

#copy-icon::before {
    content: "\2398"; /* Unicode for two overlapping rectangles */
}

#copy-text {
    font-size: 0.7em; /* Kleinere Schriftgröße für den Text neben dem Kopier-Icon */
    color: #BF0000; /* Standardfarbe für "Passwort kopieren" */
}

.copied {
    color: green !important; /* Grüne Farbe für "kopiert!" */
}
