* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

header,
main {
    flex: 0;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.password-generator {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.password-generator h1 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: #121212;
}

.password {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.password input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
}

.password button {
    background-color: #2ECC71;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.password button:hover {
    background-color: #27AE60;
}

.options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.option label {
    font-size: 0.9rem;
    color: #555;
}

.option input {
    margin-left: 0.5rem;
}

.strength {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.strength .bar {
    flex: 1;
    height: 10px;
    margin: 0 2px;
    background-color: #ddd;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.strength .bar.active {
    background-color: #2ECC71;
}

button#generate {
    background-color: #1E90FF;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button#clear{
    background-color: #d41f1f;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button#clear:hover{
    background-color: #e40909;
}

button#generate:hover {
    background-color: #1C7ED6;
}

footer {
    background-color: #121212;
    color: #FFFFFF;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}
