body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: green;
    color: white;
    background-image: url('https://www.promiedos.com.ar/assets/main/bg.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.container {
    text-align: center;
    padding: 20px;
    position: relative;
}

.logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 80px;
    height: auto;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.title-logo {
    width: 50px;
    height: 50px;
}

h1 {
    font-size: 3em;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border: 2px solid white;
    padding: 10px;
    display: inline-block;
    border-radius: 10px;
}

.form-box, .posts-box {
    background-color: rgba(0, 50, 0, 0.7); /* Verde oscuro más transparente */
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

input[type="text"], select, textarea {
    padding: 10px;
    margin: 5px;
    width: 80%;
    max-width: 400px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
}

textarea {
    height: 100px;
    resize: vertical;
    width: 100%;
    max-width: 400px;
}

.char-counter {
    text-align: right;
    font-size: 0.8em;
    color: #ccc;
    margin-top: 5px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: white;
    color: green;
    cursor: pointer;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-icon {
    width: 24px;
    height: 24px;
    color: white;
}

.posts-box {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden; /* Evita el scroll horizontal */
    margin-top: 20px;
}

.posts-container {
    margin-top: 10px;
}

.post {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: left;
    word-wrap: break-word; /* Asegura que el texto no desborde */
    max-width: 100%;
}

.post strong {
    color: #ffcc00;
}

.post img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.post .timestamp {
    font-size: 0.8em;
    color: #ccc;
    margin-top: 5px;
}

.team-logo {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.team-logos-large {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 60px; /* Espacio para el footer */
}

.large-logo {
    width: 50px;
    height: 50px;
    margin: 10px;
}

.icon {
    width: 20px;
    height: 20px;
    margin-left: 10px;
}

footer {
    font-size: 0.8em;
    color: white;
    padding: 10px;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo semi-transparente */
    z-index: 999; /* Asegurar que esté por encima de otros elementos */
}

/* Estilos para el botón de Dark Mode */
.dark-mode-toggle {
    position: fixed;
    bottom: 80px; /* Ajuste para que no se superponga con el footer */
    right: 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dark-mode-toggle:hover {
    background-color: #444;
}

/* Asegurar que el ícono sea visible */
.dark-mode-toggle i {
    width: 24px;
    height: 24px;
}

/* Estilos para el tema oscuro */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
    background-image: url('https://i.pinimg.com/736x/d3/63/51/d363516deffcfb67d564c03dea9e0d49.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

body.dark-mode .form-box,
body.dark-mode .posts-box {
    background-color: rgba(0, 30, 0, 0.7);
}

body.dark-mode .post {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode button {
    background-color: #444;
    color: #ffffff;
}

body.dark-mode button:hover {
    background-color: #555;
}

/* Ajustes para el botón "Enviar" */
.message-group {
    position: relative; /* Contenedor relativo para posicionar el botón */
    padding-bottom: 60px; /* Espacio adicional para el botón */
}

.message-group button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    margin-left: 0; /* Eliminar margen izquierdo */
}
