:root{
    font-size: 100%;
}

*,
::before,
::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    color: #e1e1e1;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

main{
    padding: 1rem;
    width: 100%;
    max-width: 600px;
}

h1{
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

h2{
    font-weight: normal;
}

button{
    border-radius: 5px;
    cursor: pointer;
    transition: all 400ms;
}

.password-container{
    display: flex;
    margin-bottom: 2rem;
}

.password{
    width: 100%;
    line-height: 3rem;
    font-size: 1.5rem;
    border-bottom: solid 1px #e1e1e1;
}

.btn-copy{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3rem;
    padding: 0.7rem;
    aspect-ratio: 1 / 1;
    border: none;
    margin-left: 1rem;
    background-color: #e1e1e1;
    position: relative;
}

.btn-copy:hover{
    background-color: #b1b1b1;
}

.btn-copy::before{
    display: none;
    white-space: nowrap;
    padding: 0.5rem;
    background-color: #e1e1e1;
    color: #000;
    border-radius: 5px;
    content: "✅ copié !";
    position: absolute;
    top: 0;
}

.btn-copy.active::before{
    display: block;
    animation: slide-out 1000ms 200ms linear both;
}

.btn-copy img{
    pointer-events: none;
    width: 100%;
}

.range-group{
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.range-group input{
    margin-top: 0.5rem;
}

.checkbox-group{
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

input[type="checkbox"]{
    height: 1.2rem;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    margin-right: 0.5rem;
}

.btn-submit{
    display: block;
    margin: auto;
    margin-top: 2rem;
    padding: 0.5rem 2rem;
    font-size: 1.2rem;
    background-color: transparent;
    color: #e1e1e1;
    border: solid 1px #e1e1e1;
}

.btn-submit:hover{
    background-color: #e1e1e1;
    color: #000;
}

.message{
    margin-top: 1rem;
    text-align: center;
    color: crimson;
    font-size: 1.2rem;
}

@keyframes slide-out {
    0%{
        opacity: 1;
    }
    30%{
        opacity: 1;
        transform: translateY(0);
    }
    100%{
        opacity: 0;
        transform: translateY(-150%);
    }
}