@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap');

/* Basic Colors */
:root {
    --purple: #663399;
    --darkPurple: #2e0c50;
    --bgMediumBlue: #3a3e7c;
    --lightBlue: aliceblue;
    --white: #fff;
}

* {
    box-sizing: border-box;
    margin: 0;
}

.clr {
    clear: both;
}

body {
    background: var(--purple);
    color: var(--lightBlue);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    transition: .1s ease;
}

.title {
    text-align: center;
    margin: 20px auto;
    font-size: 30px;
}

.pw-container {
    width: 350px;
    min-width: 300px;
    background: var(--darkPurple);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

.pw-header {
    padding: 1rem;
}

.pw {
    position: relative;
    background: var(--purple);
    max-height: 100px;
    max-width: 100%;
    font-size: 2rem;
    padding: 1rem;
    display: flex;
    align-items: center;
}
#pw {
    overflow: auto;
}
.pw button {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    border: none;
    border-radius: 3px;
    outline: none;
    font-weight: bold;
    color: var(--darkPurple);
    background: #ffd524;
    padding: .5rem 1rem;
    transform: translate(0, 50%);
    transition: 0.2s ease;
    opacity: 0;
}
.pw button:focus {
    background: #ff9924;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
.pw:hover button {
    opacity: 1;
    transform: translate(0, 0%);
}

.pw-body {
    padding: 0 1rem 1rem;
}
input[type="number"] {
    padding: 3px 10px;
    font-size: 16px;
    font-weight: bold;
    background: #eee;
    color: var(--darkPurple);
    border: 2px solid var(--darkPurple);
    border-radius: 10px;
    outline: none;
}
input[type="number"]:focus {
    background: #ffd524;
}

.form-control {
    display: flex;
    justify-content: space-between;
    color: #eee;
    margin: .8rem 0;
}

.generate {
    display: block;
    width: 100%;
    border: none;
    outline: none;
    cursor: pointer;
    background: #ecb602;
    color: var(--darkPurple);
    font-size: 1.2rem;
    font-weight: bold;
    padding: .7rem;
    margin-top: 1rem;
    transition: .3s ease;
}
.generate:hover {
    background: #ff9924;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);    
}