/* Allgemeine Einstellungen */
body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to bottom right, #667eea, #764ba2);
    color: #333;
    overflow: hidden;
}

/* Container-Styling */
.container {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.container:hover {
    transform: translateY(-10px);
}

/* Überschrift */
.container h1 {
    margin-bottom: 20px;
    font-size: 26px;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Labels */
label {
    display: block;
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    color: #555;
}

/* Zeichensatz-Auswahl Dropdown */
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: #f9f9f9;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, background-color 0.3s ease;
    appearance: none;
    cursor: pointer;
}

select:focus {
    border-color: #667eea;
    background: #fff;
    outline: none;
}

/* Schieberegler für Passwortlänge */
#length {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    margin-top: 10px;
    margin-bottom: 20px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

#length:hover {
    background: #ccc;
}

#length::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#length::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#length::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#length::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* Anzeige der aktuellen Länge */
#lengthValue {
    font-size: 16px;
    color: #667eea;
    font-weight: bold;
    margin-bottom: 10px;
    display: inline-block;
}

/* Buttons */
button {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background: #667eea;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    letter-spacing: 0.5px;
}

button:hover {
    background: #5563c1;
    transform: translateY(-3px);
}

button:active {
    transform: translateY(1px);
}

/* Passwort-Output */
.output {
    margin: 15px 0;
    padding: 15px;
    background: #f4f7fa;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px; /* Schriftgröße für Platzoptimierung */
    color: #333;
    text-align: left;
    word-wrap: break-word;
    word-break: break-word;
    text-align: center;
    min-height: 80px; /* Höhe für 200 Zeichen */
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 200px; /* Begrenzung für sehr lange Inhalte */
    overflow-y: auto; /* Scrollbar für längere Inhalte */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Copy-Button */
#copyButton {
    background: #48c774;
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

#copyButton:hover {
    background: #3a9d5e;
    transform: translateY(-3px);
}

#copyButton:active {
    transform: translateY(1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        max-width: 95%;
    }

    .container h1 {
        font-size: 20px;
    }

    .output {
        font-size: 12px; /* Kleinere Schriftgröße für mobile Ansicht */
    }
}