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

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #2c1810 0%, #8b4513 50%, #d2691e 100%);
    min-height: 100vh;
    color: #f4f1de;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

header h1 {
    font-size: 3rem;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.consultation-area {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.question-section {
    text-align: center;
    margin-bottom: 30px;
}

.question-section h2 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

#question {
    width: 100%;
    max-width: 600px;
    height: 100px;
    padding: 15px;
    font-size: 1.1rem;
    border: 3px solid #8b4513;
    border-radius: 10px;
    background: rgba(244, 241, 222, 0.1);
    color: #f4f1de;
    resize: vertical;
}

#question::placeholder {
    color: rgba(244, 241, 222, 0.6);
}

button {
    background: linear-gradient(45deg, #8b4513, #d2691e);
    color: #f4f1de;
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    font-family: inherit;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #a0522d, #f4a460);
}

.process-section {
    margin-bottom: 30px;
}

.current-line-info {
    text-align: center;
    margin-bottom: 20px;
    background: rgba(255, 215, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
}

.current-line-info h3 {
    color: #ffd700;
    font-size: 1.5rem;
}

/* @tweakable casting illustration container and sizing */
.casting-illustration {
    grid-column: span 2;
    text-align: center;
    margin-bottom: 20px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 12px;
    padding: 15px;
    border: 2px dashed #8b4513;
}

/* @tweakable process image appearance and animations */
.process-image {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    /* @tweakable image fade-in animation timing */
    animation: fadeInImage 1s ease-in-out;
}

@keyframes fadeInImage {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* @tweakable hexagram symbol image styling */
.hexagram-illustration {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* @tweakable historical hexagram image styling and presentation */
.interpretation-hexagram-img {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    border: 4px solid #ffd700;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    /* @tweakable historical image filter effects for authenticity */
    filter: sepia(10%) contrast(110%) brightness(95%);
    /* @tweakable animation effects for historical hexagram images */
    animation: interpretationGlow 4s ease-in-out infinite;
    /* @tweakable historical image background and framing */
    background: linear-gradient(145deg, #f4f1de, #e8e2c8);
    padding: 3px;
}

@keyframes interpretationGlow {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
        transform: rotate(0deg);
    }
    25% { 
        box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
        transform: rotate(1deg);
    }
    75% { 
        box-shadow: 0 12px 35px rgba(255, 215, 0, 0.8);
        transform: rotate(-1deg);
    }
}

/* @tweakable trigram image styling and positioning */
.trigram-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin: 10px 0;
    border: 2px solid #8b4513;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    /* @tweakable trigram image hover and animation effects */
    transition: all 0.3s ease;
    animation: trigramPulse 2s ease-in-out infinite;
}

@keyframes trigramPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

.trigram-image:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4);
}

.stalks-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stalk-pile {
    background: rgba(139, 69, 19, 0.3);
    border: 2px solid #8b4513;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    min-height: 150px;
}

.stalk-pile h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.stalks {
    min-height: 80px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    margin-bottom: 10px;
}

.stalk {
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, #deb887, #8b7355);
    border-radius: 2px;
    /* @tweakable stalk appearance and size */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* @tweakable stalk animation effects during casting */
.stalk.animating {
    animation: stalkMovement 0.8s ease-in-out;
}

@keyframes stalkMovement {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    50% { transform: translateY(-5px) rotate(-3deg); }
    75% { transform: translateY(-8px) rotate(2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.count {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
    display: block;
    margin-top: 10px;
}

.step-info {
    background: rgba(255, 215, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.step-info h4 {
    color: #ffd700;
    margin-bottom: 10px;
}

.sub-step-info {
    margin-top: 10px;
    font-style: italic;
    opacity: 0.8;
}

.controls {
    text-align: center;
    margin-bottom: 20px;
}

.line-results {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
}

.line-results h4 {
    color: #ffd700;
    margin-bottom: 10px;
}

.substep-results {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.substep-results span {
    background: rgba(139, 69, 19, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #8b4513;
}

.hexagram-section {
    margin-bottom: 30px;
}

.hexagram-section h3 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.hexagram-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hexagram {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    border: 3px solid #8b4513;
}

.line {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px 0;
}

.line-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffd700;
    width: 20px;
    text-align: center;
}

.line-symbol {
    width: 120px;
    height: 12px;
    background: #666;
    border-radius: 6px;
    position: relative;
    /* @tweakable hexagram line appearance */
    border: 2px solid #444;
}

.line-symbol.yang {
    background: linear-gradient(to right, #ffd700, #ffed4e);
    border-color: #b8860b;
}

.line-symbol.yin {
    background: linear-gradient(to right, #4a5568, #718096);
    border-color: #2d3748;
}

.line-symbol.yin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 6px;
}

/* @tweakable line symbol animation enhancements */
.line-symbol.newly-formed {
    animation: lineFormation 1.5s ease-in-out;
}

@keyframes lineFormation {
    0% { 
        opacity: 0; 
        transform: scaleX(0); 
        background: transparent;
    }
    50% { 
        opacity: 0.7; 
        transform: scaleX(0.5);
    }
    100% { 
        opacity: 1; 
        transform: scaleX(1);
    }
}

/* @tweakable enhanced changing line animation */
.line-symbol.changing {
    animation: changingLineEnhanced 2s infinite;
}

@keyframes changingLineEnhanced {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        filter: brightness(1);
    }
    25% { 
        opacity: 0.6; 
        transform: scale(1.05);
        filter: brightness(1.2);
    }
    75% { 
        opacity: 0.8; 
        transform: scale(0.95);
        filter: brightness(0.8);
    }
}

@keyframes changingLine {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.trigram-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.upper-trigram, .lower-trigram {
    background: rgba(139, 69, 19, 0.2);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #8b4513;
}

.upper-trigram h4, .lower-trigram h4 {
    color: #ffd700;
    margin-bottom: 10px;
}

.interpretation-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.interpretation-section h2 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.hexagram-info {
    text-align: center;
    margin-bottom: 30px;
}

.hexagram-info h3 {
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 10px;
}

.hexagram-number {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.hexagram-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.changing-lines {
    background: rgba(255, 215, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.changing-lines h4 {
    color: #ffd700;
    margin-bottom: 15px;
}

.transformed-hexagram {
    margin: 20px 0;
}

.transformed-hexagram .line {
    opacity: 0.9;
}

.transformed-hexagram .line-symbol {
    /* @tweakable transformed hexagram visual styling */
    border: 2px dashed #8b4513;
    background: linear-gradient(45deg, transparent 25%, rgba(255, 215, 0, 0.1) 25%, rgba(255, 215, 0, 0.1) 50%, transparent 50%);
}

.consultation-guidance {
    background: rgba(139, 69, 19, 0.2);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #8b4513;
}

.consultation-guidance h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.wilhelm-link {
    display: inline-block;
    margin-top: 20px;
    color: #87ceeb;
    text-decoration: none;
    padding: 10px 15px;
    background: rgba(135, 206, 235, 0.1);
    border-radius: 8px;
    border: 1px solid #87ceeb;
    transition: all 0.3s ease;
}

.wilhelm-link:hover {
    background: rgba(135, 206, 235, 0.2);
    transform: translateY(-2px);
}

#new-consultation {
    display: block;
    margin: 30px auto 0;
    font-size: 1.2rem;
    padding: 15px 30px;
}

.completion-mode {
    margin: 20px 0;
    background: rgba(255, 215, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #8b4513;
}

.completion-mode h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
}

.mode-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(139, 69, 19, 0.2);
    padding: 15px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.mode-option:hover {
    border-color: #8b4513;
    background: rgba(139, 69, 19, 0.3);
}

.mode-option input[type="radio"] {
    margin-bottom: 8px;
    transform: scale(1.2);
}

.mode-option input[type="radio"]:checked + span {
    color: #ffd700;
    font-weight: bold;
}

.mode-option span {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.mode-option small {
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
    line-height: 1.3;
}

.changing-line-detail {
    background: rgba(139, 69, 19, 0.2);
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffd700;
}

.changing-line-detail h5 {
    color: #ffd700;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.changing-line-detail p {
    line-height: 1.5;
    margin: 0;
}

/* @tweakable yarrow stalks section styling and positioning at bottom of page */
.yarrow-stalks-section {
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 20px;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 15px;
    border-left: 4px solid #8b4513;
}

/* @tweakable yarrow stalks content layout and typography */
.yarrow-content {
    color: #f4f1de;
    line-height: 1.6;
    text-align: left;
}

.yarrow-content h3 {
    color: #d4af37;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* @tweakable yarrow document container styling distinct from historical documents */
.yarrow-document {
    background: rgba(139, 69, 19, 0.08);
    margin: 25px 0;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #8b4513;
    font-family: 'Times New Roman', serif;
    position: relative;
}

/* @tweakable yarrow document text formatting and readability */
.yarrow-document p {
    line-height: 1.7;
    margin-bottom: 12px;
    text-align: justify;
    color: #f0e6d2;
}

.yarrow-document p:last-child {
    margin-bottom: 0;
    font-style: italic;
    opacity: 0.95;
}

/* @tweakable yarrow image container background and border styling */
.yarrow-image-container {
    background: rgba(139, 69, 19, 0.05);
    padding: 15px;
    border-radius: 12px;
    border: 1px dashed rgba(139, 69, 19, 0.3);
    margin: 20px 0;
}

/* @tweakable yarrow image hover effects for enhanced viewing */
.yarrow-image-container img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
    filter: sepia(5%) contrast(110%) brightness(100%);
}

/* @tweakable instructions section positioning and appearance */
.instructions-section {
    margin-bottom: 25px;
    background: rgba(139, 69, 19, 0.15);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #8b4513;
}

/* @tweakable instructions toggle button styling */
.instructions-toggle {
    background: linear-gradient(45deg, #6b4423, #8b6914);
    color: #f4f1de;
    border: 2px solid #8b4513;
    padding: 15px 25px;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* @tweakable toggle button hover effects */
    backdrop-filter: blur(5px);
}

.instructions-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(45deg, #7a4d28, #a0761a);
    border-color: #a0522d;
}

/* @tweakable dropdown arrow animation */
.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.instructions-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* @tweakable history dropdown container styling separate from instructions */
.history-dropdown-container {
    margin-bottom: 15px;
    background: rgba(139, 69, 19, 0.1);
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid #8b4513;
}

/* @tweakable history toggle button with distinct styling from instructions */
.history-toggle {
    background: linear-gradient(45deg, #4a5d23, #6b8014);
    color: #f4f1de;
    border: 2px solid #6b8014;
    padding: 15px 25px;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

/* @tweakable history toggle hover effects with earthy green theme */
.history-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(45deg, #5a6d2a, #7a9018);
    border-color: #7a9018;
}

/* @tweakable history dropdown arrow animation matching instructions */
.history-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* @tweakable history dropdown container with distinct coloring */
.history-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: rgba(106, 90, 20, 0.15);
    border-radius: 15px;
    margin: 0 auto;
    max-width: 1000px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 69, 19, 0.3);
}

/* @tweakable history dropdown expanded state */
.history-dropdown.expanded {
    max-height: 2500px;
}

/* @tweakable history content layout with golden theme */
.history-content {
    padding: 30px;
    color: #f4f1de;
    line-height: 1.6;
    text-align: left;
}

.history-content h3 {
    color: #d4af37;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* @tweakable historical document sections with imperial styling */
.historical-document {
    background: rgba(212, 175, 55, 0.08);
    margin: 25px 0;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #d4af37;
    font-family: 'Times New Roman', serif;
    position: relative;
}

/* @tweakable historical document headers with distinct styling */
.historical-document h4 {
    color: #d4af37;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* @tweakable historical document text formatting */
.historical-document p {
    line-height: 1.7;
    margin-bottom: 12px;
    text-align: justify;
    color: #f0e6d2;
}

.historical-document p:last-child {
    margin-bottom: 0;
    font-style: italic;
    opacity: 0.95;
}

/* @tweakable historical image container for both documents */
.historical-image-container {
    background: rgba(212, 175, 55, 0.05);
    padding: 15px;
    border-radius: 12px;
    border: 1px dashed rgba(212, 175, 55, 0.3);
    margin: 20px 0;
}

/* @tweakable historical image hover effects for enhanced viewing */
.historical-image-container img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    filter: sepia(5%) contrast(110%) brightness(100%);
}

/* @tweakable historical continuity message styling */
.historical-continuity {
    background: rgba(212, 175, 55, 0.1);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    margin-top: 25px;
    text-align: center;
}

.historical-continuity p {
    color: #f0e6d2;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.historical-continuity strong {
    color: #d4af37;
    font-size: 1.1rem;
}

/* @tweakable Ming Dynasty document specific styling within historical documents */
.historical-document:last-of-type {
    /* @tweakable final historical document styling to distinguish the Ming Dynasty entry */
    border-left-color: #cd853f; /* Slightly different gold tone for Ming Dynasty */
    background: rgba(205, 133, 63, 0.08); /* Warmer background for Ming Dynasty */
}

/* @tweakable Ming Dynasty woodblock aesthetic enhancements */
.historical-document:last-of-type img {
    /* @tweakable Ming Dynasty image filter effects for woodblock printing authenticity */
    filter: sepia(12%) contrast(108%) brightness(96%) saturate(110%);
}

/* @tweakable Ming Dynasty image hover effects for enhanced viewing */
.historical-document:last-of-type img:hover {
    filter: sepia(8%) contrast(112%) brightness(98%) saturate(115%);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(205, 133, 63, 0.4);
}

/* @tweakable instructions dropdown container styling for expand/collapse functionality */
.instructions-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: rgba(139, 69, 19, 0.15);
    border-radius: 15px;
    margin: 0 auto;
    max-width: 1000px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 69, 19, 0.3);
}

/* @tweakable instructions dropdown expanded state for full content visibility */
.instructions-dropdown.expanded {
    max-height: 3000px;
}

/* @tweakable instructions content layout and spacing */
.instructions-content {
    padding: 30px;
    color: #f4f1de;
    line-height: 1.6;
    text-align: left;
}

.instructions-content h3 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* @tweakable instruction section formatting and typography */
.instruction-section {
    background: rgba(139, 69, 19, 0.1);
    margin: 20px 0;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #8b4513;
}

.instruction-section h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.instruction-section p {
    line-height: 1.6;
    margin-bottom: 12px;
    color: #f0e6d2;
}

.instruction-section ol, .instruction-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.instruction-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* @tweakable attribution link styling and appearance */
.attribution-link {
    font-size: 0.8rem;
    margin-top: 10px;
    opacity: 0.8;
}

/* @tweakable attribution link text and hover effects */
.attribution-link a {
    color: #d2b48c;
    text-decoration: none;
    font-style: italic;
    transition: all 0.3s ease;
    /* @tweakable attribution link hover color and effects */
    border-bottom: 1px solid transparent;
}

.attribution-link a:hover {
    color: #ffd700;
    opacity: 1;
    border-bottom-color: #ffd700;
    /* @tweakable attribution link hover animation */
    transform: translateY(-1px);
}

/* @tweakable answer visualization image section styling and presentation */
.answer-image-section {
    background: rgba(255, 215, 0, 0.1);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #ffd700;
    margin: 25px 0;
    text-align: center;
}

/* @tweakable answer image section header styling */
.answer-image-section h4 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* @tweakable answer image container layout and spacing */
.answer-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* @tweakable answer visualization image styling and effects */
.answer-visualization-img {
    max-width: 100%;
    width: 500px;
    height: auto;
    max-height: 350px;
    border-radius: 15px;
    border: 4px solid #ffd700;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    /* @tweakable answer image filter effects for mystical appearance */
    filter: contrast(108%) brightness(102%) saturate(110%);
    /* @tweakable answer image animation effects */
    transition: all 0.5s ease;
}

/* @tweakable answer image hover effects for enhanced viewing */
.answer-visualization-img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
    filter: contrast(112%) brightness(105%) saturate(115%);
}

/* @tweakable answer image caption styling and typography */
.answer-image-caption {
    color: #f0e6d2;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 500px;
    margin: 0;
    opacity: 0.9;
}

/* @tweakable mobile responsiveness for answer visualization */
@media (max-width: 768px) {
    .answer-visualization-img {
        width: 100%;
        max-width: 350px;
        max-height: 250px;
    }
    
    .answer-image-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .answer-image-section h4 {
        font-size: 1.2rem;
    }
    
    .answer-image-caption {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .song-dynasty-image-container {
        padding: 10px;
        margin: 15px 0;
    }
    
    .song-dynasty-image-container img {
        max-height: 200px;
    }
    
    .song-dynasty-image-container p {
        font-size: 0.8rem;
    }
    
    /* @tweakable mobile adjustments for instructions dropdown content */
    .instructions-dropdown.expanded {
        max-height: 2500px;
    }
}