/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estructura general */
body {
    background-color: #2c003e;
    color: #e6e6e6;
}

p {
    text-align: justify;
}

a{
    text-decoration:none;
}

/* Navbar */
.navbar {
    background-color: #4b0082;
    border-radius: 10px;
}

.navbar-nav .nav-link,
.navbar-brand,
.nav-link {
    position: relative;
    color: white !important;
    transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #6f42c1;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: #6f42c1 !important;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Botón morado */
.btn-outline-purple {
    border-color: #6f42c1;
    color: #6f42c1;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.btn-outline-purple:hover {
    background-color: #6f42c1;
    color: white;
    transform: scale(1.05);
}

/* Hero */
.hero {
    background: linear-gradient(to right, #5a189a, #9d4edd);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 10px;
}
.hero p {
    text-align: center;
}

/* Tarjetas de juegos */
.game-card {
    border: none;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    position: relative;
    background-color: white;
    border-radius: 15px;
    height: 300px;
}

.game-card:hover {
    transform: scale(1.1);
}

.game-card .card-header {
    background-color: #6a0dad;
    color: white;
    font-weight: bold;
    padding: 15px;
    text-align: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.game-card .card-body {
    text-align: center;
    padding: 10px;
}

.game-card .card-body span {
    display: block;
    font-size: 24px;
    color: #555;
}

.game-card .game-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 15px;
}

.game-card:hover .game-animation {
    opacity: 1;
}

.game-animation video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tarjetas de competición */
.comp-card {
    border: none;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    position: relative;
    background-color: white;
    border-radius: 15px;
    height: 300px;
    width: 65vh;
}

.comp-card:hover {
    cursor: pointer;
    transform: scale(1.1);
}

.comp-card .card-header {
    background-color: #6a0dad;
    color: white;
    font-weight: bold;
    padding: 15px;
    text-align: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.comp-card .card-body {
    text-align: center;
    padding: 10px;
}

.comp-card .card-body span {
    display: block;
    font-size: 24px;
    color: #555;
}

.comp-card .comp-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 15px;
}

.comp-card:hover .comp-animation {
    opacity: 1;
}

.comp-animation video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botón login/register */
.botonLogReg {
    background-color: #6f42c1;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.botonLogReg:hover {
    background-color: #5a189a;
    transform: scale(1.05);
}

/* Estilos de colores */
.log {
    background: linear-gradient(to right, #b589e0, #9d4edd);
}

.log2 {
   background: linear-gradient(to left, #48236d, #56307c);
}

.log3 {
    background-color: rgb(183, 154, 211);
}

/* Footer */
footer {
    color: white;
    text-align: center;
    border-radius: 10px 10px 0 0;
    max-height: none;
    overflow: hidden;
    font-size: 12px;
    padding: 10px;
}

footer i:hover {
    transform: scale(1.2);
    transition: transform 0.3s ease-in-out;
}

.footer-content {
    display: block;
    padding: 15px;
}

.footer-hidden {
    font-size: 14px;
    padding: 5px;
    display: block;
}

.footer-content h3 {
    margin-bottom: 20px;
}

.footer-content form {
    margin-top: 20px;
}

/* Personalización rankings */
.textoCentrado {
    text-align: center;
}

#juegos {
    position: relative;
    left: 39vw;
    top: 5vh;
    width: 20vw;
}

#juegos > button,
#juegos > ul {
    width: 100%;
}

/* sobre nosotros*/
.custom-img {
    width: 100%;
    height: 400px;
    border: 5px solid #6f42c1;
    border-radius: 20px;
    object-fit: cover;
}

/* tablas ranking */
/* Estilo para tablas de ranking */
.ranking-table {
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
    color: #333;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.ranking-table th {
    background-color: #6f42c1;
    color: white;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1;
}

.ranking-table tr:nth-child(even) {
    background-color: #f3e9ff;
}

.ranking-table tr:hover {
    background-color: #e0c8ff;
    transition: background-color 0.3s ease-in-out;
}

.ranking-table td,
.ranking-table th {
    border: 1px solid #ccc;
}
 

/*Equipos/*/
.centrarEquipos{
    text-align: center;
}
