/* ------ reset ------ */

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

body {
    margin: 0;
    padding: 0;
}

div {
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span {
    margin: 0;
    padding: 0;
}

* {
    font-family: "poppins", sans-serif;
}

a{
    width: 100%;
    text-decoration: none;
}

/* ------ styling ------ */

:root {
    --dark: #1F2937;
    --cyan: #10B981;
    --cyan-light: #4ADF86;
    --dark-2: #273549;
    --white: #ffff;
    --bg: #1C1C1C;
}

body {
    background: var(--bg);
    color: var(--white);
    min-height: 100vh;
    padding: 10px;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
}

.container {
    background: var(--dark);
    height: auto;
    max-width: 550px;
    width: min(550px, 100%);
    padding: 50px;
    border-radius: 10px;
}

.title {
    line-height: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.title span {
    color: var(--cyan-light);
    font-size: 40px;
    font-weight: 700;
}

.title h1 {
    font-size: 40px;
}

#generate-btn {
    background: var(--cyan);
    width: 190px;
    height: 42px;
    color: var(--white);
    font-size: 17px;
    border: none;
    border-radius: 10px;
    margin-top: 70px;
    cursor: pointer;
}

#generate-btn:hover {
    filter: brightness(1.1);
}

#generate-btn:active {
    filter: brightness(1);
}

.password-container {
    border-top: 2px solid var(--dark-2);
    display: flex;
    gap: 10px;
    padding-top: 40px;
    margin-top: 30px;
}

.pass-output {
    display: flex;
    background: var(--dark-2);
    height: 40px;
    width: 100%;
    border-radius: 10px;
    color: var(--cyan-light);
    align-items: center;
    justify-content: center;
}

.condition-container{
    margin: 20px 0px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    gap: 10px;
}

.condition{
    display: flex;
    width: 100%;
    flex-direction: row;
    gap: 20px;
}

.checkbox-el{
    display: none;
}

.icon::before{
    content: url(icons/check-icon.svg);
}

.checkbox-el:checked + .icon::before{
    content: url(icons/uncheck-icon.svg);
}
.btn-container{
    margin-top: 50px;
    max-width: 550px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.link-btn{
    background: var(--cyan);
    color: var(--white);
    border: none;
    height: 40px;
    border-radius: 10px;
    font-size: 17px;
    width: 100%;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.link-btn:hover{
    transform: scale(1.05);
}


@media(max-width:500px){
    .password-container{
        flex-direction: column;
    }

    #generate-btn{
        width: 100%;
    }

    .btn-container{
        flex-direction: column;
    }

    /* reduce container padding and scale title on small screens */
    .container{
        padding: 50px;
    }

    .condition-container{
        width: 100%;
        max-width: 100%;
        padding: 0 8px;
    }

    .title span{
        font-size: 28px;
    }

    .title h1{
        font-size: 28px;
    }
}