*,
*::before,
*::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'League Spartan', sans-serif;
}
:root {
    --dk-violet: hsl(268, 75%, 9%);
    --lt-violet: hsl(268, 47%, 21%);
    --lt-violet2: hsl(281, 89%, 26%);
    --vb-violet: hsl(285, 91%, 52%);
    --vb-violet2: hsl(290, 70%, 36%);
    --vb-yellow: hsl(52, 100%, 62%);
    --pl-white: hsl(0, 0%, 100%);
    --vb-cyan: hsl(176, 100%, 44%);
    --vb-cyan2: hsl(177, 92%, 70%);
    --dk-text: hsl(198, 20%, 13%);
}

body{
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:   linear-gradient(231deg, rgba(22, 6, 40, 1) 0%,
    rgba(52, 28, 79, 1) 50%, 
    rgba(88, 7, 125, 1) 100%);


}
.container{
    width: 90%;
    max-width:450px ;
}
h1{
    color: var(--pl-white);
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    line-height: 1.2;
}

.display-contanier{
    background-color: var(--dk-violet);
    border-bottom:0.35rem solid var(--lt-violet2) ;
    border-radius: 1rem;
    position: relative;
    margin: 1rem 0;
    padding-top: 0.35rem;

}

.display{
    width: 100%;
    background-color: transparent;
    outline: none;
    border: none;
    padding: 1.15rem 1rem;
    color: var(--vb-yellow);
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 30px;
    letter-spacing: 1px;
    padding-right: 3.25rem;
    border: none;

}
.display::placeholder{
    position: absolute;
    top: 35%;
    left: 1.5rem;
    font-size: 1.5rem;
    line-height: 30px;
    /* letter-spacing: 1px; */
    color: var(--vb-yellow);
    opacity: 0.65;
    text-transform: uppercase ;

}

.display-contanier button{
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
}

.input-container{
   background-color:  var(--dk-violet);
   border-radius: 1rem;
   width: 100%;
   padding:2rem;
   border-bottom:0.35rem solid var(--lt-violet2) ;
}
.length-container{
    display: flex;
    justify-content: space-between;
    align-items: center;

}
.length-container p:nth-child(1){
    color: var(--pl-white);
    font-size: 1.5rem;

}
.length-container p:nth-child(2){
    color: var(--vb-yellow);
    font-size: 1.5rem;
}
.strength-section{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.75rem;
    margin-bottom: 2rem;
}

.strength-section p{
    color: var(--pl-white);
    font-size: 1.5rem;
}

.indicator{
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    /* transition: all 250ms ease-in-out; */
    background-color: aqua;
    box-shadow: inset;
}

.generateButton{
    width: 100%;
    padding: 1rem;
    background-color: var(--vb-violet);
    text-align: center;
    border-radius: 0.75rem;
    border-bottom: 0.35rem solid var(--vb-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--vb-yellow);
    font-weight: 600;
    font-size: 1.25rem;
}


.check{
    display: flex;
    align-items: center;
    margin: 1rem 0;
    gap: 0 1rem;
}

.check input{
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--vb-cyan);
    cursor: pointer;
    position: relative;
    border-radius: 0.35rem;
}

.check input:checked{
    background-color: var(--vb-cyan);   

}

.check input:checked::before{
    content: '✓';
    position: absolute;
    color: var(--dk-text);
    font-size: 1.05rem;
    font-weight: 600;
    left: 50%;
    top:-3.5px;
    transform: translateX(-50%);
}

.check label{
    color: var(--pl-white);
    font-size: 1.25 rem;
    letter-spacing: 0.75px;
}

.slider{
    appearance: none;
    width: 100%;
    cursor: pointer;
    background-color: var(--lt-violet);
    border-radius: 1rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    background-image: linear-gradient(var(--vb-violet),var(--vb-violet));
    height: 0.75rem;
    background-repeat: no-repeat;
    border: none;
    outline: none;
}

.slider::-webkit-slider-thumb{
    position: relative;
    appearance: none;
    height: 2rem;
    width: 2rem;
    border-radius: 50%;
    cursor: pointer;
    background-color: var(--vb-yellow);
    margin-top: -3px;
    transition: all 100ms ease-in;
    box-shadow: 0px 0px 20px 0px rgba(255, 229, 61, 0.50);
    z-index: 1;
}

.slider:focus{
    outline: 3px solid var(--vb-yellow);
}

.slider::-webkit-slider-thumb:hover{
    outline: 2px solid var(--vb-yellow);
    background-color: var(--dk-violet);
    box-shadow: 0px 0px 25px 5px rgba(255, 229, 61, 0.80);
    /* z-index: 1; */
}

.copyBtn{
   background-color: transparent; 
   border: none;
   outline: none;
}

.tooltip{
    background-color: var(--vb-violet2);
    position: absolute;
    color: var(--vb-yellow);
    font-size: 1.25rem;
    top: -35px;
    left: -25px;
    padding: 5px 10px;
    border-radius: 1rem;
    opacity: 0;
    transform: scale(0);
    transform-origin: bottom;
    transition: all 250ms ease-in-out;
}

.tooltip.active{
    opacity: 1;
    transform: scale(1);
}