body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fffbf2;
    color: #333;
}

header {
    display: flex;
    /* justify-content: space-between; */
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background-color: #ffda79;
    border-bottom: 5px solid #ffb142;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* position: fixed; */
    /* top: 0; */
}

.main-title {
    color: white;
    font-size: 30px;
    font-weight: 800;
}

.profile-pic img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* border: 2px solid #ff4757; */
    border: 2px solid #ffb142;
}

.logo img {
    width: 60px;
    height: 60px;
    /* border: 2px solid #ff4757; */
    border: 2px solid #ffb142;
    border-radius: 15px;
    padding: 5px;
}

.icons i {
    margin: 0 10px;
    font-size: 24px;
    color: #3742fa;
    cursor: pointer;
    font-style: normal;
}

.icons i:hover {
    filter: brightness(125%);
}

main {
    padding: 20px;
}

.setup-container {
    background-color: #f1f2f6;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mode {
    display: none;
}

h1 {
    font-size: 24px;
    color: #2f3542;
    margin-bottom: 20px;
}

label {
    font-size: 18px;
    color: #2f3542;
    display: block;
    margin-bottom: 10px;
}

select, input[type="text"] {
    width: 100%;
    padding: 10px;
    /* padding-left: 15px; */
    font-size: 16px;
    margin-bottom: 20px;
    /* border: 1px solid #ced6e0; */
    border: 2px solid #333;
    /* border-radius: 5px; */
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    outline-style: none;
}

.options {
    display: none;
}

.player-names {
    margin-bottom: 20px;
}

.player-names label {
    margin-bottom: 5px;
}

.player-names input[type="text"] {
    width: calc(100% - 23px);
    margin-bottom: 10px;
}

#start-game-btn {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #2ed573;
    color: #fff;
    border: none;
    /* border-radius: 10px; */
    border-radius: 20px;
    border: 1px solid #333;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#start-game-btn:hover {
    background-color: #68eca4;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.timer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.time-bar {
    width: 80%;
    height: 20px;
    background-color: #ff4757;
    border-radius: 10px;
    position: absolute;
    border: 1px solid #333;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}

.time-countdown {
    position: absolute;
    font-size: 18px;
    color: #fff;
}

.current-player {
    font-size: 20px;
    text-align: center;
    margin-bottom: 10px;
    color: #2f3542;
}

.question {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f1f2f6;
    border-radius: 10px;
    width: 80%;
    min-height: 90px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
    border: 2px solid #242424;
}

.actions {
    display: flex;
    justify-content: space-around;
    width: 80%;
}

.pass-btn, .confirm-btn {
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    /* border-radius: 10px; */
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid #242424;
}

.pass-btn {
    background-color: #ff4757;
    color: #fff;
}

.confirm-btn {
    background-color: #2ed573;
    color: #fff;
}

.pass-btn:hover {
    background-color: #ff6b81;
}

.confirm-btn:hover {
    background-color: #4df197;
}

.game-modes h2 {
    font-size: 24px;
    /* color: #2f3542; */
    margin-bottom: 20px;
}

.game-mode-list .game-mode-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    color: white;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    background-color: white;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}

.game-mode-list .game-mode-item:hover {
    transform: scale(1.03);
}

.game-mode-item .game-mode-info p {
    margin: 0;
    font-size: 24px;
}

