/* oracle.css */

/* --- OVERLAY --- */
#oracle-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 5, 2, 0.45);
    backdrop-filter: blur(2px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* --- MODAL BOX --- */
#oracle-modal {
    /* Correct relative path */
    background-image: url('../images/rock-texture.jpg') !important;

    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    border: 3px solid #3a2a1a;
    border-radius: 12px;

    width: 90%;
    max-width: 600px;
    padding: 25px;

    box-shadow: 0 0 35px rgba(255, 120, 30, 0.6);

    animation: flicker 2.2s infinite ease-in-out;
    color: #e9d8b8;
    text-shadow: 0 0 6px #000;

    position: relative;
}

/* Let the background show through child elements */
#oracle-modal * {
    background: transparent !important;
}

/* --- CLOSE BUTTON --- */
#oracle-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #ffcf9d;
    font-size: 28px;
    cursor: pointer;
    text-shadow: 0 0 8px #000;
}

/* --- FLICKER ANIMATION --- */
@keyframes flicker {
  0%   { box-shadow: 0 0 18px rgba(255,150,50,0.3); }
  50%  { box-shadow: 0 0 40px rgba(255,150,50,0.7); }
  100% { box-shadow: 0 0 18px rgba(255,150,50,0.3); }
}

/* --- OPAL --- */
#oracle-opal {
    display: block;
    margin: 0 auto 10px;
    width: 85px;
    animation: opalglow 2.8s infinite;
}

@keyframes opalglow {
  0%   { filter: drop-shadow(0 0 4px #ffae5a); }
  50%  { filter: drop-shadow(0 0 22px #ffddaa); }
  100% { filter: drop-shadow(0 0 4px #ffae5a); }
}

/* --- OUTPUT TEXT --- */
#oracle-output {
    margin-top: 20px;
    font-size: 1.25rem;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 5px #000;
}

/* --- INPUT FIELD --- */
#oracle-question {
    width: 100%;
    padding: 12px;
    border-radius: 5px;

    background: rgba(0,0,0,0.55) !important;
    border: 1px solid #7c5a34;
    color: #ffe8c9;
}

/* --- BUTTON (FIXED) --- */
#oracle-submit {
    margin-top: 12px;
    padding: 13px;
    width: 100%;

    /* Solid background restored */
    background: rgba(124, 68, 31, 0.95) !important;

    border: none;
    border-radius: 6px;

    color: #ffe8c9;
    font-size: 1.05rem;
    cursor: pointer;

    box-shadow: 0 0 8px rgba(255,120,50,0.5);
    transition: background 0.2s ease;
}

#oracle-submit:hover {
    background: rgba(184, 95, 37, 0.98) !important;
}

/* --- EASTER EGG --- */
#oracle-egg {
    position: fixed;
    bottom: 140px;
    right: 25px;
    width: 48px;
    cursor: pointer;
    opacity: 0.9;
    z-index: 1999;
    animation: eggGlow 3s infinite;
}

@keyframes eggGlow {
  0%   { filter: drop-shadow(0 0 6px #ffae5a); }
  50%  { filter: drop-shadow(0 0 16px #ffcf9d); }
  100% { filter: drop-shadow(0 0 6px #ffae5a); }
}
