html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

body {
    max-width: 100%;
    padding: 10px;
    box-sizing: border-box;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Conteneur de recherche */
.search-container {
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    box-sizing: border-box;
}

/* Conteneur des résultats */
#results-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Style des résultats individuels */
.version-result {
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}

/* Styles des éléments de formulaire */
select, input, button {
    padding: 10px;
    margin: 2px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

input {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

button {
    background-color: #2c3e50;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    white-space: nowrap;
}

button:hover {
    background-color: #34495e;
}

/* Styles spécifiques */
h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 10px;
}

#prev-verse, #next-verse {
    background-color: #3498db;
    padding: 10px 15px;
    font-size: 18px;
}

#prev-verse:hover, #next-verse:hover {
    background-color: #2980b9;
}

#search-button {
    background-color: #2c3e50;
    min-width: 150px;
}

/* Media Queries pour la responsivité */
@media screen and (max-width: 768px) {
    body {
        padding: 5px;
    }

    .search-container {
        padding: 10px;
    }

    input {
        min-width: 150px;
    }

    button {
        padding: 8px 15px;
        font-size: 14px;
    }

    #prev-verse, #next-verse {
        padding: 8px 12px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .search-container {
        gap: 3px;
    }

    input {
        min-width: 120px;
    }

    button {
        padding: 8px 12px;
        font-size: 13px;
    }

    #search-button {
        width: 100%;
        margin-top: 5px;
    }
}
