body {
    font-size: 1.2em;
    min-height: 100vh;
    max-width: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Helvetica', sans-serif;
    color: rgb(0, 0, 0);
}

h1 {
    font-size: 2.8em;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 0px;
    font-family: 'Helvetica', sans-serif;
    font-weight: extrabold;
    color: rgba(0, 0, 0, 0.4);
}

h2 {
    font-size: 2.3em;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 0px;
    font-family: 'Helvetica', sans-serif;
    font-weight: extrabold;
    color: rgba(80, 80, 80, 0.7);
}

.footer {
    flex-direction: row;
    gap: 6px;
}

.logo {
    width: 75%;
}

.search-form {
    width: 80%;
}

.search-form input[type="text"] {
    max-width: 850px;
    font-size: 1.5em;
    border-radius: 23px;
    outline: none;
    
}

.search-form button,
.view-projects-button,
.lucky-button {
    padding: 15px 30px;
    font-size: 1.5em;
}

.button-container {
    gap: 35px;
}

.search-form input[type="text"]:hover {
    transform: scale(1.3);
}

.table-row-container:hover {
    transform: scale(1.05);
}

.text-container:hover{
    transform: scale(1.05)
}

.back-button {
    height: 40px;
}

.back-button:hover {
    transform: scale(1.9);
}

.logo-small { 
    width: 200px;
}

.logo-small:hover {
    transform: scale(1.2);
}

.header-container {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    gap: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer {
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: top;
    text-align: center;
    padding: 20px;
    position: absolute;
    font-family: 'Helvetica', sans-serif;
    color: rgba(80, 80, 80, 0.7);
}

.footer p {
    margin: 5px;
}

.footer a {
    color: rgba(80, 80, 80, 0.7);
    text-decoration: none;
}

.footer a:hover {
    color: rgb(0, 0, 0);
}

.button {
    padding: 15px 30px;
    margin-bottom: 40px;
    font-size: 1.2em;
    font-family: 'Helvetica', sans-serif;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); 
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.button:hover {
    transform: scale(1.2);
}

.back-button {
    opacity: 0.6;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.button-container {
    margin-top: 65px;
    margin-bottom: 100px;
    display: flex;
    justify-content: center;
}

.logo-small { 
    margin-bottom: 0px;
    opacity: 0.6;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.sort-button {
    margin-left: 0px;
    font-size: 0.8em;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, color 0.3s ease;
}

.sort-button:hover {
    transform: scale(1.6);
    color: rgba(0, 0, 0, 0.8);
}

@-moz-document url-prefix() { /* Ajustements pour Firefox */
    tr.table-row-container td:first-child { /* Le border-radius sur le tableau ne fonctionne pas sur Firefox */
        border-top-left-radius: 0px !important;
        border-bottom-left-radius: 0px !important;
    }

    tr.table-row-container td:last-child {
        border-top-right-radius: 0px !important;
        border-bottom-right-radius: 0px !important;
    }

    body { /* Le flou d'arrière-plan n'est pas assez pronconcé sur Firefox */
        background-color: rgb(210, 210, 210);
    }
}

#responsive-disclaimer {
    display: none;
}

#content {
    display:contents;
}

table {
    width: 85vw;
    table-layout: auto;
    margin-bottom: 50px;
    border-collapse: separate;
    border-spacing: 0px 8px;
}

th.authors-column, td.authors-column { 
    width: 50%;
}

th.update-column, td.update-column { 
    width: 12%;
}

th.lab-column, td.lab-column {
    width: 8%;
}

th {
    padding: 10px 5px;
    text-align: left;
    color: rgba(0, 0, 0, 0.4);
    font-size: 1.3em;
    white-space: nowrap;
}

td {
    padding: 12px 15px;
    text-align: left;
    background-color: none;
    vertical-align: center;
}

.table-row-container {
    padding: 5px 5px;
    font-family: 'Helvetica', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    background-color: rgba(0, 0, 0, 0.25);
    gap: 15px;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.2s ease;
}

tr.table-row-container td {
    border: 1px solid rgba(255, 255, 255, 0.3);
}

tr.table-row-container td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
  }
  
tr.table-row-container td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.gradient {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    position: fixed;
    overflow: hidden;
    z-index: -1;
    filter: blur(200px);
    background-image: linear-gradient(rgb(55, 235, 169, 0.85), rgb(132, 97, 235));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1050px) {
    #responsive-disclaimer {
        display: block;
    }

    #content {
        display: none;
    }

    body {
        font-size: 1.4em;
    }

    h1 {
        font-size: 2.1em;
    }

    h2 {
        font-size: 1.8em;
    }

    .footer {
        flex-direction: row;
        margin-bottom: 4vh;
        gap: 0px;
    }

    table {
        box-sizing: border-box;
        margin: 0; 
        border-spacing: 0;
        align-self: stretch;
        display: block;
    }

    td, th {
        box-sizing: border-box;
        width: 80vw; 
    }

    .table-row-container {
        flex: auto;
    }

    tr.table-row-container td {
        box-sizing: border-box;
        width: 80vw !important;
    }

    .logo {
        width: 95%;
    }

    .search-form {
        width: 100%;
    }

    .search-form input[type="text"] {
        max-width: 800px;
        font-size: 3.1vw;
        border-radius: 22px;
    }

    .search-form button,
    .view-projects-button,
    .lucky-button {
        padding: 15px 30px;
        font-size: 3.5vw;
        font-weight: 500;
    }

    .button-container {
        gap: 35px;
    }

    .search-form input[type="text"]:hover {
        transform: scale(1.05);
    }

    .text-container:hover{
        transform: scale(1.05)
    }

    .back-button {
        height: 40px;
    }

    .back-button:hover {
        transform: scale(1.9);
    }

    .logo-small { 
        width: 200px;
    }

    .logo-small:hover {
        transform: scale(1.2);
    }
}

