body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.backbutton {
    display: flex;
    align-self: start;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: 'GuardianTextSansWeb Regular', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
}

.backbutton a {
    color: #041F4A;
}

.backbutton a:visited {
    color: #041F4A;
}

fieldset {
    width: 800px;
    border: solid 1px #041F4A;
    border-radius: 5px;
    padding: 20px;
    color: #041F4A;
    font-family: 'GuardianTextSansWeb Regular', 'Helvetica Neue',
    Helvetica, Arial, 'Lucida Grande', sans-serif;
    font-size: small;
}

legend {
    background: linear-gradient(#052962, #041F4A);
    border-color: #041F4A;
    color: white;
    font-size: large;
    font-family: 'GH Guardian Headline Bold', 'Guardian Egyptian Web Bold Regular', Georgia, serif;
    padding: 5px 10px;
    border-radius: 5px;
}

#apikey-input {
    width: 480px;
}

.save-apikey {
    transition: background-color 0.3s ease-out;
    width: 130px;
}

div.show-search {
    width: 637px;
    cursor: pointer;
    background-color: #f2f2f2;
    border-radius: 4px;
    padding: 5px;
    margin-bottom: 10px;
}

div.show-search:hover {
    text-decoration: underline;
}

label.search-ui {
    display: inline-block;
    width: 150px;
}

input {
    border: none;
    background-color: #f2f2f2;
    color: #041F4A;
    padding-left: 10px;
    width: 480px;
}

select.search-option {
    border: none;
    background-color: #f2f2f2;
    color: #041F4A;
    width: 492px;
}

select.search-option:hover {
    background-color: #f2f2f2;
}

select,
button {
    border: none;
    background-color: #041F4A;
    color: white;
    padding: 4px 10px;
    transition: background-color 0.1s ease-in-out;
    cursor: pointer;
}

button:disabled,
button:disabled:hover {
    background-color:#f2f2f2;
    color: rgba(4, 31, 74, 0.54);
    cursor: not-allowed;
}

select:hover,
button:hover {
    background-color: #052962;
}

select,
input,
button {
    margin-bottom: 10px;
    height: 32px;
    border-radius: 4px;
    margin-right: 10px;
}

a#query-link {
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.5s ease-out;
}

select:focus-visible,
button:focus-visible {
    outline: none;
}

input:focus-visible {
    outline: solid 1px #041F4A;
}

#extract-select {
    width: 50px;
}

.results-container {
    font-weight: 500;
}

.abort-button,
.abort-button:hover {
    background-color: #e60000;
}

.url-entry {
    width: 130px;
    margin-right: 20px;
    margin-top: 10px;
}

/* Style du spinner d'attente */
.spinner {
    border: 2px solid #9ec1fa;
    border-left: 2px solid #041F4A;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.extract-button,
.abort-button {
    width: 141px;
}

span.info-icon {
    border-radius: 50%;
    background-color: #163860;
    color: white;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 1rem;
    width: 1rem;

}

div.info-div {
    position: absolute;
    background-color: #f2f2f2;
    border: 1px solid #163860;
    border-radius: 4px;
    padding: 10px;
    z-index: 100;
    max-width: 50vw;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

div.info-div.visible {
    display: block;
    opacity: 1;
}

p.close-icon {
    margin: 0px;
    font-size: xx-large;
    font-weight: 900;
    position: absolute;
    top: 0;
    right: 0.5rem;
    cursor: pointer;
}

div.dl-checkbox-container {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    vertical-align: middle;
}

div.dl-checkbox-container span {
    margin-right: 5px;
}

input[type='checkbox'] {
    width: auto;
    height: auto;
    margin: 0 5px 0 0;
    padding: 0;
    box-sizing: border-box;
}

#query-link {
    color:#041F4A;
}

#query-link:hover {
    color:#052962;
}

#query-link:visited {
    color:#041F4A
}

#query-url-div {
    margin-bottom: 10px;
}

#extract-select {
    margin-left: 10px;
}

a,
a:visited {
    color: inherit;
}

a:hover {
    color:#052962;
}

span#api-counter {
    font-weight: bold;
    color:#e60000;
}

.citation {
    color: #041f4a;
    font-size: small;
    width: 800px;
    font-family: 'GuardianTextSansWeb Regular', 'Helvetica Neue', Helvetica,
        Arial, 'Lucida Grande', sans-serif;
}

.bibtex-dl {
    text-decoration: underline;
    cursor: pointer;
}

.footer {
    position: fixed;
    bottom: 5px;
    display: flex;
    flex-direction: column;
    text-align: left;
    font-family: 'GuardianTextSansWeb Regular', 'Helvetica Neue', Helvetica,
        Arial, 'Lucida Grande', sans-serif;
    font-size: x-small;
    color: #67757e;
    width: fit-content;
}

.right-footer {
    right: 20px;
}

.left-footer {
    left: 20px;
}

.sign {
    margin: 0px;
}

div.footer div a img {
    width: 95px;
}