.clasico {
    background: linear-gradient(45deg, #ff6b81, #ff4757);
    /* border: 2px solid #ff4757; */
    border: 2px solid #252525;
}

.rulete {
    background: linear-gradient(45deg, #1e90ff, #3742fa);
    /* border: 2px solid #3742fa; */
    border: 2px solid #252525;
}

.deathmatch {
    background: linear-gradient(45deg, #2ed573, #26de81);
    /* border: 2px solid #2ed573; */
    border: 2px solid #252525;
}

.tematico {
    background: linear-gradient(45deg, #ffa502, #ff7f50);
    /* border: 2px solid #ffa502; */
    border: 2px solid #252525;
}

.personalizada {
    background: linear-gradient(45deg, #eccc68, #f39c12);
    /* border: 2px solid #eccc68; */
    border: 2px solid #252525;
}

.solitario {
    background: linear-gradient(45deg, #a4b0be, #747d8c);
    /* border: 2px solid #a4b0be; */
    border: 2px solid #252525;
}

.your-games h2, .opponent-turn h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2f3542;
}

.pending {
    background-color: #ff4757;
    color: white;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 16px;
}

.game-list .game-item, .opponent-turn .game-item, .ranking-list .ranking-item {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    /* border: 2px solid #ffa502; */
    border: 2px solid #363636;
}

.game-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    /* box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3); */
    border: 2px solid #363636;
}

.game-info p {
    margin: 0;
    font-size: 16px;
    /* font-weight: 600; */
}

.won-game {
    color: green;
}

.play-button, .create-game-button, .rematch-button {
    /* background-color: black; */
    background-color: #3742fa;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    margin-left: auto;
    /* box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3); */
    border: 1px solid #242424;
    /* font-weight: 600; */
}

.play-button:hover, .create-game-button:hover, .rematch-button:hover {
    background-color: #5b63fc;
}

.game-status-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.players-status {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 50px;
}

.player {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #585858;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.player img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 5px;
    /* box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3); */
    border: 2px solid #363636;
}

.player-name {
    font-size: 18px;
    margin-bottom: 5px;
}

.player-points {
    font-size: 16px;
    color: #ff4757;
}

.turns-bar {
    display: flex;
    justify-content: space-around;
    width: 80%;
    margin-bottom: 50px;
}

.turn {
    flex: 1;
    height: 20px;
    margin: 0 3px;
    background-color: #dcdde1;
    border-radius: 10px;
    border: 1px solid #333;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}

.turn.active {
    background-color: #ff4757;
}

.continue-btn {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #2ed573;
    color: #fff;
    border: none;
    /* border-radius: 10px; */
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid #242424;
}

.continue-btn:hover {
    background-color: #11ad52;
}

.ranking-container {
    padding: 20px;
    text-align: center;
}

.ranking-list .ranking-item {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    /* border: 2px solid #ffa502; */
    border: 2px solid #363636;
}

.ranking-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    /* box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3); */
    border: 2px solid #363636;
}

.ranking-info > *:last-child {
    margin-left: 10px;
}

.ranking-info {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
}

.bottom-nav {
    /* position: fixed; */
    /* bottom: 0; */
    height: 35px;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* background-color: white; */
    background-color: #2ed573;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.bottom-nav i {
    font-size: 24px;
    color: white;
    cursor: pointer;
    font-style: normal;
    display: flex;
    align-items: baseline;
}

.bottom-nav i:hover h5:hover {
    color: #14834b;
}

.container-rules h2 {
    font-size: 24px;
    /* color: #2f3542; */
    margin-bottom: 20px;
}

.accordion {
    width: 95%;
    max-width: 100vw;
    margin: auto;
}

.accordion-item {
    /* background-color: #333; */
    border: 2px solid #252525;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    /* background-color: #ff6600; */
    color: white;
    padding: 15px;
    border: none;
    text-align: left;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.accordion-header:hover {
    /* background-color: #cc5500; */
    filter: brightness(90%);
}

.accordion-content {
    padding: 15px;
    /* background-color: #c2c2c2; */
    background-color: rgba(163, 163, 163, 0.1);
    color: black;
    display: none;
}

.bolding {
    font-weight: 600;
}

/* === CONTENEDOR PRINCIPAL DEL MODO RULETA === */
.rulete-container {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 30px;
    gap: 40px;
    flex-wrap: wrap;
}

/* === SECCIONES (LETRAS / CATEGORÍAS) === */
.rulete-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* === DISPLAY DE LETRA / CATEGORÍA === */
.rulete-display {
    font-size: 2rem;
    font-weight: bold;
    background: #f5f5f5;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 20px 40px;
    min-width: 300px;
    min-height: 80px;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.categories {
    font-size: 2rem;
    min-width: 350px;
}

.letters {
    font-size: 4rem;
}

/* Animación al seleccionar */
.selected-animation {
    animation: popEffect 0.6s ease;
}

@keyframes popEffect {
    0% { transform: scale(1); background: #f5f5f5; }
    50% { transform: scale(1.3); background: #90ee90; }
    100% { transform: scale(1); background: #f5f5f5; }
}

/* === BOTONES RULETA === */
.btn-rulete.init {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #2ed573;
    color: #fff;
    border: none;
    /* border-radius: 10px; */
    border-radius: 20px;
    border: 1px solid #333;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-rulete.init:hover {
    background-color: #68eca4;
}

.btn-rulete.end {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #ff4757;
    color: #fff;
    border: none;
    /* border-radius: 10px; */
    border-radius: 20px;
    border: 1px solid #333;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-rulete.end:hover {
    background-color: #ff6b81;
}

.players-count {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    border: 2px solid #333;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    outline-style: none;
}

.actors-display {
    font-size: 2rem;
    font-weight: bold;
    background: #f5f5f5;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 20px 40px;
    min-width: 500px;
    min-height: 80px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* .change-btn, .giveup-btn {
    padding: 5px 15px;
    font-size: 15px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid #242424;
} */

/* .change-btn {
    background-color: #40a4dd;
    color: #fff;
}

.giveup-btn {
    background-color: #ff4757;
    color: #fff;
}

.change-btn:hover {
    background-color: #58b5eb;
}

.giveup-btn:hover {
    background-color: #ff6b81;
} */

/* Caja del actor (similar a .question) */
/* .actors-display {
    font-size: 24px;
    text-align: center;
    margin-bottom: 10px;
    padding: 14px;
    background-color: #f1f2f6;
    border-radius: 10px;
    min-height: 60px;
    width: 80%;
    margin: 0 auto;
    box-shadow: 0 2px 3px rgba(0,0,0,0.3);
    border: 2px solid #242424;
} */

/* Botón cambiar actor */
.change-btn, .giveup-btn {
    padding: 8px 14px;
    font-size: 16px;
    border-radius: 20px;
    border: 1px solid #242424;
    cursor: pointer;
    transition: filter .2s ease;
}

.change-btn {
    background-color: #3742fa;
    color: #fff;
}

.change-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.giveup-btn {
    background-color: #ff4757;
    color: #fff;
    margin-top: 8px;
}

.change-btn:hover:not(:disabled),
.giveup-btn:hover {
    filter: brightness(110%);
}

/* Spinner */
.spinner {
    width: 36px;
    height: 36px;
    border: 4px solid #eaeaea;
    border-top: 4px solid #3742fa;
    border-radius: 50%;
    margin: 6px auto;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


@media (min-width: 300px) and (max-width: 480px){
    .bottom-nav {
        position: fixed;
        bottom: 0;
        background-color: #b8e2ca;
    }

    .bottom-nav i {
        padding: 5px;
    }

    .bottom-nav i h5 {
        display: none;
    }
}

@media (min-width: 481px) and (max-width:767px) {
    .bottom-nav {
        position: fixed;
        bottom: 0;
        background-color: #b8e2ca;
    }

    .bottom-nav i {
        padding: 5px;
    }

    .bottom-nav i h5 {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    
}

@media (min-width: 992px) and (max-width:1999px) {

}

@media (min-width: 1200px) and (max-width: 1919px) {

}