@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: #121212;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    text-align: center;
}

.wrapper {
    background-color: #1A1A1A;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 4px 4px 10px #141414, -4px -4px 10px #202020;
    width: 400px;
    max-width: 500px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

h1 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #ba54f5;
}

.form {
    display: flex;
    flex-direction: column;
    background-color: #252525;
    padding: 20px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    margin-bottom: 10px;
}

input, button {
    width: 100%;
    margin-bottom: 10px;
    padding: 12px;
    outline: none;
    border-radius: 20px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
}

button {
    background-color: #6e48aa;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #9d50bb;
    transform: scale(1.05);
}

.result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    opacity: 0;
    transform: scale(0.95);
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s ease-in-out;
}

.result.active {
    opacity: 1;
    transform: scale(1);
    height: auto;
    overflow: visible;
    margin-top: 10px;
}

.result-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    background-color: #252525;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-top: 10px;
}

#qrcodeImage {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    border-radius: 15px;
    border: 3px solid #fff;
    padding: 5px;
    background: #fff;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

#download {
    padding: 10px 20px;
    background: #6e48aa;
    color: white;
    font-weight: bold;
    text-align: center;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: auto;
    min-width: 120px;
    max-width: 150px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

#download:hover {
    background: #9d50bb;
    transform: scale(1.05);
}
1~@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: #121212;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    text-align: center;
}

.wrapper {
    background-color: #1A1A1A;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 4px 4px 10px #141414, -4px -4px 10px #202020;
    width: 400px;
    max-width: 500px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

h1 {
   font-size: 3em; /* Ajustez la taille de la police selon vos besoins */
    margin-bottom: 15px;
    font-weight: 600;
    background: linear-gradient(90deg, #ba54f5, #6e48aa, #3a2cd8); /* Dégradé de couleur */
    -webkit-background-clip: text; /* Pour les navigateurs WebKit */
    background-clip: text; /* Standard CSS */
    color: transparent; /* Rendre le texte transparent pour montrer le dégradé */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Ombre légère pour le texte */   
}

.form {
    display: flex;
    flex-direction: column;
    background-color: #252525;
    padding: 20px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    margin-bottom: 10px;
}

input, button {
    width: 100%;
    margin-bottom: 10px;
    padding: 12px;
    outline: none;
    border-radius: 20px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
}

button {
    background-color: #6e48aa;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #9d50bb;
    transform: scale(1.05);
}

.result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    opacity: 0;
    transform: scale(0.95);
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s ease-in-out;
}

.result.active {
    opacity: 1;
    transform: scale(1);
    height: auto;
    overflow: visible;
    margin-top: 10px;
}

.result-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    background-color: #252525;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-top: 10px;
}

#qrcodeImage {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    border-radius: 15px;
    border: 3px solid #fff;
    padding: 5px;
    background: #fff;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

#download {
    padding: 10px 20px;
    background: #6e48aa;
    color: white;
    font-weight: bold;
    text-align: center;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: auto;
    min-width: 120px;
    max-width: 150px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

#download:hover {
    background: #9d50bb;
    transform: scale(1.05);
}
