/* General Reset */

@font-face {
    font-family: "roboto";
    src: url("Roboto-Regular.ttf");
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
   /* font-family: 'roboto', sans-serif;*/
}

/* Fixture Container */
.fixture-container {
    max-width: 380px; /* Reducido para ser más compacto */
    margin: 5px auto;
    padding: 6px; /* Reducido para menos espacio */
    background: #121212;
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 5px; /* Menos margen para compresión */
}

header h1 {
    font-size: 1.2rem;
    color: #fdb927;
    font-weight: bold;
    text-transform: uppercase;
}

/* Fixture Styling */
.fixture {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Menor espacio entre partidos */
}

.match {
    display: flex;
    flex-direction: row;
    gap: 2px; /* Espacio horizontal entre la fecha y el partido */
    padding: 2px;
   /* background: #ffffff;*/
    border-radius: 5px;
    border-left: 3px solid #fdb927;
    font-size: 0.8rem; /* Tamaño de fuente reducido */
}



/* Fecha a la izquierda del match */
.match-date {
    font-weight: normal;
    color: #fdb927;
    font-size: 1.8rem; /* Tamaño más grande */
    text-align: center;
    width: 40px; /* Fijo para mantener el tamaño y evitar que se desborde */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Match Details (contiene equipos y info) */
.match-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}
.mes{
    display: flex;
    justify-content: center;
    align-items: center;
    
}

/* Teams Section */
.teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: bold;
    color: #141313;
}

.teams .team {
    flex: 1;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem; /* Ajuste de tamaño de fuente */
}

@keyframes vsColorChange {
    0% { color: #ff0000; transform: scale(1); }
    50% { color: #ffcc00; transform: scale(1.2); }
    100% { color: #ff0000; transform: scale(1); }
}

.teams .vs {
    font-size: 40px;
    font-weight: bold;
    animation: vsColorChange 1.2s infinite ease-in-out;
}

.team-block{
    width: 120px;
    align-items: center;
    text-align: center;
}

/* Match Info */
.match-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px; /* Reducido gap */
    font-size: 0.7rem; /* Ajuste de tamaño de fuente */
}

.match-info .match-time {
    color: #554949;
    font-style: italic;
}

.match-info .location {
    color: #fdb927;
    font-weight: bold;
}

/* Button Styling */
.details-btn {
    background: #fdb927;
    color: #121212;
    border: none;
    padding: 4px 6px; /* Reducido padding para botón */
    border-radius: 3px;
    font-size: 0.7rem; /* Ajuste de tamaño de fuente */
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
}

/*ESTILOS PARA STATUS TERMINADO - SUSPENDIDO - ETC */
.overlay-status {
    position: absolute;
    top: 20px; /* Espacio desde la parte superior */
    left: -10px; /* Alejado de la esquina */
    width: 100px; /* Ancho reducido */
    height: 20px; /* Altura fija para la banda */
    background: rgba(0, 0, 0, 0.8); /* Fondo más oscuro */
    color: white;
    font-size: 10px; /* Tamaño de la fuente ajustado */
    font-weight: normal;
    text-transform: uppercase;
    text-align: letf;
    padding-left: 10px;
    line-height: 20px; /* Alinea verticalmente el texto */
    transform: rotate(-25deg); /* Banda en diagonal */
    transform-origin: top left; /* Rotación desde la esquina superior izquierda */
    z-index: 100;
    white-space: nowrap; /* Evita que el texto se divida */
    border-radius: 10px; /* Bordes redondeados */
}
/*
.overlay-status {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10; /* Asegura que esté encima 
}
*/
/* Colores específicos por estado */
.overlay-status.suspendido {
    background: rgba(255, 0, 0, 0.5); /* Rojo para "SUSPENDIDO" */
}

.overlay-status.terminado {
    background: rgba(0, 128, 0, 0.5); /* Verde para "TERMINADO" */
}

.overlay-status.impugnado {
    background: rgba(17, 0, 255, 0.5); /* Naranja para "IMPUGNADO" */
}

.overlay-status {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.team-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

.team-name {
    font-size: 10px;
    font-weight: bold;
    margin-top: 5px;
}

.score h5 {
    font-size: 42px;
    margin: 0;
    color: #333;
}

/* Responsive Design */
@media (max-width: 320px) {
    .teams {
        gap: 3px;
    }

    .match-date,
    .teams .team,
    .match-info {
        font-size: 0.7rem; /* Reducir aún más el tamaño de texto */
    }
}
