/* Baba is You Game Styles */

/* Base styles */
body, html {
    margin: 0;
    padding: 0;
    background-color: #7d7d7d;
    font-family: 'Verdana', Arial, sans-serif;
    min-height: 100vh;
}

/* Override jsPsych default styles that might hide content */
.jspsych-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    max-width: none !important; /* Remove max-width restriction to allow full screen usage */
    width: 100% !important; /* Ensure full width */
}

.jspsych-display-element {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    max-width: none !important; /* Remove max-width restriction */
    width: 100% !important; /* Ensure full width */
}

.jspsych-content-wrapper {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    max-width: none !important; /* Remove max-width restriction */
    width: 100% !important; /* Ensure full width */
}

#jspsych-target {
    background-color: #7d7d7d;
    min-height: 100vh;
    width: 100% !important;
    max-width: none !important;
}

/* Force full width for all jsPsych containers when baba-game is active */
.baba-game-active #jspsych-target,
.baba-game-active .jspsych-display-element,
.baba-game-active .jspsych-content-wrapper,
.baba-game-active .jspsych-content {
    width: 100% !important;
    max-width: none !important;
}

/* disable scrolling only in game page */
.baba-game-active {
    height: 100vh !important;
    overflow: hidden !important;
}

.baba-game-active #jspsych-target {
    height: 100vh !important;
    overflow: hidden !important;
}

/* Game container */
.baba-game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    max-height: 100vh;
    width: 100% !important; /* Ensure full width */
    max-width: none !important; /* Remove any max-width restriction */
    background: linear-gradient(135deg, #7d7d7d 0%, #6a6a6a 100%);
    font-family: 'Verdana', Arial, sans-serif;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
    /* Ensure container doesn't exceed viewport */
    min-height: 0;
}

/* Game main area - contains grid and achievement panel */
.game-main-area {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: none; /* Remove max-width restriction to allow full screen usage */
    flex: 1;
    overflow: hidden;
}

/* Game grid */
.game-grid {
    display: grid;
    gap: 0px; /* remove all gaps */
    background-color: #7d7d7d; /* same as background color */
    border-radius: 0px;
    padding: 0px;
    margin: 10px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 200px); /* increase reserved space for UI elements */
    transform: translateZ(0);
    will-change: transform;
    min-height: 200px;
    /* Ensure grid doesn't overflow */
    overflow: hidden;
    flex-shrink: 1;
}

/* Grid cell */
.grid-cell {
    width: var(--cell-size, 60px);
    height: var(--cell-size, 60px);
    position: relative;
    margin: 0;
    padding: 0;
    min-width: 30px;
    min-height: 30px;
}

/* Game object */
.game-object {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    font-size: 12px !important;
    text-align: center !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    border-radius: 8px !important;
    transition: all 0.1s ease !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    z-index: 1 !important; /* default layer */
    transform: translateZ(0) !important;
    will-change: transform !important;
    /* Make sure it's visible */
    visibility: visible !important;
    opacity: 1 !important;
}

/* recently moved objects are displayed on top */
.game-object.recently-moved {
    z-index: 100 !important;
    position: relative !important;
    transition: all 0.1s ease-out;
    will-change: transform;
}

/* text objects are also displayed on top when pushed */
.text-object.recently-moved {
    z-index: 101 !important;
    position: relative !important;
}

/* YOU object is always on top */
.game-object.property-you {
    z-index: 20 !important;
}

/* Achievement Panel */
.achievement-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 16px;
    min-width: 280px;
    max-width: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #333;
    font-family: 'Verdana', Arial, sans-serif;
    flex-shrink: 0;
}

.achievement-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.achievement-header h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
}

.achievement-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.stat-label {
    font-size: 12px;
    font-weight: bold;
    color: #2c3e50;
}

.stat-row span:last-child {
    background: #3498db;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.achievement-list {
    max-height: 400px;
    overflow-y: auto;
}

.achievement-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.achievement-item:last-child {
    margin-bottom: 0;
}

