

     /* Aquí va tu estilo CSS */
        body {
            margin: 0;
            background-image: url('habitad.png');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            overflow: hidden;
        }

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translateY(-30px); /* Mueve el contenedor hacia arriba 30px */
}

.scene {
    width: 400px;
    height: 400px;
    perspective: 1600px;
    position: relative;
    margin-bottom: 20px;
}

.cube {
width: 100%;
height: 100%;
position: relative;
transform-style: preserve-3d;
transition: transform 4s cubic-bezier(0.5, 0, 0.5, 1), opacity 0.5s ease;
opacity: 1;
}

.cube.face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: #333;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.1);
}

.cube .front  { transform: rotateY(0deg) translateZ(200px); }
.cube .back   { transform: rotateY(180deg) translateZ(200px); }
.cube .right  { transform: rotateY(90deg) translateZ(200px); }
.cube .left   { transform: rotateY(-90deg) translateZ(200px); }
.cube .top    { transform: rotateX(90deg) translateZ(200px); }
.cube .bottom { transform: rotateX(-90deg) translateZ(200px); }

.cube img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

#question-container {
    width: 500px;
    max-width: 90%;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    opacity: 0;
    display: none;
    transition: opacity 0.3s ease;
    margin-top: -300px;
    position: relative;
}

#question-container.show {
    display: block;
    opacity: 1;
}

#question-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

#quiz-form {
    margin-top: 20px;
    text-align: left;
}

#quiz-form label {
    display: block;
    margin: 10px 0;
    font-size: 1.1rem;
    cursor: pointer;
}

#result {
    font-size: 1.5rem;
    margin-top: 20px;
    display: none;
    font-weight: bold;
}

#result.correct {
    color: green;
}

#result.incorrect {
    color: red;
}

#roll {
    padding: 15px 30px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    text-transform: uppercase;
}

#roll:hover {
    background-color: #218838;
    transform: scale(1.05);
}

#roll:active {
    transform: scale(0.95);
}

#confirm {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    text-transform: uppercase;
}

#confirm:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

#confirm:active {
    transform: scale(0.95);
}