/* General styles */
body {
    font-family: 'Poppins', sans-serif;
    background: #d9d9d9;
    color: #e5e5e5;
    text-align: center;
    display: flex;
    justify-content: space-around;
    width: 260px;
    height: 100px;
    padding: 20px;
}


/* Main Container */
.container {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    
}


/* Foreground Box */
.flex-box {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 90%;
    height: 50px;
}


/* Generate button */
.generate-btn {
    width: 100%;
    height: 100%;
    background: #5691c8;
    font-size: 16px;
    border: none;
    color: #e5e5e5;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    border-radius: 5px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    left: 0;
    z-index: 2;
    transition: width 0.3s ease, transform 0.6s ease, background-color 0.3s ease; 
}
.generate-btn:hover {
    background-color: #457fca;
    transform: scale(1.05); 
}
.flex-box.active .generate-btn {
    width: 23%;
    height: 100%;
    left: auto;
    right: 0;
    transform: scale(1);  
}


/* Password button */
.password-btn {
    width: 75%;
    height: 100%;
    background: #808080;
    border: none;
    color: #e5e5e5;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    position: absolute;
    border-radius: 5px;
    padding: 0;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease; 
}
.password-btn:hover {
    background: #707070;
}
.flex-box.active .password-btn {
    opacity: 1;
    z-index: 3;
    transform: translateX(0); 
}


footer {
    position: absolute;
    bottom: 0;
    width: 310px;
    height: 21px;
    display: flex;
    justify-content: center;
    padding: 5px;
    background: #e5e5e5;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}
#settings-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: fixed;
    right: 0;
    transition: transform 0.3s ease;
}
#settings-btn:hover {
    transform: rotate(30deg);
}


@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}