.achievement-item:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.achievement-item .solution-name {
    font-weight: bold;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.4;
}

.achievement-item::before {
    content: "✓";
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    background: #27ae60;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Scrollbar styling for achievement list */
.achievement-list::-webkit-scrollbar {
    width: 6px;
}

.achievement-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.achievement-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.achievement-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* layer for YOU text object */
.text-object.property-you {
    z-index: 21 !important;
}

/* Image objects (non-text) */
.game-object.image-object {
    font-size: 0; /* Hide text for image objects */
    color: transparent;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
}

/* Text objects - basic style */
.text-object {
    /* remove border and unify size */
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* use flex to vertically and horizontally center */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* handle line breaks */
    white-space: normal;
    overflow: visible;
}

/* dynamic text object style (non-image text) */
.text-object:not(.text-image) {
    background-color: rgba(125, 125, 125, 0.8) !important; /* same as board background but slightly transparent */
    background-image: none !important; /* force no background image */
    color: #fff; /* default text color, will be overridden by script inline color */
    font-weight: bold;
    line-height: 1; /* set line height to 1, avoid double line text height */
    padding: 0 0 2px 0; /* bottom extra white space to avoid clipping */
    font-size: 24px; /* unified font size */
}

/* removed unnecessary pseudo elements */

/* single line text style (non-image text) */
.text-object.single-line:not(.text-image) {
    font-size: 24px;
    line-height: 1;
}

/* multi-line text style (non-image text) */
.text-object.multi-line:not(.text-image) {
    font-size: 24px; /* same as single line, will be automatically scaled later */
    line-height: 0.9; /* more compact line spacing to make overall height higher */
    padding-bottom: 0;
}

/* Object images - only applied to entity objects, not text objects */
.image-object.object-apple { background-image: url('../images/apple.png'); }
.image-object.object-anchor { background-image: url('../images/anchor.png'); }
.image-object.object-balloon { background-image: url('../images/balloon.png'); }
.image-object.object-banana { background-image: url('../images/banana.png'); }
.image-object.object-battery { background-image: url('../images/battery.png'); }
.image-object.object-bomb { background-image: url('../images/bomb.png'); }
.image-object.object-bone { background-image: url('../images/bone.png'); }
.image-object.object-bottle { background-image: url('../images/bottle.png'); }
.image-object.object-candle { background-image: url('../images/candle.png'); }
.image-object.object-carrot { background-image: url('../images/carrot.png'); }
.image-object.object-chain { background-image: url('../images/chain.png'); }
.image-object.object-chair { background-image: url('../images/chair.png'); }
.image-object.object-cherry { background-image: url('../images/cherry.png'); }
.image-object.object-cloud { background-image: url('../images/cloud.png'); }
.image-object.object-dice { background-image: url('../images/dice.png'); }
.image-object.object-door { background-image: url('../images/door.png'); }
.image-object.object-fan { background-image: url('../images/fan.png'); }
.image-object.object-flag { background-image: url('../images/flag.png'); }
.image-object.object-glasses { background-image: url('../images/glasses.png'); }
.image-object.object-glove { background-image: url('../images/glove.png'); }
.image-object.object-hat { background-image: url('../images/hat.png'); }
.image-object.object-heart { background-image: url('../images/heart.png'); }
.image-object.object-key { background-image: url('../images/key.png'); }
.image-object.object-kiwi { background-image: url('../images/kiwi.png'); }
.image-object.object-lemon { background-image: url('../images/lemon.png'); }
.image-object.object-mirror { background-image: url('../images/mirror.png'); }
.image-object.object-pear { background-image: url('../images/pear.png'); }
.image-object.object-pepper { background-image: url('../images/pepper.png'); }
.image-object.object-pineapple { background-image: url('../images/pineapple.png'); }
.image-object.object-pipe { background-image: url('../images/pipe.png'); }
.image-object.object-pool { background-image: url('../images/pool.png'); }
.image-object.object-potato { background-image: url('../images/potato.png'); }
.image-object.object-pumpkin { background-image: url('../images/pumpkin.png'); }
.image-object.object-rose { background-image: url('../images/rose.png'); }
.image-object.object-scales { background-image: url('../images/scales.png'); }
.image-object.object-scissors { background-image: url('../images/scissors.png'); }
.image-object.object-sun { background-image: url('../images/sun.png'); }
.image-object.object-tap { background-image: url('../images/tap.png'); }
.image-object.object-telephone { background-image: url('../images/telephone.png'); }
.image-object.object-tomato { background-image: url('../images/tomato.png'); }
.image-object.object-tree { background-image: url('../images/tree.png'); }
.image-object.object-umbrella { background-image: url('../images/umbrella.png'); }

/* red property effect - use pre-generated red images */
.property-red.image-object.object-apple { background-image: url('../images_red/apple.png') !important; }
.property-red.image-object.object-anchor { background-image: url('../images_red/anchor.png') !important; }
.property-red.image-object.object-balloon { background-image: url('../images_red/balloon.png') !important; }
.property-red.image-object.object-banana { background-image: url('../images_red/banana.png') !important; }
.property-red.image-object.object-battery { background-image: url('../images_red/battery.png') !important; }
.property-red.image-object.object-bomb { background-image: url('../images_red/bomb.png') !important; }
.property-red.image-object.object-bone { background-image: url('../images_red/bone.png') !important; }
.property-red.image-object.object-bottle { background-image: url('../images_red/bottle.png') !important; }
.property-red.image-object.object-candle { background-image: url('../images_red/candle.png') !important; }
.property-red.image-object.object-carrot { background-image: url('../images_red/carrot.png') !important; }
.property-red.image-object.object-chain { background-image: url('../images_red/chain.png') !important; }
.property-red.image-object.object-chair { background-image: url('../images_red/chair.png') !important; }
.property-red.image-object.object-cherry { background-image: url('../images_red/cherry.png') !important; }
.property-red.image-object.object-cloud { background-image: url('../images_red/cloud.png') !important; }
.property-red.image-object.object-dice { background-image: url('../images_red/dice.png') !important; }
.property-red.image-object.object-door { background-image: url('../images_red/door.png') !important; }
.property-red.image-object.object-fan { background-image: url('../images_red/fan.png') !important; }
.property-red.image-object.object-flag { background-image: url('../images_red/flag.png') !important; }
.property-red.image-object.object-glasses { background-image: url('../images_red/glasses.png') !important; }
.property-red.image-object.object-glove { background-image: url('../images_red/glove.png') !important; }
.property-red.image-object.object-hat { background-image: url('../images_red/hat.png') !important; }
.property-red.image-object.object-heart { background-image: url('../images_red/heart.png') !important; }
.property-red.image-object.object-key { background-image: url('../images_red/key.png') !important; }
.property-red.image-object.object-kiwi { background-image: url('../images_red/kiwi.png') !important; }
.property-red.image-object.object-lemon { background-image: url('../images_red/lemon.png') !important; }
.property-red.image-object.object-mirror { background-image: url('../images_red/mirror.png') !important; }
.property-red.image-object.object-pear { background-image: url('../images_red/pear.png') !important; }
.property-red.image-object.object-pepper { background-image: url('../images_red/pepper.png') !important; }
.property-red.image-object.object-pineapple { background-image: url('../images_red/pineapple.png') !important; }
.property-red.image-object.object-pipe { background-image: url('../images_red/pipe.png') !important; }
.property-red.image-object.object-pool { background-image: url('../images_red/pool.png') !important; }
.property-red.image-object.object-potato { background-image: url('../images_red/potato.png') !important; }
.property-red.image-object.object-pumpkin { background-image: url('../images_red/pumpkin.png') !important; }
.property-red.image-object.object-rose { background-image: url('../images_red/rose.png') !important; }
.property-red.image-object.object-scales { background-image: url('../images_red/scales.png') !important; }
.property-red.image-object.object-scissors { background-image: url('../images_red/scissors.png') !important; }
.property-red.image-object.object-sun { background-image: url('../images_red/sun.png') !important; }
.property-red.image-object.object-tap { background-image: url('../images_red/tap.png') !important; }
.property-red.image-object.object-telephone { background-image: url('../images_red/telephone.png') !important; }
.property-red.image-object.object-tomato { background-image: url('../images_red/tomato.png') !important; }
.property-red.image-object.object-tree { background-image: url('../images_red/tree.png') !important; }
.property-red.image-object.object-umbrella { background-image: url('../images_red/umbrella.png') !important; }

/* red property for text objects */
.property-red.text-object:not(.text-image) {
    background-color: rgb(255, 0, 0) !important;
    color: #fff !important;
    border: 2px solid #cc0000 !important;
}

.property-red.text-image {
    /* text image can also use red version, but here keep simple red background */
    background-color: rgba(255, 0, 0, 0.8) !important;
}

/* Game UI */
.game-ui {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100% !important;
    max-width: none !important; /* Remove max-width restriction to allow full screen usage */
    margin-bottom: 20px;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.game-info {
    text-align: left;
}

.game-controls {
    text-align: right;
}

.level-info {
    text-align: center;
    color: white;
    margin-bottom: 10px;
}

/* Buttons */
.baba-button {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin: 10px;
    transition: background-color 0.3s;
}

.baba-button:hover {
    background-color: #45a049;
}

.baba-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Chapter and level selection */
.selection-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    padding: 40px;
}

.selection-title {
    font-size: 48px;
    margin-bottom: 30px;
    color: white;
}

.selection-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    color: #ddd;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.selection-item {
    background-color: #666;
    border: 2px solid #888;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.selection-item:hover {
    background-color: #777;
    border-color: #aaa;
}

