body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    background-image: url('/img/SB60.jpg');/* fallback */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    min-height: 100vh;
}
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
    .login-container {
        width:50%;
    }
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Para asegurarse de que el video quede detrás del contenido */
}


.login-container {
    position: relative;
    background-color: rgba(255, 255, 255, 0.85); /* Blanco con transparencia */
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Sombra más profunda y difusa */
	text-align:center;
    width:40%;
    margin: 5% auto;
    position: relative;
	z-index:1;
}


h2 {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input {
    width: 80%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    width: 80%;
    padding: 10px;
    background-color: #5cb85c;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #4cae4c;
}

.error {
    color: red;
    margin-bottom: 10px;
}

/*----- STYLES PARA MENU --- */

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 8px;
    text-align: center;
}

th {
    background-color: #001f3f; /* Azul oscuro */
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Estilos para el menú */
nav {
    background-color: #001f3f;
    padding: 10px;
}

.menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
	height:8%;
}

.menu li {
    margin: 0 15px;
}

.menu li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.menu li a:hover {
    text-decoration: underline;
}
/* MAIN */

/* Para asegurar que el contenido de la página no quede oculto detrás del menú */
.container {
	display:flex;
	justify-content: space-between;
	padding:10px;
    width: 80%;
    margin-top:30%; /* Ajuste para dejar espacio debajo del menú */
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
	margin-bottom:5%;
}

.container3 {
	display:inline-table;
	margin-top:1%;
    width: 80%;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

/* Estilo para el contenedor */
.container4 {
    position: fixed;
    top: 60px; /* Ajusta este valor según la altura del menú */
    left:3%;
    width: 93%;
    height: calc(100vh - 80px); /* Ajusta para dejar espacio suficiente para el menú */
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow-y: auto; /* Habilita el scroll dentro del contenedor */
}

/* Estilo para la tabla */
.container4 table {
    width: 100%;
   
}

.container4 th, .container4 td {
   
    text-align: center;
    border: 1px solid #ddd;
}

.container4 th {
    position: sticky;
    top: 0;
    background-color: #CCCCCC; /* Color de fondo para el encabezado */
    z-index: 1; /* Para asegurarte que el <thead> esté por encima del contenido cuando hagas scroll */
}
.container2 {
	
	padding:20%;
	margin-top:35%;
	background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	text-align:center
}

.half-page {
    width: 48%; /* Cada tabla ocupa el 48% del ancho de la pantalla */
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}
.half-page1 {
    width: 64%; /* Cada tabla ocupa el 48% del ancho de la pantalla */
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
	margin-bottom: 10px
}
.half-page2 {
    width: 33%; /* Cada tabla ocupa el 48% del ancho de la pantalla */
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;

}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #3498db;
    color: #fff;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}
/* BANNER DE FECHAS*/

.banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #001f3f;
    color: #ffffff;
    padding: 10px 0;
    overflow: hidden;
    z-index: 999;
}

.scrolling-text {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 100s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(10%);
    }
    100% {
        transform: translateX(-100%);
    }
}

span {
    font-size: 18px;
    font-weight: bold;
    padding-left: 0;
}


/* MEDIA QUERIES para hacerlo responsivo */
@media (max-width: 768px) {
    .menu {
        flex-direction: column;
    }

    .container, .container3, .container4, .half-page {
        width: 100%;
        margin-top: 10px;
    }

    h2 {
        font-size: 18px;
    }

    input, button {
        width: 90%;
    }

    table th, table td {
        padding: 8px;
    }

    .team-icon {
        width: 20px;
    }

    .container4 {
        top: 8%;
        width: 100%;
    }

    .banner {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container, .container3, .container4 {
        width: 100%;
        padding: 5px;
		margin-top:8%;
    }

    h2 {
        font-size: 16px;
    }

    input, button {
        width: 80%;
    }

    table th, table td {
        padding: 6px;
    }

    .banner {
        font-size: 10px;
    }
}