body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.game-container {
    background-color: #fff;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 500px;
}

h1 {
    color: #333;
}

.score-display {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1em;
}

.message {
    height: 1.5em;
    color: #e74c3c;
    font-weight: bold;
}

/* ------------------------------------- */
/* ESTILOS DEL PANAL DE ABEJAS  */
/* ------------------------------------- */
.letters-container {
    display: grid;
    grid-template-areas:
        ". top ."
        "tl center tr"
        "bl bottom br";
    gap: 10px;
    justify-content: center;
    align-content: center;
    margin: 3em auto;
}

.letter-cell {
    position: relative;
    width: 80px;
    height: 46px; /* 80 * 0.577 */
    background-color: #f1c40f;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s;
}

/* Creación de las puntas del hexágono */
.letter-cell::before,
.letter-cell::after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
}

.letter-cell::before {
    bottom: 100%;
    border-bottom: 23px solid #f1c40f;
}

.letter-cell::after {
    top: 100%;
    border-top: 23px solid #f1c40f;
}

.letter-cell:hover {
    transform: scale(1.1);
}

.letter-cell.center {
    background-color: #f39c12;
    color: #fff;
}

.letter-cell.center::before {
    border-bottom-color: #f39c12;
}

.letter-cell.center::after {
    border-top-color: #f39c12;
}
/* ------------------------------------- */

.buttons-container {
    margin-bottom: 1em;
}

.action-btn {
    padding: 10px 20px;
    font-size: 1.2em;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background-color: #2980b9;
}

#submit-btn {
    background-color: #2ecc71;
}

#submit-btn:hover {
    background-color: #27ae60;
}

#found-words-container {
    margin-top: 2em;
    text-align: left;
}

#found-words-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#found-words-list li {
    background-color: #ecf0f1;
    padding: 5px 10px;
    border-radius: 5px;
}