.selection-item.completed {
    background-color: #4caf50;
    border-color: #66bb6a;
}

.selection-item.locked {
    background-color: #444;
    border-color: #555;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Instructions */
.instructions-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    color: white;
    text-align: center;
}

.instructions-title {
    font-size: 48px;
    margin-bottom: 30px;
    color: white;
}

.instructions-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

.instructions-controls {
    margin: 30px 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

/* Rating scale */
.rating-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    padding: 40px;
}

.rating-scale {
    display: flex;
    gap: 10px;
    margin: 30px 0;
}

.rating-option {
    width: 50px;
    height: 50px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    font-size: 18px;
}

.rating-option:hover {
    border-color: #4caf50;
    background-color: rgba(76, 175, 80, 0.2);
}

.rating-option.selected {
    background-color: #4caf50;
    border-color: #4caf50;
    color: white;
}

/* Responsive design */
@media (max-width: 768px) {
    .grid-cell {
        width: 45px;
        height: 45px;
    }
    
    .game-object {
        font-size: 10px;
    }
    
    .selection-title {
        font-size: 36px;
    }
    
    .instructions-title {
        font-size: 36px;
    }
}

/* Prolific/iframe specific adjustments */
@media (max-height: 800px) {
    .baba-game-container {
        padding: 5px;
    }
    
    .game-grid {
        margin: 5px;
        max-height: calc(100vh - 180px);
    }
    
    .level-info h2 {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .game-ui {
        margin-bottom: 10px;
        font-size: 16px;
    }
    
    #game-status {
        margin-top: 10px;
        font-size: 16px;
    }
}

