/* Estilo general */
body {
    font-family: "Arial", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to bottom right, #ff9a8b, #e6ccd1, #ff99ac);
}

/* Contenedor principal */
.juego {
    width: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 25px;
    position: relative;
}

/* Título */
.titulo h1 {
    font-size: 1.6rem;
    color: #2a2a72;
    margin-bottom: 5px;
}

.titulo p {
    font-size: 1rem;
    color: #555;
}

/* Indicador de vidas */
.vidas {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Laberinto visual */
.laberinto-mapa {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    transform: rotate(270deg);
    background-image: url(weed.png);
}

/* Fila de cada parte del laberinto */
.fila {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px;
}

/* Tramos del laberinto */
.tramo {
    width: 40px;
    height: 40px;
    background: gray;
    border-radius: 5px;
    transition: background 0.3s;
}

/* Uniones entre tramos */
.union {
    width: 15px;
    height: 5px;
    background: gray;
}

/* Uniones verticales */
.union-vertical {
    width: 5px;
    height: 20px;
    background: gray;
}

/* Tramos y uniones completados */
.tramo.superado, .union.superado {
    background: #00c853 !important; /* Color verde para marcar el progreso */
}

/* Caja de pregunta */
.laberinto {
    background: #f3f4ff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}

/* Pregunta */
.pregunta {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Input de respuesta */
#respuesta {
    font-size: 1.3rem;
    text-align: center;
    width: 80px;
    padding: 5px;
    margin-top: 5px;
}

/* Botón */
button {
    margin-top: 10px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    background-color: lightblue;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    width: 100%;
}

button:hover {
    background-color: deepskyblue;
}
