@font-face {
    font-family: 'DMSans';
    src: url('DMSans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
:root {  
    --new-background: url('../img/background.png');  
}
body {
    margin: 0;
    padding: 0;
    font-family: 'DMSans', sans-serif;
    background-image: url('../img/background.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    transition: background-image 0.5s ease;
}
body::before {  
    content: '';  
    position: fixed;  
    top: 0;  
    left: 0;  
    right: 0;  
    bottom: 0;  
    background-size: cover;  
    background-position: center center;  
    background-repeat: no-repeat;  
    background-image: var(--new-background);  
    opacity: 0;  
    transition: opacity 0.5s ease-in-out;  
    z-index: -1;  
}  

body.changing-background::before {  
    opacity: 1;  
}
.container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    max-width: 740px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6); /* Zone assombrie */
    border-radius: 15px;
    backdrop-filter: blur(5px);
    width: 90%; /* Pour la responsivité */
    box-sizing: border-box;
    opacity: 1;  
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
.logo {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
.logo:hover {
    transform: scale(1.05);
}
.navbar {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 8px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: inline-block;
}
.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.container h2,
.container h3,
.container p {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    margin: 15px 0;
}
.container h2 {
    font-size: 36px;
    color: #fff;
}
.container p {
    font-size: 20px;
    line-height: 1.6;
}
.container.hidden {  
    opacity: 0;  
    transform: translate(-50%, -60%);  
    pointer-events: none;  
}

/* Nouvelles classes pour remplacer les styles inline */
.navbar-left-container {
    display: flex;
    align-items: center;
}

.music-toggle-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 15px;
    font-family: 'DMSans', sans-serif;
}

.highlight-text {
    color: #f6b553;
    font-weight: bold;
}

.bold-text {
    font-weight: bold;
}

.highlight-text-discord {
    color: #f6b553;
    font-weight: bold;
}

/* Styles existants */
@media screen and (max-width: 768px) {
    .container {
        padding: 15px;
        top: 55%;
    }
    .container h2 {
        font-size: 28px;
    }
    .container p {
        font-size: 16px;
    }
    .navbar {
        padding: 5px;
        text-align: center;
    }
    .navbar a {
        margin: 5px;
        padding: 5px 10px;
        font-size: 14px;
    }
    .games-list {
        width: 200px;
        left: 0;
        transform: none;
    }
    .games-dropdown {
        position: static;
    }
}
.justify-center {  
    text-align: justify; 
    margin: 0 auto; 
    width: 90%;
}
.games-dropdown {
    position: relative;
    margin-right: 10px;
}
.games-list {
    display: none;
    color: #fff;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 150px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.games-list a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 8px 15px;
    margin: 5px 0;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}
.games-list a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.games-dropdown:hover .games-list {
    display: block;
}
.social-links a {
    color: #7289da;
    transition: color 0.3s ease;
}
.game-details {  
    position: fixed;  
    bottom: -100px; 
    right: 20px;  
    background-color: rgba(0, 0, 0, 0.6);  
    padding: 20px;  
    border-radius: 10px;  
    color: white;  
    max-width: 400px;  
    backdrop-filter: blur(5px);  
    z-index: 1000;  
    opacity: 0;  
    transition: all 0.5s ease-in-out;  
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);  
}
.game-details.visible {  
    bottom: 20px;  
    opacity: 1;  
}
.game-details h3 {  
    margin-top: 0;  
    color: #f6b553;  
    transform: translateY(20px);  
    opacity: 0;  
    transition: all 0.5s ease-in-out;  
}  
.game-details p {  
    margin-bottom: 0;  
    transform: translateY(20px);  
    opacity: 0;  
    transition: all 0.5s ease-in-out;  
    transition-delay: 0.1s;  
    text-align: justify;
}
.game-details.visible h3,  
.game-details.visible p {  
    transform: translateY(0);  
    opacity: 1;  
}
.play-button {  
    display: inline-block;  
    margin-top: 15px;  
    padding: 8px 16px;  
    background-color: #f6b553;  
    color: black;  
    text-decoration: none;  
    border-radius: 5px;  
    transition: all 0.3s ease;  
    opacity: 0;  
    transform: translateY(20px);  
    transition-delay: 0.2s;  
}
.game-details.visible .play-button {  
    opacity: 1;  
    transform: translateY(0);  
}
.play-button:hover {  
    background-color: #ffca7a;  
    transform: translateY(-2px);  
}
.close-button {  
    position: absolute;  
    top: 10px;  
    right: 10px;  
    background: none;  
    border: none;  
    color: white;  
    font-size: 20px;  
    cursor: pointer;  
    opacity: 0.7;  
    transition: opacity 0.3s ease;  
}  
.close-button:hover {  
    opacity: 1;  
}
.hidden {  
    display: none !important;  
}
