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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to right, #4facfe, #00f2fe); /* Beautiful gradient */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #fff;
}

#card {
    background: #fff;
    color: #333;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

#slider {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#slider input[type="range"] {
    width: 70%;
    background: #ddd;
    border-radius: 10px;
    cursor: pointer;
}

#sliderValue {
    font-size: 18px;
    font-weight: bold;
}

.checkboxes {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.checkboxes div{
    display: flex;
    flex-flow: row wrap;
    margin-right: 10px;
    gap: 0.25em;
}

#strengthIndicator {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.strength-bar {
    width: 100%;
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

#strengthBar {
    height: 100%;
    width: 0;
    border-radius: 5px;
    transition: width 0.3s ease;
}

#strengthText {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

#btns{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.25em;
    flex-flow: row wrap;
    gap: 0.5em;
}

input[type="submit"] {
    background-color: #4facfe;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #00f2fe;
}

/* Responsive design */
@media (max-width: 500px) {
    #card {
        padding: 20px;
    }
    input[type="submit"] {
        font-size: 16px;
    }
}