/* Game completion effects */
.level-complete {
    animation: celebrate 0.5s ease-in-out;
}

@keyframes celebrate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Pause overlay */
.pause-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.pause-message {
    background-color: #333;
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
}

/* text image style - ensure text image is displayed correctly */
.text-object.text-image {
    background-color: transparent !important;
    /* JavaScript will dynamically set background-image */
    background-size: 80% !important; /* shrink to 80%, match entity object image size */
    background-repeat: no-repeat !important;
    background-position: center !important;
    /* ensure no text content is displayed */
    color: transparent !important;
    font-size: 0 !important;
}

/* digit span test style */
.digit-span-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #7d7d7d;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Verdana', Arial, sans-serif;
}

.digit-span-container h1 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: bold;
}

.digit-span-container h2 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: bold;
}

.digit-span-container .instructions-content {
    color: white;
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}

.digit-span-container .instructions-content p {
    margin: 15px 0;
}

.digit-span-container .instructions-content strong {
    color: #FFE4B5;
}

#input-display {
    background: #333;
    border: 2px solid #666;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    width: 400px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

#input-display:empty::before {
    content: "Press number keys to input";
    color: #aaa;
    font-size: 16px;
}

.digit-span-container button.baba-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    margin: 10px;
    transition: background-color 0.3s;
    font-family: 'Verdana', Arial, sans-serif;
}

