@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: #ecf0f1;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 5px;
}

.casino-container {
    text-align: center;
    background: rgba(52, 73, 94, 0.95);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    margin-top: 20px;
    animation: fadeIn 1s ease-in-out;
}

.casino-title {
    font-size: 2.5em;
    color: #e74c3c;
    text-shadow: 2px 2px #c0392b;
    animation: pulse 1.5s infinite;
}

.casino-text {
    margin: 10px 0;
}

.casino-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 20px;
    gap: 10px; /* Añadido para espacio entre botones */
}

.casino-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2em;
    color: #ecf0f1;
    background: #e74c3c;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px #c0392b;
}

.casino-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px #c0392b;
}

.casino-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px #c0392b;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .casino-container {
        padding: 20px;
        width: 100%;
        box-sizing: border-box; /* Añadido para asegurar que el padding no haga que el contenedor desborde */
        margin: 0px 10px 0px 10px;
        justify-content: center;
        align-items: center;
        
    }

    .casino-title {
        font-size: 2em;
    }

    .casino-text {
        font-size: 1em; /* Reducir tamaño de texto para pantallas pequeñas */
    }

    .casino-buttons {
        flex-direction: column;
        align-items: center;
    }

    .casino-button {
        padding: 10px 20px;
        font-size: 1em;
        margin: 10px 0; /* Espacio entre botones */
    }
}


.leaderboard-container {
    margin-top: 20px;
    background: #34495e;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    width: 80%; /* Ajustado para ser más ancho */
    text-align: center;
}

.leaderboard-title {
    font-size: 2em;
    color: #e74c3c;
    text-shadow: 2px 2px #c0392b;
    text-align: center;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.leaderboard-table th, .leaderboard-table td {
    padding: 10px;
    border: 1px solid #ecf0f1;
    text-align: left;
}

.leaderboard-table th {
    background-color: #2c3e50;
}

.leaderboard-table td {
    background-color: #34495e;
}

#load-more {
    margin-top: 10px;
    
}


/* Responsive Styles */
@media (max-width: 768px) {
    .leaderboard-container {
        padding: 20px;
        width: 100%;
    }

    .leaderboard-title, .casino-title {
        font-size: 1.5em;
    }

    .casino-button {
        padding: 10px 20px;
        font-size: 1em;
    }

    .leaderboard-table th, .leaderboard-table td {
        font-size: 0.8em;
    }
}