/* Définition des polices Europa */
@font-face {
    font-family: 'europa';
    src: url(https://use.typekit.net/af/821a05/00000000000000007735a082/30/l?subset_id=2&fvd=n3&v=3) format("woff2"),
         url(https://use.typekit.net/af/821a05/00000000000000007735a082/30/d?subset_id=2&fvd=n3&v=3) format("woff"),
         url(https://use.typekit.net/af/821a05/00000000000000007735a082/30/a?subset_id=2&fvd=n3&v=3) format("opentype");
    font-weight: 300;
    font-style: normal;
    font-stretch: normal;
    font-display: auto;
}

@font-face {
    font-family: 'europa';
    src: url(https://use.typekit.net/af/1db03a/00000000000000007735a08e/30/l?subset_id=2&fvd=n4&v=3) format("woff2"),
         url(https://use.typekit.net/af/1db03a/00000000000000007735a08e/30/d?subset_id=2&fvd=n4&v=3) format("woff"),
         url(https://use.typekit.net/af/1db03a/00000000000000007735a08e/30/a?subset_id=2&fvd=n4&v=3) format("opentype");
    font-weight: 400;
    font-style: bold;
    font-stretch: normal;
    font-display: auto;
}

@font-face {
    font-family: 'europa';
    src: url(https://use.typekit.net/af/ebcd51/00000000000000007735a081/30/l?subset_id=2&fvd=n7&v=3) format("woff2"),
         url(https://use.typekit.net/af/ebcd51/00000000000000007735a081/30/d?subset_id=2&fvd=n7&v=3) format("woff"),
         url(https://use.typekit.net/af/ebcd51/00000000000000007735a081/30/a?subset_id=2&fvd=n7&v=3) format("opentype");
    font-weight: 700;
    font-style: heavy;
    font-stretch: normal;
    font-display: auto;
}

@font-face {
    font-family: 'europa';
    src: url(https://use.typekit.net/af/d08711/00000000000000007735a08a/30/l?subset_id=2&fvd=i3&v=3) format("woff2"),
         url(https://use.typekit.net/af/d08711/00000000000000007735a08a/30/d?subset_id=2&fvd=i3&v=3) format("woff"),
         url(https://use.typekit.net/af/d08711/00000000000000007735a08a/30/a?subset_id=2&fvd=i3&v=3) format("opentype");
    font-weight: 300;
    font-style: italic;
    font-stretch: normal;
    font-display: auto;
}

@font-face {
    font-family: 'europa';
    src: url(https://use.typekit.net/af/2a1b80/00000000000000007735a09e/30/l?subset_id=2&fvd=i7&v=3) format("woff2"),
         url(https://use.typekit.net/af/2a1b80/00000000000000007735a09e/30/d?subset_id=2&fvd=i7&v=3) format("woff"),
         url(https://use.typekit.net/af/2a1b80/00000000000000007735a09e/30/a?subset_id=2&fvd=i7&v=3) format("opentype");
    font-weight: 700;
    font-style: italic;
    font-stretch: normal;
    font-display: auto;
}

/* Styles CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'europa', sans-serif;
    background-color : #21262E;
    color: #F5F6FA;
    font-family: 'Europa', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 100vh;
    overflow: hidden;
    transition: background-color 0.5s ease;
}

.primaryText{
  font-size: 32px;
  font-style: normal;
  font-weight: bold;
}

.secondaryText{
  font-size: 18px;
  font-style: normal;
  font-weight: normal;
}

.messageText{
  font-size: 18px;
  font-style: italic;
}

/* Styles pour le loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    display: none; /* Caché par défaut */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Au-dessus de tout le contenu */
}

.loader {
    font-size: 4rem; /* Taille de l'icône */
    color: white; /* Couleur de l'icône */
    animation: spin 1s linear infinite; /* Animation de rotation */
}

/* Animation de rotation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.container {
    width: 100%;
    max-width: 500px; /* Taille maximale du container */
    text-align: center;
}

.logo {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-80%);
    width: 100%;
    height: 30vh;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s, height 0.2s, width 0.2s, top 0.5s ease-in-out;
}

.logo img {
    width: 30vh;
    height: 30vh;
    margin: 0 auto; /* Centrer le logo horizontalement */
    transition: height 0.5s ease, width 0.5s ease;
}

.logo-bar {
    height: 70px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    text-align: center;
    padding: 10px;
    transform: translateY(0); /* Position initiale */
}

.logo-bar img {
    width: auto;
    height: 70px;
}

.content {
    position: absolute;
    top: 300px;
}

/* Boutons */
.button {
    width: 100%;
    background-color: #00A8FF;
    color: #F5F6FA;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0097E6;
}

/* Liens */
a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e74c3c;
}

.bottom-buttons {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    padding: 10px 0;
    display: flex;
    flex-direction: column; /* Afficher les boutons en colonne */
    justify-content: center;
    align-items: center; /* Centrer horizontalement */
    padding-bottom: 20px;
    transition: filter 0.3s ease-in-out, opacity 0.5s ease, transform 0.5s ease-in-out, scale 0.5s ease-out; /* Ajout de la transition pour l'opacité et la transformation */
    filter: blur(0);
    opacity: 1;
    transform: translateY(0); /* Position initiale des boutons */
}

.bottom-buttons.hidden {
    filter: blur(10px);
    opacity: 0;
    transform: translateY(100%); /* Descendre les boutons de 100px vers le bas */
}

.bottom-buttons button {
    font-family: 'europa', sans-serif;
    width: 90%; /* Largeur des boutons */
    height: 50px;
    margin: 10px; /* Espacement entre les boutons */
    max-width: 500px; /* Largeur maximale des boutons pour éviter qu'ils ne deviennent trop larges */
}

.user-card {
    position: absolute;
    top: -300px; /* Position initiale de la carte en dehors de l'écran en haut */
    left: 50%;
    transform: translateX(-50%);
    width: 300px; /* Largeur de la carte de crédit */
    height: 190px; /* Hauteur de la carte de crédit */
    max-width: 100%;
    color: #F5F6FA;
    background-color: #7F8FA6; /* Couleur grise accordée au fond */
    border-radius: 10px; /* Coins arrondis pour simuler une carte de crédit */
    transition: top 0.5s ease, filter 0.5s ease-in-out; /* Ajout de la transition pour le déplacement vers le bas */
    filter: blur(5px);
}

.user-card.visible {
    top: 100px; /* Faire apparaître la carte à 100px du haut de la page */
    filter: blur(0);
}

.amount-card {
    position: absolute;
    top: -300px; /* Position initiale de la carte en dehors de l'écran en haut */
    left: 50%;
    transform: translateX(-50%);
    width: 300px; /* Largeur de la carte de crédit */
    height: 190px; /* Hauteur de la carte de crédit */
    max-width: 100%;
    background-color: #7F8FA6; /* Couleur grise accordée au fond */
    color: #F5F6FA;
    border-radius: 10px; /* Coins arrondis pour simuler une carte de crédit */
    transition: top 0.5s ease-in-out, filter 0.5s ease-in-out, opacity 0.5s ease; /* Ajout de la transition pour le déplacement vers le bas */
    filter: blur(5px);
    opacity: 0;
}

.amount-card.visible {
    top: 100px; /* Faire apparaître la carte à 100px du haut de la page */
    filter: blur(0);
    opacity: 1;
}


input[type="text"] {
    width: 100%; /* Occupant la totalité de la largeur de la div content */
    font-family: 'europa', sans-serif; /* Police Europa */
    font-size: 68px; /* Taille de police 68px */
    color: #EAE9FF; /* Texte blanc légèrement transparent */
    background-color: transparent; /* Fond transparent */
    border: none; /* Pas de bordure */
    outline: none; /* Pas de contour au focus */
    text-align: center;
}

/* QR CODE READER */
#qrcode-camera {
    position: absolute;
    top: -400px; /* Ajustez selon vos besoins */
    left: 50%;
    transform: translateX(-50%);
    width: 350px; /* Ajustez la largeur selon vos besoins */
    height: 350px; /* Ajustez la hauteur selon vos besoins */
    max-width: 100%;
    color: #EAE9FF;
    background-color: #7F8FA6;
    background-image: url("img/loader.gif");
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#qrcode-camera.visible{
    top: 100px; /* Faire apparaître la carte à 100px du haut de la page */
}

#qrcode-camera video{
    width: 110%; /* Ajustez la largeur selon vos besoins */
    overflow: hidden;
}

#amount{
    position: absolute;
    width: 100%;
    max-height: 40px;
    top: 310px;
    left: 0;
    font-size: 48px;
    text-align: center;
}

.icon-container{
    position: absolute;
    width: 100%;
    margin: 0 auto;
    max-height: 100px;
    top: -150px;
    left: 0;
    font-size: 92px;
    text-align: center;
    filter: blur(10px);
    transition: all 0.5s ease-in-out;
}

.icon-container.visible{
    top: 100px;
    filter: blur(0);
}
