.stack-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stack {
    position: relative;
    width: 300px;
    height: 300px;
}

.stack-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s, opacity 0.5s;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateX(0) scale(0.8);
}

.stack-card.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 10;
}

.stack-controls {
    position: absolute;
    top: 50%;
    width: 90%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 20;
}
