@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@media only screen and (max-width: 990px) {
    html body {
        background: #333;
    }

    body .container {
        width: 100%;
        height: 100%;
        border: none;
        box-shadow: none;
    }

    .container .result #btn-copy {
        margin: -25px auto 0 72.5%;
        border-radius: 50%;
        transform: scale(1.5);
    }
    
    .container .result:hover #btn-copy {
        transform: translate(0) scale(1.5);
    }

    .container .result #btn-copy:active {
        transform: translate(0) scale(1);
    }
}

body {
    display: flex;
    min-width: 312px;
    width: 98%;
    height: 100%;
    justify-content: center;
    align-items: center;
    font-family: Poppins, sans-serif;
    background: #eee;
    color: #fafafa;
}

p {
    margin: 10px 0;
}

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

/* Container box for all items */
.container {
    width: 300px;
    height: 560px;
    padding: 10px 30px;
    background: #333;
    border: 2px solid #007aff;
    border-radius: 25px;
    box-shadow: 0 0 5px #aaa;
}

/* Password result section */
.field-title {
    color: #aaa;
}

.result-viewbox {
    padding: 10px 0;
    width: 100%;
    height: 100%;
    text-align: center;
    background: #444;
    color: #aaa;
    border-radius: 10px;
}

.result {
    margin-bottom: 36px;
}

.result #btn-copy {
    position: absolute;
    top: var(y);
    left: var(x);
    width: 30px;
    height: 30px;
    border: 2px solid #333;
    border-radius: 50%;
    background: #aaa;
    opacity: 0;
    transform: translate(900%, -75%) scale(0);
    transition: all 150ms ease;
    cursor: pointer;
    z-index: 2;
}

.result:hover #btn-copy {
    opacity: 1;
    transform: translate(900%, -75%) scale(1.5);
}

.result #btn-copy:active {
    transform: translate(900%, -75%) scale(1);
}

/* Password length slider section */
.length-viewbox {
    position: absolute;
    top: -25px;
    left: 0px;
}

.range-slider {
    position: relative;
    width: 100%;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #444;
    border-radius: 10px;
}

/* Box slider content */
.range-slider {
    margin-bottom: 16px;
}

.range-slider:before, .range-slider:after {
    position: absolute;
    color: #aaa;
}

.range-slider:before {
    content: attr(data-min);
    left: 10px;
}

.range-slider:after {
    content: attr(data-max);
    right: 10px;
}

.range-slider .length-title:after {
    content: attr(data-length);
    position: absolute;
    right: -16px;
    font-variant-numeric: tabular-nums;
    color: #aaa;
}

#slider {
    width: 75%;
    height: 2px;
    border-radius: 5px;
    background: #ddd;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

/* Password options section */
.settings {
    position: relative;
    display: flex;
    flex-direction: column;
    color: #eee;
}

/* Toggle Switch for password options */
.btn-switch {
    position: relative;
    display: inline-block;
    margin-left: auto;
    width: 60px;
    height: 30px;
}

.btn-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.btn-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 30px;
    background: #444;
    border: 1px solid #007aff;
    transition: all 300ms ease;
}

.btn-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    bottom: 4px;
    left: 5px;
    border-radius: 50%;
    background: #007aff;
    transition: all 300ms ease;
}

input:checked + .btn-slider {
    background: #007aff;
}
  
input:checked + .btn-slider:before {
    background: #fff;
    transform: translateX(28px);
}

/* Generate Password button */
.btn.generate {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 15px 0;
    border: none;
    border-radius: 30px;
    outline: none;
    background: #007aff;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 150ms ease;
}
.btn.generate:active {
    transform: scale(0.8, 0.8);
}

a {

    color:#aaa;
}