@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,200;9..40,300;9..40,400;9..40,700&family=Oxygen:wght@300;400;700&display=swap");

:root {
    --rose-quartz: #aba9bfff;
    --periwinkle: #beb7dfff;
    --nyanza: #d3ffe9ff;
    --black: #000009ff;
    --aquamarine: #0ff4c6ff;
    --black: #0d1821ff;
    --space-cadet: #2d3047ff;
}

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

body {
    margin: 0;
    background-image: linear-gradient(to left top, #dcf7fb, #a0e3e2, #66cfbb, #38b889, #239f4e);
    font-family: "Oxygen", sans-serif;
    min-height: 100vh;
    display: grid;
    place-content: center;
}

#container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 650px;
    border-radius: 20px;
    padding: 100px 50px;
    background-color: var(--black);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.643), 0 6px 10px 0 rgba(0, 0, 0, 0.449);
}

h1 {
    margin: 0;
    color: white;
    font-size: 2.5rem;
    line-height: 40px;
}

#secondh1 {
    color: var(--aquamarine);
}

h2 {
    margin-top: 15px;
    color: var(--nyanza);
    font-size: 1.2rem;
}

hr {
    width: 100%;
    background-color: var(--nyanza);
}

#generate {
    margin: 40px 0 20px 0;
    width: 200px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    color: var(--rich-black);
    background-color: var(--aquamarine);
    font-size: 1rem;
    font-weight: bold;
    transition: 0.5s ease-in-out;
}

#generate:hover {
    background-color: rgb(113, 90, 243);
}

#passworddiv {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin-top: 25px;
    column-gap: 50px;
}

.password {
    width: 200px;
    height: 40px;
    border-radius: 10px;
    display: inline-block;
    background-color: var(--space-cadet);
    display: flex;
    align-items: center;
    padding-left: 15px;
    color: white;
    margin-top: 15px;
}

#password-strength {
    color: var(--nyanza);
    font-size: 1rem;
    margin-top: 15px;
}

#copy-password {
    margin-top: 20px;
    width: 200px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    color: var(--rich-black);
    background-color: var(--aquamarine);
    font-size: 1rem;
    font-weight: bold;
    transition: 0.5s ease-in-out;
}

#character-set {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

#character-set label {
    margin-right: 10px;
    color: white;
    font-size: 1rem;
}

#length-value {
    color: var(--nyanza);
    font-weight: bold;
}

#btn{
    margin-top:1rem;
    display: inline-block;
    padding: 10px 20px;
    border: none;
    outline: none;
    background-color: red;
    color: #fff;
    font-size: 1rem;
    text-align: center;
}

/*media quary*/
@media (max-width:700px) {
    #container {
        margin: 10vh auto;
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1rem;
    }

    #generate {
        width: 100%;
        font-size: 1.2rem;
    }

    #passworddiv {
        flex-direction: column;
    }

    .password {
        width: 100%;
        font-size: 1rem;
    }

}