/* Ensure the background image covers the entire screen */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-image: url('pictures/background.png');
    background-size: cover; /* Réduire cette valeur pour éviter le déplacement */
    background-position: center; /* Garder l'image centrée */
    background-repeat: no-repeat; /* Ne pas répéter l'image */
    background-attachment: fixed; /* Fixer l'image pour éviter le déplacement */
    font-family: Arial, Helvetica, sans-serif;
    background-color: black;
}
/* Style for the logo */
#logo {
    display: block;
    margin: 20px auto;
    width: 700px;
}

/* Style for the form */
#formulaire {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#formulaire div {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Conteneur pour aligner correctement la zone de recherche */
#search-area {
    display: flex;
    align-items: center; /* Aligne verticalement au centre */
    justify-content: center; /* Centre le conteneur global */
    gap: 10px; /* Ajoute un petit espace entre les deux */
    margin-top: 20px;
}

/* Champ de recherche */
#search-bar {
    padding: 15px;
    font-size: 20px;
    border: none;
    border-radius: 50px;
    width: 400px; /* Taille de la barre */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: all 0.3s ease; /* Animation fluide au survol */
}
#search-bar:focus {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

/* Bouton de recherche */
#search-button {
    background: linear-gradient(45deg, #ff4e00, #ff7300); /* Dégradé orange */
    border: none;
    border-radius: 50%; /* Forme ronde */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center; /* Centre le contenu (loupe) */
    justify-content: center; /* Centre le contenu (loupe) */
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease; /* Animation fluide au survol */
}
#search-button:hover {
    background: linear-gradient(45deg, #ff7300, #ff4e00);
}
#search-button::before {
    content: url("pictures/loupe.png"); /* Image de la loupe */
    transform: scale(0.06);
    display: block;
}

#search-button:disabled {
    background: linear-gradient(45deg, #c0c0c0, #d3d3d3);
    cursor: not-allowed;
    box-shadow: none;
}

/* Style for the error message */
#error-message {
    display: flex;
    justify-content: center;
    margin-top: 7px;
    margin-bottom: 7px;
    color: red;
    font-size: 20px;
}

/* Bouton de téléchargement */
#download-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#download-button {
    margin-top: 7px;
    padding: 15px;
    width: 490px;
    font-size: 20px;
    font-weight: bold;
    color: black;
    background: linear-gradient(45deg, #ff4e00, #ff7300);
    border: none;
    border-radius: 50px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}
#download-button:disabled {
    background: linear-gradient(45deg, #c0c0c0, #d3d3d3);
    cursor: not-allowed;
    box-shadow: none;
}
#download-button:enabled:hover {
    background: linear-gradient(45deg, #ff7300, #ff4e00);
}

/* Bouton de copie du hash */
#copy-hash-button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    border-radius: 25px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}
#copy-hash-button:hover {
    background: linear-gradient(45deg, #20c997, #28a745);
}
#copy-hash-button.copied {
    background: linear-gradient(45deg, #6c757d, #868e96);
    cursor: default;
}
#copy-hash-button:disabled {
    background: linear-gradient(45deg, #6c757d, #868e96);
    cursor: not-allowed;
}



/* Media Queries pour rendre le site responsive */
@media (max-width: 768px) {
    /* Styles pour les écrans plus petits (tablettes) */
    #search-area {
        max-width: 90%; /* Largeur maximale à 100% */
    }

    #download-button {
        max-width: 90%; /* Largeur maximale à 100% */
    }

    /* Style for the logo */
    #logo {
        display: block;
        margin: 10px auto;
        width: 400px;
    }
}

@media (max-width: 480px) {
    /* Styles pour les écrans très petits (mobiles) */
    body {
        font-size: 16px; /* Réduire la taille de la police générale */
    }

    #search-bar {
        padding: 10px; /* Réduire le padding */
    }

    #download-button {
        padding: 10px; /* Réduire le padding */
    }

    /* Style for the logo */
    #logo {
        display: block;
        margin: 10px auto;
        width: 400px;
    }
}