p {
    color: #f1f1f1;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

a {
    color: antiquewhite;
    font-weight: bold;
}
a:visited {
    color: antiquewhite;
}
a:hover {
    color: brown;
}

/* Header */
header {
    background: #121212;
    color: #f1f1f1;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    color: #ff3333;
}

nav ul {
    padding: 0;
    list-style: none;
}

nav ul li {
    display: inline;
    margin: 0px 10px;
}

nav ul li a {
    color: #f1f1f1;
    text-decoration: none;
    font-size: 1.2rem;
}

nav ul li a:hover {
    color: #ff3333;
}

/* Container pour le menu utilisateur en haut à droite */
.user-container {
    position: absolute;
    top: 20px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0px 20px;
}

h2 {
    color: #ff3333;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 2rem;
}

/* Section: Aperçu du jeu mise en valeur */
.highlight {
    background-color: #1f1f1f;
    padding: 40px 20px;
    border-radius: 8px;
}

#join-section {
    text-align: center;
}

.apercu-container {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: center;
    margin-top: 20px;
}

.server-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.server {
    background-color: #333;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid bisque;
}

.server h3 {
    margin-bottom: 10px;
    font-size: 1.4em;
}

/* Statut : Accepté / Non Accepté */
.status-on {
    color: #28a745;
    font-weight: bold;
}

.status-off {
    color: #dc3545;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background-color: #121212;
    color: #f1f1f1;
    margin-top: 40px;
}

footer p {
    font-size: 0.9rem;
}

/* Global resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #1a1a1a;
    color: #f1f1f1;
    overflow-x: hidden;
}


/* Formulaire de connexion et dropdown langue */
.dropdown {
    position: relative;
    display: inline-block;
    margin: 0px 20px;
}

.dropbtn {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.dropbtn:hover {
    background-color: #cc0000;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #262626;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
    border-radius: 8px;
    padding: 10px;
    z-index: 1;
}

.dropdown-content a {
    display: block;
    text-decoration: none;
    color: #f1f1f1;
    padding: 10px;
    text-align: left;
    font-size: 1rem;
}

.dropdown-content a:hover {
    background-color: #333;
    color: #ff3333;
}

.dropdown:hover .dropdown-content {
    display: block;
}

#login-dropdown {
    width: 260px;
}

.signup-link {
    font-size: 0.9rem;
    color: #bbbbbb;
    text-decoration: none;
}

.signup-link:hover {
    color: #f1f1f1;
    text-decoration: underline;
}

/* Auth form styles */
.auth-form {
    max-width: 500px;
    margin: auto;
}

.auth-form input {
    padding: 10px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #333;
    color: #f1f1f1;
    width: 100%;
    margin-bottom: 10px;
}

.auth-form input::placeholder {
    color: #bbbbbb;
}

button {
    padding: 10px;
    color: #fff;
    background-color: maroon;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

button:hover {
    background-color: #cc0000;
}

#test-button {
    font-size: 1.3em;
    width: 400px;
    border-radius: 12px;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background-color: #121212;
    color: #f1f1f1;
    margin-top: 20px;
}

footer p {
    font-size: 0.9rem;
}

/* Section Aperçu du Jeu - Carrousel */
.apercu {
    background-color: #1f1f1f;
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

.apercu h2 {
    color: #ff3333;
    font-size: 2rem;
    margin-bottom: 20px;
}

.apercu-carousel {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    display: none;
}

.slide.active {
    display: block;
}

.game-screenshot {
    max-width: 800px;
    max-height: 350px;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.75);
}

.game-screenshot-slide {
    max-width: 950px;
    max-height: 480px;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 4px;
    user-select: none;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.pagination {
    text-align: center;
    margin-top: 15px;
}

.pagination .dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    display: inline-block;
    border-radius: 50%;
}

.pagination .dot.active {
    background-color: #ff3333;
}

.wiki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.wiki-card {
    display: block;
    background-color: #333;
    border: 1px solid bisque;
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    color: #f1f1f1;
    font-weight: normal;
}

.wiki-card:hover {
    border-color: #ff3333;
    color: #f1f1f1;
}

.wiki-card img,
.wiki-shot img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 12px;
    background: #1a1a1a;
    border-radius: 8px;
    image-rendering: pixelated;
}

.wiki-shot img {
    width: 220px;
    height: 160px;
}

.wiki-card h3 {
    color: #ff3333;
    margin-bottom: 8px;
}

.wiki-card p {
    font-size: 0.95rem;
}

.wiki-article {
    overflow: auto;
}

.wiki-back {
    margin-bottom: 8px;
}

.wiki-shot {
    float: right;
    margin: 0 0 16px 24px;
}

.wiki-body li {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.wiki-horizontal-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin: 8px 0;
}

.wiki-horizontal-list li {
    background: #333;
    border: 2px solid #666;
    border-radius: 8px;
    padding: 8px;
}
.wiki-horizontal-list li:hover {
    box-shadow: 0 4px 15px rgba(255, 228, 196, 0.6);
}

.wiki-horizontal-list img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    image-rendering: pixelated;
}

.wiki-horizontal-list h4 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.wiki-horizontal-list p {
    font-size: 1rem;
    margin-bottom: 0px;
}

.wiki-more {
    clear: both;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #333;
}

/* Couleurs de rareté pour les miniatures d'objets */
.thumbnail-item.common {
    border-color: bisque;
}

.thumbnail-item.common:hover {
    border-color: bisque;
    box-shadow: 0 4px 15px rgba(255, 228, 196, 0.6);
}

.thumbnail-item.common h4 {
    color: bisque;
}

.thumbnail-item.rare {
    border-color: cyan;
}

.thumbnail-item.rare:hover {
    border-color: cyan;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.6);
}

.thumbnail-item.rare h4 {
    color: cyan;
}

.thumbnail-item.legendary {
    border-color: yellow;
}

.thumbnail-item.legendary:hover {
    border-color: yellow;
    box-shadow: 0 4px 15px rgba(255, 255, 0, 0.6);
}

.thumbnail-item.legendary h4 {
    color: yellow;
}

.thumbnail-item.unique {
    border-color: lime;
}

.thumbnail-item.unique:hover {
    border-color: lime;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.6);
}

.thumbnail-item.unique h4 {
    color: lime;
}

.thumbnail-item.blessed {
    border-color: dodgerblue;
}

.thumbnail-item.blessed:hover {
    border-color: dodgerblue;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.6);
}

.thumbnail-item.blessed h4 {
    color: dodgerblue;
}

.join-server-info {
    margin-bottom: 20px;
    text-align: center;
}
