@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(90deg, #14131B 0%, #08070B 100%);
    color: white;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1{
    text-align: center;
    font-size: 40px;
    color:slategray;
}

.container{
    display:flex;
    flex-direction: column;
    gap:24px;
}

.password-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #24232C;
    width: 540px;
    height: 80px;
    padding-inline: 32px;
}

.password{
    font-size: 32px;
    font-weight: 700;
}

.copypass{
    border:none;
    background-color: transparent;
}

.options-container{
    background-color: #24232C;
    width:540px;
    display: flex;
    flex-direction: column;
    padding:32px;
}

.text{
    font-size: 18px;
}

.length-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 25px;
}

.length{
    color:#A4FFAf;
}

.slider{
    --webkit-appearance:none;
    appearance: none;
    margin-bottom: 32px;
}

.slider::-webkit-slider-thumb{
    --webkit-appearance:none;
    appearance: none;
    background-color: #E6E5EA;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;

    margin-top: -12px;
}

.slider::-webkit-slider-runnable-track{
    width: 100%;
    height: 4px;
    cursor: pointer;
    background-color:#A4FFAf ;
}

.input-container{
    display: flex;
    gap:8px;
    align-items: center;
    margin-bottom: 8px;
}

.input-container input{
    --webkit-appearance:none;
    appearance: none;
    background-color: white;
    height: 16px;
    width: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.input-container input:checked{
    --webkit-appearance:none;
    appearance: none;
    background-color: #A4FFAf;
    height: 16px;
    width: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease-in;
}

.btn-generate{
    background-color: #A4FFAf;
    height: 45px;
    border: none;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: x-large;
    font-weight:600;
    margin-top: 24px;
}

.btn-generate:active{
    background-color: #77c380;
}
.btn-generate:hover{
    box-shadow: 0px 0px 5px #b6ff9e;
}

@media (max-width:600px) {
    h1{
        margin-top: -50px;
        font-size: 30px;
    }
    .container{
        width:90%;
    }
    .password-container{
        width:95%;
    }
    .options-container{
        width:95%;
    }

    .password{
        font-size: 20px;
    }

    .btn-generate{
        font-size: 20px;
        font-weight: bold;
    }

    .input-container .text{
        margin-bottom:5px;
    }
}