*,
*::after,
*::before{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*{
    font-family: "Sansation", sans-serif;
    font-weight: 500;
    font-style: normal;
}

body{
    height: 100vh;
    width: 100vw;
    background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    color: black;
    overflow: hidden;
}

#main-section{
    height: 90%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 auto;
}

h1{
    font-size: 2.5rem;
    font-weight: 600;
    color:#301934;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.31);
    text-align: center;
    text-transform: uppercase;
    word-spacing: 0.4em;
    letter-spacing: 1.5px;
    position: relative;
    text-align: center;
}

h1::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 40%;
    height: 3px;
    background-color: #301934;
    transform: translateX(-50%);
}

.output{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    position: relative;
    background-color: #f7f9fb;
    border-radius: 1rem;
    padding: 0 1rem;
    box-shadow: 1px 5px 10px;
    width: 50%;
    max-width: 450px;
}

.password-display{
    border: none;
    outline: none;
    background: none;
    padding: 1.15rem 1rem;
    width: 100%;
    font-weight: 600;
    font-size: 1.2rem;
}

.password-display::placeholder{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1em;
    opacity: 0.8;
}

.output button{
    background: none;
    border: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tooltip{
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    border-radius: .5rem;
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    opacity: 0;
    transition: opacity 0.3s ease, top 0.3s ease;
    white-space: nowrap;
    z-index: 5;
}

.tooltip.active{
    opacity: 1;
    top: -40px;
}

.copy-icon{
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: #301934;
    transition: color .2s ease-in-out, transform 0.2s ease;
}

.copy-icon:active{
    color: #007bff;
    transform: scale(1.1);
}

.input{
    margin-top:-0.5rem ;
    background-color: #f7f9fb;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    box-shadow: 1px 5px 10px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    position: relative;
    gap: 0.8rem;
    width: 50%;
    max-width: 450px;
}

.passwordLength{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 1.3rem;
}

.length-display{
    color: #301934;
    font-weight: 700;
}

.slider{
    appearance: none;
    position: relative;
    width: 100%;
    height: 0.75rem;
    cursor: pointer;
    border-radius: 1rem;
    background-image: linear-gradient(to right, #007bffcc 0%, #007bffb5 100%); 
    background-color: #dadfe2; 
    background-repeat: no-repeat;
}

.slider::-webkit-slider-thumb{
    position: relative;
    appearance: none;
    height: 1.5rem;
    width: 1.5rem;
    border-radius: 50%;
    background-color: #1884f7;
    cursor: pointer;
    box-shadow: 0 0 20px 0 #1884f7b5;
    transition: all 100ms ease-in-out;
}

.slider:focus{
    outline: 3px solid #301934;
}

.slider::-webkit-slider-thumb:hover{
    outline: 2px solid #007bff;
    background-color: #301934;
    box-shadow: 0 0 25px 5px #007bff92;
}

.check{
    width: 100%;
    border: 1px solid #30193419;
    padding: 0.8rem;
    border-radius: .5rem;
    font-size: 1.1rem;
}

.check input{
    border-radius: 50%;
    appearance: none;
    height: 1rem;
    width: 1rem;
    border:3px solid #301934;
    margin-right: 0.3rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.check input:checked:before{
    content: '✔';
    position: absolute;
    bottom: 90%;
    transform: translateY(50%);
    /* top: 30%;
    left: 35%;
    transform: translate(-50%, -50%); */
    font-size: 1.2rem;
    color: #333;
    z-index: 2;
}

.check label{
    text-align: center;
}

.strength{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 1.3rem; 
}

.strength-indicator{
    height: 1.8rem;
    width: 1.8rem;
    border-radius: 50%;
}

.generate-btn{
    width: 80%;
    text-align: center;
    margin: 0 auto;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.3rem;
    background-color: #007bff;
    color: white;
    font-weight: 700;
    border: none;
    transition: all .2s ease-in-out;
    cursor: pointer;
    box-shadow: 1px 5px 10px black;
}

.generate-btn i{
    margin-right: 1rem;
}

.generate-btn:active{
    transform: scale(1.08);
    background-color: #007bff8c; 
    color: #000;
}

.generate-btn:hover{
    background-color: #007bff8c;
    color: #000;
}

#footer-section{
    width: 100%;
    background-color: rgba(128, 128, 128, 0.195);
    height: 8%;
    padding: 1rem;
    text-align: center;
    font-size: 1.1rem;
    word-spacing: 0.3rem;
    font-weight: 600;
    opacity: 0.8;
}

#footer-section span{
    color: #007bff;
    font-size: 1.5rem;
}

 @media (max-width: 600px) {
    body{
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
    }

    #main-section {
        width: 100%;
        margin: 0 auto;
        height: auto;
    }

    .output,
    .input {
        margin: 0 auto;
        width: 90%;
    }

    h1{
        font-size: 1.1rem;
    }

    .generate-btn{
        width: 100%;
    }

}  