@media (max-width: 650px) { 
    #responsive-disclaimer {
        display: block;
    }

    #content {
        display: none;
    }
    
    body {
        font-size: 0.95em;
    }

    h1 {
        font-size: 1.6em;
    }

    h2 {
        font-size: 1.6em;
    }

    .footer {
        flex-direction: column;
        margin-bottom: 8vh;
        gap: 0px;
    }

    table {
        width: fit-content;
        table-layout: auto;
        border-spacing: 0;
        border-collapse: separate;
    }

    th {
        display: none; 
        padding: 0;
    }

    tr.table-row-container {
        display: block;
        margin-bottom: 15px;
        background-color: rgba(0, 0, 0, 0.25);
        border-radius: 10px;
        padding: 0px 3px;
        overflow: hidden;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }

    tr.table-row-container td {
        display: block; 
        text-align: left;
        padding: 10px 12px;
        border: none;
        text-align: center;
    }

    tr.table-row-container td.lab-column,
    tr.table-row-container td.update-column {
        display: flex; 
        width: 48%; 
        flex-direction: column;
    }

    tr.table-row-container td:before {
        content: attr(data-label); 
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
        color: rgba(255, 255, 255, 0.7);
    }

    tr.table-row-container td:first-child {
        font-weight: bold;
    }

    .logo {
        width: 95%;
    }

    .search-form {
        width: 100%;
    }

    .search-form input[type="text"] {
        max-width: 850px;
        font-size: 4vw;
        border-radius: 20px;
    }

    .search-form button,
    .view-projects-button,
    .lucky-button {
        padding: 10px 10px;
        font-size: 4.5vw;
        font-weight: 500;
    }

    .button-container {
        gap: 15px;
    }

    .search-form input[type="text"]:hover {
        transform: scale(1.05);
    }

    .back-button {
        height: 57px;
        transition: transform 0.2s ease;
    }

    .back-button:hover {
        transform: scale(1.9);
    }

    .logo-small { 
        width: 50vw;
    }

    .logo-small:hover {
        transform: scale(1.5);
    }
}

.logo {
    margin-bottom: 20px;
    opacity: 0.6;
    animation: grow-shrink 5s infinite;
    max-width: 1000px;
}

@keyframes grow-shrink {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.search-form button,
.view-projects-button,
.lucky-button {
    font-family: 'Helvetica', sans-serif;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); 
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.search-form button:hover,
.view-projects-button:hover,
.lucky-button:hover {
    transform: scale(1.2);
}

.search-form {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    position: relative; 
}

.search-form input[type="text"] {
    width: 100%;
    padding: 15px 20px;
    font-family: 'Helvetica', sans-serif;
    color: #000000;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); 
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    transition: transform 0.3s ease;
}

.search-form input[type="text"]::placeholder { 
    color: #000000;
    opacity: 0.4;
}

.project-details-page{
    text-align: center; 
    overflow: auto;
}

.text-container {
    padding: 10px 30px;
    margin-top: 20px;
    margin-bottom: 30px;
    gap: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Helvetica', sans-serif;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7); 
    background-color: rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); 
    transition: transform 0.2s ease;
}

.info-container {
    gap: 7vw; 
    display: flex;
    flex-direction: row;
    align-items: center;
}

.lab-info-container {
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.lab-info-container:hover {
    transform: scale(1.5);
    color: rgb(255, 255, 255);
}

.lab-link-button {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.switch { 
    position: relative;
    display: flex;
    align-items: center;
    width: 60px;
    height: 34px;
}

.switch input { 
    opacity: 0; 
    width: 0;
    height: 0;
}

.toggle-label { 
    position: fixed; 
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px;
    margin-left: 15px;
    left: 0;
    top: 0;
    transition: transform 0.5s ease;
}

.toggle-label:hover {
    transform: scale(1.2);
}

.toggle-label img {
    transition: transform 0.7s ease;
    transform: translateX(-2px);
}

.contrast-mode .toggle-label img { 
    transform: translateX(72px);
}

.eye-icon {
    width: 50px;
    height: 50px;
    margin-left: 10px;
    margin-right: 10px;
}

.slider { 
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
    transition: transform 0.7s ease;
    transform: translateX(2px);
}

.slider.round { 
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.5s;
    border-radius: 50%;
}

.slider.round:before {
    border-radius: 50%;
}

.contrast-mode .slider{
    transform: translateX(-60px);
}

input:checked + .slider { 
    background-color: rgb(13, 40, 72);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.contrast-mode .table-row-container,
.contrast-mode .text-container,
.contrast-mode .button {
    background-color: rgba(0, 0, 0, 0.8);
    color: rgb(255, 255, 255); 
}

.contrast-mode h1,
.contrast-mode h2,
.contrast-mode th,
.contrast-mode footer,
.contrast-mode footer a {
    color: rgb(0, 0, 0);
}

.contrast-mode footer a:hover {
    color: rgb(0, 21, 255);
}

.contrast-mode .logo,
.contrast-mode .logo-small,
.contrast-mode .back-button,
.contrast-mode .button,
.contrast-mode .search-form input[type="text"]::placeholder {
    opacity: 1;
}

.contrast-mode .sort-button {
    color: rgb(0, 0, 0);
}

.contrast-mode .search-form input[type="text"] {
    background: rgba(255, 255, 255, 0.8);
}

.contrast-mode .search-form button,
.contrast-mode .view-projects-button,
.contrast-mode .lucky-button {
    color: rgb(0, 0, 0);
    background-color: rgba(255, 255, 255, 0.7);
}