body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    margin-bottom: 150px;
}
header {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}
nav ul li {
    position: relative;
}
nav ul li a.menu-link {
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    border-radius: 5px;
}
nav ul li a.menu-link:hover {
    background-color: #555;
    color: #ffffff;
    transform: scale(1.05);
}
body.dark-mode nav ul li a.menu-link:hover {
    color: #ffffff;
}
nav ul li ul {
    display: none;
    position: absolute;
    background-color: #444;
    top: 100%;
    left: 0;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
    padding-top: 10px;
}
nav ul ul ul {
    left: 100%;
    top: 0;
    z-index: 2;
}
nav ul ul li {
    display: block;
    margin: 5px 0;
}
nav ul li:hover > ul {
    display: block;
    animation: fadeIn 0.3s ease;
}
nav ul ul li:hover > a, nav ul li:hover > a {
    background-color: #555;
    color: #ffffff;
}
nav ul ul li a:hover {
    background-color: #666;
    color: #fff;
}
nav ul ul li a:hover:before, nav ul ul li:hover > a:before, nav ul li a:hover:before, nav ul li:hover > a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 5px 5px 0 0;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
#main-content {
    padding: 20px;
    text-align: center;
}
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}
table {
    width: 80%;
    margin: 0 auto;
    border-collapse: collapse;
}
th, td {
    border: 1px solid #000;
    padding: 8px;
}
th {
    background-color: #333;
    color: #fff;
}
.center {
    text-align: center;
    margin-bottom: 20px;
}
#stats ul {
    list-style-type: none;
    padding: 0;
}
#stats {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 125px;
    padding: 20px;
    border: 2px solid #000;
    border-radius: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
#stats h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
#stats ul {
    list-style-type: none;
    padding: 0;
}
#stats li {
    font-size: 16px;
    margin-bottom: 5px;
}
a {
    text-decoration: none;
    color: blue;
}
#searchInput {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 300px;
    margin-bottom: 10px;
    font-size: 14px;
}
#searchInput:focus {
    outline: none;
    border-color: rgb(141, 191, 141);
    box-shadow: 0 0 5px rgb(151, 223, 151);
}
.rounded-image {
    width: 500px;
    margin-top: 50px;
    border-radius: 30px;
}
#credits_corrections{
    margin-top: -90px;
    margin-bottom: -30px;
    text-align: center;
}
p #copy{
    text-decoration: none;
    color:rgb(141, 191, 141);
}
.stats-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
.stats-label {
    width: 200px;
    text-align: left;
}
.stats-value {
    flex-grow: 1;
    text-align: right;
}
.stats-percentage {
    width: 100px;
    text-align: right;
}
.stats-line {
    border-bottom: 1px dotted black;
    margin-bottom: 5px;
}
@media only screen and (max-width: 768px) {
    .rounded-image {
      max-width: 100%;
      height: auto;
      margin-bottom: 30px;
      margin-top: 0px;
    }
  }
@media only screen and (max-width: 428px) and (max-height: 926px) {
    body {
        margin-bottom: 60px;
    }
}
::selection {
    background-color: rgb(141, 191, 141);
    color: #fff;
}
::-webkit-scrollbar {
    width: 10px;
    z-index: 9999;
}
::-webkit-scrollbar-thumb {
    background-color: rgb(141, 191, 141);
    border-radius: 5px;
}
::-webkit-scrollbar-track {
    background-color: rgb(51, 51, 51);
}
#legal, #tp{
    padding: 2%;
    text-align: left;
    margin-left: 50px;
    margin-right: 50px;
}
.dark-mode {
    background-color: rgb(29, 28, 28);
    color: white;
  }
.dark-mode a{
    color:rgb(141, 191, 141);
}
/*.dark-mode .menu-link{
    color:white;
}*/
.dark-mode #stats{
    border-color: white;
}
.dark-mode table th, .dark-mode td{
    border: 1px solid #ffffff;
}
.dark-mode #searchInput{
    background-color: rgb(29, 28, 28);
    color: #fff;
}
.dark-mode #randomButton {
    background-color: #fff;
    color: rgb(29, 28, 28);
}
.dark-mode #randomButton:hover{
    color:#fff;
}
#darkModeButton {
    background: none;
    border: none;
    padding: 0;
  }
#darkModeButton:hover{
    cursor: pointer;
}
#darkModeIcon {
    font-size: 24px;
  }
#wrn_expire{
    color:red;
}
.responsive-table {
    overflow-x: auto;
    max-width: 100%;
    margin: 0 auto;
}
@media screen and (max-width: 600px) {
    .responsive-table {
        overflow-x: auto;
        display: block;
        width: auto;
    }

    #legal, #tp{
        margin-bottom: 100px;
    }

    #mobile-message {
        display: block;
    }

    .center{
        padding: 5px;
        padding-left: 20px;
        padding-right: 20px;
    }

    #credits_corrections{
        margin-top: -130px;
        margin-bottom: 110px;
        text-align: center;
    }
}
#mobile-message {
    display: none;
    text-align: center;
    padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
}
.responsive-table th, .responsive-table td {
    padding: 8px;
    white-space: nowrap;
}
.responsive-table th {
    position: sticky;
    top: 0;
    z-index: 0;
}
@keyframes coldplay-animation {
    0% { background-color: #fff; }
    50% { background-color: #ffd700; }
    100% { background-color: #fff; }
}
.popup-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    animation: fadeInOut 3s ease forwards;
}
@keyframes fadeInOut {
    0% { opacity: 0; }
    15% { opacity: 1; }
    100% { opacity: 0; }
}
.ag47:hover{
    color: red;
}
#amnB2024 {
    position: relative;
    display: inline-block;
}
.info {
    visibility: hidden;
    width: 150px;
    background-color: rgb(9, 19, 203);
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -75px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}
#amnB2024:hover .info {
    visibility: visible;
    opacity: 1;
}
#randomButton {
    background-color: #333;
    border: none;
    color: white;
    width: 150px;
    height: 35px;
    text-align: center;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
#randomButton:hover {
    background-color: #45a049;
    transform: scale(1.05);
}
nav > ul > li:nth-child(3) ul a{
    cursor: not-allowed;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in-out;
  }
  .modal-contenu {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 12px;
    width: 50%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-in-out;
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
.fermer {
    color: #888;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
  }
.fermer:hover {
    color: #ff6347;
  }
.modal ul {
    list-style: none;
    padding: 0;
  }
.modal ul li {
    margin: 10px 0;
  }
.modal ul a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    display: inline-block;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
  }
.modal ul a:hover {
    background: #007bff;
    color: white;
  }
.dark-mode .modal-content {
    background-color: #2e2e2e;
    color: #fff;
}
.dark-mode .modal .modal-contenu{
    background-color: rgba(29, 28, 28);
}
.dark-mode .fermer {
    color: #fff;
}
.dark-mode .fermer:hover,
.dark-mode .fermer:focus {
    color: #ff6347;}
#stats-container {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
#stats-container h2 {
    color: #007bff;
  }
#stats-details {
    font-size: 16px;
    margin-bottom: 20px;
  }
canvas {
    width: 80%;
    height: 0.1vh;
    margin: 0 auto;
    display: block;
    margin-bottom: 100px;
  }
#stat {
    padding: 20px;
    text-align: center;
}
.update-banner {
    background-color: #f39c12;
    color: #fff;
    text-align: center;
    padding: 0.5px 0;
    font-size: 1.1rem;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  .update-banner a {
    color: #ffffff;
    text-decoration: underline;
  }