/* style.css - Enhanced Modern Chess Design */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(135deg, #1abc9c 0%, #2ecc71 100%);
    --warning-gradient: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    transition: all 0.3s ease;
}

body.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid var(--border-color, #e0e0e0);
    transition: all 0.3s ease;
}

[data-theme="dark"] .container {
    background: #1a1a2e;
    border-color: #2d3748;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

header {
    background: var(--primary-gradient);
    color: white;
    padding: 25px 30px;
    text-align: center;
    border-bottom: 5px solid #1abc9c;
    position: relative;
    overflow: hidden;
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.stats-bar {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
    padding: 10px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1abc9c;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    padding: 30px;
    min-height: 700px;
}

@media (max-width: 1200px) {
    .game-container {
        grid-template-columns: 1fr;
    }
}

.chessboard-container {
    background: var(--card-bg, #f8f9fa);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color, #e0e0e0);
}

#board {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.captured-pieces {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    padding: 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.captured-white,
.captured-black {
    flex: 1;
    padding: 10px;
}

.captured-pieces h4 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.captured-pieces h4 i {
    color: var(--primary-color, #667eea);
}

#captured-white,
#captured-black {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 30px;
}

.captured-piece {
    width: 25px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.controls {
    background: var(--card-bg, white);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color, #e0e0e0);
}

.controls h3 {
    color: var(--primary-color, #2c3e50);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color, #3498db);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.controls h3 i {
    font-size: 1.1rem;
}

.game-info {
    background: var(--bg-color, #f8f9fa);
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color, #3498db);
    border: 1px solid var(--border-color, #e0e0e0);
}

#status {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color, #2c3e50);
    padding: 15px;
    background: var(--card-bg, white);
    border-radius: 10px;
    text-align: center;
    margin-bottom: 10px;
    border: 2px solid var(--border-color, #e0e0e0);
    transition: all 0.3s ease;
}

#status.check {
    border-color: #f39c12;
    color: #f39c12;
    animation: pulse 2s infinite;
}

#status.checkmate {
    border-color: #e74c3c;
    color: #e74c3c;
    background: linear-gradient(45deg, rgba(231, 76, 60, 0.1), transparent);
}

#ai-status {
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), transparent);
    border: 2px solid #667eea;
    color: #667eea;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.button-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(-1px);
}

button.active {
    background: var(--accent-gradient);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

button i {
    font-size: 1.1rem;
}

.difficulty {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.diff-btn {
    font-size: 0.9rem;
    padding: 12px 8px;
    flex-direction: column;
    gap: 5px;
}

.diff-btn i {
    font-size: 1.2rem;
}

.help-text {
    color: var(--text-color, #7f8c8d);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

.help-text i {
    margin-right: 5px;
    color: var(--primary-color, #667eea);
}

.move-history {
    background: var(--bg-color, #f8f9fa);
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid var(--accent-color, #9b59b6);
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border-color, #e0e0e0);
}

#move-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

#move-list div {
    background: var(--card-bg, white);
    padding: 10px 15px;
    border-radius: 8px;
    margin: 2px;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--border-color, #eee);
    cursor: pointer;
}

#move-list div:hover {
    background: var(--primary-color, #3498db);
    color: white;
    transform: translateX(3px);
    border-color: var(--primary-color, #3498db);
}

.hidden {
    display: none !important;
}

/* Click-to-move styling */
.selected {
    background-color: rgba(46, 204, 113, 0.7) !important;
    backdrop-filter: blur(5px);
    box-shadow: inset 0 0 20px rgba(46, 204, 113, 0.3);
}

.valid-move {
    position: relative;
}

.valid-move::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: rgba(52, 152, 219, 0.8);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.8);
    pointer-events: none;
    animation: pulse-dot 1.5s infinite;
}

.valid-capture {
    position: relative;
}

.valid-capture::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid rgba(231, 76, 60, 0.8);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.6);
    pointer-events: none;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

/* Game over message */
#game-over {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

#game-over h3 {
    color: white;
    border-bottom: none;
    margin-bottom: 10px;
}

/* Error message */
.error-message {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
    animation: shake 0.5s;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Piece dragging styling */
.piece-417db {
    transition: transform 0.15s;
    cursor: grab;
    z-index: 20 !important;
}

.piece-417db:hover {
    transform: scale(1.1);
}

.piece-417db:active {
    cursor: grabbing;
}

/* Move history entries */
.move-entry {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 2px 0;
    background: var(--card-bg, white);
    border-radius: 8px;
    border: 1px solid var(--border-color, #eee);
    transition: all 0.2s;
}

.move-entry:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.move-number {
    font-weight: bold;
    margin-right: 10px;
    color: var(--primary-color, #2c3e50);
    min-width: 30px;
}

.move {
    padding: 4px 10px;
    margin: 0 5px;
    border-radius: 5px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: bold;
}

.white-move {
    background: rgba(52, 152, 219, 0.1);
    color: var(--text-color, #2c3e50);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.black-move {
    background: rgba(44, 62, 80, 0.1);
    color: var(--text-color, #2c3e50);
    border: 1px solid rgba(44, 62, 80, 0.3);
}

/* Button states */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Square hover effects */
.square-55d63 {
    cursor: pointer !important;
    transition: background-color 0.2s;
}

.square-55d63:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

/* Dark theme specific adjustments */
[data-theme="dark"] .square-55d63:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        border-radius: 10px;
    }
    
    header {
        padding: 15px 20px;
    }
    
    header h1 {
        font-size: 1.8rem;
        margin-top: 10px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .game-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
        min-height: auto;
    }
    
    .chessboard-container {
        width: 100%;
        height: auto;
        min-height: 70vh;
        padding: 10px;
        margin: 0;
        max-width: 100%;
        display: block;
    }
    
    #board {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
    
    .board-b72b1 {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .controls {
        padding: 20px;
        gap: 20px;
        width: 100%;
    }
    
    .button-group {
        grid-template-columns: 1fr;
    }
    
    .difficulty {
        grid-template-columns: repeat(2, 1fr);
    }
    
    button {
        padding: 16px 12px;
        font-size: 1rem;
    }
    
    .move-history {
        max-height: 200px;
    }
    
    .valid-move::after {
        width: 24px;
        height: 24px;
    }
    
    .valid-capture::after {
        width: 50px;
        height: 50px;
    }
    
    #status {
        font-size: 1.1rem;
        padding: 12px;
    }
    
    .controls h3 {
        font-size: 1.2rem;
    }
    
    .stats-bar {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 0 0 50%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .chessboard-container {
        min-height: 65vh;
        padding: 5px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .controls h3 {
        font-size: 1.1rem;
    }
    
    button {
        padding: 14px 10px;
        font-size: 0.95rem;
    }
    
    body {
        padding: 5px;
    }
    
    .container {
        border-radius: 8px;
    }
    
    .valid-move::after {
        width: 20px;
        height: 20px;
    }
    
    .valid-capture::after {
        width: 45px;
        height: 45px;
    }
    
    .stats-bar {
        display: none; /* Hide stats on very small screens */
    }
}

/* For landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .game-container {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .chessboard-container {
        min-height: 75vh;
    }
    
    .controls {
        max-height: 75vh;
        overflow-y: auto;
        padding: 15px;
    }
    
    .button-group {
        grid-template-columns: 1fr;
    }
    
    button {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
    
    .move-history {
        max-height: 120px;
    }
    
    .valid-move::after {
        width: 18px;
        height: 18px;
    }
    
    .valid-capture::after {
        width: 40px;
        height: 40px;
    }
}

/* Touch improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .piece-417db {
        touch-action: manipulation;
    }
    
    .square-55d63 {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Prevent zoom on double-tap */
* {
    touch-action: manipulation;
}

/* Ensure chessboard.js can work properly */
.board-b72b1 {
    display: block;
    position: relative;
}

/* Remove any conflicting styles */
.board-b72b1,
#board {
    overflow: visible !important;
}

/* Make sure chessboard container is visible */
.chessboard-63f37 {
    display: block;
    width: 100%;
}

/* Promotion Modal enhancements */
.promotion-hint {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Side info box */
.side-info-box {
    background: var(--bg-color, #f8f9fa);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color, #e0e0e0);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.side-info-box i {
    color: var(--primary-color, #667eea);
    font-size: 1.2rem;
}

/* Loading spinner for AI */
.ai-thinking::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Promotion Modal - FIXED for proper popup overlay */
.promotion-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Very high z-index to ensure it's on top */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.promotion-modal.hidden {
    display: none !important;
}

.promotion-content {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 25px 75px rgba(0, 0, 0, 0.8);
    max-width: 500px;
    width: 90%;
    border: 4px solid #1abc9c;
    position: relative;
    z-index: 10000;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.promotion-title {
    color: white;
    margin-bottom: 25px;
    font-size: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.promotion-title i {
    color: #1abc9c;
    font-size: 1.8rem;
}

.promotion-content > p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.promotion-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.promotion-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid #3498db;
    border-radius: 20px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: none;
    min-height: 180px;
}

.promotion-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3), rgba(26, 188, 156, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.promotion-btn:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: #1abc9c;
    box-shadow: 0 15px 35px rgba(26, 188, 156, 0.5);
}

.promotion-btn:hover::before {
    opacity: 1;
}

.promotion-btn:hover img {
    transform: scale(1.1);
}

.promotion-btn img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.promotion-btn div {
    font-weight: 700;
    color: white;
    font-size: 1.3rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.promotion-btn div i {
    font-size: 1.2rem;
    color: #1abc9c;
}

.promotion-hint {
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-style: italic;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Close button for promotion modal */
.promotion-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10001;
}

.promotion-close:hover {
    background: rgba(231, 76, 60, 0.8);
    transform: rotate(90deg);
}

/* Blur effect for background when modal is open */
body.promotion-open {
    overflow: hidden;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .promotion-content {
        padding: 25px 20px;
        max-width: 90%;
        margin: 20px;
    }
    
    .promotion-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .promotion-btn {
        padding: 20px 10px;
        min-height: 140px;
    }
    
    .promotion-btn img {
        width: 60px;
        height: 60px;
    }
    
    .promotion-title {
        font-size: 1.5rem;
    }
    
    .promotion-title i {
        font-size: 1.4rem;
    }
    
    .promotion-content > p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .promotion-btn div {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .promotion-content {
        padding: 20px 15px;
    }
    
    .promotion-options {
        gap: 10px;
    }
    
    .promotion-btn {
        padding: 15px 8px;
        min-height: 120px;
    }
    
    .promotion-btn img {
        width: 50px;
        height: 50px;
    }
    
    .promotion-title {
        font-size: 1.3rem;
    }
    
    .promotion-btn div {
        font-size: 1rem;
    }
}
/* Instructions Section */
.instructions {
    background: var(--card-bg, #f8f9fa);
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid #f39c12;
    margin-top: 15px;
    border: 1px solid var(--border-color, #e0e0e0);
}

.instructions h3 {
    color: #f39c12;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f39c12;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    background: var(--bg-color, white);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color, #f0f0f0);
}

.instruction-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #f39c12;
}

.instruction-icon {
    color: #f39c12;
    font-size: 1.2rem;
    margin-top: 2px;
    min-width: 24px;
    text-align: center;
}

.instruction-text {
    flex: 1;
    color: var(--text-color, #555);
    font-size: 0.9rem;
    line-height: 1.4;
}

.instruction-text strong {
    color: var(--text-color, #333);
    font-weight: 600;
}

/* Dark mode adjustments */
[data-theme="dark"] .instructions {
    background: rgba(44, 62, 80, 0.3);
    border-left-color: #f39c12;
}

[data-theme="dark"] .instruction-item {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .instruction-text {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .instruction-text strong {
    color: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .instructions {
        padding: 15px;
        margin-top: 10px;
    }
    
    .instructions h3 {
        font-size: 1.1rem;
    }
    
    .instruction-item {
        padding: 10px;
    }
    
    .instruction-text {
        font-size: 0.85rem;
    }
}
