* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

body {
    background: linear-gradient(to right, #B2AAB5, #9C57F4);
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-direction: column;
    gap: 20px;
}

.container > .wrapper > h1 {
    margin-bottom: 30px;
    color: white;
    font-weight: 500;
    text-align: center;
}

.wrapper {
    width: 90%;
    max-width: 700px;
    min-height: 400px;
    background-color: #48404F;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.pass-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.password-section {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    position: relative;
    background-color: #171619;
    width: 100%;
}

.password-section > input {
    width: 100%;
    padding: 15px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border: none;
    cursor: pointer;
    height: 50px;
    font-size: 1rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    white-space: nowrap;
    background-color: rgba(0, 0, 0, 0.836);
    color: white;
}

.password-section > button {
    padding: 10px 26px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border: none;
    cursor: pointer;
    height: 50px;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.836);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.active {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.596);
    color: white;
    padding: 8px 30px;
    border-radius: 10px;
    right: -10px;
    top: -40px;
}

.main-card {
    background-color: rgba(0, 0, 0, 0.836);
    color: white;
    width: 100%;
    border-radius: 10px;
    min-height: 300px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.Password-length-section {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

.range {
    appearance: none;
    width: 100%;
    height: 15px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.267);
    margin: 10px 0px;
    background-image: linear-gradient(rgba(228, 227, 227, 0.342), rgba(0, 0, 0, 0.342));
    background-repeat: no-repeat;
    cursor: pointer;
}

.range::-webkit-slider-thumb {
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: white;
}

.check-boxes {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 1rem;
}

.check-box {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid white;
    border-radius: 50%;
    cursor: pointer;
}

.check-box:checked {
    background-color: white;
    position: relative;
}

.check-box:checked::before {
    content: '✔';
    position: absolute;
    left: 4px;
    color: black;
}

.strength-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
}

.light {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background-color: gray;
    box-shadow: 1px 1px 10px gray;
}

.generate-button {
    padding: 15px 24px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background-color: #186AB6;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.generate-button:hover {
    background-color: #145a92;
}

/* Media Queries */
@media (max-width: 768px) {
    .wrapper {
        min-width: 90%;
    }

    .password-section > input,
    .password-section > button {
        font-size: 0.9rem;
        height: 45px;
    }

    .generate-button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .wrapper {
        min-width: 100%;
        padding: 10px;
    }

    .password-section > input,
    .password-section > button {
        font-size: 0.8rem;
        height: 40px;
    }

    .generate-button {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}
