
/* Shared styles across all pages */
body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* Level selection styles */
.level-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), 
                      linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    background-origin: border-box;
    background-clip: content-box, border-box;
    cursor: pointer;
}

.level-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Blockly workspace styles */
#blocklyDiv {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Object and stage styles */
#stage-container {
    position: relative;
    overflow: hidden;
}

#stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.object {
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.7rem;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
    cursor: grab;
    border-radius: 50%;
}

.object:active {
    cursor: grabbing;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 10;
}

.speech-bubble {
    animation: fadeIn 0.3s;
    position: absolute;
    z-index: 1000;
    pointer-events: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px) translateX(-50%); }
    to { opacity: 1; transform: translateY(0) translateX(-50%); }
}

/* Blockly workspace customizations */
.blocklyMainBackground {
    stroke: none;
    fill: #f9f9f9;
}

.blocklyToolboxDiv {
    background-color: #fff;
    border-right: 1px solid #ddd;
}

.blocklyScrollbarHandle {
    fill: #ccc;
}

.blocklyFlyoutBackground {
    fill: #f9f9f9;
    fill-opacity: 1;
}

/* Responsive design */
@media (max-width: 768px) {
    .flex-row {
        flex-direction: column;
    }
    
    .w-64 {
        width: 100%;
    }
    
    .w-80 {
        width: 100%;
    }
}