.digit-span-container button.baba-button:hover:not(:disabled) {
    background-color: #45a049;
}

.digit-span-container button.baba-button:disabled {
    background-color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.digit-span-container .test-info {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
}

.digit-span-container .test-progress {
    color: #ccc;
    font-size: 14px;
    margin-top: 20px;
    text-align: center;
}

.digit-span-container .speaker-icon {
    width: 100px;
    height: 100px;
    margin: 20px auto;
    display: block;
}

/* responsive design */
@media (max-width: 768px) {
    .digit-span-container h1 {
        font-size: 24px;
    }
    
    .digit-span-container h2 {
        font-size: 20px;
    }
    
    .digit-span-container .instructions-content {
        font-size: 16px;
        padding: 0 15px;
    }
    
    #input-display {
        width: 300px;
        font-size: 20px;
        padding: 15px;
    }
    
    .digit-span-container button.baba-button {
        padding: 12px 24px;
        font-size: 16px;
    }
}

/* performance optimization related styles */

/* reduce repaint */
.game-container {
    contain: layout style paint;
}

/* loading state style */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: white;
    font-size: 24px;
    background-color: #2c2c2c;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cognitive Tasks Styles */

/* Container styles for cognitive tasks */
.digit-span-container,
.dsst-container{
    box-sizing:border-box;
    width:100%;
    max-width:none;
    padding:40px 20px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-height:100vh;
    background-color:#7d7d7d;
    font-family:'Verdana', Arial, sans-serif;
} 

 

/* DSST RSVP style */
.dsst-rsvp-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
    min-height: 120px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.dsst-symbol-item {
    text-align: center;
    width: 80px;
    transition: all 0.3s ease;
    position: relative;
}

.dsst-symbol-item:hover {
    transform: scale(1.05);
}

.dsst-symbol-image {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 2px solid #fff;
    box-sizing: border-box;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dsst-symbol-image:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.dsst-answer-display {
    font-size: 24px;
    font-weight: bold;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    padding: 5px;
    transition: all 0.3s ease;
}

.dsst-answer-correct {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4CAF50;
}

.dsst-answer-incorrect {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid #f44336;
}

.dsst-answer-pending {
    color: #666;
    border: 2px solid transparent;
}

/* DSST animation effects */
@keyframes symbolSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes symbolSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

.dsst-symbol-item.new {
    animation: symbolSlideIn 0.3s ease-out;
}

.dsst-symbol-item.removing {
    animation: symbolSlideOut 0.3s ease-in;
}

/* highlight current symbol to answer */
.dsst-symbol-item.current {
    border: 2px solid #FFD700;
    border-radius: 8px;
    padding: 5px;
    background: rgba(255, 215, 0, 0.1);
}

.dsst-symbol-item.current .dsst-symbol-image {
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Practice container styles */
.dsst-practice-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.dsst-practice-container .dsst-symbol-item {
    flex: 0 0 auto;
    margin: 0;
    animation: none;
}

.dsst-practice-container .dsst-symbol-item.current {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}