/* Oracle of Delphi — Styles */

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Full-page background */
html,
body {
    height: 100%;
    overflow: hidden;
    font-family: 'Cinzel', serif;
}

body {
    background: url('assets/background.png') center center / cover no-repeat fixed;
    background-color: #0a0806;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
}

/* Header */
.oracle-header {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    color: #c9a227;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(201, 162, 39, 0.3);
    margin-bottom: 20px;
    text-align: center;
}

/* Parchment Card */
.parchment {
    position: relative;
    width: 90%;
    max-width: 420px;
    margin-left: 25%;
    margin-top: auto;
    margin-bottom: auto;
    padding: 40px 35px 35px;
    background: linear-gradient(135deg, #f5e6c8 0%, #e8d4a8 50%, #dcc89a 100%);
    border: 3px solid #8b7355;
    border-radius: 4px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 0 30px rgba(139, 115, 85, 0.15);
    text-align: center;
}

/* Corner decorations */
.parchment::before,
.parchment::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #6b5a42;
    opacity: 0.6;
}

.parchment::before {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
}

.parchment::after {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
}

/* Invocation text */
.invocation {
    font-size: 1rem;
    font-style: italic;
    font-weight: 400;
    color: #6b5a42;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

/* User's question */
.question {
    font-size: 1.35rem;
    font-weight: 600;
    color: #2e1f0f;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
    min-height: 1.5em;
}

/* Decorative divider dot */
.divider {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #8b7355;
    border-radius: 50%;
    margin-bottom: 16px;
}

/* Oracle response */
.response {
    font-size: 1rem;
    font-weight: 400;
    color: #3d2914;
    line-height: 1.65;
    margin-bottom: 24px;
    min-height: 80px;
    text-align: center;
}

.response p {
    margin: 0;
}

.response.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Contemplating state */
.contemplating .response {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.7;
    }
}

/* Input field */
.input-field {
    width: 100%;
    padding: 12px 14px;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: #3d2914;
    background: rgba(255, 252, 245, 0.5);
    border: 1px solid #a89880;
    border-radius: 3px;
    outline: none;
    margin-bottom: 18px;
    transition: border-color 0.2s, background 0.2s;
}

.input-field::placeholder {
    color: #7d6a52;
    font-style: italic;
}

.input-field:focus {
    border-color: #6b5330;
    background: rgba(255, 252, 245, 0.7);
}

.input-field:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Submit button */
.submit-btn {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 500;
    color: #f5e6c8;
    background: linear-gradient(to bottom, #6b5330 0%, #4a3820 100%);
    border: 2px solid #3d2914;
    border-radius: 3px;
    padding: 12px 28px;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: opacity 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.submit-btn em {
    font-style: italic;
}

.submit-btn:hover {
    opacity: 0.9;
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .parchment {
        margin-left: 20%;
    }

    .oracle-header {
        font-size: 3rem;
    }
}

@media (max-width: 900px) {
    .parchment {
        margin-left: 10%;
    }

    .oracle-header {
        font-size: 2.5rem;
        letter-spacing: 0.25em;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 20px;
    }

    .oracle-header {
        font-size: 2rem;
        letter-spacing: 0.2em;
        margin-bottom: 15px;
    }

    .parchment {
        margin-left: 0;
        max-width: 380px;
        padding: 32px 28px 28px;
    }

    .invocation {
        font-size: 0.9rem;
    }

    .question {
        font-size: 1.2rem;
    }

    .response {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .oracle-header {
        font-size: 1.5rem;
        letter-spacing: 0.15em;
    }

    .parchment {
        width: 95%;
        padding: 28px 20px 24px;
    }
}