/* Style général pour toutes les pages */
body {
    background: url('background1.gif') no-repeat center center fixed;
    background-size: cover;
    color: #000;
    margin: 0;
    padding: 0;
    text-align: center;
    font-family: Arial Black, sans-serif;
    font-size: 1.1em;
}

/* Style de l'entête commun */
header {
    color: black;
    padding: 10px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.6); /* Transparent pour voir le background */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

header nav a {
    color: black;
    margin: 0 10px;
    text-decoration: none;
}

header nav a:hover {
    text-decoration: underline;
}

/* Style pour le contenu principal */
main {
    padding: 20px;
    max-width: 600px;
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.6); /* Légèrement opaque pour voir le fond */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* Styles pour les formulaires (connexion, inscription, etc.) */
form {
    margin: 20px 0;
}

input[type="text"], input[type="password"], input[type="submit"] {
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 100%;
}

input[type="submit"] {
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #555;
}

#error {
    color: red;
}

/* Styles spécifiques pour le chat public */
#chat-box {
    border: 1px solid #ccc;
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.6); /* Transparent pour voir le background */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#chat-container {
    display: flex;
    flex-direction: column;
}

#invite-form {
    margin-top: 20px;
}

/* Liens */
a {
    color: #000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Style pour l'image de profil */
.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 75px;
    object-fit: cover;
    display: block;
    margin-bottom: 10px;
}

/* Style pour le formulaire dans la page de profil */
textarea {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

/* Styles spécifiques pour la page de connexion */
.login-container {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    max-width: 400px;
    margin: auto;
}

/* Style spécifique pour la page d'inscription */
.signup-container {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    max-width: 400px;
    margin: auto;
}

/* Style pour les messages privés */
#private-chat-box {
    border: 1px solid #ccc;
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
/* Style pour les invitations */
#invitations-container {
    margin: 20px 0;
}

.invitation {
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.invitation button {
    margin-right: 10px;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.invitation .accept-invitation {
    background-color: #28a745;
    color: white;
}

.invitation .decline-invitation {
    background-color: #dc3545;
    color: white;
}

.invitation button:hover {
    opacity: 0.8;
}


.espace-publicitaire {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.diaporama {
    display: flex;
    width: 100%;
    height: 100%;
    animation: defilement 20s infinite;
}

.slide {
    width: 100vw;
    flex-shrink: 0;
}

.diaporama img {
    width: 100vw;
    height: auto;
    object-fit: cover;
}

/* Animation keyframes */
@keyframes defilement {
    0%, 33% { transform: translateX(0); }
    34%, 66% { transform: translateX(-100vw); }
    67%, 100% { transform: translateX(-200vw); }
}

/* Media query for small screens (smartphones) */
@media (max-width: 768px) {
    .espace-publicitaire {
        height: 12vh; /* Augmente la hauteur sur les petits écrans */
    }

    .diaporama {
        width: 100%;
        animation: defilement 20s infinite; /* Ralentir pour meilleure lisibilité */
    }

    .diaporama img {
        object-fit: contain; /* Ajuste l'image pour ne pas la couper sur petit écran */
    }
}