@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --spacing-100: 8px;
    --spacing-200: 16px;
    --spacing-300: 24px;
    --spacing-400: 32px;
    --spacing-700: 56px;
    --spacing-100: 80px;
    --spacing-1300: 104px;
    --spacing-1600: 128px;
    --spacing-2000: 160px;
    --spacing-2200: 176px;
    --spacing-2300: 184px;

    --color-white: #fff;
    --color-black: #000;
    --color-grey-950: #08070B;
    --color-grey-900: #14131B;
    --color-grey-850: #18171F;
    --color-grey-800: #24232C;
    --color-grey-700: #54535B;
    --color-grey-600: #817D92;
    --color-grey-200: #E6E5EA;
    --color-green: #A4FFAF;
    --color-yellow: #F8CD65; 
    --color-orange: #FB7C58;
    --color-red: #F64A4A;
    --linea-gradient: linear-gradient(to right, #14131B, #08070B);
}

body {
    font-family: "JetBrains Mono", monospace;
    font-weight: bold;
    background-color: var(--color-grey-950);
    height: 100vh;
    align-content: center;
}

input {
    display: block;
    font-family: inherit;
    font-weight: bold;
}

label, span {
    display: block;
}

/* mobile */
.text-title {
    font-size: 16px;
    line-height: 20px;
}

.genrate-password {
    font-size: 24px;
    line-height: 32px;
}


p .text-three {
    font-size: 18px;
    line-height: 24px;
}

p .text-four {
    font-size: 16px;
    line-height: 20px;
}

.length-font {
    font-size: 16px;
    line-height: 20px;
}

.password-font {
    font-size: 16px;
    line-height: 20px;
}


.generator {
    width: 90%;
    margin-inline: auto;
    height: auto;
}


.generador__text {
    color: var(--color-grey-600);
    text-align: center;
    margin-bottom: var(--spacing-200);
}

.generator__password {
    height: 64px;
    background-color: var(--color-grey-800);
    padding: var(--spacing-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#password {
    font-size: 32px;
    line-height: 42px;
    background-color: transparent;
    outline: none;
    border: none;
    height: 100%;
    max-width: 80%;
    color: var(--color-grey-200);
}

#password::placeholder {
    color: var(--color-grey-700);
}


.copied__img {
    display: block;
    cursor: pointer;
    width: 21px;
    height: 24px;
}

.generator__settings {
    background-color: var(--color-grey-800);
    margin-top: var(--spacing-200);
    padding: var(--spacing-200);
}

.generador__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.generator__length {
    color: var(--color-grey-200);
}

.number {
    font-size: 24px;
    line-height: 32px;
    color: var(--color-green);
}

#range {
    margin-top: 16px;
    height: 8px;
    width: 100%;
    background: linear-gradient(to right, #A4FFAF 0%, #A4FFAF 33.33%, #08070B  33.33%, #08070B 100%);
}

/* Reference to the circle or rectangle */
input[type="range"]::-webkit-slider-thumb,
input[type="range"]::-moz-range-thumb {
  appearance: none;
  width: 28px;
  height: 28px;
  background: var(--color-grey-200);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.generator__options {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.generator__options li {
    display: flex;
    gap: 24px;
    align-items: center;
}

.generator__options li input {
    appearance: none;
    position: relative;
    height: 20px;
    width: 20px;
    accent-color: var(--color-green);
    background-color: var(--color-grey-950);
    cursor: pointer;
    border: none
}

.generator__options li input:hover {
    outline: 2px solid var(--color-green);
}

.generator__options li input:checked {
    background-color: var(--color-green);
}

.generator__options li input:checked::before {
    position: absolute;
    content: '✔️';
    top: 0px;
    left: 1px;

}


.option__label {
    color: var(--color-grey-200);
    font-size: 16px;
    line-height: 20px;
}

.result {
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    background-color: var(--color-grey-850);
}

.strength {
    color: var(--color-grey-600);
    font-size: 16px;
    line-height: 20px;
}

.result__graphic {
    display: flex;
    align-items: center;
}

.grade {
    color: var(--color-grey-200);
    margin-inline-end: 8px;
}

.bars {
    height: 30px;
    display: flex;
    gap: 2px;
}

.bar {
    border: 1px solid var(--color-white);
    height: 100%;
    width: 10px;
}

.generate {
    margin-top: 32px;
    padding: 24px ;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    border: 1px solid;
    gap: 16px;
    background-color: var(--color-green);
    cursor: pointer;
}

.generate:hover {
    background-color: transparent;
    border-color: var(--color-green);
}

.generate__text {
    color: var(--color-grey-800);
    font-size: 16px;
    line-height: 20px;
}

.generate:hover .generate__text {
    color: var(--color-green);
}

.generate__arrow {
    display: inline-block;
    object-fit: contain;
    vertical-align: center;
}

.generate:hover .generate__arrow {
    color: var(--color-green);
} 





.copied__img {
    display: block;
    color: var(--color-green);
    cursor: pointer;
}

.copied__img:hover {
    color: #fff;
}


@media screen and (min-width: 768px) {
    /* desktop, tablet */
    .text-title {
        font-size: 24px;
        line-height: 32px;
    }

    .password-font {
        font-size: 24px;
        line-height: 32px;
    }

    /* desktop, tablet */
    .genrate-password {
        font-size: 32px;
        line-height: 42px;
    }

    .generator {
        width: 540px;
    }

    .length-font {
        font-size: 18px;
        line-height: 24px;
    }

    .number {
        font-size: 32px;
        line-height: 42px;
    }

    .option__label {
        color: var(--color-grey-200);
        font-size: 18px;
        line-height: 24px;
    }

    .strength {
        font-size: 18px;
        line-height: 24px;
    }

    .generate__text {
        font-size: 18px;
        line-height: 24px;
    }
}

/* JAVASCRIPT */
/* when push the svg button */
.copied {
    display: none;
    color: var(--color-green);
}

.bar--yellow {
    background-color: var(--color-yellow);
}

/* 
@font-face {
    font-family: ;
    src: url();
} */








