html, body {
    font-family: nunito;
    background: #1f1f1f;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@font-face {
    font-family: nunito;
    src: url(nunito/Nunito-Bold.ttf);
}

@media (max-width: 500px) {
.partidos-container {
    width: 95%;
}

.equipo.local {
    font-size: 0.82rem;
}

.equipo.visitante {
    font-size: 0.82rem;
}

td, th {
    font-size: 0.7rem;
}

.navbar {
    padding: 16px;
    font-size: none;
}

.navbar a {
    transition: none;
}

.links {
    font-size: 16px;
}

.logo {
    font-size: 18px;
}

.select {
    font-size: 14px;
}
}

.links {
    display: flex;
    align-items: center;
}

.width {
    background: #1f1f1f;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    flex: 1;
}

main {
    flex: 1;
}

.width2 {
    background: #1f1f1f;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    flex: 1;
}

img {
    border-radius: 5px;
}
.navbar {
    max-width: none;
    background-color: #000000;
    justify-content: space-between;
    align-items: center;
    display: flex;
    overflow: hidden;
    padding: 20px;
    font-size: 20px;
}

.navbar2 {
    max-width: none;
    background-color: #000000;
    justify-content: space-between;
    align-items: center;
    display: flex;
    overflow: hidden;
    padding: 10px;
}

.header {
    text-align: center;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    display: inline-flex;
    padding: 17px;
    border-radius: 10px;
    background-color: #111111;
}

a {
    color: rgb(190, 224, 255);
}

a:hover {
    color: rgb(124, 186, 228);
}

.navbar a {
    text-decoration: none;
    text-align: center;
    padding: 14px 20px;
    color: white;
    transition: 0.5s;
    align-items: center;
}

.navbar a:hover {
    color: rgb(221, 255, 253);
}

.logo {
    color: white;
    transition: 0.5s;
}

li {
    color: #f0f0f0;
}
.rules {
    display: inline-block;
    padding: 20px;
    background-color: #0e0e0e;
    border-radius: 8px;
    align-items: center;
}

.about {
    padding: 20px;
    background-color: #0e0e0e;
    border-radius: 8px;
    align-items: center;
}

.boton {
    padding: 10px;
    background-color: #0e0e0e;
    text-align: center;
    border-radius: 8px;
    align-items: center;
    transition: 0.3s;
    margin: 10px;
    font-size: 20px;
}

.boton a {
    color: white;
    text-decoration: none;
    align-items: center;
    display: flex;
    gap: 10px;
    transition: 0.3s;
}

.boton:hover {
    background: #000000;
}
.boton a:hover {
    color: rgb(254, 255, 215);
}

.grid {
    justify-content: center;
    gap: 14px;
}

h1, h2 {
    color: #f0f0f0;
    font-size: 29px;
}

h3 {
    color: #f0f0f0;
}

p {
    color: #f0f0f0;
    
}
footer {
    font-size: 15px;
    background-color: black;
    padding: 1rem;
    text-align: center;
}
select {
    background: #131313;
    color: white;
    border: none;
    border-bottom: white;
    border-radius: 8px;
    font-size: 16px;
    font-family: nunito;
    transition: 400ms;
    margin-bottom: 10px;
    padding: 8px;
}

select:hover {
    background: #030303;
}
input[type=number] {
    width: 40px;
    border-radius: 4px;
    padding: 3px;
    margin: 0;
    text-align: center;
    font-size: 22px;
    font-family: nunito;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number]::placeholder {
    color: #999;
}

input[type=number] {
    background-color:#1f1f1f;
    border: none;
    color: white;
}

button {
    font-family: nunito;
    background: white;
    color: rgb(8, 8, 8);
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    margin: 10px 5px;
    display: inline-block;
}
button:hover {
    background: #44c79b;
}
.buttons-container {
    text-align: center;
    margin-bottom: 20px;
}
.jornada {
    color: white;
}
.partidos-container {
    background: rgb(49, 49, 49);
    color: white;
    border-radius: 25px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 8px;
}

.partido {
    margin-bottom: 8px;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.equipo {
    align-items: center;
    justify-content: baseline;
    display: flex;
    gap: 5px;
}
.equipo.local {
    width: 200px;
    justify-content: flex-end;
}
.equipo.visitante {
    width: 200px;
    justify-content: flex-start;
}
.equipo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
}
table {
    border-collapse: collapse;
    border: none;
    width: 100%;
    background: rgb(17, 17, 17);
    color: white;
    font-size: 15px;
    align-items: center;
}
th, td {
    padding: 4px;
    text-align: center;
    vertical-align: middle;
    align-items: center;
}

th {
    background: #113c75;
    color: rgb(255, 255, 255);
}
.nota-penalizacion {
    color: #c0392b;
    font-weight: bold;
    margin-bottom: 15px;
}

.reload {
    background: linear-gradient(#89fdb0, #52ff8b);
    color: white;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    margin: 10px 5px;
    display: inline-block;
}

.delete {
    background: linear-gradient(#ff7c7c, #bd0e0e);
    color: white;
}

.delete:hover {
    background: red;
}

.restart {
    background: linear-gradient(#069bb6, #055e99);
    color: white;
}

.restart:hover {
    background: #128acf;
}

.timemachine {
    background: linear-gradient(#9b30ff, #5c18db);
    color: white;
}

.timemachine:hover {
    background: #69004a;
}

.leyenda {
    margin-top: 6px;
    margin-bottom: 6px;
    border-radius: 8px;
    padding: 10px;
    display: inline-block;
    background-color: rgb(10, 10, 10);
}
.pos-color {
    font-weight: bold;
    border: 3px solid transparent;
    padding-left: 8px;
    margin: 3px;
}

.pos-color.verde {
    border-left-color: #b3ffca;
    color: #b3ffca;
}

.pos-color.azul {
    border-left-color: #9ac2ff;
    color: #9ac2ff;
}

.pos-color.azul-claro {
    border-left-color: #9ef9ff;
    color: #9ef9ff;
}

.pos-color.naranja {
    border-left-color: #ffc9a0;
    color: #ffc9a0;
}

.pos-color.amarillo {
    border-left-color: #fdffa1;
    color: #fdffa1;
}

.pos-color.rojo {
    border-left-color: #ff9494;
    color: #ff9494;
}