body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 30px;
}

.stack-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stack-container h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.unified-drop-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px auto;
    max-width: 300px;
}

.unified-drop-container h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.stack {
    width: 120px;
    min-height: 150px;
    height: 150px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    padding: 10px;
    background-color: #ecf0f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.drop-area {
    width: 120px;
    min-height: 150px;
    border: 2px dashed #7f8c8d;
    border-radius: 8px;
    padding: 10px;
    background-color: #f7f9fc;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.drop-area:hover {
    background-color: #edf2f7;
}

.balance-area {
    background-color: #f7f9fc;
    border: 2px dashed #7f8c8d;
}

.note {
    width: 100px;
    height: 50px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.note:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.red {
    background-color: #e74c3c;
    background-image: linear-gradient(135deg, #e74c3c, #c0392b);
}

.blue {
    background-color: #3498db;
    background-image: linear-gradient(135deg, #3498db, #2980b9);
}

/* Visual feedback for touch interactions */
.note.being-touched {
    opacity: 0.8;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Net Counter Styling */
.net-counter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px auto;
    padding: 20px;
    border: 2px solid #bdc3c7;
    border-radius: 10px;
    background-color: #ffffff;
    max-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.net-counter-container h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.net-counter {
    font-size: 28px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 6px;
    min-width: 60px;
    text-align: center;
    transition: all 0.3s ease;
}

.positive {
    color: #27ae60;
    background-color: #e8f8f0;
}

.negative {
    color: #e74c3c;
    background-color: #fceeec;
}

.zero {
    color: #7f8c8d;
    background-color: #f5f7fa;
}

/* Description Container Styling */
.description-container {
    max-width: 600px;
    margin: 40px auto 20px;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.description-container h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.description-container p {
    color: #34495e;
    line-height: 1.7;
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .stack-container {
        width: 100%;
        max-width: 300px;
    }
    
    .stack {
        min-height: 160px; /* Increased height for mobile */
        height: auto; /* Allow stack to grow if needed */
        max-height: 200px; /* Set maximum height */
        overflow-y: auto; /* Add scrolling if notes overflow */
    }
    
    .note {
        min-height: 45px; /* Slightly smaller on mobile */
        height: 45px;
        margin-bottom: 5px;
    }
    
    .description-container {
        margin: 30px 15px 20px;
        padding: 20px;
    }
}