* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

.yin-yang-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.yin-yang-container.loaded {
    opacity: 1;
}

.half {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.half.left {
    left: 0;
    background-color: #ffffff;
    background-image: url('respuestas/imagenes/A.png');
    background-size: cover;
    background-position: center;
}

.half.right {
    right: 0;
    background-color: #000000;
    background-image: url('respuestas/imagenes/B.png');
    background-size: cover;
    background-position: center;
}

.letter {
    font-family: Arial, sans-serif;
    font-size: 15vw;
    font-weight: bold;
    user-select: none;
}

.half.left .letter {
    color: #000000;
}

.half.right .letter {
    color: #ffffff;
}

/* Efecto hover */
.half.left:hover {
    background-image: url('respuestas/imagenes/A-hover.png');
}

.half.right:hover {
    background-image: url('respuestas/imagenes/B-hover.png');
}

/* Vórtice */
.vortex {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.vortex-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 2px solid rgba(128, 128, 128, 0.5);
    border-radius: 50%;
    animation: vortex-spin 4s linear infinite;
}

.vortex-ring:nth-child(1) {
    width: 50px;
    height: 50px;
    margin-left: -25px;
    margin-top: -25px;
    animation-duration: 3s;
}

.vortex-ring:nth-child(2) {
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
    animation-duration: 4s;
    animation-direction: reverse;
}

.vortex-ring:nth-child(3) {
    width: 150px;
    height: 150px;
    margin-left: -75px;
    margin-top: -75px;
    animation-duration: 5s;
}

.vortex-ring:nth-child(4) {
    width: 200px;
    height: 200px;
    margin-left: -100px;
    margin-top: -100px;
    animation-duration: 6s;
    animation-direction: reverse;
}

@keyframes vortex-spin {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.5;
    }
}

/* Páginas internas */
.page-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.page-container.dark {
    background: #000000;
    color: #ffffff;
}

.page-container.light {
    background: #ffffff;
    color: #000000;
}

.question {
    font-family: Arial, sans-serif;
    font-size: 3rem;
    text-align: center;
    padding: 0 2rem;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.option-btn {
    font-family: Arial, sans-serif;
    font-size: 1.5rem;
    padding: 1rem 3rem;
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.option-btn:hover {
    background: #ffffff;
    color: #000000;
}

.oracle-btn {
    font-family: Arial, sans-serif;
    font-size: 1.5rem;
    padding: 1.5rem 4rem;
    background: #ffffff;
    color: #000000;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.oracle-btn:hover {
    background: #cccccc;
}

/* Respuesta oracular */
.oracle-response {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.oracle-response.visible {
    display: block;
}

.oracle-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.oracle-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.oracle-media {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

#oracleVideo {
    display: none;
}

#oracleImage {
    display: none;
}

.oracle-message {
    font-family: Arial, sans-serif;
    font-size: 1.5rem;
    line-height: 1.8;
    text-align: center;
    white-space: pre-line;
    color: #ffffff;
}

audio {
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    width: 300px;
    z-index: 10;
}

/* Mobile styles */
@media (max-width: 768px) {
    .half {
        width: 100%;
        height: 50%;
    }

    .half.left {
        top: 0;
        left: 0;
    }

    .half.right {
        top: 50%;
        right: 0;
    }

    .oracle-left,
    .oracle-right {
        width: 100%;
        height: 50%;
    }

    .oracle-left {
        top: 0;
    }

    .oracle-right {
        top: 50%;
        overflow-y: auto;
    }

    .oracle-message {
        font-size: 1rem;
        padding: 1rem;
    }

    .oracle-media {
        max-height: 45vh;
    }

    audio {
        width: 90%;
        max-width: 300px;
    }
}
