/* Estilos Generales */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7fc;
    color: #333;
    margin: 0;
    padding: 0;
}

h1, h2 {
    font-weight: 600;
    color: #333;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.8rem;
    margin-top: 20px;
    color: #444;
}

/* Contenedor Principal */
.tournament-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Header del Torneo */
.tournament-header {
    text-align: center;
    margin-bottom: 30px;
}

.tournament-header p {
    font-size: 1.2rem;
    color: #555;
}

/* Sección de Asistentes y Reservas */
.attendees-section, .reserve-section {
    margin-top: 40px;
}

.attendees-list, .reserve-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.attendee, .reserve-item {
    background-color: #f9f9f9;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    color: #333;
    text-align: center;
}

.attendee:hover, .reserve-item:hover {
    transform: translateY(-5px);
    transition: transform 0.2s ease-in-out;
}

.attendee:active, .reserve-item:active {
    transform: translateY(2px);
}

.attendee-me, .reserve-item-me {
    background-color: #e0f7fa;
    border: 1px solid #b2ebf2;
    color: #00796b;
}

.attendee-me:hover, .reserve-item-me:hover {
    background-color: #b2ebf2;
    border-color: #80deea;
    color: #004d40;
}

.attendee-me:active, .reserve-item-me:active {
    background-color: #80deea;
    border-color: #4dd0e1;
    color: #004d40;
}

/* Sección de Acciones */
.actions-section {
    margin-top: 30px;
    text-align: center;
}

.button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease-in-out;
    margin: 10px 0;
}

.button-join {
    background-color: #28a745;
    color: white;
}

.button-join:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.button-join:active {
    background-color: #1e7e34;
    transform: translateY(1px);
}

.button-leave {
    background-color: #dc3545;
    color: white;
}

.button-leave:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

.button-leave:active {
    background-color: #bd2130;
    transform: translateY(1px);
}

/* Enlaces */
.login-link {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

/* Mensajes */
p.error-message, p.info-message {
    color: #dc3545;
    font-size: 1rem;
    text-align: center;
}

p.info-message {
    color: #007bff;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .tournament-header p {
        font-size: 1rem;
    }

    .attendee, .reserve-item {
        font-size: 0.95rem;
        padding: 10px;
    }

    .button {
        width: 100%;
        font-size: 1rem;
    }

    .tournament-container {
        margin: 20px 10px;
        padding: 15px;
    }
}